Browse Source

bug 修复

lilei 4 years ago
parent
commit
e8cedb79c0

+ 7 - 3
src/views/salesManagement/examineVerify/list.vue

@@ -18,7 +18,7 @@
           </a-col>
           <a-col :md="6" :sm="24">
             <a-form-item label="客户名称">
-              <custList id="examineVerifyList-buyerName" v-model="queryParam.buyerName"></custList>
+              <custList id="examineVerifyList-buyerName" ref="custList" @change="custChange"></custList>
             </a-form-item>
           </a-col>
           <a-col :md="6" :sm="24">
@@ -123,7 +123,7 @@ export default {
       tableHeight: 0,
       time: [],
       queryParam: { //  查询条件
-        buyerName: undefined, //  客户名称
+        buyerSn: undefined, //  客户名称
         salesBillNo: '', //  销售单号
         dispatchBillNo: '', // 备货单号
         stockOutNo: '', // 出库单号
@@ -185,13 +185,17 @@ export default {
     }
   },
   methods: {
+    custChange (val) {
+      this.queryParam.buyerSn = val.key
+    },
     // 不可选日期
     disabledDate (date, dateStrings) {
       return date && date.valueOf() > Date.now()
     },
     //  重置
     resetSearchForm () {
-      this.queryParam.buyerName = undefined
+      this.queryParam.buyerSn = undefined
+      this.$refs.custList.resetForm()
       this.queryParam.salesBillNo = ''
       this.queryParam.dispatchBillNo = '' // 备货单号
       this.queryParam.stockOutNo = '' // 出库单号

+ 7 - 3
src/views/salesManagement/pushOrderManagement/list.vue

@@ -17,7 +17,7 @@
           </a-col>
           <a-col :md="6" :sm="24">
             <a-form-item label="客户名称" :label-col="{ span:7 }" :wrapper-col="{ span:17}">
-              <custList id="pushOrder-buyerName" v-model="queryParam.buyerName"></custList>
+              <custList id="pushOrder-buyerName" ref="custList" @change="custChange"></custList>
             </a-form-item>
           </a-col>
           <a-col :md="6" :sm="24">
@@ -103,7 +103,7 @@ export default {
       time: [], //  创建时间
       // 查询参数
       queryParam: {
-        buyerName: undefined, //  客户名称
+        buyerSn: undefined, //  客户名称
         salesBillNo: '', //  销售单号
         dispatchBillNo: '', //  备货单号
         billStatus: undefined //  业务状态
@@ -160,6 +160,9 @@ export default {
     }
   },
   methods: {
+    custChange (val) {
+      this.queryParam.buyerSn = val.key
+    },
     // 不可选日期
     disabledDate (date, dateStrings) {
       return date && date.valueOf() > Date.now()
@@ -170,7 +173,8 @@ export default {
     },
     // 重置
     resetSearchForm () {
-      this.queryParam.buyerName = undefined
+      this.queryParam.buyerSn = undefined
+      this.$refs.custList.resetForm()
       this.queryParam.salesBillNo = ''
       this.queryParam.purchaseBillNo = ''
       this.queryParam.payType = undefined

+ 7 - 3
src/views/salesManagement/salesQuery/list.vue

@@ -17,7 +17,7 @@
           </a-col>
           <a-col :md="6" :sm="24">
             <a-form-item label="客户名称" :label-col="{ span:7 }" :wrapper-col="{ span:17}">
-              <custList id="salesManagementList-buyerName" v-model="queryParam.buyerName"></custList>
+              <custList id="salesManagementList-buyerName" ref="custList" @change="custChange"></custList>
             </a-form-item>
           </a-col>
           <a-col :md="6" :sm="24">
@@ -204,7 +204,7 @@ export default {
       openModal: false, // 选择客户弹框是否显示
       // 查询参数
       queryParam: {
-        buyerName: undefined, //  客户名称
+        buyerSn: undefined, //  客户名称
         salesBillNo: '', //  销售单号
         printStatus: undefined, //  采购单号
         billStatus: undefined, //  业务状态
@@ -279,6 +279,9 @@ export default {
     }
   },
   methods: {
+    custChange (val) {
+      this.queryParam.buyerSn = val.key
+    },
     // 不可选日期
     disabledDate (date, dateStrings) {
       return date && date.valueOf() > Date.now()
@@ -355,7 +358,8 @@ export default {
     },
     // 重置
     resetSearchForm () {
-      this.queryParam.buyerName = undefined
+      this.queryParam.buyerSn = undefined
+      this.$refs.custList.resetForm()
       this.queryParam.salesBillNo = ''
       this.queryParam.purchaseBillNo = ''
       this.queryParam.payType = undefined