From 4e64eeb2a807adc9153fd9cd61b498b99c1f6f2c Mon Sep 17 00:00:00 2001 From: spring <2396852758@qq.com> Date: 星期二, 17 六月 2025 11:06:22 +0800 Subject: [PATCH] 完成库存管理前端页面 --- src/views/salesManagement/invoiceLedger/index.vue | 22 +++++++++++++++++++--- 1 files changed, 19 insertions(+), 3 deletions(-) diff --git a/src/views/salesManagement/invoiceLedger/index.vue b/src/views/salesManagement/invoiceLedger/index.vue index b298ef4..d5f5d76 100644 --- a/src/views/salesManagement/invoiceLedger/index.vue +++ b/src/views/salesManagement/invoiceLedger/index.vue @@ -52,9 +52,10 @@ <el-button v-else link type="primary" @click="handleDownload(scope.row)">涓婁紶</el-button> </template> </el-table-column> - <el-table-column fixed="right" label="鎿嶄綔" min-width="60" align="center"> + <el-table-column fixed="right" label="鎿嶄綔" width="150" align="center" > <template #default="scope"> <el-button link type="primary" size="small" @click="openForm(scope.row);">缂栬緫</el-button> + <el-button link type="primary" size="small" @click="delInvoiceLedger(scope.row);">鍒犻櫎</el-button> </template> </el-table-column> </el-table> @@ -194,7 +195,7 @@ invoiceLedgerSaveOrUpdate, invoiceLedgerProductInfo, commitFile, - registrationProductPage + registrationProductPage, delInvoiceLedgerByRegProductId } from "../../../api/salesManagement/invoiceLedger.js"; import useUserStore from "@/store/modules/user.js"; const { proxy } = getCurrentInstance() @@ -404,7 +405,22 @@ currentId.value = '' fileList.value = [] }) - +} +// 鍒犻櫎寮�绁ㄥ彴璐� +const delInvoiceLedger = (row) => { + ElMessageBox.confirm( + '璇ュ彂绁ㄥ彴璐﹀皢琚垹闄�,鏄惁纭鍒犻櫎', { + confirmButtonText: '纭', + cancelButtonText: '鍙栨秷', + type: 'warning', + } + ).then(() => { + delInvoiceLedgerByRegProductId(row.id).then(res => { + getList() + }) + }).catch(() => { + proxy.$modal.msg("宸插彇娑�") + }) } // 鑾峰彇褰撳墠鏃ユ湡骞舵牸寮忓寲涓� YYYY-MM-DD -- Gitblit v1.9.3