From 862d073c92d8b6d51045aa94c253567bdb11ae24 Mon Sep 17 00:00:00 2001 From: lijingjia Date: Sat, 12 Oct 2024 18:14:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E9=85=8D-=E8=B4=B9=E7=94=A8=E5=BD=95?= =?UTF-8?q?=E5=85=A5=E8=BF=AD=E4=BB=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../operation/seaexport/detail/index.vue | 22 +++++++++++++++--- .../seaexport/detail/modules/baseInfo.tsx | 3 ++- .../seaexport/detail/modules/basicInfo.vue | 7 +++++- .../seaexport/detail/modules/rightContent.vue | 23 ++++++++++++++++++- 4 files changed, 49 insertions(+), 6 deletions(-) diff --git a/src/views/operation/seaexport/detail/index.vue b/src/views/operation/seaexport/detail/index.vue index 9c60462d..046be4e0 100644 --- a/src/views/operation/seaexport/detail/index.vue +++ b/src/views/operation/seaexport/detail/index.vue @@ -52,7 +52,7 @@
- + { refreshPage() changeFlag.value = true @@ -733,6 +732,8 @@ colProps: { className: 'changeGP ant-col ant-col-24' } } ]) + // 改配清空货物状态 + RefrightContent.value.cancelGoodsStatus() } // 恢复改配 const backChange = () => { @@ -884,6 +885,21 @@ loading.value = false }) } + // 改配清空字段 + const changeClear = () => { + if (!changeFlag.value) return + RefbasicInfo.value.setFieldsValue({ + contractClientName: null, + contractClientId: null, + contractNo: null, + mblno: null + }) + RefmailingInfo.value.setFieldsValueR({ + vessel: null, + vesselId: null, + innerVoyno: null + }) + } function fileNewUpadte(file) { bookingDetails.value.tempFiles.push({ tempPathName: file.tempPathName, diff --git a/src/views/operation/seaexport/detail/modules/baseInfo.tsx b/src/views/operation/seaexport/detail/modules/baseInfo.tsx index ffdd605c..1da8bdc8 100644 --- a/src/views/operation/seaexport/detail/modules/baseInfo.tsx +++ b/src/views/operation/seaexport/detail/modules/baseInfo.tsx @@ -277,7 +277,7 @@ export const basicInfoFormSchema: FormSchema[] = [ defaultValue: null, dynamicDisabled: false, colProps: { span: 5 }, - componentProps: ({ formModel }) => { + componentProps: ({ formModel, formActionType }) => { return { api: GetCarrierSelectList, labelField: 'pinYinCode', @@ -287,6 +287,7 @@ export const basicInfoFormSchema: FormSchema[] = [ immediate: false, onChange: (e, obj) => { if (e && obj) { + formActionType ? formActionType.linkageForm({ key: 'carrier' }) : null formModel.carrierId = obj.id } if (!e && !obj) { diff --git a/src/views/operation/seaexport/detail/modules/basicInfo.vue b/src/views/operation/seaexport/detail/modules/basicInfo.vue index 73945ff5..b062831e 100644 --- a/src/views/operation/seaexport/detail/modules/basicInfo.vue +++ b/src/views/operation/seaexport/detail/modules/basicInfo.vue @@ -136,7 +136,7 @@