瀏覽代碼

新增限制

dw 1 周之前
父節點
當前提交
85294d30b6
共有 1 個文件被更改,包括 16 次插入0 次删除
  1. 16
    0
      src/view/ware/storechange.vue

+ 16
- 0
src/view/ware/storechange.vue 查看文件

@@ -636,6 +636,22 @@
636 636
 					});
637 637
 					return
638 638
 				}
639
+        console.log(this.multipleSelection,'-----------------------')
640
+
641
+        /**
642
+         * 2026-06-18
643
+         * 增加判断,货权转移只能 1对1
644
+         */
645
+        for (var i = 0; i < this.multipleSelection.length; i++){
646
+          if (this.multipleSelection[i].customer.name !== this.multipleSelection[0].customer.name) {
647
+            this.$message({
648
+              type: 'error',
649
+              message: '货权转移订单客户不唯一!',
650
+            });
651
+            return
652
+          }
653
+        }
654
+
639 655
 				var customerAddress = this.multipleSelection[0].customer.address
640 656
 				var boolean = true
641 657
 				for (var i = 0; i < this.multipleSelection.length; i++) {

Loading…
取消
儲存