From a5222bcc6e79b89459175d3a10a1e24cea5d96f6 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 19 一月 2026 15:24:35 +0800
Subject: [PATCH] 湟水峡 1.下拉框加筛选 2.销售模块不要客户合同号、项目名称 3.客户档案、供应商档案不要和银行有关的字段

---
 src/views/basicData/customerFile/index.vue |  191 +++++++++--------------------------------------
 1 files changed, 39 insertions(+), 152 deletions(-)

diff --git a/src/views/basicData/customerFile/index.vue b/src/views/basicData/customerFile/index.vue
index 94168c4..be0c4ba 100644
--- a/src/views/basicData/customerFile/index.vue
+++ b/src/views/basicData/customerFile/index.vue
@@ -60,20 +60,6 @@
             </el-form-item>
           </el-col>
           <el-col :span="12">
-            <el-form-item
-              label="绾崇◣浜鸿瘑鍒彿锛�"
-              prop="taxpayerIdentificationNumber"
-            >
-              <el-input
-                v-model="form.taxpayerIdentificationNumber"
-                placeholder="璇疯緭鍏�"
-                clearable
-              />
-            </el-form-item>
-          </el-col>
-        </el-row>
-        <el-row :gutter="30">
-          <el-col :span="12">
             <el-form-item label="鍏徃鍦板潃锛�" prop="companyAddress">
               <el-input
                 v-model="form.companyAddress"
@@ -82,69 +68,31 @@
               />
             </el-form-item>
           </el-col>
-          <el-col :span="12">
-            <el-form-item label="鍏徃鐢佃瘽锛�" prop="companyPhone">
-              <el-input
-                v-model="form.companyPhone"
-                placeholder="璇疯緭鍏�"
-                clearable
-              />
-            </el-form-item>
-          </el-col>
         </el-row>
         <el-row :gutter="30">
           <el-col :span="12">
-            <el-form-item label="閾惰鍩烘湰鎴凤細" prop="basicBankAccount">
-              <el-input
-                v-model="form.basicBankAccount"
-                placeholder="璇疯緭鍏�"
+            <el-form-item label="瀹㈡埛绫诲瀷锛�" prop="type">
+              <el-select
+                v-model="form.type"
+                placeholder="璇烽�夋嫨"
                 clearable
-              />
-            </el-form-item>
-          </el-col>
-          <el-col :span="12">
-            <el-form-item label="閾惰璐﹀彿锛�" prop="bankAccount">
-              <el-input
-                v-model="form.bankAccount"
-                placeholder="璇疯緭鍏�"
-                clearable
-              />
+                style="width: 100%"
+              >
+                <el-option
+                  v-for="item in customerTypeOptions"
+                  :key="item.value"
+                  :label="item.label"
+                  :value="item.value"
+                />
+              </el-select>
             </el-form-item>
           </el-col>
         </el-row>
-        <el-row :gutter="30">
-          <el-col :span="12">
-            <el-form-item label="寮�鎴疯鍙凤細" prop="bankCode">
-              <el-input
-                v-model="form.bankCode"
-                placeholder="璇疯緭鍏�"
-                clearable
-              />
-            </el-form-item>
-          </el-col>
-        </el-row>
-				<el-row :gutter="30" v-for="(contact, index) in formYYs.contactList" :key="index">
-					<el-col :span="12">
-						<el-form-item label="鑱旂郴浜猴細" prop="contactPerson">
-							<el-input v-model="contact.contactPerson" placeholder="璇疯緭鍏�" clearable  />
-						</el-form-item>
-					</el-col>
-					<el-col :span="12">
-						<el-form-item label="鑱旂郴鐢佃瘽锛�" prop="contactPhone">
-							<div style="display: flex; align-items: center;width: 100%;">
-								<el-input v-model="contact.contactPhone" placeholder="璇疯緭鍏�" clearable />
-								<el-button   @click="removeContact(index)" type="danger" circle style="margin-left: 5px;">
-									<el-icon><Close /></el-icon>
-								</el-button>
-							</div>
-						</el-form-item>
-					</el-col>
-				</el-row>
-				<el-button @click="addNewContact" style="margin-bottom: 10px;">+ 鏂板鑱旂郴浜�</el-button>
         <el-row :gutter="30">
           <el-col :span="12">
             <el-form-item label="缁存姢浜猴細" prop="maintainer">
               <el-select
+								filterable
                 v-model="form.maintainer"
                 placeholder="璇烽�夋嫨"
                 clearable
