From 89fd2cf7202c321512c2ea699a3a220a7138ed44 Mon Sep 17 00:00:00 2001
From: wujianwei <wjw@11.com>
Date: 星期四, 09 四月 2026 10:40:52 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/cwxt_master' into cwxt_master

---
 ui/admin-ui3/src/views/tms/tmsCustomerInfo/index.vue |  451 +++++++++++++++++++++++++++++---------------------------
 1 files changed, 233 insertions(+), 218 deletions(-)

diff --git a/ui/admin-ui3/src/views/tms/tmsCustomerInfo/index.vue b/ui/admin-ui3/src/views/tms/tmsCustomerInfo/index.vue
index 9bce951..b44b312 100644
--- a/ui/admin-ui3/src/views/tms/tmsCustomerInfo/index.vue
+++ b/ui/admin-ui3/src/views/tms/tmsCustomerInfo/index.vue
@@ -21,7 +21,9 @@
         @on-load="onLoad"
     >
       <template #menu-left>
-        <el-button
+         <el-button type="primary" icon="Plus" v-hasPermi="['tms:tmsCustomerInfo:add']" @click="handleAdd">鏂板
+        </el-button>
+        <!-- <el-button
             type="success"
             icon="Edit"
             :disabled="pageF.single"
@@ -35,7 +37,7 @@
             @click="handleDelete"
             v-hasPermi="['tms:tmsCustomerInfo:remove']"
         >鍒犻櫎
-        </el-button>
+        </el-button> -->
         <el-button
             type="warning"
             plain
@@ -44,6 +46,12 @@
             v-hasPermi="['tms:tmsCustomerInfo:export']"
         >瀵煎嚭
         </el-button>
+      </template>
+         <template #menu="{ size, row, index }">
+        <el-link class="link-btn" type="primary" :underline="false" plain :size="size" icon="View"
+          @click="handleFy(row)" v-hasPermi="['tms:tmsCustomerInfo:edit']"> 鏌ョ湅
+        </el-link>
+
       </template>
     </avue-crud>
   </basicContainer>
@@ -66,7 +74,7 @@
 import {hasPermission} from "@/utils/permissionUtils";
 import {getTmsProject, listTmsProject} from "@/api/tms/tmsProject";
 import {getTmsSettlementEntity, listTmsSettlementEntity} from "@/api/tms/tmsSettlementEntity";
-
+import router from "@/router";
 const {proxy} = useCurrentInstance();
 const crudRef = ref();
 
@@ -94,17 +102,33 @@
   pageKey: 'TmsCustomerInfo',
   rowKey: 'id',
   labelWidth: 150,
+  addBtn: false,
+   viewBtn: false,
   searchLabelWidth: 150,
   group:[
     {
       label: '鍩烘湰淇℃伅',
       prop: 'jbxx',
       column:{
+        customerCode: {
+          label: '瀹㈡埛缂栧彿',
+          addDisplay: false, minWidth: 120,
+          editDisplay: true,disabled: true,
+          viewDisplay: true,
+          hide: false,
+          search: true,
+          rules: [
+            {
+              required: true,
+              message: "瀹㈡埛缂栧彿涓嶈兘涓虹┖", trigger: "blur"
+            }
+          ],
+        },
         customerType: {
           label: '瀹㈡埛绫诲瀷', minWidth: 120,
           type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/customer_type',
           addDisplay: true,
-          editDisplay: true,
+          editDisplay: true,value: '1',
           viewDisplay: true,
           hide: false,
           search: true,
@@ -126,20 +150,6 @@
             {
               required: true,
               message: "瀹㈡埛绠�绉颁笉鑳戒负绌�", trigger: "blur"
-            }
-          ],
-        },
-        customerCode: {
-          label: '瀹㈡埛缂栧彿',
-          addDisplay: true, minWidth: 120,
-          editDisplay: true,
-          viewDisplay: true,
-          hide: false,
-          search: true,
-          rules: [
-            {
-              required: true,
-              message: "瀹㈡埛缂栧彿涓嶈兘涓虹┖", trigger: "blur"
             }
           ],
         },
@@ -218,192 +228,192 @@
         },
       }
     },
