Browse Source

更改付费方式不一致时的提示规则

wfg 1 month ago
parent
commit
a179e2c4a1
1 changed files with 7 additions and 5 deletions
  1. 7 5
      src/views/iosBasicData/SeafreightExportF/bills/billsDetails.vue

+ 7 - 5
src/views/iosBasicData/SeafreightExportF/bills/billsDetails.vue

@@ -1743,9 +1743,7 @@ export default {
 
                 }
 
-                console.log(name + '.value', value, 'hpaymode', this.form.hpaymode)
-
-                if (value != this.form.hpaymode) {
+                if (this.form.hblNo && value != this.form.hpaymode) {
                     this.$alert('主单付费方式和分单的付费方式不一致 !', '提示', {
                         confirmButtonText: '确定',
                     });
@@ -1769,8 +1767,7 @@ export default {
                         this.$set(this.form, 'hpayplace', this.form.podEnName ? this.form.podEnName : '')
                     }
                 }
-                console.log(name + '.value', value, 'mpaymode', this.form.mpaymode)
-                if (value != this.form.mpaymode) {
+                if (this.form.hblNo && value != this.form.mpaymode) {
                     this.$alert('主单付费方式和分单的付费方式不一致 !', '提示', {
                         confirmButtonText: '确定',
                     });
@@ -1846,6 +1843,11 @@ export default {
                     // }).then(res => {
                     //     this.billsGetBillNofun()
                     // })
+                    if (this.form.hpaymode != this.form.mpaymode) {
+                        this.$alert('注意:主单付费方式和分单的付费方式不一致 !', '提示', {
+                            confirmButtonText: '确定',
+                        });
+                    }
                     this.billsGetBillNofun()
                 }
             }