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/basicData/customerFile/index.vue | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/src/views/basicData/customerFile/index.vue b/src/views/basicData/customerFile/index.vue
index f0c1186..284300d 100644
--- a/src/views/basicData/customerFile/index.vue
+++ b/src/views/basicData/customerFile/index.vue
@@ -258,7 +258,7 @@
{
label: "鍦板潃鍙婅仈绯绘柟寮�",
prop: "addressPhone",
- width: 220,
+ width: 250,
},
{
label: "鑱旂郴浜�",
@@ -267,18 +267,22 @@
{
label: "鑱旂郴鐢佃瘽",
prop: "contactPhone",
+ width:150
},
{
label: "閾惰鍩烘湰鎴�",
prop: "basicBankAccount",
+ width: 220,
},
{
label: "閾惰璐﹀彿",
prop: "bankAccount",
+ width: 220,
},
{
label: "寮�鎴疯鍙�",
prop: "bankCode",
+ width:220
},
{
label: "缁存姢浜�",
@@ -287,11 +291,13 @@
{
label: "缁存姢鏃堕棿",
prop: "maintenanceTime",
+ width: 100,
},
{
dataType: "action",
label: "鎿嶄綔",
align: "center",
+ fixed: 'right',
operation: [
{
name: "缂栬緫",
@@ -299,6 +305,9 @@
clickFun: (row) => {
openForm("edit", row);
},
+ disabled: (row) => {
+ return row.maintainer !== userStore.nickName
+ }
},
],
},
@@ -309,7 +318,7 @@
const tableLoading = ref(false);
const page = reactive({
current: 1,
- size: 10,
+ size: 100,
total: 0,
});
const total = ref(0);
@@ -502,6 +511,12 @@
const handleDelete = () => {
let ids = [];
if (selectedRows.value.length > 0) {
+ // 妫�鏌ユ槸鍚︽湁浠栦汉缁存姢鐨勬暟鎹�
+ const unauthorizedData = selectedRows.value.filter(item => item.maintainer !== 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