From db76255e483a8829c3c79e752fa0538c9b226289 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期一, 29 六月 2026 16:07:34 +0800
Subject: [PATCH] 完善采购台账功能,新增入库管控与模板导入能力
---
src/pages/procurementManagement/procurementLedger/index.vue | 29 ++++++++++++++++++++++++-----
1 files changed, 24 insertions(+), 5 deletions(-)
diff --git a/src/pages/procurementManagement/procurementLedger/index.vue b/src/pages/procurementManagement/procurementLedger/index.vue
index 4547182..028fb1c 100644
--- a/src/pages/procurementManagement/procurementLedger/index.vue
+++ b/src/pages/procurementManagement/procurementLedger/index.vue
@@ -45,10 +45,14 @@
</view>
<up-divider></up-divider>
<view class="item-details">
- <!-- <view class="detail-row">
- <text class="detail-label">閿�鍞悎鍚屽彿</text>
- <text class="detail-value">{{ item.salesContractNo }}</text>
- </view> -->
+ <view class="detail-row">
+ <text class="detail-label">鍏ュ簱鐘舵��</text>
+ <view class="detail-value">
+ <u-tag :type="getStockInStatusType(item.stockInStatus)">
+ {{ item.stockInStatus || '--' }}
+ </u-tag>
+ </view>
+ </view>
<view class="detail-row">
<text class="detail-label">渚涘簲鍟嗗悕绉�</text>
<text class="detail-value">{{ item.supplierName }}</text>
@@ -78,7 +82,7 @@
</view>
<!-- 浠呴潪鈥滃鎵归�氳繃鈥濈殑鍙拌处灞曠ず鍒犻櫎鎸夐挳 -->
<view class="detail-row"
- v-if="item.approvalStatus !== 3"
+ v-if="item.approvalStatus !== 3 && item.stockInStatus !== '瀹屽叏鍏ュ簱'"
style="justify-content: flex-end; margin-top: 8px;">
<up-button type="error"
size="small"
@@ -130,6 +134,14 @@
4: "error", // 瀹℃壒澶辫触 - 绾㈣壊
};
return typeMap[status] || "";
+ };
+ const getStockInStatusType = status => {
+ const typeMap = {
+ 寰呭叆搴�: "info",
+ 鍏ュ簱涓�: "warning",
+ 瀹屽叏鍏ュ簱: "success",
+ };
+ return typeMap[status] || "info";
};
// 鎼滅储鍏抽敭璇�
const purchaseContractNumber = ref("");
@@ -201,6 +213,13 @@
});
return;
}
+ if (row.stockInStatus === "瀹屽叏鍏ュ簱") {
+ uni.setStorageSync("editData", JSON.stringify(row));
+ uni.navigateTo({
+ url: "/pages/procurementManagement/procurementLedger/view",
+ });
+ return;
+ }
// 褰曞叆浜虹紪杈戯細瀛樺偍鏁版嵁骞惰烦杞埌缂栬緫椤甸潰
uni.setStorageSync("editData", JSON.stringify(row));
--
Gitblit v1.9.3