-    {
-      label : '鍟嗗姟瀵规帴淇℃伅',
-      prop: 'swjdxx',
-      column:{
-        signCompanyId: {
-          label: '绛剧害鍏徃',
-          addDisplay: true, minWidth: 150,
-          editDisplay: true,
-          viewDisplay: true,
-          hide: false,
-          search: true,
-          rules: [
-            {
-              required: true,
-              message: "绛剧害鍏徃涓嶈兘涓虹┖", trigger: "change"
-            }
-          ],
-          type: 'table', suffixIcon: 'search',
-          children: {
-            border: true,
-            searchMenuSpan: 5,
-            column: {
-              customerType: {
-                label: '瀹㈡埛绫诲瀷',
-                type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/customer_type',
-                display: false,
-                hide: false,minWidth:150,
-                search: true,
-              },
-              customerShortName: {
-                label: '瀹㈡埛绠�绉�',
-                display: false,
-                hide: false,minWidth:150,
-                search: true,
-              },
-              customerCode: {
-                label: '瀹㈡埛缂栧彿',
-                display: false,
-                hide: false,minWidth:150,
-                search: true,
-              },
-              contactName: {
-                label: '鑱旂郴浜哄鍚�',
-                display: false,
-                hide: false,minWidth:150,
-                search: true,
-              },
-              businessContactName: {
-                label: '鍟嗗姟瀵规帴浜哄悕绉�',
-                display: false,
-                hide: false,minWidth:150,labelWidth:140,
-                search: true,
-                rules: [
-                  {
-                    required: true,
-                    message: "鍟嗗姟瀵规帴浜哄悕绉颁笉鑳戒负绌�", trigger: "blur"
-                  }
-                ],
-              },
-              creditRating: {
-                label: '瀹㈡埛淇$敤璇勭骇',
-                type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/sys_credit_rating',
-                display: false,
-                hide: false,minWidth:150,
-                search: true,
-              },
-              creditLimitAmount: {
-                label: '淇$敤棰濆害',
-                display: false,
-                hide: false,minWidth:150,
-                search: true,
-              },
-              creditLimitQuantity: {
-                label: '淇$敤棰濆害',
-                display: false,
-                hide: false,minWidth:150,
-                search: true,
-              },
-              operatingStatus: {
-                label: '缁忚惀鐘舵��',
-                type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/business_status',
-                display: false,
-                hide: false,minWidth:150,
-                search: true,
-              },
-              contractStatus: {
-                label: '鍚堝悓鐘舵��',
-                type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/contract_status',
-                display: false,
-                hide: false,minWidth:150,
-                search: true,
-              },
-              dataStatus: {
-                label: '鏁版嵁鐘舵��',
-                type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/data_status',
-                display: false,
-                hide: false,minWidth:150,
-                search: true,
-                rules: [
-                  {
-                    required: true,
-                    message: "鏁版嵁鐘舵�佷笉鑳戒负绌�", trigger: "change"
-                  }
-                ],
-              },
-            },
-
-          },
-          props: {
-            label: 'customerShortName',
-            value: 'id'
-          },
-          onLoad: ({page, value, data}: { page: any, value: any, data: any }, callback: any) => {
-            if (value) {
-              let id = value;
-              if (Array.isArray(value)) {
-                id = value[0]
-              }
-              getTmsSettlementEntity(id).then(res => {
-                return callback(res.data || {})
-              })
-            } else {
-              listTmsSettlementEntity({pageSize: page.pageSize, pageNum: page.currentPage, ...data}).then(res => {
-                return callback({
-                  total: res.total,
-                  data: res.rows || [],
-                })
-              })
-            }
-
-          },
-          change: (val: any) => {
-            const table = crudRef.value?.getPropRef?.('signCompanyId')?.$refs?.temp;
-            if (!table) return;
-            let active = table.active;
-            if (Array.isArray(active)) active = active[0];
-            if (active) {
-              Object.assign(form.value, {
-                signCompanyId: active.id,
-                signCompanyName: active.customerShortName,
-                bizContactEmail: active.businessContactEmail,
-                bizContactPhone: active.businessContactPhone,
-                bizContactName: active.businessContactName,
-              });
-            }
-          },
-        },
-        bizContactName: {
-          label: '鍟嗗姟瀵规帴浜哄悕绉�',
-          addDisplay: true,
-          editDisplay: true, minWidth: 120,
-          viewDisplay: true,
-          hide: false,
-          search: true,
-          rules: [
-            {
-              required: true,
-              message: "鍟嗗姟瀵规帴浜哄悕绉颁笉鑳戒负绌�", trigger: "blur"
-            }
-          ],
-
-        },
-        bizContactPhone: {
-          label: '鍟嗗姟瀵规帴浜虹數璇�',
-          addDisplay: true,
-          editDisplay: true,
-          viewDisplay: true,
-          hide: true,
-          search: false,
-          rules: [
-            {
-              required: true,
-              message: "鍟嗗姟瀵规帴浜虹數璇濅笉鑳戒负绌�", trigger: "blur"
-            }
-          ],
-        },
-        bizContactEmail: {
-          label: '鍟嗗姟瀵规帴浜洪偖绠�',
-          addDisplay: true,
-          editDisplay: true,
-          viewDisplay: true,
-          hide: true,
-          search: false,
-        },
-      }
-    },
+    // {
+    //   label : '鍟嗗姟瀵规帴淇℃伅',
+    //   prop: 'swjdxx',
+    //   column:{
+    //     signCompanyId: {
+    //       label: '绛剧害鍏徃',
+    //       addDisplay: true, minWidth: 150,
+    //       editDisplay: true,
+    //       viewDisplay: true,
+    //       hide: false,
+    //       search: true,
+    //       rules: [
+    //         {
+    //           required: true,
+    //           message: "绛剧害鍏徃涓嶈兘涓虹┖", trigger: "change"
+    //         }
+    //       ],
+    //       type: 'table', suffixIcon: 'search',
+    //       children: {
+    //         border: true,
+    //         searchMenuSpan: 5,
+    //         column: {
+    //           customerType: {
+    //             label: '瀹㈡埛绫诲瀷',
+    //             type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/customer_type',
+    //             display: false,
+    //             hide: false,minWidth:150,
+    //             search: true,
+    //           },
+    //           customerShortName: {
+    //             label: '瀹㈡埛绠�绉�',
+    //             display: false,
+    //             hide: false,minWidth:150,
+    //             search: true,
+    //           },
+    //           customerCode: {
+    //             label: '瀹㈡埛缂栧彿',
+    //             display: false,
+    //             hide: false,minWidth:150,
+    //             search: true,
+    //           },
+    //           contactName: {
+    //             label: '鑱旂郴浜哄鍚�',
+    //             display: false,
+    //             hide: false,minWidth:150,
+    //             search: true,
+    //           },
+    //           businessContactName: {
+    //             label: '鍟嗗姟瀵规帴浜哄悕绉�',
+    //             display: false,
+    //             hide: false,minWidth:150,labelWidth:140,
+    //             search: true,
+    //             rules: [
+    //               {
+    //                 required: true,
+    //                 message: "鍟嗗姟瀵规帴浜哄悕绉颁笉鑳戒负绌�", trigger: "blur"
+    //               }
+    //             ],
+    //           },
+    //           creditRating: {
+    //             label: '瀹㈡埛淇$敤璇勭骇',
+    //             type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/sys_credit_rating',
+    //             display: false,
+    //             hide: false,minWidth:150,
+    //             search: true,
+    //           },
+    //           creditLimitAmount: {
+    //             label: '淇$敤棰濆害',
+    //             display: false,
+    //             hide: false,minWidth:150,
+    //             search: true,
+    //           },
+    //           creditLimitQuantity: {
+    //             label: '淇$敤棰濆害',
+    //             display: false,
+    //             hide: false,minWidth:150,
+    //             search: true,
+    //           },
+    //           operatingStatus: {
+    //             label: '缁忚惀鐘舵��',
+    //             type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/business_status',
+    //             display: false,
+    //             hide: false,minWidth:150,
+    //             search: true,
+    //           },
+    //           contractStatus: {
+    //             label: '鍚堝悓鐘舵��',
+    //             type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/contract_status',
+    //             display: false,
+    //             hide: false,minWidth:150,
+    //             search: true,
+    //           },
+    //           dataStatus: {
+    //             label: '鏁版嵁鐘舵��',
+    //             type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/data_status',
+    //             display: false,
+    //             hide: false,minWidth:150,
+    //             search: true,
+    //             rules: [
+    //               {
+    //                 required: true,
+    //                 message: "鏁版嵁鐘舵�佷笉鑳戒负绌�", trigger: "change"
+    //               }
+    //             ],
+    //           },
+    //         },
+    //
+    //       },
+    //       props: {
+    //         label: 'customerShortName',
+    //         value: 'id'
+    //       },
+    //       onLoad: ({page, value, data}: { page: any, value: any, data: any }, callback: any) => {
+    //         if (value) {
+    //           let id = value;
+    //           if (Array.isArray(value)) {
+    //             id = value[0]
+    //           }
+    //           getTmsSettlementEntity(id).then(res => {
+    //             return callback(res.data || {})
+    //           })
+    //         } else {
+    //           listTmsSettlementEntity({pageSize: page.pageSize, pageNum: page.currentPage, ...data}).then(res => {
+    //             return callback({
+    //               total: res.total,
+    //               data: res.rows || [],
+    //             })
+    //           })
+    //         }
+    //
+    //       },
+    //       change: (val: any) => {
+    //         const table = crudRef.value?.getPropRef?.('signCompanyId')?.$refs?.temp;
+    //         if (!table) return;
+    //         let active = table.active;
+    //         if (Array.isArray(active)) active = active[0];
+    //         if (active) {
+    //           Object.assign(form.value, {
+    //             signCompanyId: active.id,
+    //             signCompanyName: active.customerShortName,
+    //             bizContactEmail: active.businessContactEmail,
+    //             bizContactPhone: active.businessContactPhone,
+    //             bizContactName: active.businessContactName,
+    //           });
+    //         }
+    //       },
+    //     },
+    //     bizContactName: {
+    //       label: '鍟嗗姟瀵规帴浜哄悕绉�',
+    //       addDisplay: true,
+    //       editDisplay: true, minWidth: 120,
+    //       viewDisplay: true,
+    //       hide: false,
+    //       search: true,
+    //       rules: [
+    //         {
+    //           required: true,
+    //           message: "鍟嗗姟瀵规帴浜哄悕绉颁笉鑳戒负绌�", trigger: "blur"
+    //         }
+    //       ],
+    //
+    //     },
+    //     bizContactPhone: {
+    //       label: '鍟嗗姟瀵规帴浜虹數璇�',
+    //       addDisplay: true,
+    //       editDisplay: true,
+    //       viewDisplay: true,
+    //       hide: true,
+    //       search: false,
+    //       rules: [
+    //         {
+    //           required: true,
+    //           message: "鍟嗗姟瀵规帴浜虹數璇濅笉鑳戒负绌�", trigger: "blur"
+    //         }
+    //       ],
+    //     },
+    //     bizContactEmail: {
+    //       label: '鍟嗗姟瀵规帴浜洪偖绠�',
+    //       addDisplay: true,
+    //       editDisplay: true,
+    //       viewDisplay: true,
+    //       hide: true,
+    //       search: false,
+    //     },
+    //   }
+    // },
     {
       label : '淇$敤淇℃伅',
       prop: 'xyxx',    addDisplay: false,
@@ -551,18 +561,18 @@
       hide: false,
       search: true,
     },