@@ -249,41 +197,26 @@
   {
     label: "瀹㈡埛鍚嶇О",
     prop: "customerName",
-    width: 220,
   },
   {
-    label: "绾崇◣浜鸿瘑鍒爜",
-    prop: "taxpayerIdentificationNumber",
-    width: 220,
+    label: "瀹㈡埛绫诲瀷",
+    prop: "type",
+    dataType: "tag",
+    formatData: (val) => val || "--",
+    formatType: (val) => {
+      const map = {
+        浼佷笟: "primary",
+        涓汉: "success",
+        鏀垮簻: "warning",
+        浜嬩笟鍗曚綅: "info",
+        鍏朵粬: "default",
+      };
+      return map[val] || "info";
+    },
   },
   {
     label: "鍦板潃鍙婅仈绯绘柟寮�",
     prop: "addressPhone",
-    width: 250,
-  },
-  {
-    label: "鑱旂郴浜�",
-    prop: "contactPerson",
-  },
-  {
-    label: "鑱旂郴鐢佃瘽",
-    prop: "contactPhone",
-    width:150
-  },
-  {
-    label: "閾惰鍩烘湰鎴�",
-    prop: "basicBankAccount",
-    width: 220,
-  },
-  {
-    label: "閾惰璐﹀彿",
-    prop: "bankAccount",
-    width: 220,
-  },
-  {
-    label: "寮�鎴疯鍙�",
-    prop: "bankCode",
-    width:220
   },
   {
     label: "缁存姢浜�",
@@ -292,7 +225,7 @@
   {
     label: "缁存姢鏃堕棿",
     prop: "maintenanceTime",
-    width: 100,
+    width: 200,
   },
   {
     dataType: "action",
@@ -317,6 +250,14 @@
 const selectedRows = ref([]);
 const userList = ref([]);
 const tableLoading = ref(false);
+// 瀹㈡埛绫诲瀷閫夐」
+const customerTypeOptions = ref([
+  { label: "浼佷笟", value: "浼佷笟" },
+  { label: "涓汉", value: "涓汉" },
+  { label: "鏀垮簻", value: "鏀垮簻" },
+  { label: "浜嬩笟鍗曚綅", value: "浜嬩笟鍗曚綅" },
+  { label: "鍏朵粬", value: "鍏朵粬" },
+]);
 const page = reactive({
   current: 1,
   size: 100,
@@ -327,47 +268,25 @@
 // 鐢ㄦ埛淇℃伅琛ㄥ崟寮规鏁版嵁
 const operationType = ref("");
 const dialogFormVisible = ref(false);
-const formYYs = ref({    // 鍏朵粬瀛楁...
-  contactList: [
-    {
-      contactPerson: "",
-      contactPhone: ""
-    }
-  ]
-});
 const data = reactive({
   searchForm: {
     customerName: "",
   },
   form: {
     customerName: "",
-    taxpayerIdentificationNumber: "",
+    type: "",
     companyAddress: "",
-    companyPhone: "",
-    contactPerson: "",
-    contactPhone: "",
     maintainer: "",
     maintenanceTime: "",
-    basicBankAccount: "",
-    bankAccount: "",
-    bankCode: "",
   },
   rules: {
     customerName: [{ required: true, message: "璇疯緭鍏�", trigger: "blur" }],
-    taxpayerIdentificationNumber: [
-      { required: true, message: "璇疯緭鍏�", trigger: "blur" },
-    ],
+    type: [{ required: false, message: "璇疯緭鍏�", trigger: "blur" }],
     companyAddress: [{ required: true, message: "璇疯緭鍏�", trigger: "blur" }],
-    companyPhone: [{ required: true, message: "璇疯緭鍏�", trigger: "blur" }],
-    // contactPerson: [{ required: true, message: "璇疯緭鍏�", trigger: "blur" }],
-    // contactPhone: [{ required: true, message: "璇疯緭鍏�", trigger: "blur" }],
     maintainer: [{ required: false, message: "璇烽�夋嫨", trigger: "change" }],
     maintenanceTime: [
       { required: false, message: "璇烽�夋嫨", trigger: "change" },
     ],
-    basicBankAccount: [{ required: true, message: "璇疯緭鍏�", trigger: "blur" }],
-    bankAccount: [{ required: true, message: "璇疯緭鍏�", trigger: "blur" }],
-    bankCode: [{ required: true, message: "璇疯緭鍏�", trigger: "blur" }],
   },
 });
 const upload = reactive({
@@ -422,18 +341,6 @@
   }
 });
 const { searchForm, form, rules } = toRefs(data);
-const addNewContact = () => {
-  formYYs.value.contactList.push({
-    contactPerson: "",
-    contactPhone: ""
-  });
-};
-
-const removeContact = (index) => {
-  if (formYYs.value.contactList.length > 1) {
-    formYYs.value.contactList.splice(index, 1);
-  }
-};
 // 鏌ヨ鍒楄〃
 /** 鎼滅储鎸夐挳鎿嶄綔 */
 const handleQuery = () => {
@@ -476,12 +383,6 @@
   operationType.value = type;
   form.value = {};
   form.value.maintainer = userStore.nickName;
-  formYYs.value.contactList = [
-    {
-      contactPerson: "",
-      contactPhone: ""
-    }
-  ];
   form.value.maintenanceTime = getCurrentDate();
   userListNoPage().then((res) => {
     userList.value = res.data;
@@ -489,13 +390,6 @@
   if (type === "edit") {
     getCustomer(row.id).then((res) => {
       form.value = { ...res.data };
-      formYYs.value.contactList = res.data.contactPerson.split(",").map((item, index) => {
-        return {
-          contactPerson: item,
-          contactPhone: res.data.contactPhone.split(",")[index]
-        }
-      });
-
     });
   }
   dialogFormVisible.value = true;
@@ -514,11 +408,6 @@
 };
 // 鎻愪氦鏂板
 const submitAdd = () => {
-  if(formYYs.value.contactList.length < 1){
-    return proxy.$modal.msgWarning("璇疯嚦灏戞坊鍔犱竴涓仈绯讳汉");
-  }
-  form.value.contactPerson = formYYs.value.contactList.map(item => item.contactPerson).join(",");
-  form.value.contactPhone = formYYs.value.contactList.map(item => item.contactPhone).join(",");
   addCustomer(form.value).then((res) => {
     proxy.$modal.msgSuccess("鎻愪氦鎴愬姛");
     closeDia();
@@ -527,8 +416,6 @@
 };
 // 鎻愪氦淇敼
 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();

--
Gitblit v1.9.3