Browse Source

预托书勾选数据校验问题

jbb 2 years ago
parent
commit
120701ccb5
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/views/pre-book/advancePackingListModal.vue

+ 4 - 2
src/views/pre-book/advancePackingListModal.vue

@@ -344,7 +344,7 @@ export default {
        customerTest = []
        this.selectedRows.map(item=>{
          distributionPointTest.push(item.distributionPoint)
-         customerTest.push(item.customer)
+         customerTest.push(item.customerAbbreviation)
       })
       if([...new Set(distributionPointTest)].length !== 1){this.error.push('分销点')}
       if([...new Set(customerTest)].length !== 1){this.error.push('客户')}
@@ -354,13 +354,15 @@ export default {
     fatherDataSet(fathers,sons){
       var father = fathers[0]
       if(father.distributionPoint !== sons.distributionPoint){this.errorFather.push('分销点')}
-      if(father.custor !== sons.customer){this.errorFather.push('客户')}
+      if(father.clientAbbreviation !== sons.customerAbbreviation){this.errorFather.push('客户简称')}
     },
 
 
     close() {
       this.$emit('close')
       this.advancePackingListModVis = false
+      this.error = []
+      this.errorFather = []
     },
     handleCancel() {
       this.selectedRowKeys = [];