Browse Source

fix: [基础修改] 存储条件改为多选

ouqian
memorylkf 1 month ago
parent
commit
0f85e14ef1
1 changed files with 157 additions and 158 deletions
  1. +157
    -158
      src/views/business/comps/template/formConfig/sp/SP0021.js

+ 157
- 158
src/views/business/comps/template/formConfig/sp/SP0021.js View File

@ -1,181 +1,180 @@
export const getBaseInfoFormConfig = ($this) => { export const getBaseInfoFormConfig = ($this) => {
return [
{
type: "cardItem",
config: {
studyMc: {
label: 'template.common.testName',
type: "input",
disabled: true,
},
studySn: {
label: 'template.common.testNumber',
type: "input",
disabled: true,
},
}
return [
{
type: 'cardItem',
config: {
studyMc: {
label: 'template.common.testName',
type: 'input',
disabled: true
}, },
{
type: "conditionItem",
label: 'template.common.testConfigurationConditions',
config: {
pre: {
label: 'template.common.preFill',
type: "select",
multiple: true,
fillType: "preFill",
options: $this.getDictOptions('business_pztj'),
otherCode: "preOther",
},
act: {
label: 'template.common.actualFill',
type: "select",
fillType: "actFill",
otherCode: "actOther",
multiple: true,
compareTo: "pre",
options: $this.getDictOptions('business_pztj')
}
}
studySn: {
label: 'template.common.testNumber',
type: 'input',
disabled: true
}
}
},
{
type: 'conditionItem',
label: 'template.common.testConfigurationConditions',
config: {
pre: {
label: 'template.common.preFill',
type: 'select',
multiple: true,
fillType: 'preFill',
options: $this.getDictOptions('business_pztj'),
otherCode: 'preOther'
}, },
{
type: 'conditionItem',
label: 'template.sp.sp00456.rqcz',
config: {
containerMaterial: {
label: 'template.sp.sp00456.rqcz',
type: 'select',
options: $this.getDictOptions('business_rqcz'),
fillType: 'actFill',
multiple: true,
otherCode: 'containerMaterialOther'
}
}
act: {
label: 'template.common.actualFill',
type: 'select',
fillType: 'actFill',
otherCode: 'actOther',
multiple: true,
compareTo: 'pre',
options: $this.getDictOptions('business_pztj')
}
}
},
{
type: 'conditionItem',
label: 'template.sp.sp00456.rqcz',
config: {
containerMaterial: {
label: 'template.sp.sp00456.rqcz',
type: 'select',
options: $this.getDictOptions('business_rqcz'),
fillType: 'actFill',
multiple: true,
otherCode: 'containerMaterialOther'
}
}
},
{
type: 'cellItem',
label: 'template.sp.sp008.clsj',
config: {
startDate: {
label: 'template.common.startTime',
type: 'input'
}, },
{
type: "cellItem",
label: 'template.sp.sp008.clsj',
config: {
startDate: {
label: 'template.common.startTime',
type: "input",
},
endDate: {
label: 'template.common.endTime',
type: "input",
},
}
endDate: {
label: 'template.common.endTime',
type: 'input'
} }
]
}
}
]
} }
//存储条件 //存储条件
export const getStorageFormConfig = ($this) => { export const getStorageFormConfig = ($this) => {
return [
{
type: "conditionItem",
config: {
storageCondition: {
label: 'template.common.storageConditionLabel',
type: "select",
fillType: "preFill",
options: $this.getDictOptions("business_cctj"),
otherCode: "storageConditionOther",
},
}
return [
{
type: 'conditionItem',
config: {
storageCondition: {
label: 'template.common.storageConditionLabel',
type: 'select',
fillType: 'preFill',
options: $this.getDictOptions('business_cctj'),
multiple: true,
otherCode: 'storageConditionOther'
} }
]
}
}
]
} }
//备注 //备注
export const getRemarkFormConfig = ($this) => { export const getRemarkFormConfig = ($this) => {
return [
{
type: "cellItem",
config: {
remark: {
label: "",
type: "textarea",
fillType: "actFill",
span: 1,
placeholder: 'template.common.remarkPlaceholder',
maxlength: 1000,
rows: 5
}
}
return [
{
type: 'cellItem',
config: {
remark: {
label: '',
type: 'textarea',
fillType: 'actFill',
span: 1,
placeholder: 'template.common.remarkPlaceholder',
maxlength: 1000,
rows: 5
} }
]
}
}
]
} }
export const getYbsmFormConfig = ($this) => { export const getYbsmFormConfig = ($this) => {
return [
{
type: "step",
config: {
zzmc: {
label: '组织名称',
type: "input",
fillType: "actFill",
maxlength: 50
},
sjd: {
label: '时间点',
type: "input",
fillType: "actFill",
maxlength: 50
},
xsbl: {
label: '稀释比例',
type: "inputNumber",
fillType: "actFill",
maxlength: 10
},
xztp: {
label: '选择天平',
type: "yq",
fillType: "actFill",
},
}
return [
{
type: 'step',
config: {
zzmc: {
label: '组织名称',
type: 'input',
fillType: 'actFill',
maxlength: 50
},
sjd: {
label: '时间点',
type: 'input',
fillType: 'actFill',
maxlength: 50
},
xsbl: {
label: '稀释比例',
type: 'inputNumber',
fillType: 'actFill',
maxlength: 10
},
xztp: {
label: '选择天平',
type: 'yq',
fillType: 'actFill'
} }
]
}
}
]
} }
export const getTableColumns = ($this) => { export const getTableColumns = ($this) => {
return [
{
label: '动物编号',
prop: 'dwbh',
width: 280,
bodyType: 'input',
bodyFillType: 'actFill',
},
{
label: '称取重量(g)',
prop: 'cqzl',
width: 280,
bodyType: 'input',
bodyDisabled: true,
bodyFillType: 'actFill',
bodySubFillType: 'actFill',
bodySubType:"button",
bodySubKey:"calcCqzl",
bodySubButtonName:"获取值",
},
{
label: '匀浆溶液理论加入量(ml)',
prop: 'lljrl',
width: 280,
bodyType: 'inputNumber',
bodyFillType: 'actFill',
},
{
label: '匀浆溶液实际加入量(ml)',
prop: 'sjjrl',
width: 280,
bodyType: 'inputNumber',
bodyFillType: 'actFill',
},
]
return [
{
label: '动物编号',
prop: 'dwbh',
width: 280,
bodyType: 'input',
bodyFillType: 'actFill'
},
{
label: '称取重量(g)',
prop: 'cqzl',
width: 280,
bodyType: 'input',
bodyDisabled: true,
bodyFillType: 'actFill',
bodySubFillType: 'actFill',
bodySubType: 'button',
bodySubKey: 'calcCqzl',
bodySubButtonName: '获取值'
},
{
label: '匀浆溶液理论加入量(ml)',
prop: 'lljrl',
width: 280,
bodyType: 'inputNumber',
bodyFillType: 'actFill'
},
{
label: '匀浆溶液实际加入量(ml)',
prop: 'sjjrl',
width: 280,
bodyType: 'inputNumber',
bodyFillType: 'actFill'
}
]
} }

Loading…
Cancel
Save