From 236566b02c46f11f684e942b38ec43c310421fa3 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 17 三月 2026 13:06:27 +0800
Subject: [PATCH] 军泰伟业 1.仓储物流需要加上库位,库位暂时分为外购、自制、委外三种类型 2.生产订单加上库存数量,方便实时查看 3.产品发货后,若部分产品退回,可修改订单发货数量(减去退回的产品数量),若订单产品全部退回,可对发货的订单进行取消撤回操作
---
src/views/inventoryManagement/stockManagement/Import.vue | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/views/inventoryManagement/stockManagement/Import.vue b/src/views/inventoryManagement/stockManagement/Import.vue
index 1dbce95..2f3ff00 100644
--- a/src/views/inventoryManagement/stockManagement/Import.vue
+++ b/src/views/inventoryManagement/stockManagement/Import.vue
@@ -6,8 +6,9 @@
:headers="upload.headers"
:action="upload.url"
:disabled="upload.isUploading"
- :showTip="false"
+ :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