From b95f47dc46951561f36980ca4bae17a752eab8c4 Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期六, 12 七月 2025 13:38:44 +0800 Subject: [PATCH] 1.采购管理-优化:不是本条数据录入人不可修改数据。表格展示优化、来票操作后,不能再次编辑。未进行开票、来票操作的台账可以进行编辑 --- src/views/procurementManagement/procurementInvoiceLedger/index.vue | 2 +- src/views/procurementManagement/procurementLedger/index.vue | 11 +++++++++-- src/views/procurementManagement/invoiceEntry/index.vue | 4 ++-- src/hooks/usePaginationApi.jsx | 2 +- src/views/procurementManagement/invoiceEntry/components/Modal.vue | 2 ++ 5 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/hooks/usePaginationApi.jsx b/src/hooks/usePaginationApi.jsx index 749b078..f1e8967 100644 --- a/src/hooks/usePaginationApi.jsx +++ b/src/hooks/usePaginationApi.jsx @@ -28,7 +28,7 @@ /** 鍒嗛〉閰嶇疆 */ const pagination = reactive({ - pageSize: 10, + pageSize: 100, currentPage: 1, pageSizes: [10, 15, 20], total: 0, diff --git a/src/views/procurementManagement/invoiceEntry/components/Modal.vue b/src/views/procurementManagement/invoiceEntry/components/Modal.vue index ae6a79f..f4f3045 100644 --- a/src/views/procurementManagement/invoiceEntry/components/Modal.vue +++ b/src/views/procurementManagement/invoiceEntry/components/Modal.vue @@ -220,10 +220,12 @@ { label: "浜у搧澶х被", prop: "productCategory", + width: 120, }, { label: "瑙勬牸鍨嬪彿", prop: "specificationModel", + width: 120, }, { label: "鍗曚綅", diff --git a/src/views/procurementManagement/invoiceEntry/index.vue b/src/views/procurementManagement/invoiceEntry/index.vue index 0a22685..e632b12 100644 --- a/src/views/procurementManagement/invoiceEntry/index.vue +++ b/src/views/procurementManagement/invoiceEntry/index.vue @@ -116,12 +116,12 @@ { label: "渚涘簲鍟嗗悕绉�", prop: "supplierName", - width:200 + width:300 }, { label: "椤圭洰鍚嶇О", prop: "projectName", - width:150 + width:400 }, { label: "褰曞叆浜�", diff --git a/src/views/procurementManagement/procurementInvoiceLedger/index.vue b/src/views/procurementManagement/procurementInvoiceLedger/index.vue index 06fe153..007005f 100644 --- a/src/views/procurementManagement/procurementInvoiceLedger/index.vue +++ b/src/views/procurementManagement/procurementInvoiceLedger/index.vue @@ -152,7 +152,7 @@ { label: "瀹㈡埛鍚嶇О", prop: "customerName", - width: 150, + width: 240, }, { label: "渚涘簲鍟嗗悕绉�", diff --git a/src/views/procurementManagement/procurementLedger/index.vue b/src/views/procurementManagement/procurementLedger/index.vue index 1e27595..38c34f4 100644 --- a/src/views/procurementManagement/procurementLedger/index.vue +++ b/src/views/procurementManagement/procurementLedger/index.vue @@ -94,7 +94,7 @@ <el-table-column label="椤圭洰鍚嶇О" prop="projectName" - width="100" + width="420" show-overflow-tooltip /> <el-table-column @@ -134,6 +134,7 @@ type="primary" size="small" @click="openForm('edit', scope.row)" + :disabled="scope.row.receiptPaymentAmount>0 || scope.row.recorderName !== userStore.nickName" >缂栬緫</el-button > </template> @@ -288,7 +289,7 @@ <el-table-column label="瑙勬牸鍨嬪彿" prop="specificationModel" /> <el-table-column label="鍗曚綅" prop="unit" width="70" /> <el-table-column label="鏁伴噺" prop="quantity" width="70" /> - <el-table-column label="绋庣巼(%)" prop="taxRate" width="70" /> + <el-table-column label="绋庣巼(%)" prop="taxRate" width="80" /> <el-table-column label="鍚◣鍗曚环(鍏�)" prop="taxInclusiveUnitPrice" @@ -988,6 +989,12 @@ const handleDelete = () => { let ids = []; if (selectedRows.value.length > 0) { + // 妫�鏌ユ槸鍚︽湁浠栦汉缁存姢鐨勬暟鎹� + const unauthorizedData = selectedRows.value.filter(item => item.recorderName !== 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