From fa523e19c4e89c3a08aff41fe5acb57392a0f0aa Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期一, 18 十二月 2023 14:57:43 +0800
Subject: [PATCH] 修改库存调整路由跳转,重订货规则数量设置默认值,样式调整

---
 src/views/operate/orderPoint/index.vue |   23 ++++++++++++++++++-----
 1 files changed, 18 insertions(+), 5 deletions(-)

diff --git a/src/views/operate/orderPoint/index.vue b/src/views/operate/orderPoint/index.vue
index d9167c5..340eb0e 100644
--- a/src/views/operate/orderPoint/index.vue
+++ b/src/views/operate/orderPoint/index.vue
@@ -103,8 +103,8 @@
       amount: 0,
       operationId: 0,
       minInventory: 0,
-      maxInventory: 0,
-      orderNumber: 0,
+      maxInventory: 1,
+      orderNumber: 1,
       unit: "",
       reorderId: 0,
       searchTaskMap: [],
@@ -119,7 +119,16 @@
         pageSize: 15,
         page: 1
       })
-    } else {
+    }else if(this.$route.params.locationId){
+      this.searchTaskMap=[]
+      this.getData({
+        id: this.$route.params.locationId,
+        jointName:this.$route.params.locationName,
+        // type:"",
+        pageSize: 15,
+        page: 1
+      })
+    }else {
       this.getData()
     }
     this.setTable()
@@ -190,7 +199,7 @@
     },
     // 鎿嶄綔杈撳叆
     inputContent(val, prop, row) {
-      console.log(val, prop, row)
+      console.log(row)
       if (prop === "minInventory") {
         this.minInventory = val
         if (parseFloat(this.minInventory) - parseFloat(this.prediction) > 0) {
@@ -249,7 +258,10 @@
         this.showDiscard = false
         let requestUrl = this.currentRowId === 0 ? addReorderRule : updateReorderRule
         let params = this.saveParams()
-        requestUrl(params)
+        if(params.productId===0){
+          this.$message.warning("璇峰~鍐欎骇鍝佷俊鎭�!")
+        }else{
+          requestUrl(params)
           .then((res) => {
             console.log(res)
             if (res.code === 200) {
@@ -262,6 +274,7 @@
             console.log(err)
             this.getData()
           })
+        }
         // }
       }
     },

--
Gitblit v1.8.0