From aef2a705884dbb25b24d23fc886c563327f4753e Mon Sep 17 00:00:00 2001
From: 石广澎 <shiguangpeng@163.com>
Date: 星期一, 27 十一月 2023 17:34:07 +0800
Subject: [PATCH] feat:

---
 admin-web/src/views/stock/inventorycount/inventorytask/inventory.vue |   33 ++++++++++++++-------------------
 1 files changed, 14 insertions(+), 19 deletions(-)

diff --git a/admin-web/src/views/stock/inventorycount/inventorytask/inventory.vue b/admin-web/src/views/stock/inventorycount/inventorytask/inventory.vue
index 45ecc56..fa31464 100644
--- a/admin-web/src/views/stock/inventorycount/inventorytask/inventory.vue
+++ b/admin-web/src/views/stock/inventorycount/inventorytask/inventory.vue
@@ -13,7 +13,7 @@
         v-loading="loading"
         :data="formData.formInventoryGoodsList"
         :rules="rules"
-        height="400"
+        height="500"
         :stripe="true"
         class="the-table"
       >
@@ -46,7 +46,7 @@
 <script>
 import winMd from '@/components/win/win-md';
 import myButton from '@/components/myButton/myButton';
-import { inventoryQuery, inventoryTemporaryStorage, inventoryFinish } from '@/api/stock/inventory';
+import { inventoryQuery, inventoryTemporaryStorage, inventoryFinish, inventoryDetail } from '@/api/stock/inventory';
 export default {
   components: { winMd, myButton },
   props: {
@@ -78,35 +78,30 @@
     console.log('info', info);
     if (info.states == 1) {
       // 缁х画鐩樼偣
-
+      inventoryDetail({ id: this.setting.id }).then((res) => {
+        this.formData = res;
+        this.formData.id = this.setting.id;
+      });
     } else {
       inventoryQuery({ id: this.setting.id }).then((res) => {
         this.formData = res;
         this.formData.id = this.setting.id;
       });
     }
-      inventoryQuery({ id: this.setting.id }).then((res) => {
-        this.formData = res;
-        this.formData.id = this.setting.id;
-      });
   },
   methods: {
     close() {
       this.$emit('close');
     },
     staging() {
-      this.$refs['ruleForm'].validate((valid) => {
-        if (valid) {
-          const params = {
-            ...this.formData,
-            inventoryGoodsList: this.formData.formInventoryGoodsList,
-          };
-          inventoryTemporaryStorage(params).then(() => {
-            this.$message.success('鏆傚瓨鎴愬姛锛�');
-            this.close();
-            this.$emit('search');
-          });
-        }
+      const params = {
+        id: this.formData.id,
+        inventoryGoodsList: this.formData.formInventoryGoodsList,
+      };
+      inventoryTemporaryStorage(params).then(() => {
+        this.$message.success('鏆傚瓨鎴愬姛锛�');
+        this.close();
+        this.$emit('search');
       });
     },
     save() {

--
Gitblit v1.9.1