From da4a3235b4cfc6642f82e5a2b71aaa38631206ff 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: Fri, 16 Aug 2024 15:53:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=80=E6=9D=A5=E5=8D=95=E4=BD=8D=E5=9B=9E?= =?UTF-8?q?=E5=A1=AB=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../infoclient/TenantAuditStepModal.vue | 26 ++- src/views/baseinfo/infoclient/columns.tsx | 192 ++++++++++++++---- 2 files changed, 170 insertions(+), 48 deletions(-) diff --git a/src/views/baseinfo/infoclient/TenantAuditStepModal.vue b/src/views/baseinfo/infoclient/TenantAuditStepModal.vue index db8ab9e4..158b69bc 100644 --- a/src/views/baseinfo/infoclient/TenantAuditStepModal.vue +++ b/src/views/baseinfo/infoclient/TenantAuditStepModal.vue @@ -350,13 +350,25 @@ return !values.sourceId }, colProps: { span: 4 }, - componentProps: { - allowClear: true, - options: Arr, - showSearch: true, - filterOption: (input: string, option: any) => { - return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 - }, + componentProps: ({ formModel }) => { + return { + allowClear: true, + options: Arr, + showSearch: true, + filterOption: (input: string, option: any) => { + return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 + }, + onChange: (e, obj) => { + if (e && obj) { + formModel.sourceDetailId = obj.value + formModel.sourceDetailName = obj.label + } + if (!e && !obj) { + formModel.sourceDetailId = '' + formModel.sourceDetailName = '' + } + }, + } }, }) activeKey.value = '2' diff --git a/src/views/baseinfo/infoclient/columns.tsx b/src/views/baseinfo/infoclient/columns.tsx index d593d7b5..9717c93b 100644 --- a/src/views/baseinfo/infoclient/columns.tsx +++ b/src/views/baseinfo/infoclient/columns.tsx @@ -271,6 +271,7 @@ export const columns: BasicColumn[] = [ return RText }, }, + { title: '揽货人', dataIndex: 'saleId', @@ -759,6 +760,13 @@ export const formSchema: FormSchema[] = [ // }, // }, // }, + { + label: '业务来源Name', + field: 'sourceName', + component: 'Input', + defaultValue: '', + show: false, + }, { label: '业务来源', field: 'sourceId', @@ -778,12 +786,15 @@ export const formSchema: FormSchema[] = [ return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 }, onChange: async (e, obj) => { - // if (e && obj) { - // formModel.sourceCode = obj.sourceCode - // } - // if (!e && !obj) { - // formModel.sourceCode = null - // } + console.log(obj) + if (e && obj) { + formModel.sourceId = obj.value + formModel.sourceName = obj.label + } + if (!e && !obj) { + formModel.sourceId = '' + formModel.sourceName = '' + } if (e) { if (formActionType) { const { updateSchema } = formActionType @@ -802,13 +813,25 @@ export const formSchema: FormSchema[] = [ return !values.sourceId }, colProps: { span: 4 }, - componentProps: { - allowClear: true, - options: Arr, - showSearch: true, - filterOption: (input: string, option: any) => { - return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 - }, + componentProps: ({ formModel }) => { + return { + allowClear: true, + options: Arr, + showSearch: true, + filterOption: (input: string, option: any) => { + return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 + }, + onChange: (e, obj) => { + if (e && obj) { + formModel.sourceDetailId = obj.value + formModel.sourceDetailName = obj.label + } + if (!e && !obj) { + formModel.sourceDetailId = '' + formModel.sourceDetailName = '' + } + }, + } }, }) } @@ -818,6 +841,13 @@ export const formSchema: FormSchema[] = [ } }, }, + { + label: '来源明细Name', + field: 'sourceDetailName', + component: 'Input', + defaultValue: '', + show: false, + }, { label: '来源明细', field: 'sourceDetailId', @@ -828,64 +858,144 @@ export const formSchema: FormSchema[] = [ }, colProps: { span: 4 }, }, + { + label: '揽货人Name', + field: 'saleName', + component: 'Input', + defaultValue: '', + show: false, + }, { field: 'saleId', label: '揽货人', component: 'Select', colProps: { span: 4 }, defaultValue: '', - componentProps: { - options: SaleUserList, - allowClear: true, - showSearch: true, - filterOption: (input: string, option: any) => { - return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 - }, + componentProps: ({ formModel }) => { + return { + options: SaleUserList, + allowClear: true, + showSearch: true, + filterOption: (input: string, option: any) => { + return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 + }, + onChange: (e, obj) => { + console.log(obj) + if (e && obj) { + formModel.saleId = obj.value + formModel.saleName = obj.label + } + if (!e && !obj) { + formModel.saleId = '' + formModel.saleName = '' + } + }, + } }, }, + { + label: '操作人Name', + field: 'opName', + component: 'Input', + defaultValue: '', + show: false, + }, { field: 'op', label: '操作人', component: 'Select', colProps: { span: 4 }, defaultValue: '', - componentProps: { - options: OperatorUserList, - allowClear: true, - showSearch: true, - filterOption: (input: string, option: any) => { - return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 - }, + componentProps: ({ formModel }) => { + return { + options: OperatorUserList, + allowClear: true, + showSearch: true, + filterOption: (input: string, option: any) => { + return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 + }, + onChange: (e, obj) => { + console.log(obj) + if (e && obj) { + formModel.op = obj.value + formModel.opName = obj.label + } + if (!e && !obj) { + formModel.op = '' + formModel.opName = '' + } + }, + } }, }, + { + label: '单证Name', + field: 'docName', + component: 'Input', + defaultValue: '', + show: false, + }, { field: 'doc', label: '单证', component: 'Select', colProps: { span: 4 }, defaultValue: '', - componentProps: { - options: VouchingClerkList, - allowClear: true, - showSearch: true, - filterOption: (input: string, option: any) => { - return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 - }, + componentProps: ({ formModel }) => { + return { + options: VouchingClerkList, + allowClear: true, + showSearch: true, + filterOption: (input: string, option: any) => { + return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 + }, + onChange: (e, obj) => { + console.log(obj) + if (e && obj) { + formModel.doc = obj.value + formModel.docName = obj.label + } + if (!e && !obj) { + formModel.doc = '' + formModel.docName = '' + } + }, + } }, }, + { + label: '客服Name', + field: 'customerServiceName', + component: 'Input', + defaultValue: '', + show: false, + }, { field: 'customerService', label: '客服', component: 'Select', colProps: { span: 4 }, defaultValue: '', - componentProps: { - options: CustomerServiceList, - allowClear: true, - showSearch: true, - filterOption: (input: string, option: any) => { - return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 - }, + componentProps: ({ formModel }) => { + return { + options: CustomerServiceList, + allowClear: true, + showSearch: true, + filterOption: (input: string, option: any) => { + return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 + }, + onChange: (e, obj) => { + console.log(obj) + if (e && obj) { + formModel.customerService = obj.value + formModel.customerServiceName = obj.label + } + if (!e && !obj) { + formModel.customerService = '' + formModel.customerServiceName = '' + } + }, + } }, }, // {