From 3974fad5d836431e417e99220cc07bb5b0aba331 Mon Sep 17 00:00:00 2001
From: zhangback <zhangback@163.com>
Date: 星期一, 08 十二月 2025 14:16:16 +0800
Subject: [PATCH] 提交
---
ui/admin-ui3/src/views/tms/tmsDispatchOrder/index.vue | 53 +++++++++++++++++++++++++++++++++++++++++------------
1 files changed, 41 insertions(+), 12 deletions(-)
diff --git a/ui/admin-ui3/src/views/tms/tmsDispatchOrder/index.vue b/ui/admin-ui3/src/views/tms/tmsDispatchOrder/index.vue
index 772b189..afdb80f 100644
--- a/ui/admin-ui3/src/views/tms/tmsDispatchOrder/index.vue
+++ b/ui/admin-ui3/src/views/tms/tmsDispatchOrder/index.vue
@@ -126,26 +126,26 @@
</el-link>
</template>
- <template #shipperId-form>
+ <template #shipperId-form="{disabled}">
<div style="display:flex; align-items: center;justify-content: space-between">
<avue-input-table :props="consignorProps"
- :children="consignorOption"
+ :children="consignorOption" :disabled="disabled"
:on-load="onShipperLoad" suffixIcon="search"
v-model="form.shipperId" style="width: 80%"
@change="changeShipper"
placeholder="璇烽�夋嫨瑁呰揣鐐�"></avue-input-table>
- <el-button icon="plus" @click="handleAddShipper"></el-button>
+ <el-button icon="plus" :disabled="disabled" @click="handleAddShipper"></el-button>
</div>
</template>
- <template #receiverId-form>
+ <template #receiverId-form="{disabled}">
<div style="display:flex; align-items: center;justify-content: space-between">
<avue-input-table :props="consignorProps"
:children="consignorOption"
:on-load="onConsignorLoad" suffixIcon="search"
- v-model="form.receiverId"
+ v-model="form.receiverId" :disabled="disabled"
@change="changeReceiver" style="width: 80%"
placeholder="璇烽�夋嫨鍗歌揣鐐�"></avue-input-table>
- <el-button icon="plus" @click="handleAddReceiver"></el-button>
+ <el-button icon="plus" :disabled="disabled" @click="handleAddReceiver"></el-button>
</div>
</template>
@@ -412,11 +412,13 @@
],
type: 'table', suffixIcon: 'search',dataType: 'string',
change: (val: any) => {
+ console.log(val)
const table = crudRef.value?.getPropRef?.('quoteDetailId')?.$refs?.temp;
if (!table) return;
let active = table.active;
if (Array.isArray(active)) active = active[0];
if (active) {
+ console.log(active)
Object.assign(form.value, {
quoteDetailId: active.quoteDetailId,
transportLine: active.transportRoute,
@@ -717,7 +719,7 @@
],
},
isUrgent: {
- label: '鏄惁绱ф��',
+ label: '鏄惁绱ф��',value: '1',
display: true,
type: 'radio', dicUrl: '/system/dict/data/type/sys_number_is', dataType: 'string',
rules: [
@@ -784,12 +786,17 @@
option.value.group.forEach((item: any) => {
if (item.prop == 'pcxx') {
item.column.commissionModel.display = value != 1;
+ item.column.containerId.display = value != 1;
+ item.column.shelfId.display = value != 1;
item.column.vehicleProviderId.display = value == 1;
+ item.column.containerNo.display = value == 1;
+ item.column.shelfCode.display = value == 1;
// item.column.vehicleProviderId.rules.forEach((cItem: any) => {
// cItem.required = value == 1;
// });
}
})
+
},
},
commissionModel:{
@@ -947,7 +954,7 @@
listTmsDriver({
pageSize: page.pageSize,
pageNum: page.currentPage, ...data,
- carrierType: form.value.operationMode
+ carrierType: form.value.operationMode,vehicleProviderId:form.value.vehicleProviderId
}).then(res => {
return callback({
total: res.total,
@@ -1012,7 +1019,7 @@
} else {
listTmsDriver({
pageSize: page.pageSize,
- pageNum: page.currentPage, ...data,
+ pageNum: page.currentPage, ...data,vehicleProviderId:form.value.vehicleProviderId,
carrierType: form.value.operationMode
}).then(res => {
return callback({
@@ -1043,6 +1050,7 @@
Object.assign(form.value, {
vehicleId: active.id,
licensePlate: active.licensePlate,
+ actualVehicleType: active.vehicleType,
});
}
},
@@ -1058,6 +1066,8 @@
},
vehicleType: {
label: '杞﹁締绫诲瀷', minWidth: 120,
+ type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/vehicle_type',
+
search: true,
},
internalCode: {
@@ -1096,7 +1106,7 @@
listTmsVehicle({
pageSize: page.pageSize,
pageNum: page.currentPage, ...data,
- carrierType: form.value.operationMode
+ carrierType: form.value.operationMode,serviceProviderId:form.value.vehicleProviderId
}).then(res => {
return callback({
total: res.total,
@@ -1159,6 +1169,10 @@
label: '鍗歌揣鐐硅仈绯绘柟寮�',
display: true, disabled: true
},
+ containerNo: {
+ label: '闆嗚绠卞彿',
+ display: false,
+ },
containerId: {
label: '鍏宠仈闆嗚绠变俊鎭�',
display: true,
@@ -1187,6 +1201,11 @@
containerUseType: {
label: '闆嗚绠辩敤閫旂被鍨�', minWidth: 120,
type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/container_use_type',
+ search: true,
+ },
+ selfLeasType: {
+ label: '鑷绫诲瀷', minWidth: 120,
+ type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/self_leas_type',
search: true,
},
containerSize: {
@@ -1224,6 +1243,10 @@
}
},
+ shelfCode: {
+ label: '鎵樻澘鍙�',
+ display: false,
+ },
shelfId: {
label: '鎵樻澘鍙�',
display: true,
@@ -1250,7 +1273,13 @@
search: true,
},
shelfType: {
+ label: '鎵樻灦绫诲瀷', minWidth: 120,
type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/shelf_type',
+ search: true,
+ },
+ selfLeasType: {
+ label: '鑷绫诲瀷', minWidth: 120,
+ type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/self_leas_type',
search: true,
},
compatibleContainerType: {
@@ -2657,7 +2686,7 @@
pageF.isUploading = false;
})
}else if (optionType.value === 'customs') {
- customsOrder(form.value.id).then(res => {
+ customsOrder({id:form.value.id}).then(res => {
ElMessage({
message: "鎻愪氦鎴愬姛锛�",
type: 'success'
@@ -2668,7 +2697,7 @@
pageF.isUploading = false;
})
}else if (optionType.value === 'loading') {
- loadingOrder(form.value.id).then(res => {
+ loadingOrder({id:form.value.id}).then(res => {
ElMessage({
message: "鎻愪氦鎴愬姛锛�",
type: 'success'
--
Gitblit v1.8.0