|
|
@ -1,46 +1,76 @@ |
|
|
export const getBaseInfoFormConfig = (formType) => { |
|
|
export const getBaseInfoFormConfig = (formType) => { |
|
|
return [ |
|
|
|
|
|
{ |
|
|
|
|
|
type: 'cardItem', |
|
|
|
|
|
config: { |
|
|
|
|
|
studyMc: { |
|
|
|
|
|
label: 'template.common.testName', |
|
|
|
|
|
type: 'input', |
|
|
|
|
|
disabled: true |
|
|
|
|
|
}, |
|
|
|
|
|
studySn: { |
|
|
|
|
|
label: 'template.common.testNumber', |
|
|
|
|
|
type: 'input', |
|
|
|
|
|
disabled: true |
|
|
|
|
|
}, |
|
|
|
|
|
methodCode: { |
|
|
|
|
|
label: 'template.common.methodCode', |
|
|
|
|
|
type: 'input', |
|
|
|
|
|
fillType: formType === 'sp0020' ? 'actFill' : 'preFill', |
|
|
|
|
|
maxlength: 50 |
|
|
|
|
|
}, |
|
|
|
|
|
versionNum: { |
|
|
|
|
|
label: 'template.common.versionNumber', |
|
|
|
|
|
type: 'inputNumber', |
|
|
|
|
|
fillType: formType === 'sp0020' ? 'actFill' : 'preFill', |
|
|
|
|
|
prepend: 'V', |
|
|
|
|
|
maxlength: 50 |
|
|
|
|
|
}, |
|
|
|
|
|
clpbh: { |
|
|
|
|
|
label: '处理批编号', |
|
|
|
|
|
type: 'input', |
|
|
|
|
|
fillType: 'actFill', |
|
|
|
|
|
maxlength: 50 |
|
|
|
|
|
}, |
|
|
|
|
|
fxpbh: { |
|
|
|
|
|
label: '分析批编号', |
|
|
|
|
|
type: 'input', |
|
|
|
|
|
fillType: 'actFill', |
|
|
|
|
|
maxlength: 50 |
|
|
|
|
|
|
|
|
return formType === 'sp0019' |
|
|
|
|
|
? [ |
|
|
|
|
|
{ |
|
|
|
|
|
type: 'cardItem', |
|
|
|
|
|
config: { |
|
|
|
|
|
studyMc: { |
|
|
|
|
|
label: 'template.common.testName', |
|
|
|
|
|
type: 'input', |
|
|
|
|
|
disabled: true |
|
|
|
|
|
}, |
|
|
|
|
|
studySn: { |
|
|
|
|
|
label: 'template.common.testNumber', |
|
|
|
|
|
type: 'input', |
|
|
|
|
|
disabled: true |
|
|
|
|
|
}, |
|
|
|
|
|
clpbh: { |
|
|
|
|
|
label: '处理批编号', |
|
|
|
|
|
type: 'input', |
|
|
|
|
|
fillType: 'actFill', |
|
|
|
|
|
maxlength: 50 |
|
|
|
|
|
}, |
|
|
|
|
|
fxpbh: { |
|
|
|
|
|
label: '分析批编号', |
|
|
|
|
|
type: 'input', |
|
|
|
|
|
fillType: 'actFill', |
|
|
|
|
|
maxlength: 50 |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
] |
|
|
|
|
|
|
|
|
] |
|
|
|
|
|
: [ |
|
|
|
|
|
{ |
|
|
|
|
|
type: 'cardItem', |
|
|
|
|
|
config: { |
|
|
|
|
|
studyMc: { |
|
|
|
|
|
label: 'template.common.testName', |
|
|
|
|
|
type: 'input', |
|
|
|
|
|
disabled: true |
|
|
|
|
|
}, |
|
|
|
|
|
studySn: { |
|
|
|
|
|
label: 'template.common.testNumber', |
|
|
|
|
|
type: 'input', |
|
|
|
|
|
disabled: true |
|
|
|
|
|
}, |
|
|
|
|
|
methodCode: { |
|
|
|
|
|
label: 'template.common.methodCode', |
|
|
|
|
|
type: 'input', |
|
|
|
|
|
fillType: formType === 'sp0020' ? 'actFill' : 'preFill', |
|
|
|
|
|
maxlength: 50 |
|
|
|
|
|
}, |
|
|
|
|
|
versionNum: { |
|
|
|
|
|
label: 'template.common.versionNumber', |
|
|
|
|
|
type: 'inputNumber', |
|
|
|
|
|
fillType: formType === 'sp0020' ? 'actFill' : 'preFill', |
|
|
|
|
|
prepend: 'V', |
|
|
|
|
|
maxlength: 50 |
|
|
|
|
|
}, |
|
|
|
|
|
clpbh: { |
|
|
|
|
|
label: '处理批编号', |
|
|
|
|
|
type: 'input', |
|
|
|
|
|
fillType: 'actFill', |
|
|
|
|
|
maxlength: 50 |
|
|
|
|
|
}, |
|
|
|
|
|
fxpbh: { |
|
|
|
|
|
label: '分析批编号', |
|
|
|
|
|
type: 'input', |
|
|
|
|
|
fillType: 'actFill', |
|
|
|
|
|
maxlength: 50 |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
] |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
export const getStorageFormConfig = ($this) => { |
|
|
export const getStorageFormConfig = ($this) => { |
|
|
|