-    signCompanyName: {
-      label: '绛剧害鍏徃',minWidth: 150,
-      display:false,
-      hide: false,
-      search: true,
-    },
-    bizContactName: {
-      label: '鍟嗗姟瀵规帴浜哄悕绉�', minWidth: 120,
-      display:false,
-      hide: false,
-      search: true,
-    },
+    // signCompanyName: {
+    //   label: '绛剧害鍏徃',minWidth: 150,
+    //   display:false,
+    //   hide: false,
+    //   search: true,
+    // },
+    // bizContactName: {
+    //   label: '鍟嗗姟瀵规帴浜哄悕绉�', minWidth: 120,
+    //   display:false,
+    //   hide: false,
+    //   search: true,
+    // },
     creditRating: {
       label: '瀹㈡埛淇$敤璇勭骇', minWidth: 120,
       type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/sys_credit_rating',
@@ -610,7 +620,7 @@
       label: '鏇存柊鏃堕棿', minWidth: 180,
       display:false,
       hide: false,
-      search: true,
+      // search: true,
     },
   }
 })
@@ -652,5 +662,10 @@
   }
 })
 
-
+const handleAdd = () => {
+  router.push('/customer/tmsCustomerInfo-info?formDisabled='+false)
+}
+const handleFy = (row) => {
+  router.push('/customer/tmsCustomerInfo-info?id=' + row.id+'&formDisabled='+true)
+}
 </script>
\ No newline at end of file

--
Gitblit v1.8.0