Browse Source

入库管理-入库单逻辑修改(一个入库单只能有一条明细)

LZH 2 năm trước cách đây
mục cha
commit
728b5db5cd
1 tập tin đã thay đổi với 10 bổ sung5 xóa
  1. 10 5
      ruoyi-ui/src/views/wms/docAsn/docAsnDetails.vue

+ 10 - 5
ruoyi-ui/src/views/wms/docAsn/docAsnDetails.vue

@@ -140,11 +140,16 @@
       },
       // 新增 / 修改
       addHandle () {
-        //控制只能单选
-        this.addOrUpdateVisible = true
-        this.$nextTick(() => {
-          this.$refs.addOrUpdate.init(this.queryParams.asnNo,'')
-        })
+        if (this.dataList.length >0){
+          this.addOrUpdateVisible = false
+          alert("只能新增一条明细")
+        }else {
+          //控制只能单选
+          this.addOrUpdateVisible = true
+          this.$nextTick(() => {
+            this.$refs.addOrUpdate.init(this.queryParams.asnNo,'')
+          })
+        }
       },
       updateHandle () {
         this.addOrUpdateVisible = true