Browse Source

feat: [模板管理] SP019删除去掉方法编号和版本号字段 禅道7719

zhangteng
memorylkf 5 days ago
parent
commit
d4c8d1edf7
1 changed files with 71 additions and 41 deletions
  1. +71
    -41
      src/views/business/comps/template/formConfig/sp/SP0019.js

+ 71
- 41
src/views/business/comps/template/formConfig/sp/SP0019.js View File

@ -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) => {

Loading…
Cancel
Save