|
@@ -22,12 +22,12 @@
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="客户名称" :label-col="{ span:7 }" :wrapper-col="{ span:17}">
|
|
|
- <dealerSubareaScopeList ref="dealerSubareaScopeList" id="pushOrder-buyerName" @change="custChange" />
|
|
|
+ <dealerSearchList ref="dealerSubareaScopeList" id="pushOrder-buyerName" @change="custChange" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="收货客户名称" :label-col="{ span:7 }" :wrapper-col="{ span:17}">
|
|
|
- <dealerSubareaScopeList ref="shbuyerName" id="pushOrder-shbuyerName" @change="shcustChange" />
|
|
|
+ <dealerSearchList ref="shbuyerName" id="pushOrder-shbuyerName" @change="shcustChange" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="4" :sm="24">
|
|
@@ -92,10 +92,10 @@ import { STable, VSelect } from '@/components'
|
|
|
import { allocateBillList } from '@/api/allocateBill'
|
|
|
import commonModal from '@/views/common/commonModal.vue'
|
|
|
import allocationDetailModal from '@/views/allocationManagement/transferOut/detail.vue'
|
|
|
-import dealerSubareaScopeList from '@/views/common/dealerSubareaScopeList.vue'
|
|
|
+import dealerSearchList from '@/views/common/dealerSearchList.vue'
|
|
|
export default {
|
|
|
name: 'SelectGlAllocatModal',
|
|
|
- components: { STable, VSelect, dealerSubareaScopeList, commonModal, allocationDetailModal },
|
|
|
+ components: { STable, VSelect, dealerSearchList, commonModal, allocationDetailModal },
|
|
|
props: {
|
|
|
openModal: { // 弹框显示状态
|
|
|
type: Boolean,
|
|
@@ -179,10 +179,24 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
custChange (val) {
|
|
|
- this.queryParam.targetSn = val.key
|
|
|
+ console.log(val)
|
|
|
+ if(val.row){
|
|
|
+ this.queryParam.targetSn = val.row.dealerSn
|
|
|
+ this.queryParam.targetName = undefined
|
|
|
+ }else{
|
|
|
+ this.queryParam.targetSn = undefined
|
|
|
+ this.queryParam.targetName = val.key
|
|
|
+ }
|
|
|
},
|
|
|
shcustChange (val) {
|
|
|
- this.queryParam.receiverSn = val.key
|
|
|
+ console.log(val)
|
|
|
+ if(val.row){
|
|
|
+ this.queryParam.receiverSn = val.row.dealerSn
|
|
|
+ this.queryParam.receiverName = undefined
|
|
|
+ }else{
|
|
|
+ this.queryParam.receiverSn = undefined
|
|
|
+ this.queryParam.receiverName = val.key
|
|
|
+ }
|
|
|
},
|
|
|
handleDetail (row, type) {
|
|
|
this.bizSn = row.allocateSn
|