From 7ab50761e7b6649fc30930cfd604d663b2ea4e00 Mon Sep 17 00:00:00 2001
From: tuqin <tuqin@tuqin.cn>
Date: 星期三, 21 十月 2026 15:16:10 +0800
Subject: [PATCH] feat(芯导): 仓储库存管理/协同审批会议提醒/采购付款查询导出/营销回款流水导出/生产设备补字段
---
src/views/inventoryManagement/stockWarningLedger/index.vue | 21 ++++++++++++++++++++-
1 files changed, 20 insertions(+), 1 deletions(-)
diff --git a/src/views/inventoryManagement/stockWarningLedger/index.vue b/src/views/inventoryManagement/stockWarningLedger/index.vue
index d78ea30..35150d4 100644
--- a/src/views/inventoryManagement/stockWarningLedger/index.vue
+++ b/src/views/inventoryManagement/stockWarningLedger/index.vue
@@ -85,6 +85,14 @@
<span v-else>-</span>
</template>
</el-table-column>
+ <el-table-column label="寤鸿绫诲瀷" prop="suggestionType" width="110" show-overflow-tooltip />
+ <el-table-column label="寤鸿鍐呭" prop="suggestionContent" show-overflow-tooltip />
+ <el-table-column fixed="right" label="鎿嶄綔" width="210" align="center">
+ <template #default="scope">
+ <el-button link type="primary" size="small" @click="handleSuggestion(scope.row, '閲囪喘寤鸿')">閲囪喘寤鸿</el-button>
+ <el-button link type="warning" size="small" @click="handleSuggestion(scope.row, '婊為攢澶勭悊')">婊為攢鎻愮ず</el-button>
+ </template>
+ </el-table-column>
</el-table>
<pagination
v-show="total > 0"
@@ -104,7 +112,8 @@
import { ElMessage } from 'element-plus'
import pagination from '@/components/PIMTable/Pagination.vue'
import {
- getStockWarningLedgerPage
+ getStockWarningLedgerPage,
+ generateSuggestion
} from '@/api/inventoryManagement/stockWarningLedger.js'
// 鍝嶅簲寮忔暟鎹�
@@ -273,6 +282,16 @@
}
// 椤甸潰鍔犺浇
+// 鐢熸垚閲囪喘寤鸿 / 婊為攢澶勭悊鎻愮ず
+const handleSuggestion = (row, type) => {
+ generateSuggestion({ id: row.id, type }).then((res) => {
+ ElMessage({ message: res.msg || res.data || '宸茬敓鎴�', type: 'success', duration: 6000, showClose: true })
+ getList()
+ }).catch(() => {
+ ElMessage.error('鐢熸垚澶辫触')
+ })
+}
+
onMounted(() => {
getList()
})
--
Gitblit v1.9.3