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/tmsShelf/index.vue | 110 ++++++++++++++++++++++++++++++-------------------------
1 files changed, 60 insertions(+), 50 deletions(-)
diff --git a/ui/admin-ui3/src/views/tms/tmsShelf/index.vue b/ui/admin-ui3/src/views/tms/tmsShelf/index.vue
index ec41285..a58c9fa 100644
--- a/ui/admin-ui3/src/views/tms/tmsShelf/index.vue
+++ b/ui/admin-ui3/src/views/tms/tmsShelf/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();
@@ -113,6 +114,21 @@
}
],
},
+ 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"
+ }
+ ],
+ },
shelfCode: {
label: '鎵樻灦缂栧彿',
addDisplay: true,
@@ -152,51 +168,57 @@
rules: [
{
required: true,
- message: "浜ф潈褰掑睘涓嶈兘涓虹┖", trigger: "blur"
+ message: "浜ф潈褰掑睘涓嶈兘涓虹┖", trigger: "change"
}
],
- type: 'table', suffixIcon: 'search',
+ type: 'table', suffixIcon: 'search',dataType: 'string',
+ 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) => {
@@ -205,11 +227,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 || [],
@@ -284,7 +306,7 @@
type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/container_type',
addDisplay: true,
editDisplay: true,
- viewDisplay: true,
+ viewDisplay: true,multiple: true,
hide: false,minWidth:150,
search: true,
rules: [
@@ -438,6 +460,12 @@
hide: false,
search: true,
},
+ selfLeasType: {
+ label: '鑷惀绉熻祦绫诲瀷',display: false,
+ type: 'radio', dataType: 'string', dicUrl: '/system/dict/data/type/self_leas_type',
+ hide: false,minWidth:150,
+ search: true,
+ },
shelfType: {
label: '鎵樻灦绫诲瀷',
type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/shelf_type',
@@ -465,10 +493,11 @@
compatibleContainerType: {
label: '閫傞厤闆嗚绠辩被鍨�',
type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/container_type',
- display: false,
+ display: false,multiple: true, searchMultiple: false,
hide: false,minWidth:150,
search: true,
},
+
isInUse: {
label: '鏄惁鍦ㄧ敤',dataType: 'string',
type: 'radio', dicUrl: '/system/dict/data/type/sys_number_is',
@@ -542,25 +571,6 @@
selectionList.value = selection;
}
})
-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