From e7ccd2a06e4cdf3709e699507e1e15379ded5b83 Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期一, 06 十一月 2023 11:25:09 +0800
Subject: [PATCH] Merge branch 'dev' of http://192.168.5.5:10010/r/web/WMS into dev

---
 src/views/productManage/product/AddProductDialog.vue |   58 +++++++++++++++++++++++++++++++++++++++++++++-------------
 1 files changed, 45 insertions(+), 13 deletions(-)

diff --git a/src/views/productManage/product/AddProductDialog.vue b/src/views/productManage/product/AddProductDialog.vue
index e24ecd2..5c63af6 100644
--- a/src/views/productManage/product/AddProductDialog.vue
+++ b/src/views/productManage/product/AddProductDialog.vue
@@ -43,6 +43,8 @@
             :show-procure="showProcure"
             :countObject="statisticsMap"
             :show-sale="showSale"
+            @listingRulesClick="listingRulesClick"
+            @reorderRulesClick="reorderRulesClick"
           />
           <div class="bottom">
             <el-tabs v-model="activeName" type="card">
@@ -558,22 +560,24 @@
     /**
      * 闈炲繀濉」鍚庣杩斿洖鐨勬槸鏁板瓧 0,琛ㄥ崟闇�瑕佺┖涓叉墠鑳借涓烘湭閫夋嫨鍥炴樉
      */
-    setOptionalFieldsToEmpty(){
-      ['productType','categoryId']
-          .filter(filed => this.editConfig.infomation[filed] === 0)
-          .forEach(filed => {
-            this.editConfig.infomation[filed] = ''
-          })
+    setOptionalFieldsToEmpty() {
+      let arr = ["productType", "categoryId"]
+      arr
+        .filter((filed) => this.editConfig.infomation[filed] === 0)
+        .forEach((filed) => {
+          this.editConfig.infomation[filed] = ""
+        })
     },
     /**
      * 鍚庣鍙帴鍙楁暟瀛楀舰寮�, 淇濆瓨鏃惰繕寰楀啀杞洖鍘�
      */
-    unsetFieldsToNumber(){
-      ['productType','categoryId']
-          .filter(filed => this.editConfig.infomation[filed] === '')
-          .forEach(filed => {
-            this.editConfig.infomation[filed] = 0
-          })
+    unsetFieldsToNumber() {
+      let arr = ["productType", "categoryId"]
+      arr
+        .filter((filed) => this.editConfig.infomation[filed] === "")
+        .forEach((filed) => {
+          this.editConfig.infomation[filed] = 0
+        })
     },
     // 鑾峰彇浜у搧绫诲埆
     async getProductCategoryList() {
@@ -645,7 +649,7 @@
               this.$message.success("娣诲姞鎴愬姛")
               this.$parent.getData()
             }
-          },console.error)
+          }, console.error)
         }
       })
     },
@@ -779,6 +783,34 @@
         })
       }
     },
+    // 涓婃灦瑙勫垯
+    listingRulesClick() {
+      this.$refs.form.validate((valid) => {
+        if (valid) {
+          this.$router.push({
+            path: "/warehouseManage/listingRules",
+            query: {
+              productName: this.editConfig.infomation.name,
+              productId: this.editConfig.title === "鏂板缓" ? "" : this.editConfig.infomation.id
+            }
+          })
+        }
+      })
+    },
+    // 閲嶈璐鍒�
+    reorderRulesClick() {
+      this.$refs.form.validate((valid) => {
+        if (valid) {
+          this.$router.push({
+            path: "/productManage/reorderRules",
+            query: {
+              productName: this.editConfig.infomation.name,
+              productId: this.editConfig.title === "鏂板缓" ? "" : this.editConfig.infomation.id
+            }
+          })
+        }
+      })
+    },
     // 鍙攢鍞�/鍙噰璐�
     checkboxChange(val, param) {
       if (val === "閲囪喘") {

--
Gitblit v1.8.0