From 2aaa8c190128efa6399124a00798c3c6efa2f86e Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期五, 16 一月 2026 13:04:07 +0800
Subject: [PATCH] fix: 采购台账中涉及到价格、数量等输入框时,限制数值输入不能为负数
---
src/views/inventoryManagement/receiptManagement/index.vue | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/views/inventoryManagement/receiptManagement/index.vue b/src/views/inventoryManagement/receiptManagement/index.vue
index 16af5cd..605fb0a 100644
--- a/src/views/inventoryManagement/receiptManagement/index.vue
+++ b/src/views/inventoryManagement/receiptManagement/index.vue
@@ -105,8 +105,9 @@
</template>
</el-table-column>
<el-table-column label="鍏ュ簱鏁伴噺/浠�" prop="inboundNum" width="100" show-overflow-tooltip />
- <el-table-column label="姣忎欢鏁伴噺/鏀�" prop="boxNum" width="100" show-overflow-tooltip />
+ <el-table-column label="姣忕洅鏁伴噺/鏀�" prop="boxNum" width="100" show-overflow-tooltip />
<el-table-column label="鍗曚环(鍏�)/浠�" prop="taxInclusiveUnitPrice" width="150"></el-table-column>
+ <el-table-column label="鍗曚环(缇庡厓)/浠�" prop="dollarPrice" width="150"></el-table-column>
<el-table-column label="绾哥瑙勬牸" prop="cartonSpecifications" width="150"></el-table-column>
<el-table-column label="鍏ュ簱浜�" prop="createBy" width="150" show-overflow-tooltip />
<el-table-column fixed="right" label="鎿嶄綔" width="100" align="center">
@@ -388,7 +389,13 @@
} else if (activeTab.value === 'manual') {
exportUrl = "/stockin/exportTwo"
}
- proxy.download(exportUrl, {}, '鍏ュ簱鍙拌处.xlsx')
+ // 濡傛灉鏈夐�変腑鏁版嵁锛屼紶閫掗�変腑鐨勬暟鎹瓧娈电敤receiptManagement锛屽惁鍒欎紶閫掔┖鏁扮粍
+ const customStorage = selectedRows.value.length > 0 ? selectedRows.value : []
+ // 浣跨敤 JSON 鏍煎紡浼犻�掓暟鎹�
+ proxy.download(exportUrl, customStorage, '鍏ュ簱鍙拌处.xlsx', {
+ headers: { 'Content-Type': 'application/json' },
+ transformRequest: [(data) => JSON.stringify(data)]
+ })
}).catch(() => {
proxy.$modal.msg("宸插彇娑�")
})
--
Gitblit v1.9.3