From 4b4438e7231bff0f260b0c17761072503e2af7b1 Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期六, 28 十月 2023 15:55:01 +0800
Subject: [PATCH] 上架规则,产品类别下拉框可编辑,出入库明细调整

---
 src/views/reportForm/inboundOutboundDetail/index.vue |   37 +++++++++++++++++++++++--------------
 1 files changed, 23 insertions(+), 14 deletions(-)

diff --git a/src/views/reportForm/inboundOutboundDetail/index.vue b/src/views/reportForm/inboundOutboundDetail/index.vue
index 594c6a6..55058e2 100644
--- a/src/views/reportForm/inboundOutboundDetail/index.vue
+++ b/src/views/reportForm/inboundOutboundDetail/index.vue
@@ -31,7 +31,7 @@
 <script>
 import pageMixin from "@/components/makepager/pager/mixin/pageMixin"
 import { getHistory } from "@/api/reportForm/inventoryRwport"
-import { getProductOperatonList } from "@/api/product/product"
+// import { getProductOperatonList } from "@/api/product/product"
 
 import AddOverviewDialog from "@/views/overview/AddOverviewDialog"
 
@@ -181,23 +181,32 @@
           }
         })
       } else {
-        await getProductOperatonList({
-          productId: this.params.id,
+        // await getProductOperatonList({
+        //   productId: this.params.id,
+        //   page: this.pagerOptions.currPage,
+        //   pageSize: this.pagerOptions.pageSize
+        // }).then((res) => {
+        //   if (res.code === 200) {
+        //     const list = res.data.map((item) => {
+        //       return {
+        //         ...item,
+        //         fromLocation: item.fromLocation.name,
+        //         toLocation: item.toLocation.name,
+        //         productName: this.params.name,
+        //         amount: item.details[0].product.amount,
+        //         unit: item.details[0].product.unit
+        //       }
+        //     })
+        //     this.tableList.tableInfomation = list || []
+        //     this.pagerOptions.totalCount = res.total
+        //   }
+        // })
+        await getHistory({
           page: this.pagerOptions.currPage,
           pageSize: this.pagerOptions.pageSize
         }).then((res) => {
           if (res.code === 200) {
-            const list = res.data.map((item) => {
-              return {
-                ...item,
-                fromLocation: item.fromLocation.name,
-                toLocation: item.toLocation.name,
-                productName: this.params.name,
-                amount: item.details[0].product.amount,
-                unit: item.details[0].product.unit
-              }
-            })
-            this.tableList.tableInfomation = list || []
+            this.tableList.tableInfomation = res.data
             this.pagerOptions.totalCount = res.total
           }
         })

--
Gitblit v1.8.0