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 @@ + + + + + + + + + + - - - - - - - - - + + + + + + + +