From effded7907ea79e630f68f5b56040bfc3af1105a 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: Wed, 28 Aug 2024 15:30:03 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=B1=E7=AE=A1=20=E5=BE=80=E6=9D=A5?= =?UTF-8?q?=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 --- src/views/ContainerManagement/SellCtn/columns.tsx | 10 +++++----- src/views/baseinfo/infoclient/columns.tsx | 14 +++++++------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/views/ContainerManagement/SellCtn/columns.tsx b/src/views/ContainerManagement/SellCtn/columns.tsx index 0de6247b..85524851 100644 --- a/src/views/ContainerManagement/SellCtn/columns.tsx +++ b/src/views/ContainerManagement/SellCtn/columns.tsx @@ -29,7 +29,7 @@ export const columns: BasicColumn[] = [ }, { title: '新箱主', - dataIndex: 'BuyContainerOwner', + dataIndex: 'buyContainerOwner', sorter: true, width: 200, }, @@ -145,13 +145,13 @@ export const formSchema: FormSchema[] = [ }, { label: '购箱单位Id', - field: 'BuyContainerOwnerId', + field: 'buyContainerOwnerId', component: 'Input', defaultValue: '', show: false, }, { - field: 'BuyContainerOwner', + field: 'buyContainerOwner', label: '购箱单位', component: 'ApiSelect', required: true, @@ -173,10 +173,10 @@ export const formSchema: FormSchema[] = [ }, onChange: (e, obj) => { if (e && obj) { - formModel.BuyContainerOwnerId = obj.id + formModel.buyContainerOwnerId = obj.id } if (!e && !obj) { - formModel.BuyContainerOwnerId = '' + formModel.buyContainerOwnerId = '' } }, } diff --git a/src/views/baseinfo/infoclient/columns.tsx b/src/views/baseinfo/infoclient/columns.tsx index d17ba75b..c85adc11 100644 --- a/src/views/baseinfo/infoclient/columns.tsx +++ b/src/views/baseinfo/infoclient/columns.tsx @@ -17,7 +17,7 @@ import { getVouchingClerkList, getSaleUserList, getCustomerServiceList, - getDeptList, + getOrgList, GetFeeCurrencySelectList, GetUserList, GetAllClientList, @@ -100,12 +100,12 @@ if (res9.succeeded) { CustomerServiceList.push({ label: e.userName, value: e.id }) }) } -let DeptList = [] -const res10: API.DataResult = await getDeptList() +let OrgList = [] +const res10: API.DataResult = await getOrgList() if (res10.succeeded) { - DeptList = [] + OrgList = [] res10.data.forEach((e) => { - DeptList.push({ label: e.orgName, value: e.id }) + OrgList.push(e) }) } let OrgTree = [] @@ -180,7 +180,7 @@ export const columns: BasicColumn[] = [ width: 150, customRender: ({ text }) => { let RText = '' - DeptList.forEach((e) => { + OrgList.forEach((e) => { text.forEach((item) => { if (e.value == item) { RText = RText == '' ? e.label : `${RText},${e.label}` @@ -1179,7 +1179,7 @@ export const formSchema: FormSchema[] = [ colProps: { span: 8 }, componentProps: ({ formModel }) => { return { - options: DeptList, + options: OrgList, allowClear: true, onChange: (e, obj) => { console.log(e, obj)