From 6cd4984f83e7c9fabac3daa23cc9946d9d68314b Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 15 七月 2025 17:10:00 +0800
Subject: [PATCH] 1.采购管理-分页bug
---
src/views/basicData/customerFile/index.vue | 35 ++++++++++++++++++++++++++---------
1 files changed, 26 insertions(+), 9 deletions(-)
diff --git a/src/views/basicData/customerFile/index.vue b/src/views/basicData/customerFile/index.vue
index f0c1186..7abc80a 100644
--- a/src/views/basicData/customerFile/index.vue
+++ b/src/views/basicData/customerFile/index.vue
@@ -207,13 +207,13 @@
<template #tip>
<div class="el-upload__tip text-center">
<span>浠呭厑璁稿鍏ls銆亁lsx鏍煎紡鏂囦欢銆�</span>
- <el-link
- type="primary"
- :underline="false"
- style="font-size: 12px; vertical-align: baseline"
- @click="importTemplate"
- >涓嬭浇妯℃澘</el-link
- >
+<!-- <el-link-->
+<!-- type="primary"-->
+<!-- :underline="false"-->
+<!-- style="font-size: 12px; vertical-align: baseline"-->
+<!-- @click="importTemplate"-->
+<!-- >涓嬭浇妯℃澘</el-link-->
+<!-- >-->
</div>
</template>
</el-upload>
@@ -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);
@@ -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