From f1ec837080ea954d6390f72ccf460269a03a7c06 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, 30 Sep 2024 16:03:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E5=AF=B9=E8=B4=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../detail/detailColumns.tsx | 146 +++++- .../CustomerReconciliation/detail/index.vue | 445 ++++++++++++------ .../detail/info/index.vue | 6 +- .../CustomerReconciliation/index.vue | 128 +++-- 4 files changed, 541 insertions(+), 184 deletions(-) diff --git a/src/views/operation/CustomerReconciliation/detail/detailColumns.tsx b/src/views/operation/CustomerReconciliation/detail/detailColumns.tsx index c74157f3..da2083f0 100644 --- a/src/views/operation/CustomerReconciliation/detail/detailColumns.tsx +++ b/src/views/operation/CustomerReconciliation/detail/detailColumns.tsx @@ -19,8 +19,24 @@ export const schemas: FormSchema[] = [ component: 'Input', label: '对账编号', dynamicDisabled: true, + show: false, colProps: { span: 4 }, }, + { + field: 'isLocking', + component: 'Select', + label: '业务锁定', + colProps: { span: 4 }, + dynamicDisabled: true, + defaultValue: false, + show: false, + componentProps: { + options: [ + { label: '否', value: false }, + { label: '是', value: true }, + ], + }, + }, { field: 'billName', component: 'Input', label: '对账单名称', colProps: { span: 4 } }, { field: 'billType', @@ -74,6 +90,42 @@ export const schemas: FormSchema[] = [ // defaultValue: false, // colProps: { span: 2 }, // }, + + { + field: 'isNoTax', + component: 'Switch', + label: '是否不含税', + defaultValue: false, + colProps: { span: 2 }, + }, + // isLocking + // { field: 'billName', component: 'Input', label: '对账单名称', colProps: { span: 4 } }, + // { field: 'field2', component: 'Input', label: '账单说明', colProps: { span: 4 } }, + // { field: 'field3', component: 'Input', label: '对账日期', colProps: { span: 4 } }, + // { field: 'field4', component: 'Input', label: '状态', colProps: { span: 4 } }, + // { field: 'field5', component: 'Input', label: '是否含税', colProps: { span: 4 } }, + // { field: 'field6', component: 'Input', label: '打印模板', colProps: { span: 4 } }, + // { field: 'field7', component: 'Input', label: '账单类别', colProps: { span: 4 } }, + // { field: 'field8', component: 'Input', label: '费用范围', colProps: { span: 4 } }, + // { field: 'field9', component: 'Input', label: '备注', colProps: { span: 12 } }, +] +// 表单 +export const Editschemas: FormSchema[] = [ + { + field: 'id', + component: 'Input', + label: '主键Id', + show: false, + colProps: { span: 4 }, + }, + { + field: 'billNo', + component: 'Input', + label: '对账编号', + dynamicDisabled: true, + show: false, + colProps: { span: 4 }, + }, { field: 'isLocking', component: 'Select', @@ -81,6 +133,7 @@ export const schemas: FormSchema[] = [ colProps: { span: 4 }, dynamicDisabled: true, defaultValue: false, + show: false, componentProps: { options: [ { label: '否', value: false }, @@ -88,24 +141,95 @@ export const schemas: FormSchema[] = [ ], }, }, + { + field: 'billName', + component: 'DEdit', + label: '对账单名称', + colProps: { span: 4 }, + componentProps: (e) => { + return { + onEdit: () => { + const { formActionType } = e + formActionType ? formActionType.linkageForm(e) : null + }, + } + }, + }, + { + field: 'billType', + component: 'DEdit', + label: '收付类型', + colProps: { span: 4 }, + componentProps: (e) => { + return { + options: billTypeData, + onEdit: () => { + const { formActionType } = e + formActionType ? formActionType.linkageForm(e) : null + }, + } + }, + }, + { + field: 'customerName', + component: 'DEdit', + label: '对账客户Name', + colProps: { span: 4 }, + show: false, + componentProps: (e) => { + return { + onEdit: () => { + const { formActionType } = e + formActionType ? formActionType.linkageForm(e) : null + }, + } + }, + }, + { + field: 'customerId', + component: 'DEdit', + label: '对账客户', + colProps: { span: 4 }, + componentProps: ({ formModel }) => { + return { + allowClear: true, + showSearch: true, + api: GetAllClientList, + labelField: 'shortName', + valueField: 'id', + resultField: 'data', + filterOption: (input: string, option: any) => { + return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 + }, + onChange: (e, obj) => { + if (e && obj) { + formModel.customerName = obj.label + } + }, + onEdit: () => { + const { formActionType } = e + formActionType ? formActionType.linkageForm(e) : null + }, + } + }, + }, { field: 'isNoTax', - component: 'Switch', + component: 'DEdit', label: '是否不含税', defaultValue: false, colProps: { span: 2 }, + componentProps: (e) => { + return { + onEdit: () => { + const { formActionType } = e + formActionType ? formActionType.linkageForm(e) : null + }, + } + }, }, - // isLocking - // { field: 'billName', component: 'Input', label: '对账单名称', colProps: { span: 4 } }, - // { field: 'field2', component: 'Input', label: '账单说明', colProps: { span: 4 } }, - // { field: 'field3', component: 'Input', label: '对账日期', colProps: { span: 4 } }, - // { field: 'field4', component: 'Input', label: '状态', colProps: { span: 4 } }, - // { field: 'field5', component: 'Input', label: '是否含税', colProps: { span: 4 } }, - // { field: 'field6', component: 'Input', label: '打印模板', colProps: { span: 4 } }, - // { field: 'field7', component: 'Input', label: '账单类别', colProps: { span: 4 } }, - // { field: 'field8', component: 'Input', label: '费用范围', colProps: { span: 4 } }, - // { field: 'field9', component: 'Input', label: '备注', colProps: { span: 12 } }, ] + //左侧列表 export const columnsL: BasicColumn[] = [ // { title: '对账Id', dataIndex: 'checkId', align: 'left' }, diff --git a/src/views/operation/CustomerReconciliation/detail/index.vue b/src/views/operation/CustomerReconciliation/detail/index.vue index d26e9733..f2ae74a7 100644 --- a/src/views/operation/CustomerReconciliation/detail/index.vue +++ b/src/views/operation/CustomerReconciliation/detail/index.vue @@ -1,147 +1,223 @@ + + + + + + + + + + - - - - - - - - - + + + + + + + +