Commit cbfbe62397811d25aabfb0df05928eb1cbd7566f

Authored by 史婷婷
1 parent ce75b92e

feat: 涉及到客户池选择增加参数,客户池关联表增加参数

... ... @@ -127,7 +127,9 @@ export default {
127 127 try {
128 128 // 客户池
129 129 if (this.source === 'customer') {
130   - const params = { pageIndex, pageSize, name }
  130 + console.log('customer_extra', extra)
  131 + const source = (extra && extra.source) || '';
  132 + const params = { pageIndex, pageSize, name, source }
131 133 return customerQueryApi(params).then(res => {
132 134 const _data = res.data || {}
133 135 const records = _data.datas || []
... ... @@ -146,6 +148,7 @@ export default {
146 148 return { records, totalCount, hasNext }
147 149 })
148 150 } else if (this.source === 'orderAssoc') {
  151 + console.log('orderAssoc_extra', extra)
149 152 // 订单关联表(可撤销/变更的订货单)
150 153 const queryType = (extra && extra.queryType) || ''
151 154 const params = { pageIndex, pageSize, orderNo: name, queryType }
... ...
... ... @@ -308,7 +308,7 @@
308 308 @confirm="onSheetConfirm" />
309 309 <RelateSelectSheet :visible.sync="relate.visible" :title="relate.title" :source="relate.source"
310 310 :display-fields="relate.display" :multiple="relate.multiple" :row-key="relate.rowKey"
311   - :selectedKeys.sync="relate.selectedKeys" @confirm="onRelateConfirm" />
  311 + :selectedKeys.sync="relate.selectedKeys" :source-extra="{ source: 'CUSTOMER_CREDIT' }" @confirm="onRelateConfirm" />
312 312 </view>
313 313
314 314 </template>
... ...
... ... @@ -306,7 +306,7 @@
306 306 @confirm="onSheetConfirm" />
307 307 <RelateSelectSheet :visible.sync="relate.visible" :title="relate.title" :source="relate.source"
308 308 :display-fields="relate.display" :multiple="relate.multiple" :row-key="relate.rowKey"
309   - :selectedKeys.sync="relate.selectedKeys" @confirm="onRelateConfirm" />
  309 + :selectedKeys.sync="relate.selectedKeys" :source-extra="{ source: 'CUSTOMER_CREDIT' }" @confirm="onRelateConfirm" />
310 310 </view>
311 311
312 312 </template>
... ...
... ... @@ -114,7 +114,7 @@
114 114 <!-- 关联选择弹框:客户名称、责任人 -->
115 115 <RelateSelectSheet :visible.sync="relate.visible" :title="relate.title" :source="relate.source"
116 116 :display-fields="relate.display" :multiple="relate.multiple" :row-key="relate.rowKey"
117   - :selectedKeys.sync="relate.selectedKeys" @confirm="onRelateConfirm" />
  117 + :selectedKeys.sync="relate.selectedKeys" :source-extra="{ source: 'CUSTOMER_DEVELOP' }" @confirm="onRelateConfirm" />
118 118 </view>
119 119 </template>
120 120
... ...
... ... @@ -114,7 +114,7 @@
114 114 <!-- 关联选择弹框:客户名称、责任人 -->
115 115 <RelateSelectSheet :visible.sync="relate.visible" :title="relate.title" :source="relate.source"
116 116 :display-fields="relate.display" :multiple="relate.multiple" :row-key="relate.rowKey"
117   - :selectedKeys.sync="relate.selectedKeys" @confirm="onRelateConfirm" />
  117 + :selectedKeys.sync="relate.selectedKeys" :source-extra="{ source: 'CUSTOMER_DEVELOP' }" @confirm="onRelateConfirm" />
118 118 </view>
119 119 </template>
120 120
... ...