From ee1da9fe5c5ae88d4f20b9a2b9602430017332d3 Mon Sep 17 00:00:00 2001 From: maven <2163098428@qq.com> Date: 星期一, 14 七月 2025 15:57:13 +0800 Subject: [PATCH] yys 修改bug --- src/views/inventoryManagement/stockManagement/index.vue | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/views/inventoryManagement/stockManagement/index.vue b/src/views/inventoryManagement/stockManagement/index.vue index 86f1a76..b4a29eb 100644 --- a/src/views/inventoryManagement/stockManagement/index.vue +++ b/src/views/inventoryManagement/stockManagement/index.vue @@ -21,9 +21,9 @@ <el-table-column align="center" label="搴忓彿" type="index" width="60" /> <el-table-column label="搴撳瓨鏃ユ湡" prop="createTime" width="100" show-overflow-tooltip /> <el-table-column label="鍏ュ簱鏃ユ湡" prop="createTime" width="100" show-overflow-tooltip /> - <el-table-column label="渚涘簲鍟嗗悕绉�" prop="supplierName" width="160" show-overflow-tooltip /> + <el-table-column label="渚涘簲鍟嗗悕绉�" prop="supplierName" width="240" show-overflow-tooltip /> <el-table-column label="浜у搧澶х被" prop="productCategory" width="100" show-overflow-tooltip /> - <el-table-column label="瑙勬牸鍨嬪彿" prop="specificationModel" width="100" show-overflow-tooltip /> + <el-table-column label="瑙勬牸鍨嬪彿" prop="specificationModel" width="200" show-overflow-tooltip /> <el-table-column label="鍗曚綅" prop="unit" width="80" show-overflow-tooltip /> <el-table-column label="搴撳瓨鏁伴噺" prop="inboundNum0" width="100" show-overflow-tooltip /> <el-table-column label="鍚◣鍗曚环" prop="taxInclusiveUnitPrice" width="100" show-overflow-tooltip /> @@ -33,7 +33,7 @@ <el-table-column label="鍏ュ簱浜�" prop="createBy" width="80" show-overflow-tooltip /> <el-table-column fixed="right" label="鎿嶄綔" min-width="60" align="center"> <template #default="scope"> - <el-button link type="primary" size="small" @click="openForm('edit', scope.row);">缂栬緫</el-button> + <el-button link type="primary" size="small" @click="openForm('edit', scope.row);" :disabled="scope.row.createUser !== userStore.id">缂栬緫</el-button> </template> </el-table-column> </el-table> @@ -232,7 +232,7 @@ // tableData.value.map(item => { // item.children = [] // }) - // total.value = res.total + total.value = res.data.total }).catch(() => { tableLoading.value = false }) @@ -339,6 +339,12 @@ const handleDelete = () => { let ids = [] if (selectedRows.value.length > 0) { + // 妫�鏌ユ槸鍚︽湁浠栦汉缁存姢鐨勬暟鎹� + const unauthorizedData = selectedRows.value.filter(item => item.createUser !== userStore.id); + if (unauthorizedData.length > 0) { + proxy.$modal.msgWarning("涓嶅彲鍒犻櫎浠栦汉缁存姢鐨勬暟鎹�"); + return; + } ids = selectedRows.value.map(item => item.id); } else { proxy.$modal.msgWarning('璇烽�夋嫨鏁版嵁') -- Gitblit v1.9.3