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