From 37cdce5348ba4f3ee260cd8d433435cf0e795366 Mon Sep 17 00:00:00 2001
From: wujianwei <wjw@11.com>
Date: 星期一, 19 一月 2026 16:33:17 +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