Преглед на файлове

预托书勾选数据校验问题

jbb преди 2 години
родител
ревизия
120701ccb5
променени са 1 файла, в които са добавени 4 реда и са изтрити 2 реда
  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 = [];