From 9274558ec37f5d46a182d6ed13d74717df2dfd1a Mon Sep 17 00:00:00 2001
From: wujianwei <wjw@11.com>
Date: 星期三, 14 一月 2026 11:10:14 +0800
Subject: [PATCH] 新增确认接口

---
 ui/admin-ui3/src/views/tms/tmsContainer/index.vue |  105 ++++++++++++++++++++++++++++------------------------
 1 files changed, 57 insertions(+), 48 deletions(-)

diff --git a/ui/admin-ui3/src/views/tms/tmsContainer/index.vue b/ui/admin-ui3/src/views/tms/tmsContainer/index.vue
index 5638dbc..c2888f6 100644
--- a/ui/admin-ui3/src/views/tms/tmsContainer/index.vue
+++ b/ui/admin-ui3/src/views/tms/tmsContainer/index.vue
@@ -65,6 +65,7 @@
 import {usePagePlus} from "@/hooks/usePagePlus";
 import {hasPermission} from "@/utils/permissionUtils";
 import {getTmsServiceProvider, listTmsServiceProvider} from "@/api/tms/tmsServiceProvider";
+import {getTmsSettlementEntity, listTmsSettlementEntity} from "@/api/tms/tmsSettlementEntity";
 
 const {proxy} = useCurrentInstance();
 const crudRef = ref();
@@ -110,6 +111,21 @@
             {
               required: true,
               message: "绯荤粺缂栧彿涓嶈兘涓虹┖", trigger: "blur"
+            }
+          ],
+        },
+        selfLeasType: {
+          label: '鑷绫诲瀷',
+          type: 'radio', dataType: 'string', dicUrl: '/system/dict/data/type/self_leas_type',
+          addDisplay: true,
+          editDisplay: true,minWidth:150,
+          viewDisplay: true,
+          hide: false,
+          search: true,
+          rules: [
+            {
+              required: true,
+              message: "鑷绫诲瀷涓嶈兘涓虹┖", trigger: "change"
             }
           ],
         },
@@ -162,56 +178,62 @@
           addDisplay: true,
           editDisplay: true,
           viewDisplay: true,
-          hide: false,minWidth:150,
+          hide: false,minWidth:150,dataType: 'string',
           search: true,
           rules: [
             {
               required: true,
-              message: "浜ф潈褰掑睘涓嶈兘涓虹┖", trigger: "blur"
+              message: "浜ф潈褰掑睘涓嶈兘涓虹┖", trigger: "change"
             }
           ],
           type: 'table', suffixIcon: 'search',
+          change: (val: any) => {
+            const table = crudRef.value?.getPropRef?.('ownerTeamId')?.$refs?.temp;
+            if (!table) return;
+            let active = table.active;
+            if (Array.isArray(active)) active = active[0];
+            if (active) {
+              Object.assign(form.value, {
+                ownerTeamId: active.id,
+                ownerTeamName: active.customerShortName,
+              });
+            }
+          },
           children: {
             border: true,
             searchLabelWidth: 100,
             searchMenuSpan: 5,
             column: {
-              serviceCode: {
-                label: '鏈嶅姟鍟嗙紪鐮�', minWidth: 130,
+              customerType: {
+                label: '瀹㈡埛绫诲瀷',
+                type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/customer_type',
+                display: false,
+                hide: false,minWidth:150,
                 search: true,
               },
-              serviceShortName: {
-                label: '鏈嶅姟鍟嗙畝绉�', minWidth: 120,
+              customerShortName: {
+                label: '瀹㈡埛绠�绉�',
+                display: false,
+                hide: false,minWidth:150,
                 search: true,
               },
-              serviceType: {
-                label: '鏈嶅姟绫诲瀷', multiple: true,
-                type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/service_type',
-                minWidth: 150,
-              },
-              isTransport: {
-                label: '鏄惁杩愯緭鏈嶅姟鍟�',
-                type: 'radio', dataType: 'string', dicUrl: '/system/dict/data/type/sys_number_is',
-                minWidth: 150,
-              },
-              isStorage: {
-                label: '鏄惁浠撳偍鏈嶅姟鍟�',
-                type: 'radio', dataType: 'string', dicUrl: '/system/dict/data/type/sys_number_is',
-                minWidth: 150,
-              },
-              isExpress: {
-                label: '鏄惁蹇�掓湇鍔″晢',
-                type: 'radio', dataType: 'string', dicUrl: '/system/dict/data/type/sys_number_is',
-                minWidth: 150,
+              customerCode: {
+                label: '瀹㈡埛缂栧彿',
+                display: false,
+                hide: false,minWidth:150,
+                search: true,
               },
               contactName: {
-                label: '鑱旂郴浜哄鍚�', minWidth: 120,
+                label: '鑱旂郴浜哄鍚�',
+                display: false,
+                hide: false,minWidth:150,
+                search: true,
               },
             },
 
           },
           props: {
-            label: 'serviceShortName',
+            label: 'customerShortName',
             value: 'id'
           },
           onLoad: ({page, value, data}: { page: any, value: any, data: any }, callback: any) => {
@@ -220,11 +242,11 @@
               if (Array.isArray(value)) {
                 id = value[0]
               }
-              getTmsServiceProvider(id).then(res => {
+              getTmsSettlementEntity(id).then(res => {
                 return callback(res.data || {})
               })
             } else {
-              listTmsServiceProvider({pageSize: page.pageSize, pageNum: page.currentPage, ...data}).then(res => {
+              listTmsSettlementEntity({pageSize: page.pageSize, pageNum: page.currentPage, ...data}).then(res => {
                 return callback({
                   total: res.total,
                   data: res.rows || [],
@@ -445,6 +467,12 @@
       hide: false,minWidth:150,
       search: true,
     },
+    selfLeasType: {
+      label: '鑷绫诲瀷',
+      type: 'radio', dataType: 'string', dicUrl: '/system/dict/data/type/self_leas_type',
+      hide: false,      display: false,
+      search: true,
+    },
     containerCode: {
       label: '闆嗚绠卞彿',
       display: false,
@@ -552,24 +580,5 @@
   }
 })
 
-onMounted(() => {
-  watch(() => form.value.ownerTeamId, () => {
 
-    if (!form.value.ownerTeamId){
-      return;
-    }
-    const table = crudRef.value?.getPropRef?.('ownerTeamId')?.$refs?.temp;
-    if (!table) return;
-
-    let active = table.active;
-    if (Array.isArray(active)) active = active[0];
-
-    if (active) {
-      Object.assign(form.value, {
-        ownerTeamId: active.id,
-        ownerTeamName: active.serviceShortName,
-      });
-    }
-  });
-});
 </script>

--
Gitblit v1.8.0