From 41d323254dd215a9b482db6f2eb715a67e806c41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <14166000+zhangtonghai@user.noreply.gitee.com> Date: Thu, 22 Aug 2024 10:49:37 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B8=AF=E5=8F=A3=E6=98=A0=E5=B0=84=20?= =?UTF-8?q?=E5=BE=80=E6=9D=A5=E5=8D=95=E4=BD=8D=20=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../baseinfo/infoclient/menu2/columns.tsx | 12 ++++++++++ src/views/mapping/station/columns.tsx | 22 ++++++++++++++----- 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/src/views/baseinfo/infoclient/menu2/columns.tsx b/src/views/baseinfo/infoclient/menu2/columns.tsx index bdfbd6fa..cdf3912d 100644 --- a/src/views/baseinfo/infoclient/menu2/columns.tsx +++ b/src/views/baseinfo/infoclient/menu2/columns.tsx @@ -345,6 +345,18 @@ export const formSchema: FormSchema[] = [ // } // }, // }, + + { + field: 'isDefault', + label: '默认联系人', + component: 'Switch', + colProps: { span: 12 }, + defaultValue: false, + componentProps: { + checkedChildren: '是', + unCheckedChildren: '否', + }, + }, { field: 'isOperator', label: '是否为操作', diff --git a/src/views/mapping/station/columns.tsx b/src/views/mapping/station/columns.tsx index 568445de..372bc3a4 100644 --- a/src/views/mapping/station/columns.tsx +++ b/src/views/mapping/station/columns.tsx @@ -55,16 +55,20 @@ export const columns: BasicColumn[] = [ export const searchFormSchema: FormSchema[] = [ { - field: 'code', + field: 'linkId', label: '场站', colProps: { span: 6 }, component: 'ApiSelect', + componentProps: () => { return { api: GetYardClientList, labelField: 'shortName', - valueField: 'codeName', + valueField: 'id', resultField: 'data', + filterOption: (input: string, option: any) => { + return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 + }, } }, }, @@ -79,13 +83,13 @@ export const formSchema: FormSchema[] = [ }, { label: '', - field: 'linkId', + field: 'code', component: 'Input', defaultValue: '', show: false, }, { - field: 'code', + field: 'linkId', label: '场站', component: 'ApiSelect', colProps: { span: 20 }, @@ -93,11 +97,17 @@ export const formSchema: FormSchema[] = [ return { api: GetYardClientList, labelField: 'shortName', - valueField: 'codeName', + valueField: 'id', resultField: 'data', + filterOption: (input: string, option: any) => { + console.log(input, option) + return option.shortName.toLowerCase().indexOf(input.toLowerCase()) >= 0 + }, onChange: (v, obj) => { if (obj) { - formModel['linkId'] = obj.id + console.log(obj) + + formModel['code'] = obj.codeName } }, } From 10a2d24a27bbf1f0836c44c1e2a7636ce42018ed Mon Sep 17 00:00:00 2001 From: lijingjia Date: Thu, 22 Aug 2024 11:30:12 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=AE=B1=E5=9E=8B=E8=A1=A8=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/design/ant/table.less | 10 + .../operation/seaexport/detail/index.vue | 11 +- .../seaexport/detail/modules/PersonModal.vue | 30 ++- .../seaexport/detail/modules/baseInfo.tsx | 4 +- .../seaexport/detail/modules/contactList.vue | 40 +++- .../seaexport/detail/modules/ediMore.vue | 2 +- .../seaexport/detail/modules/goodsTable.vue | 198 ++++++++++-------- .../seaexport/detail/modules/rightContent.vue | 2 +- src/views/system/permission/columns.tsx | 4 +- 9 files changed, 191 insertions(+), 110 deletions(-) diff --git a/src/design/ant/table.less b/src/design/ant/table.less index d99ecbbf..0b4657b4 100644 --- a/src/design/ant/table.less +++ b/src/design/ant/table.less @@ -179,4 +179,14 @@ .hot-red { background-color: #f5222d; } + .handsontableInputHolder { + .autocompleteEditor { + .ht_master { + .wtHolder { + min-height: 200px!important; + overflow: visible!important; + } + } + } + } } \ No newline at end of file diff --git a/src/views/operation/seaexport/detail/index.vue b/src/views/operation/seaexport/detail/index.vue index 098d60c8..e57d16af 100644 --- a/src/views/operation/seaexport/detail/index.vue +++ b/src/views/operation/seaexport/detail/index.vue @@ -113,9 +113,9 @@ :details="bookingDetails" @openFlag="otherOpenFlag" > - + - + @@ -209,6 +209,7 @@ import otherInfo from './modules/otherInfo.vue' // 联系人信息 import ContactList from './modules/contactList.vue' + import emitter from '/@/utils/Bus' import { useMultipleTabStore } from '/@/store/modules/multipleTab' import { Divider } from 'ant-design-vue' @@ -712,8 +713,10 @@ RefmailingInfo.value.$data.userHasLine = !!bookingDetails.value.lineName } } - function pkgsEnCapitalFun(data) { - bookingDetails.value.totalno = data + // 获取基础信息表单数据 + const getBaseInfo = () => { + const data = RefbasicInfo.value.getFieldsValue() + emitter.emit('sendBaseInfo', data) } function changeTab(e) { tabActiveKey.value = e diff --git a/src/views/operation/seaexport/detail/modules/PersonModal.vue b/src/views/operation/seaexport/detail/modules/PersonModal.vue index acd70231..a6a898ab 100644 --- a/src/views/operation/seaexport/detail/modules/PersonModal.vue +++ b/src/views/operation/seaexport/detail/modules/PersonModal.vue @@ -32,11 +32,12 @@ diff --git a/src/views/operation/seaexport/detail/modules/baseInfo.tsx b/src/views/operation/seaexport/detail/modules/baseInfo.tsx index cfe0100a..226771f1 100644 --- a/src/views/operation/seaexport/detail/modules/baseInfo.tsx +++ b/src/views/operation/seaexport/detail/modules/baseInfo.tsx @@ -237,8 +237,8 @@ export const basicInfoFormSchema: FormSchema[] = [ return { api: GetCarrierSelectList, labelField: 'pinYinCode', - showName: 'cnName', - valueField: 'cnName', + showName: 'ediCode', + valueField: 'ediCode', resultField: 'data', immediate: false, onChange: (e, obj) => { diff --git a/src/views/operation/seaexport/detail/modules/contactList.vue b/src/views/operation/seaexport/detail/modules/contactList.vue index b4147ea7..d61ee506 100644 --- a/src/views/operation/seaexport/detail/modules/contactList.vue +++ b/src/views/operation/seaexport/detail/modules/contactList.vue @@ -5,7 +5,7 @@ @register="registerTable" > - +