Commit cbfbe62397811d25aabfb0df05928eb1cbd7566f

Authored by 史婷婷
1 parent ce75b92e

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

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