From 5dc6be84f02788d98a67a7488e7fb2c8d4b08c04 Mon Sep 17 00:00:00 2001
From: wujianwei <wjw@11.com>
Date: 星期一, 12 一月 2026 15:04:43 +0800
Subject: [PATCH] 修改发票新增

---
 ui/admin-ui3/src/views/tms/tmsDriver/index.vue |   87 ++++++++++++++++++++++++-------------------
 1 files changed, 49 insertions(+), 38 deletions(-)

diff --git a/ui/admin-ui3/src/views/tms/tmsDriver/index.vue b/ui/admin-ui3/src/views/tms/tmsDriver/index.vue
index bdf0c03..d6dd05f 100644
--- a/ui/admin-ui3/src/views/tms/tmsDriver/index.vue
+++ b/ui/admin-ui3/src/views/tms/tmsDriver/index.vue
@@ -113,6 +113,17 @@
             }
           ],
         },
+        carrierType:{
+          label: '椹鹃┒鍛樼被鍨�',
+          display: true,
+          type: 'radio', dataType: 'string', dicUrl: '/system/dict/data/type/carrier_type',
+          rules: [
+            {
+              required: true,
+              message: "椹鹃┒鍛樼被鍨嬩笉鑳戒负绌�", trigger: "blur"
+            }
+          ],
+        },
         vehicleProviderId: {
           label: '杞﹁締鏈嶅姟鍟�',
           addDisplay: true,
@@ -122,10 +133,22 @@
           rules: [
             {
               required: true,
-              message: "杞﹁締鏈嶅姟鍟嗕笉鑳戒负绌�", trigger: "blur"
+              message: "杞﹁締鏈嶅姟鍟嗕笉鑳戒负绌�", trigger: "change"
             }
           ],
-          type: 'table', suffixIcon: 'search',
+          change: (val: any) => {
+            const table = crudRef.value?.getPropRef?.('vehicleProviderId')?.$refs?.temp;
+            if (!table) return;
+            let active = table.active;
+            if (Array.isArray(active)) active = active[0];
+            if (active) {
+              Object.assign(form.value, {
+                vehicleProviderId: active.id,
+                vehicleProviderName: active.serviceShortName,
+              });
+            }
+          },
+          type: 'table', suffixIcon: 'search',dataType: 'string',
           children: {
             border: true,
             searchLabelWidth: 100,
@@ -229,8 +252,8 @@
         },
         licenseType: {
           label: '鍑嗛┚杞﹀瀷',
-          type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/license_type',
-          addDisplay: true,
+          type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/before_license_type',
+          addDisplay: true,multiple:true,
           editDisplay: true,minWidth:150,
           viewDisplay: true,
           hide: false,
@@ -282,15 +305,7 @@
             }
           }
         },
-        licenseAttachment: {
-          label: '椹鹃┒璇佸嚟璇侀摼鎺�',
-          //type: 'textarea', minRows: 3, maxRows: 5,
-          addDisplay: true,minWidth:150,
-          editDisplay: true,
-          viewDisplay: true,
-          hide: false,
-          search: false,
-        },
+
         currentVehicleCode: {
           label: '褰撳墠缁戝畾杞﹁締',minWidth:150,
           addDisplay: true,
@@ -298,6 +313,21 @@
           viewDisplay: true,
           hide: false,
           search: true,
+        },
+        licenseAttachment: {
+          label: '椹鹃┒璇佸嚟璇�',
+          //type: 'textarea', minRows: 3, maxRows: 5,
+          addDisplay: true,minWidth:150,
+          editDisplay: true,
+          viewDisplay: true,
+          span: 24,
+          accept:'string',dataType: 'string',
+          type: 'upload',
+          action: '/common/upload2',
+          propsHttp:{
+            home:'url',
+            name:'newFileName',
+          },
         },
       }
     },
@@ -420,7 +450,7 @@
     licenseType: {
       label: '鍑嗛┚杞﹀瀷',
       type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/license_type',
-      display: false,minWidth:150,
+      display: false,minWidth:150,multiple:true,
       hide: false,
       search: false,
     },
@@ -444,11 +474,11 @@
 
       },
     },
-    licenseAttachment: {
-      label: '椹鹃┒璇佸嚟璇侀摼鎺�',display: false,minWidth:150,
-      hide: false,
-      search: false,
-    },
+    // licenseAttachment: {
+    //   label: '椹鹃┒璇佸嚟璇侀摼鎺�',display: false,minWidth:150,
+    //   hide: false,
+    //   search: false,
+    // },
     currentVehicleCode: {
       label: '褰撳墠缁戝畾杞﹁締',minWidth:150,
       display: false,
@@ -520,26 +550,7 @@
     }
   }
 })
-onMounted(() => {
-  watch(() => form.value.vehicleProviderId, () => {
 
-    if (!form.value.vehicleProviderId){
-      return;
-    }
-    const table = crudRef.value?.getPropRef?.('vehicleProviderId')?.$refs?.temp;
-    if (!table) return;
-
-    let active = table.active;
-    if (Array.isArray(active)) active = active[0];
-
-    if (active) {
-      Object.assign(form.value, {
-        vehicleProviderId: active.id,
-        vehicleProviderName: active.serviceShortName,
-      });
-    }
-  });
-});
 
 
 </script>

--
Gitblit v1.8.0