From b08d6dd897626cfbcf4b2471cee47abe357725d4 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期四, 25 一月 2024 18:31:42 +0800
Subject: [PATCH] wms 产品模块 进货,出货2个区别开,进货跳转到入库明细表,出货跳转到出库明细表

---
 src/components/makepager/FormBtnsView.vue            |    9 ++++-----
 src/views/productManage/product/AddProductDialog.vue |   10 ++++++++--
 2 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/src/components/makepager/FormBtnsView.vue b/src/components/makepager/FormBtnsView.vue
index 876a61c..35c4d25 100644
--- a/src/components/makepager/FormBtnsView.vue
+++ b/src/components/makepager/FormBtnsView.vue
@@ -28,13 +28,12 @@
     <div
       v-if="!showProduct && !showWarehouse && !showPosition"
       class="sub-number yes-cursor"
-      @click="inOutBoundClick"
       :class="{ left_border: addProduct }"
     >
       <div class="left icon-view"><i class="el-icon-sort"></i></div>
       <div class="right">
-        <div class="right-label">{{ "杩�: " + (countObject?.inputAmount ?? 0) }}</div>
-        <div class="right-label">{{ "鍑�: " + (countObject?.outputAmount ?? 0) }}</div>
+        <div class="right-label"  @click="inOutBoundClick('杩�')">{{ "杩�: " + (countObject?.inputAmount ?? 0) }}</div>
+        <div class="right-label"  @click="inOutBoundClick('鍑�')">{{ "鍑�: " + (countObject?.outputAmount ?? 0) }}</div>
       </div>
     </div>
     <!-- <div
@@ -161,8 +160,8 @@
       this.$emit("positionReport")
     },
     // 杩涘嚭
-    inOutBoundClick() {
-      this.$emit("inOutBoundClick")
+    inOutBoundClick(val) {
+      this.$emit("inOutBoundClick",val)
     },
     // 浜у搧
     productClick() {
diff --git a/src/views/productManage/product/AddProductDialog.vue b/src/views/productManage/product/AddProductDialog.vue
index 9e00b6d..3534884 100644
--- a/src/views/productManage/product/AddProductDialog.vue
+++ b/src/views/productManage/product/AddProductDialog.vue
@@ -849,11 +849,17 @@
       // console.log(formdata, "鍥剧墖鏁版嵁")
     },
     // 杩涘嚭鐐瑰嚮
-    inOutBoundClick() {
+    inOutBoundClick(val) {
       if (this.editConfig.title !== "鏂板缓") {
         console.log(this.editConfig.infomation)
+        let url=''
+        if(val=='杩�'){
+          url='inboundOutboundDetail'
+        }else{
+          url='outboundDetail'
+        }
         this.$router.push({
-          name: "inboundOutboundDetail",
+          name:url,
           params: {
             name: this.editConfig.infomation.name,
             id: this.editConfig.infomation.id

--
Gitblit v1.8.0