From 43f105070cf75a057d1d0ce4ff330c3b19a21ab0 Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期六, 12 七月 2025 13:45:52 +0800 Subject: [PATCH] 1.付款登记-优化:删除权限优化 --- src/views/procurementManagement/invoiceEntry/index.vue | 18 ++++++++++++------ 1 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/views/procurementManagement/invoiceEntry/index.vue b/src/views/procurementManagement/invoiceEntry/index.vue index 6df5636..e632b12 100644 --- a/src/views/procurementManagement/invoiceEntry/index.vue +++ b/src/views/procurementManagement/invoiceEntry/index.vue @@ -24,8 +24,8 @@ <el-button type="primary" @click="handleAdd('add')"> 鏂板鐧昏 </el-button> - <el-button @click="handleOut">瀵煎嚭</el-button> - <el-button type="danger" plain @click="handleDelete">鍒犻櫎</el-button> +<!-- <el-button @click="handleOut">瀵煎嚭</el-button>--> +<!-- <el-button type="danger" plain @click="handleDelete">鍒犻櫎</el-button>--> </div> </div> <PIMTable @@ -61,7 +61,7 @@ </template> </PIMTable> </div> - <Modal ref="modalRef"></Modal> + <Modal ref="modalRef" @refreshList="getTableData"></Modal> </div> </template> @@ -116,12 +116,12 @@ { label: "渚涘簲鍟嗗悕绉�", prop: "supplierName", - width:200 + width:300 }, { label: "椤圭洰鍚嶇О", prop: "projectName", - width:150 + width:400 }, { label: "褰曞叆浜�", @@ -203,7 +203,13 @@ const handleDelete = () => { let ids = []; if (selectedRows.value.length > 0) { - ids = selectedRows.value.map((item) => item.id); + // 鏂板鍒ゆ柇锛氬鏋滄湁閫変腑鐨勬暟鎹病鏈塼icketRegistrationId锛屾彁绀哄苟缁堟 + const noTicket = selectedRows.value.some(item => !item.ticketRegistrationId); + if (noTicket) { + proxy.$modal.msgWarning("閲囪喘鍙拌处杩樻湭杩涜鏉ョエ鐧昏,鏃犳硶杩涜鍒犻櫎鎿嶄綔"); + return; + } + ids = selectedRows.value.map((item) => item.ticketRegistrationId); } else { proxy.$modal.msgWarning("璇烽�夋嫨鏁版嵁"); return; -- Gitblit v1.9.3