From e03ff28fb1dbaa19571b7ea0414e0161f178cf26 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期二, 20 一月 2026 16:48:08 +0800
Subject: [PATCH] 浪潮对接单点登录:浪潮配置调整
---
src/views/inventoryManagement/stockManagement/index.vue | 23 ++++++++++++-----------
1 files changed, 12 insertions(+), 11 deletions(-)
diff --git a/src/views/inventoryManagement/stockManagement/index.vue b/src/views/inventoryManagement/stockManagement/index.vue
index 174a64a..658aeda 100644
--- a/src/views/inventoryManagement/stockManagement/index.vue
+++ b/src/views/inventoryManagement/stockManagement/index.vue
@@ -163,7 +163,7 @@
boundTime: [{ required: true, message: '璇烽�夋嫨搴撳瓨鏃堕棿', trigger: 'change' }],
inboundTime: [{ required: true, message: '璇烽�夋嫨鍏ュ簱鏃堕棿', trigger: 'change' }],
inboundPerson: [{ required: true, message: '璇烽�夋嫨鍑哄簱浜�', trigger: 'change' }],
- warnNum: [{ required: true, message: '璇疯緭鍏ユ渶浣庡簱瀛�', trigger: 'blur' }],
+ warnNum: [{ required: true, message: '璇疯緭鍏ユ渶浣庡簱瀛�', trigger: 'blur' }],
}
})
const { searchForm, form, rules } = toRefs(data)
@@ -194,21 +194,21 @@
getStockManagePageByCustom(params).then(res => {
tableLoading.value = false
tableData.value = res.data.records
-
+
// 涓鸿〃鏍兼暟鎹嚜鍔ㄨ绠楁�讳环
tableData.value = tableData.value.map(item => {
// 璁$畻鍓╀綑搴撳瓨
const stockQuantity = parseFloat(item.inboundNum) || 0
const outboundQuantity = parseFloat(item.totalInboundNum) || 0
const remainingStock = Math.max(stockQuantity - outboundQuantity, 0)
-
+
// 鏉愭枡搴撳瓨锛氬惈绋庢�讳环 = 鍚◣鍗曚环 脳 鍓╀綑搴撳瓨
const taxInclusiveUnitPrice = parseFloat(item.taxInclusiveUnitPrice) || 0
item.taxInclusiveTotalPrice = (taxInclusiveUnitPrice * remainingStock).toFixed(2)
-
+
return item
})
-
+
total.value = res.data.total
// 鏁版嵁鍔犺浇瀹屾垚鍚庢鏌ュ簱瀛�
// checkStockAndCreatePurchase();
@@ -243,6 +243,7 @@
// 鎵撳紑寮规
const openForm = async (type, row) => {
+ console.log(row)
operationType.value = type
form.value = {}
productData.value = []
@@ -262,7 +263,7 @@
})
}
form.value.entryDate = getCurrentDate() // 璁剧疆榛樿褰曞叆鏃ユ湡涓哄綋鍓嶆棩鏈�
-
+
// 浠呮潗鏂欏簱瀛樺脊妗�
manualDialogVisible.value = true
}
@@ -270,17 +271,17 @@
// 鎻愪氦琛ㄥ崟
const submitForm = (submittedData) => {
console.log('瀛愮粍浠舵彁浜ょ殑鏁版嵁:', submittedData)
-
+
// 浣跨敤瀛愮粍浠舵彁浜ょ殑鏁版嵁锛岃�屼笉鏄埗缁勪欢鐨刦orm瀵硅薄
const submitData = { ...submittedData }
-
+
// 鏉愭枡搴撳瓨锛氱Щ闄ゅ惈绋庢�讳环瀛楁
delete submitData.taxInclusiveTotalPrice
// 绉婚櫎鍏朵粬鍙兘鐨勬�讳环瀛楁
delete submitData.taxExclusiveTotalPrice
-
+
console.log('鎻愪氦缁欏悗绔殑鏁版嵁锛堝凡绉婚櫎鎬讳环瀛楁锛�:', submitData)
-
+
// 鏉愭枡搴撳瓨浣跨敤 updateManagementByCustom 鎺ュ彛
updateManagementByCustom(submitData).then(res => {
proxy.$modal.msgSuccess("鎻愪氦鎴愬姛")
@@ -385,4 +386,4 @@
:deep(.row-low-stock:hover > td) {
background-color: #fcd4d4;
}
-</style>
\ No newline at end of file
+</style>
--
Gitblit v1.9.3