|
@ -203,9 +203,8 @@ export const getEditFormSchema: ( |
|
|
colProps: { |
|
|
colProps: { |
|
|
span: 6, |
|
|
span: 6, |
|
|
}, |
|
|
}, |
|
|
vIf: () => !isClient, |
|
|
|
|
|
|
|
|
vIf: () => !isClient && isDetail, |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
field: 'state', |
|
|
field: 'state', |
|
|
component: 'Select', |
|
|
component: 'Select', |
|
@ -313,6 +312,16 @@ export const getEditFormSchema: ( |
|
|
|
|
|
|
|
|
export const getFlowFormSchema: (row?: Partial<TableListItem>) => FormSchema[] = (record = {}) => { |
|
|
export const getFlowFormSchema: (row?: Partial<TableListItem>) => FormSchema[] = (record = {}) => { |
|
|
return [ |
|
|
return [ |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'zentaoNos', |
|
|
|
|
|
component: 'Input', |
|
|
|
|
|
label: '禅道号', |
|
|
|
|
|
colProps: { |
|
|
|
|
|
span: 24, |
|
|
|
|
|
}, |
|
|
|
|
|
vIf: () => record.state === 0, |
|
|
|
|
|
rules: [{ required: true, type: 'string' }], |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
field: 'remark', |
|
|
field: 'remark', |
|
|
component: 'InputTextArea', |
|
|
component: 'InputTextArea', |
|
|