From df605c69a17bb548e3f98e10f7cc3c3298e5d8f7 Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期三, 25 三月 2026 16:31:10 +0800
Subject: [PATCH] 过程检验列表加上不良数量、合格数量字段。过程检验编辑页面也加上不良数量、合格数量字段,不良数量输入框手填,合格数量,数量输入框置灰,根据根据不良数量+合格数量=数量这一逻辑计算。若不填默认不良数量为0。数量是订单本次生产数量-报废数量

---
 src/views/inventoryManagement/stockManagement/Import.vue |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/src/views/inventoryManagement/stockManagement/Import.vue b/src/views/inventoryManagement/stockManagement/Import.vue
index 7d898e1..2f3ff00 100644
--- a/src/views/inventoryManagement/stockManagement/Import.vue
+++ b/src/views/inventoryManagement/stockManagement/Import.vue
@@ -8,6 +8,7 @@
       :disabled="upload.isUploading"
       :showTip="true"
       @success="handleFileSuccess"
+      :downloadTemplate="downloadTemplate"
     />
     <template #footer>
       <div class="dialog-footer">
@@ -19,7 +20,7 @@
 </template>
 
 <script setup>
-import {computed, reactive} from "vue";
+import {computed, getCurrentInstance, reactive} from "vue";
 import { getToken } from "@/utils/auth.js";
 import { FileUpload } from "@/components/Upload";
 import { ElMessage } from "element-plus";
@@ -27,6 +28,8 @@
 defineOptions({
   name: "瀵煎叆搴撳瓨",
 });
+
+const { proxy } = getCurrentInstance()
 
 const props = defineProps({
   visible: {
@@ -80,6 +83,10 @@
   }
 };
 
+const downloadTemplate = () => {
+  proxy.download("/stockInventory/downloadStockInventory", {}, "搴撳瓨瀵煎叆妯℃澘.xlsx");
+}
+
 const closeModal = () => {
   isShow.value = false;
 };

--
Gitblit v1.9.3