|
@@ -23,7 +23,7 @@
|
|
<template v-if="advanced">
|
|
<template v-if="advanced">
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
<a-form-item label="客户名称" :label-col="{ span:7 }" :wrapper-col="{ span:17}">
|
|
<a-form-item label="客户名称" :label-col="{ span:7 }" :wrapper-col="{ span:17}">
|
|
- <custList ref="custList" v-model="queryParam.buyerName"></custList>
|
|
|
|
|
|
+ <custList ref="custList" @change="custChange"></custList>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
@@ -251,6 +251,7 @@ export default {
|
|
outWarehouseBeginDate: '',
|
|
outWarehouseBeginDate: '',
|
|
outWarehouseEndDate: '',
|
|
outWarehouseEndDate: '',
|
|
buyerName: undefined, // 客户名称
|
|
buyerName: undefined, // 客户名称
|
|
|
|
+ buyerSn: undefined,
|
|
salesBillNo: '', // 销售单号
|
|
salesBillNo: '', // 销售单号
|
|
purchaseBillNo: '', // 采购单号
|
|
purchaseBillNo: '', // 采购单号
|
|
payType: undefined, // 支付方式
|
|
payType: undefined, // 支付方式
|
|
@@ -328,6 +329,16 @@ export default {
|
|
this.queryParam.outWarehouseBeginDate = date[0]
|
|
this.queryParam.outWarehouseBeginDate = date[0]
|
|
this.queryParam.outWarehouseEndDate = date[1]
|
|
this.queryParam.outWarehouseEndDate = date[1]
|
|
},
|
|
},
|
|
|
|
+ custChange (v, row) {
|
|
|
|
+ console.log(v, row)
|
|
|
|
+ if (row && row.customerSn) {
|
|
|
|
+ this.queryParam.buyerSn = row.customerSn
|
|
|
|
+ this.queryParam.buyerName = undefined
|
|
|
|
+ } else {
|
|
|
|
+ this.queryParam.buyerName = v
|
|
|
|
+ this.queryParam.buyerSn = undefined
|
|
|
|
+ }
|
|
|
|
+ },
|
|
// 新增
|
|
// 新增
|
|
handleAdd () {
|
|
handleAdd () {
|
|
this.openModal = true
|
|
this.openModal = true
|
|
@@ -435,6 +446,7 @@ export default {
|
|
this.queryParam.outWarehouseEndDate = ''
|
|
this.queryParam.outWarehouseEndDate = ''
|
|
|
|
|
|
this.queryParam.buyerName = undefined
|
|
this.queryParam.buyerName = undefined
|
|
|
|
+ this.queryParam.buyerSn = undefined
|
|
this.queryParam.salesBillNo = ''
|
|
this.queryParam.salesBillNo = ''
|
|
this.queryParam.purchaseBillNo = ''
|
|
this.queryParam.purchaseBillNo = ''
|
|
this.queryParam.payType = undefined
|
|
this.queryParam.payType = undefined
|