From 9834dbff448908d2008d8c52a2544aad00c099b1 Mon Sep 17 00:00:00 2001
From: haoyahui <2032914783@qq.com>
Date: 星期三, 22 十一月 2023 17:34:26 +0800
Subject: [PATCH] 库存盘点, 异常明细,报废管理

---
 admin-web/src/views/stock/inventorycount/inventorytask/detail.vue |   41 ++++++++++++++---------------------------
 1 files changed, 14 insertions(+), 27 deletions(-)

diff --git a/admin-web/src/views/stock/inventorycount/inventorytask/detail.vue b/admin-web/src/views/stock/inventorycount/inventorytask/detail.vue
index 4c66b66..34f314d 100644
--- a/admin-web/src/views/stock/inventorycount/inventorytask/detail.vue
+++ b/admin-web/src/views/stock/inventorycount/inventorytask/detail.vue
@@ -2,27 +2,23 @@
   <win-md :title="setting.title" @close="close" :width="'1200px'">
     <el-row :gutter="20" style="margin-bottom: 20px" type="flex" align="middle">
       <el-col :span="6">鐩樼偣鍗曞彿锛歿{ formData.businessFormCode }}</el-col>
-      <el-col :span="6">鐩樼偣浠诲姟锛歿{ formData.businessTaskCode }}</el-col>
-      <el-col :span="6">鐩樼偣浠撳簱锛歿{ formData.warehouseId }}</el-col>
+      <el-col :span="6">鐩樼偣浠诲姟锛歿{ formData.businessFormName }}</el-col>
+      <el-col :span="6">鐩樼偣浠撳簱锛歿{ formData.warehouseName }}</el-col>
     </el-row>
-    <el-table v-loading="loading" :data="formData.tableData" height="100%" :stripe="true" class="the-table">
+    <el-table v-loading="loading" :data="formData.formInventoryGoodsList" height="500" :stripe="true" class="the-table">
       <el-table-column prop="goodsTemplateName" label="鐗╁搧鍚嶇О"> </el-table-column>
-      <el-table-column prop="baseGoodsModelsId" label="鍨嬪彿" align="center"> </el-table-column>
-      <el-table-column prop="inventoryCounts" label="搴旂洏鏁伴噺" align="center"></el-table-column>
-      <el-table-column prop="inventoryCounts" label="瀹炵洏鏁伴噺" align="center"></el-table-column>
-      <el-table-column prop="inventoryCounts" label="鐘舵��" align="center"></el-table-column>
+      <el-table-column prop="baseGoodsModelsName" label="鍨嬪彿" align="center"> </el-table-column>
+      <el-table-column prop="inventoryCount" label="搴旂洏鏁伴噺" align="center"></el-table-column>
+      <el-table-column prop="realNum" label="瀹炵洏鏁伴噺" align="center"></el-table-column>
+      <el-table-column prop="states" label="鐘舵��" align="center"></el-table-column>
     </el-table>
-
-    <div slot="footer" align="center" class="dialog-footer">
-      <my-button name="鏆傚瓨" site="form" type="primary" @click="close" />
-      <my-button name="瀹屾垚鐩樼偣" site="form" type="success" @click="save" />
-    </div>
   </win-md>
 </template>
 
 <script>
 import winMd from '@/components/win/win-md';
 import myButton from '@/components/myButton/myButton';
+import { inventoryDetail } from '@/api/stock/inventory';
 export default {
   components: { winMd, myButton },
   props: {
@@ -36,25 +32,16 @@
       loading: false,
       formData: {
         businessFormCode: '2023080812',
-        businessTaskCode: '2023骞�9鏈堢洏鐐瑰崟',
-        warehouseId: '寮�灏佸競浠撳簱',
-        tableData: [],
+        businessFormName: '2023骞�9鏈堢洏鐐瑰崟',
+        warehouseName: '寮�灏佸競浠撳簱',
+        formInventoryGoodsList: [],
       },
     };
   },
   created() {
-    for (let i = 0; i < 10; i++) {
-      this.formData.tableData.push({
-        goodsTemplateName: '鏂戒箰榛戣壊纰崇矇',
-        baseGoodsModelsId: '鏂戒箰c2201',
-        classification: 'A',
-        unit: '濂�',
-        kc: 10,
-        price: 20,
-        inventoryResult: 200,
-        inventoryCounts: 0,
-      });
-    }
+    inventoryDetail({ id: this.setting.id }).then((res) => {
+      this.formData = res;
+    });
   },
   methods: {
     close() {

--
Gitblit v1.9.1