diff --git a/src/views/ContainerManagement/BuyCtn/TenantAuditStepModal.vue b/src/views/ContainerManagement/BuyCtn/TenantAuditStepModal.vue index 7122ccd1..140da32c 100644 --- a/src/views/ContainerManagement/BuyCtn/TenantAuditStepModal.vue +++ b/src/views/ContainerManagement/BuyCtn/TenantAuditStepModal.vue @@ -2,7 +2,7 @@ { - // notification.success({ message: res.message, duration: 3 }) - // }) - // } - // function Confirm() { - // let type: boolean = true - // let ApiData: any = { - // id: rowId.value, - // ids: [], - // } - // list.value.forEach((e: any, i) => { - // if (e.selected) { - // if (e.id) { - // ApiData.ids.push(e.id) - // } else { - // type = false - // } - // } - // }) - // if (type) { - // ApiConfirm(ApiData).then((res) => { - // notification.success({ message: res.message, duration: 3 }) - // }) - // } else { - // notification.success({ message: '请先保存明细表', duration: 3 }) - // } - // } - // function Cancel() { - // let type: boolean = true - // let ApiData: any = { - // id: rowId.value, - // ids: [], - // } - // list.value.forEach((e: any, i) => { - // if (e.selected) { - // if (e.id) { - // ApiData.ids.push(e.id) - // } else { - // type = false - // } - // } - // }) - // if (type) { - // ApiCancel(ApiData).then((res) => { - // notification.success({ message: res.message, duration: 3 }) - // }) - // } else { - // notification.success({ message: '请先保存明细表', duration: 3 }) - // } - // } + function MakeFee() { + ApiMakeFee({ id: rowId.value }).then((res) => { + notification.success({ message: res.message, duration: 3 }) + }) + } + function Confirm() { + let type: boolean = true + let ApiData: any = { + id: rowId.value, + ids: [], + } + list.value.forEach((e: any, i) => { + if (e.selected) { + if (e.id) { + ApiData.ids.push(e.id) + } else { + type = false + } + } + }) + if (type) { + ApiConfirm(ApiData).then((res) => { + notification.success({ message: res.message, duration: 3 }) + }) + } else { + notification.success({ message: '请先保存明细表', duration: 3 }) + } + } + function Cancel() { + let type: boolean = true + let ApiData: any = { + id: rowId.value, + ids: [], + } + list.value.forEach((e: any, i) => { + if (e.selected) { + if (e.id) { + ApiData.ids.push(e.id) + } else { + type = false + } + } + }) + if (type) { + ApiCancel(ApiData).then((res) => { + notification.success({ message: res.message, duration: 3 }) + }) + } else { + notification.success({ message: '请先保存明细表', duration: 3 }) + } + } async function handleSave(exit) { try { const values = await validate() @@ -391,6 +391,7 @@ await setFieldsValue({ ...res.data, }) + GetListDetail() } } const activeKey = ref('1') diff --git a/src/views/ContainerManagement/BuyCtn/columns.tsx b/src/views/ContainerManagement/BuyCtn/columns.tsx index bf2fff61..1487f1f5 100644 --- a/src/views/ContainerManagement/BuyCtn/columns.tsx +++ b/src/views/ContainerManagement/BuyCtn/columns.tsx @@ -64,6 +64,12 @@ export const columns: BasicColumn[] = [ sorter: true, width: 150, }, + { + title: '箱型箱量', + dataIndex: 'ctntotal', + sorter: true, + width: 200, + }, { title: '已提箱', dataIndex: 'pickupCtntotal', @@ -271,6 +277,9 @@ export const formSchema: FormSchema[] = [ label: '箱型箱量', component: 'Input', colProps: { span: 6 }, + dynamicDisabled: ({}) => { + return true + }, }, { field: 'accdate', diff --git a/src/views/ContainerManagement/CtnScrap/TenantAuditStepModal.vue b/src/views/ContainerManagement/CtnScrap/TenantAuditStepModal.vue index 17841a0f..e5420753 100644 --- a/src/views/ContainerManagement/CtnScrap/TenantAuditStepModal.vue +++ b/src/views/ContainerManagement/CtnScrap/TenantAuditStepModal.vue @@ -2,7 +2,7 @@ { @@ -492,6 +494,11 @@ width: 120, data: 'CtnFlowStateId', }, + { + title: '箱来源ID', + width: 120, + data: 'ctnSourceId', + }, // ----------------- // { // title: '租箱业务号', @@ -521,9 +528,21 @@ }, }, { - title: '箱来源??', + title: '箱来源', width: 120, - data: 'ctnSourceId', + data: 'ctnsource', + type: 'dropdown', + // 下拉框数据,可以同步或者异步返回(异步需要process返回) + source: async (query, process) => { + const res = ctnsourceDict.value.length + ? ctnsourceDict.value + : await getDictOption('CM_CtnSource') + if (!ctnsourceDict.value.length) ctnsourceDict.value = res + const dict = res.map((res) => { + return res.label + }) + process(dict) + }, }, { title: '放箱单号', @@ -533,14 +552,14 @@ { title: '报废日期', width: 120, - data: 'bsdate', + data: 'pickupDate', type: 'date', dateFormat: 'YYYY-MM-DD', }, { - title: '当前状态??', + title: '当前状态', width: 120, - data: 'CtnFlowState', + data: 'ctnFlowState', type: 'dropdown', // 下拉框数据,可以同步或者异步返回(异步需要process返回) source: async (query, process) => { @@ -624,7 +643,7 @@ fixedColumnsLeft: 1, // 需要隐藏的列 hiddenColumns: { - columns: [1, 2, 3, 4, 5, 6], + columns: [1, 2, 3, 4, 5, 6, 7], indicators: true, }, // 控制回车移动 @@ -669,6 +688,30 @@ list.value[changes[0][0]]['pickupPortCode'] = dict?.ediCode } } + if (changes[0][1] === 'ctnsource') { + const res = ctnsourceDict.value.length + ? ctnsourceDict.value + : await getDictOption('CM_CtnSource') + if (!ctnsourceDict.value.length) ctnsourceDict.value = res + const item = res.filter((item) => { + return item.label === changes[0][3] + }) + if (item) dict = item[0] + list.value[changes[0][0]]['ctnsource'] = dict?.label + list.value[changes[0][0]]['ctnSourceId'] = dict?.value + } + if (changes[0][1] === 'ctnFlowState') { + const res = CtnFlowStateDict.value.length + ? CtnFlowStateDict.value + : await getDictOption('CM_CtnFlowState') + if (!CtnFlowStateDict.value.length) CtnFlowStateDict.value = res + const item = res.filter((item) => { + return item.label === changes[0][3] + }) + if (item) dict = item[0] + list.value[changes[0][0]]['ctnFlowState'] = dict?.label + list.value[changes[0][0]]['ctnFlowStateId'] = dict?.value + } } }, } @@ -761,7 +804,7 @@ fixedColumnsLeft: 1, // 需要隐藏的列 hiddenColumns: { - columns: [1, 2, 3, 4, 5, 6], + columns: [1, 2, 3, 4, 5, 6, 7], indicators: true, }, // // 控制回车移动 diff --git a/src/views/ContainerManagement/CtnScrap/columns.tsx b/src/views/ContainerManagement/CtnScrap/columns.tsx index b9719dfc..5b77ab37 100644 --- a/src/views/ContainerManagement/CtnScrap/columns.tsx +++ b/src/views/ContainerManagement/CtnScrap/columns.tsx @@ -58,6 +58,18 @@ export const columns: BasicColumn[] = [ sorter: true, width: 200, }, + { + title: '已提箱', + dataIndex: 'pickupCtntotal', + sorter: true, + width: 150, + }, + { + title: '未提箱', + dataIndex: 'remainCtntotal', + sorter: true, + width: 150, + }, { title: '业务状态', dataIndex: 'billState', diff --git a/src/views/ContainerManagement/CustFeeDui/TenantAuditStepModal.vue b/src/views/ContainerManagement/CustFeeDui/TenantAuditStepModal.vue index 95640560..ec67eb34 100644 --- a/src/views/ContainerManagement/CustFeeDui/TenantAuditStepModal.vue +++ b/src/views/ContainerManagement/CustFeeDui/TenantAuditStepModal.vue @@ -377,6 +377,7 @@ await setFieldsValue({ ...res.data, }) + GetListDetail() } } const activeKey = ref('1') diff --git a/src/views/ContainerManagement/RentIn/columns.tsx b/src/views/ContainerManagement/RentIn/columns.tsx index 0bf346d9..7e943df0 100644 --- a/src/views/ContainerManagement/RentIn/columns.tsx +++ b/src/views/ContainerManagement/RentIn/columns.tsx @@ -82,6 +82,36 @@ export const columns: BasicColumn[] = [ sorter: true, width: 200, }, + { + title: '箱型箱量', + dataIndex: 'ctntotal', + sorter: true, + width: 200, + }, + { + title: '已提箱', + dataIndex: 'pickupCtntotal', + sorter: true, + width: 150, + }, + { + title: '未提箱', + dataIndex: 'remainCtntotal', + sorter: true, + width: 150, + }, + { + title: '已还箱', + dataIndex: 'dropoffCtntotal', + sorter: true, + width: 200, + }, + { + title: '未还箱', + dataIndex: 'dropoffRemainCtntotal', + sorter: true, + width: 200, + }, { title: '原箱主', dataIndex: 'oldContainerOwner', diff --git a/src/views/ContainerManagement/RentOneWay/TenantAuditStepModal.vue b/src/views/ContainerManagement/RentOneWay/TenantAuditStepModal.vue index 608e5a9d..ee5ee8f5 100644 --- a/src/views/ContainerManagement/RentOneWay/TenantAuditStepModal.vue +++ b/src/views/ContainerManagement/RentOneWay/TenantAuditStepModal.vue @@ -50,7 +50,7 @@ - + @@ -114,7 +114,7 @@