From 7a0790d8224db45a039bf33d0ef4e24ae879a243 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期二, 30 六月 2026 10:38:05 +0800
Subject: [PATCH] 采购退货重构,添加新增、删除功能;供应商管理新增修改删除功能
---
src/pages/procurementManagement/procurementLedger/index.vue | 37 ++++++++++++++++++++++++++++---------
1 files changed, 28 insertions(+), 9 deletions(-)
diff --git a/src/pages/procurementManagement/procurementLedger/index.vue b/src/pages/procurementManagement/procurementLedger/index.vue
index 615a00d..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>
@@ -77,8 +81,8 @@
</view>
</view>
<!-- 浠呴潪鈥滃鎵归�氳繃鈥濈殑鍙拌处灞曠ず鍒犻櫎鎸夐挳 -->
- <!-- <view class="detail-row"
- v-if="item.approvalStatus !== 3"
+ <view class="detail-row"
+ v-if="item.approvalStatus !== 3 && item.stockInStatus !== '瀹屽叏鍏ュ簱'"
style="justify-content: flex-end; margin-top: 8px;">
<up-button type="error"
size="small"
@@ -86,7 +90,7 @@
@click.stop="handleDelete(item)">
鍒犻櫎
</up-button>
- </view> -->
+ </view>
</view>
</view>
</view>
@@ -96,12 +100,12 @@
<text>鏆傛棤閲囪喘鍙拌处鏁版嵁</text>
</view>
<!-- 娴姩鎿嶄綔鎸夐挳 -->
- <!-- <view class="fab-button"
+ <view class="fab-button"
@click="handleInfo('add')">
<up-icon name="plus"
size="24"
color="#ffffff"></up-icon>
- </view> -->
+ </view>
</view>
</template>
@@ -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