From 736a4b462e06a3335cb8235c0211bc8f5547bfd6 Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期六, 12 七月 2025 14:47:59 +0800 Subject: [PATCH] 1.来票台账删除功能联调 --- src/views/procurementManagement/paymentEntry/index.vue | 22 ++++++++++++++++------ 1 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/views/procurementManagement/paymentEntry/index.vue b/src/views/procurementManagement/paymentEntry/index.vue index 5113234..56b143c 100644 --- a/src/views/procurementManagement/paymentEntry/index.vue +++ b/src/views/procurementManagement/paymentEntry/index.vue @@ -30,9 +30,9 @@ <el-button type="primary" @click="openForm('add')"> 鏂板浠樻 </el-button> - <el-button type="danger" plain @click="handleDelete"> - 鍒犻櫎 - </el-button> +<!-- <el-button type="danger" plain @click="handleDelete">--> +<!-- 鍒犻櫎--> +<!-- </el-button>--> </el-form-item> </el-col> </el-row> @@ -72,7 +72,7 @@ @selection-change="handleSelectionChange" :tableLoading="tableLoading" @pagination="pagination" - :total="total" + :total="page.total" ></PIMTable> </div> <el-dialog @@ -269,6 +269,10 @@ return params ? parseFloat(params).toFixed(2) : 0; }, }, + { + label: "褰曞叆浜�", + prop: "issUer", + }, ]); const tableData = ref([]); const selectedRows = ref([]); @@ -278,8 +282,8 @@ const page = reactive({ current: 1, size: 100, + total: 0, }); -const total = ref(0); // 鐢ㄦ埛淇℃伅琛ㄥ崟寮规鏁版嵁 const operationType = ref(""); @@ -348,7 +352,7 @@ invoiceListPage({ ...searchForm, ...page }).then((res) => { tableLoading.value = false; tableData.value = res.records; - total.value = res.total; + page.total = res.total; }); }; // 琛ㄦ牸閫夋嫨鏁版嵁 @@ -441,6 +445,12 @@ const handleDelete = () => { let ids = []; if (selectedRows.value.length > 0) { + // 妫�鏌ユ槸鍚︽湁浠栦汉缁存姢鐨勬暟鎹� + const unauthorizedData = selectedRows.value.filter(item => item.issUer !== userStore.nickName); + if (unauthorizedData.length > 0) { + proxy.$modal.msgWarning("涓嶅彲鍒犻櫎浠栦汉缁存姢鐨勬暟鎹�"); + return; + } ids = selectedRows.value.map((item) => item.id); } else { proxy.$modal.msgWarning("璇烽�夋嫨鏁版嵁"); -- Gitblit v1.9.3