From 409d4257a184e6333e70751ac87fe71702adbfad 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: Mon, 14 Oct 2024 10:53:12 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E5=AE=A2=E6=88=B7=20=E5=AE=A2=E6=88=B7?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/baseinfo/infoclient/TenantAuditStepModal.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/baseinfo/infoclient/TenantAuditStepModal.vue b/src/views/baseinfo/infoclient/TenantAuditStepModal.vue index 328c65fc..e0c0621d 100644 --- a/src/views/baseinfo/infoclient/TenantAuditStepModal.vue +++ b/src/views/baseinfo/infoclient/TenantAuditStepModal.vue @@ -415,13 +415,12 @@ 'isContract', ] if (CustomerOrSupplier.value == 'isCustomer') { - console.log('客户') updateSchema({ label: '客户属性', field: 'ArrclientTag', component: 'ApiSelect', colProps: { span: 12 }, - defaultValue: 'isController', + defaultValue: ['isController'], componentProps: () => { return { api: () => { @@ -446,8 +445,8 @@ } }, }) + setFieldsValue({ ArrclientTag: ['isController'] }) } else if (CustomerOrSupplier.value == 'isSupplier') { - console.log('供应商') updateSchema({ label: '客户属性', field: 'ArrclientTag', @@ -478,14 +477,14 @@ } }, }) + setFieldsValue({ ArrclientTag: [] }) } else if (CustomerOrSupplier.value == 'isCustomerAndisSupplier') { - console.log('供应商及客户') updateSchema({ label: '客户属性', field: 'ArrclientTag', component: 'ApiSelect', colProps: { span: 12 }, - defaultValue: 'isController', + defaultValue: ['isController'], componentProps: ({ formModel }) => { return { api: () => { @@ -504,6 +503,7 @@ } }, }) + setFieldsValue({ ArrclientTag: ['isController'] }) } } function ChangeCustomerOrSupplier() { From b2660508d27ee8ed05effcef3d6cc0d864e6100a 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: Mon, 14 Oct 2024 12:03:49 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E5=AE=A2=E6=88=B7=20=E5=B9=B2=E7=B3=BB?= =?UTF-8?q?=E4=BA=BA=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TenantAuditStepModal.vue | 9 ++-- .../infoclient/ClientStakeholder/api.ts | 8 ++-- .../infoclient/ClientStakeholder/columns.tsx | 45 +++++++++++++++++-- .../infoclient/ClientStakeholder/index.vue | 25 ++++++++--- 4 files changed, 70 insertions(+), 17 deletions(-) diff --git a/src/views/baseinfo/infoclient/ClientStakeholder/TenantAuditStepModal.vue b/src/views/baseinfo/infoclient/ClientStakeholder/TenantAuditStepModal.vue index 2c05ca94..3527187c 100644 --- a/src/views/baseinfo/infoclient/ClientStakeholder/TenantAuditStepModal.vue +++ b/src/views/baseinfo/infoclient/ClientStakeholder/TenantAuditStepModal.vue @@ -3,7 +3,7 @@ v-bind="$attrs" :use-wrapper="true" :title="getTitle" - width="60%" + width="30%" @register="registerModal" @ok="handleSave" > @@ -57,6 +57,8 @@ }) const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { + console.log(data) + resetFields() setModalProps({ confirmLoading: false, loading: true }) isUpdate.value = !!data?.isUpdate @@ -68,12 +70,9 @@ setFieldsValue({ ...res.data, }) - // console.log('返回数据Form', getFieldsValue()); - // setFieldsValue({ trainId: unref(res.data.trainId) }); } - // setModalProps({ confirmLoading: false }); } else { - setFieldsValue({ permissionIdentity: unref(2) }) + setFieldsValue({ clientId: data.clientId }) } setModalProps({ loading: false }) }) diff --git a/src/views/baseinfo/infoclient/ClientStakeholder/api.ts b/src/views/baseinfo/infoclient/ClientStakeholder/api.ts index c2904cd6..508f8555 100644 --- a/src/views/baseinfo/infoclient/ClientStakeholder/api.ts +++ b/src/views/baseinfo/infoclient/ClientStakeholder/api.ts @@ -33,12 +33,12 @@ export function ApiGet(query) { params: query, }) } -// 获取客户干系人 (Auth) -export function ApiEdit(query) { +// 更新客户干系人 (Auth) +export function ApiEdit(data) { return request({ url: Api.edit, - method: 'get', - params: query, + method: 'post', + data, }) } // 详情 (Auth) diff --git a/src/views/baseinfo/infoclient/ClientStakeholder/columns.tsx b/src/views/baseinfo/infoclient/ClientStakeholder/columns.tsx index defd34ee..d8a0a4ff 100644 --- a/src/views/baseinfo/infoclient/ClientStakeholder/columns.tsx +++ b/src/views/baseinfo/infoclient/ClientStakeholder/columns.tsx @@ -1,4 +1,5 @@ import { BasicColumn, FormSchema } from '/@/components/Table' +import { GetUserList } from '/@/api/common' export const columns: BasicColumn[] = [ { @@ -45,20 +46,57 @@ export const formSchema: FormSchema[] = [ show: false, }, { - field: 'carrierId', label: '', + field: 'clientId', component: 'Input', show: false, }, + { + label: '干系人Name', + field: 'createByName', + component: 'Input', + show: false, + }, + { + label: '干系人', + field: 'createBy', + component: 'ApiSelect', + required: false, + defaultValue: null, + dynamicDisabled: false, + colProps: { span: 24 }, + componentProps: ({ formModel }) => { + return { + api: GetUserList, + labelField: 'label', + valueField: 'value', + resultField: 'data', + getPopupContainer: () => document.body, + onChange: (e, obj) => { + if (e && obj) { + console.log(e, obj) + formModel.createBy = obj.value + formModel.createByName = obj.label + } + if (!e && !obj) { + formModel.createBy = '' + formModel.createByName = '' + } + }, + } + }, + }, + { field: 'startDate', label: '生效日期', component: 'DatePicker', required: true, - colProps: { span: 20 }, + colProps: { span: 24 }, defaultValue: '', componentProps: { style: 'width:100%', + getPopupContainer: () => document.body, }, }, { @@ -66,10 +104,11 @@ export const formSchema: FormSchema[] = [ label: '失效日期', component: 'DatePicker', required: true, - colProps: { span: 20 }, + colProps: { span: 24 }, defaultValue: '', componentProps: { style: 'width:100%', + getPopupContainer: () => document.body, }, }, { diff --git a/src/views/baseinfo/infoclient/ClientStakeholder/index.vue b/src/views/baseinfo/infoclient/ClientStakeholder/index.vue index fdfa400a..868012f5 100644 --- a/src/views/baseinfo/infoclient/ClientStakeholder/index.vue +++ b/src/views/baseinfo/infoclient/ClientStakeholder/index.vue @@ -1,15 +1,16 @@ --> + + From 06e15e3c0dd3514d624bacbe0d6313ac30eba3cd 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: Mon, 14 Oct 2024 14:39:14 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=20=20=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/baseinfo/clientflowtemplate/columns.tsx | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/views/baseinfo/clientflowtemplate/columns.tsx b/src/views/baseinfo/clientflowtemplate/columns.tsx index c2d11516..8bc7326b 100644 --- a/src/views/baseinfo/clientflowtemplate/columns.tsx +++ b/src/views/baseinfo/clientflowtemplate/columns.tsx @@ -92,17 +92,16 @@ export const formSchema: FormSchema[] = [ { field: 'status', label: '是否启用', - component: 'RadioButtonGroup', - defaultValue: 1, - colProps: { span: 12 }, + component: 'Switch', + colProps: { span: 6 }, + defaultValue: 0, componentProps: { - options: [ - { label: '是', value: 0 }, - { label: '否', value: 1 }, - ], + checkedChildren: '启用', + checkedValue: 0, + unCheckedChildren: '禁用', + unCheckedValue: 1, }, }, - { field: 'columnView', label: '关联表', From 7bd0031ffb4b76b9f70f9c30952e6431c24c371a 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: Mon, 14 Oct 2024 15:08:15 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E6=B8=AF=E5=8F=A3=E4=BF=A1=E6=81=AF=20?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/baseinfo/port/columns.tsx | 2 +- src/views/baseinfo/port/index.vue | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/baseinfo/port/columns.tsx b/src/views/baseinfo/port/columns.tsx index 2045ea96..2a4aa6ba 100644 --- a/src/views/baseinfo/port/columns.tsx +++ b/src/views/baseinfo/port/columns.tsx @@ -138,7 +138,7 @@ export const columns: BasicColumn[] = [ export const searchFormSchema: FormSchema[] = [ { - field: 'CnName:portName:ediCode', + field: 'cnName:portName:ediCode', label: '港口名称', component: 'Input', colProps: { span: 4 }, diff --git a/src/views/baseinfo/port/index.vue b/src/views/baseinfo/port/index.vue index 9f86a9f5..f84fde0e 100644 --- a/src/views/baseinfo/port/index.vue +++ b/src/views/baseinfo/port/index.vue @@ -76,7 +76,9 @@ }) }, beforeFetch: (p) => { - return formatParams(p) + let RData = formatParams(p) + RData.queryCondition = RData.queryCondition.replace(`{"Key":1,"Value"`, `{"Key":0,"Value"`) + return RData }, columns, formConfig: { From c76d348859c3f33a0a53c61a972be34deaf5c395 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: Mon, 14 Oct 2024 15:16:46 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E5=85=A8=E5=B1=80=E6=9B=BF=E6=8D=A2=20?= =?UTF-8?q?=E5=9B=BD=E5=AE=B6=20=E4=B8=BA=20=E5=9B=BD=E5=AE=B6=E5=9C=B0?= =?UTF-8?q?=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/configOptions.ts | 6 +- src/store/modules/options.ts | 4 +- .../baseinfo/country/TenantAuditStepModal.vue | 2 +- src/views/baseinfo/country/columns.tsx | 22 +- src/views/baseinfo/country/index.vue | 4 +- src/views/baseinfo/infoclient/EditColumns.tsx | 2 +- src/views/baseinfo/infoclient/api.ts | 2 +- src/views/baseinfo/infoclient/columns.tsx | 10 +- .../baseinfo/infoclientAudit/columns.tsx | 2 +- src/views/baseinfo/port/columns.tsx | 10 +- src/views/baseinfo/sendReciveTem/columns.tsx | 14 +- src/views/baseinfo/shipping/columns.tsx | 6 +- .../bookingcabin/CabinInventory/columns.tsx | 68 +- .../bookingcabin/CabinManagement/columns.tsx | 2 +- .../detail/components/applyInfoColumns.tsx | 28 +- .../detail/components/applyInfoColumns.tsx | 28 +- .../operation/seaexport/api/BookingLedger.js | 44 +- .../detail/components/ladingInfo.tsx | 187 +- .../seaexport/detail/modules/preOrder.tsx | 115 +- .../seaexport/detail/modules/preOrder.vue | 1754 +++++++++-------- .../detail/modules/preOrderData.json | 12 +- .../taskList/transPlanHasChange.vue | 392 ++-- 22 files changed, 1411 insertions(+), 1303 deletions(-) diff --git a/src/store/modules/configOptions.ts b/src/store/modules/configOptions.ts index 63b8cfd1..7b5d9188 100644 --- a/src/store/modules/configOptions.ts +++ b/src/store/modules/configOptions.ts @@ -25,7 +25,7 @@ import { GetCodeCountryList, GetClientGoodsList, GetYardClientList, - GetControllerClientList + GetControllerClientList, } from '/@/views/operation/seaexport/api/BookingLedger' import { getList } from '/@/views/flowcenter/flowInstances/api' import { @@ -33,7 +33,7 @@ import { GetClientListByCode, GetCtnSelectList, GetTenantParamSelectList, - getOrgList + getOrgList, } from '/@/api/common/index' import { getClientBankList } from '/@/views/baseinfo/infoclient/api' export default { @@ -185,7 +185,7 @@ export default { return res.data }) }, - // 国家 + // 国家地区 GetCodeCountryList: () => { return GetCodeCountryList().then((res) => { return res.data diff --git a/src/store/modules/options.ts b/src/store/modules/options.ts index 8149930c..11a986a9 100644 --- a/src/store/modules/options.ts +++ b/src/store/modules/options.ts @@ -46,7 +46,7 @@ export const useOptionsStore = defineStore({ GetFeeCurrencySelectList: null, // 用户表 GetUserList: null, - // 国家 + // 国家地区 GetCodeCountryList: null, // 车队 GetTruckClientList: null, @@ -67,7 +67,7 @@ export const useOptionsStore = defineStore({ // 场站 GetYardClientList: null, // 委托单位 - GetControllerClientList: null + GetControllerClientList: null, }), getters: { // 通过code获取下拉字典(code)就是接口尾部单词 diff --git a/src/views/baseinfo/country/TenantAuditStepModal.vue b/src/views/baseinfo/country/TenantAuditStepModal.vue index b3326ccb..fa7f8c76 100644 --- a/src/views/baseinfo/country/TenantAuditStepModal.vue +++ b/src/views/baseinfo/country/TenantAuditStepModal.vue @@ -79,7 +79,7 @@ setModalProps({ loading: false }) }) - const getTitle = computed(() => (!unref(isUpdate) ? '新增国家信息' : '编辑国家信息')) + const getTitle = computed(() => (!unref(isUpdate) ? '新增国家地区信息' : '编辑国家地区信息')) async function handleSave(exit) { try { diff --git a/src/views/baseinfo/country/columns.tsx b/src/views/baseinfo/country/columns.tsx index c58a87da..07304880 100644 --- a/src/views/baseinfo/country/columns.tsx +++ b/src/views/baseinfo/country/columns.tsx @@ -2,17 +2,17 @@ import { BasicColumn, FormSchema } from '/@/components/Table' import { Tag } from 'ant-design-vue' export const columns: BasicColumn[] = [ { - title: '国家唯一代码', + title: '国家地区唯一代码', dataIndex: 'countryCode', width: 150, }, { - title: '国家名称', + title: '国家地区名称', dataIndex: 'countryName', width: 200, }, { - title: '国家英文名称', + title: '国家地区英文名称', dataIndex: 'countryEnName', width: 200, }, @@ -37,12 +37,12 @@ export const columns: BasicColumn[] = [ width: 200, }, { - title: '国家3字代码', + title: '国家地区3字代码', dataIndex: 'countryCode3', width: 200, }, { - title: '国家描述', + title: '国家地区描述', dataIndex: 'explain', width: 200, }, @@ -74,7 +74,7 @@ export const columns: BasicColumn[] = [ export const searchFormSchema: FormSchema[] = [ { field: 'CountryName', - label: '国家名称', + label: '国家地区名称', component: 'Input', colProps: { span: 6 }, }, @@ -89,7 +89,7 @@ export const formSchema: FormSchema[] = [ }, { field: 'countryCode', - label: '国家唯一代码', + label: '国家地区唯一代码', component: 'Input', required: true, colProps: { span: 12 }, @@ -99,14 +99,14 @@ export const formSchema: FormSchema[] = [ }, { field: 'countryName', - label: '国家名称', + label: '国家地区名称', component: 'Input', required: true, colProps: { span: 12 }, }, { field: 'countryEnName', - label: '国家英文名称', + label: '国家地区英文名称', component: 'Input', colProps: { span: 12 }, @@ -139,14 +139,14 @@ export const formSchema: FormSchema[] = [ }, { field: 'countryCode3', - label: '国家3字代码', + label: '国家地区3字代码', component: 'Input', colProps: { span: 12 }, }, { field: 'explain', - label: '国家描述', + label: '国家地区描述', component: 'InputTextArea', colProps: { span: 12 }, diff --git a/src/views/baseinfo/country/index.vue b/src/views/baseinfo/country/index.vue index bcf54225..5e966411 100644 --- a/src/views/baseinfo/country/index.vue +++ b/src/views/baseinfo/country/index.vue @@ -20,7 +20,7 @@ - 导入国家信息 + 导入国家地区信息