|
|
|
@ -48,31 +48,33 @@ export const schemas: FormSchema[] = [
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'customerName',
|
|
|
|
|
field: 'customerId',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
label: '对账客户Name',
|
|
|
|
|
label: '对账客户',
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'customerId',
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
label: '对账客户',
|
|
|
|
|
field: 'customerName',
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
|
componentProps: (a) => {
|
|
|
|
|
return {
|
|
|
|
|
allowClear: true,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
api: GetAllClientList,
|
|
|
|
|
labelField: 'shortName',
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
valueField: 'shortName',
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
immediate: true,
|
|
|
|
|
allowClear: true,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
},
|
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
|
if (e && obj) {
|
|
|
|
|
formModel.customerName = obj.label
|
|
|
|
|
console.log(obj)
|
|
|
|
|
a.formModel.customerId = obj.id
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
@ -97,6 +99,12 @@ export const schemas: FormSchema[] = [
|
|
|
|
|
label: '是否不含税',
|
|
|
|
|
defaultValue: false,
|
|
|
|
|
colProps: { span: 2 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
checkedChildren: '是',
|
|
|
|
|
checkedValue: true,
|
|
|
|
|
unCheckedChildren: '否',
|
|
|
|
|
unCheckedValue: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
// isLocking
|
|
|
|
|
// { field: 'billName', component: 'Input', label: '对账单名称', colProps: { span: 4 } },
|
|
|
|
@ -171,9 +179,9 @@ export const Editschemas: FormSchema[] = [
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'customerName',
|
|
|
|
|
field: 'customerId',
|
|
|
|
|
component: 'DEdit',
|
|
|
|
|
label: '对账客户Name',
|
|
|
|
|
label: '对账客户',
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
show: false,
|
|
|
|
|
componentProps: (e) => {
|
|
|
|
@ -186,29 +194,30 @@ export const Editschemas: FormSchema[] = [
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'customerId',
|
|
|
|
|
component: 'DEdit',
|
|
|
|
|
label: '对账客户',
|
|
|
|
|
field: 'customerName',
|
|
|
|
|
component: 'DEdit',
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
|
componentProps: (a) => {
|
|
|
|
|
return {
|
|
|
|
|
allowClear: true,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
api: GetAllClientList,
|
|
|
|
|
labelField: 'shortName',
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
valueField: 'shortName',
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
immediate: true,
|
|
|
|
|
allowClear: true,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
},
|
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
|
if (e && obj) {
|
|
|
|
|
formModel.customerName = obj.label
|
|
|
|
|
a.formModel.customerId = obj.id
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onEdit: () => {
|
|
|
|
|
const { formActionType } = e
|
|
|
|
|
formActionType ? formActionType.linkageForm(e) : null
|
|
|
|
|
const { formActionType } = a
|
|
|
|
|
formActionType ? formActionType.linkageForm(a) : null
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
@ -221,6 +230,10 @@ export const Editschemas: FormSchema[] = [
|
|
|
|
|
colProps: { span: 2 },
|
|
|
|
|
componentProps: (e) => {
|
|
|
|
|
return {
|
|
|
|
|
checkedChildren: '是',
|
|
|
|
|
checkedValue: true,
|
|
|
|
|
unCheckedChildren: '否',
|
|
|
|
|
unCheckedValue: false,
|
|
|
|
|
onEdit: () => {
|
|
|
|
|
const { formActionType } = e
|
|
|
|
|
formActionType ? formActionType.linkageForm(e) : null
|
|
|
|
|