From 792ddec0ad8c5fe780ad65d4d04a38ae67ac4cea Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期六, 12 七月 2025 16:04:18 +0800 Subject: [PATCH] 1.来票台账页面未做分页 --- src/views/basicData/customerFile/index.vue | 19 ++++++++++++++++++- 1 files changed, 18 insertions(+), 1 deletions(-) diff --git a/src/views/basicData/customerFile/index.vue b/src/views/basicData/customerFile/index.vue index 2294dd7..846d248 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 + } }, ], }, @@ -473,6 +482,8 @@ }; // 鎻愪氦淇敼 const submitEdit = () => { + form.value.contactPerson = formYYs.value.contactList.map(item => item.contactPerson).join(","); + form.value.contactPhone = formYYs.value.contactList.map(item => item.contactPhone).join(","); updateCustomer(form.value).then((res) => { proxy.$modal.msgSuccess("鎻愪氦鎴愬姛"); closeDia(); @@ -502,6 +513,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