|
|
@ -472,6 +472,177 @@ export const getParallelColumnsConfig = ($this, sn) => { |
|
|
} |
|
|
} |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
|
|
|
|
// 平行质量配制表格列配制
|
|
|
|
|
|
export const getParallelMassColumnsConfig = ($this, sn) => { |
|
|
|
|
|
return [ |
|
|
|
|
|
{ |
|
|
|
|
|
label: 'template.sp.sp00456.mbrybh', |
|
|
|
|
|
prop: 'targetSolutionCode', |
|
|
|
|
|
bodyType: 'input', |
|
|
|
|
|
bodySubType: 'span', |
|
|
|
|
|
bodySubKey: 'subTargetSolutionCode', |
|
|
|
|
|
bodyFillType: 'preFill', |
|
|
|
|
|
myCodeFields: ['targetSolutionCode', 'subTargetSolutionCode'], //分装的母液编号字段
|
|
|
|
|
|
maxVolumeField: 'actSolutionVolume', //分装的最大量字段
|
|
|
|
|
|
maxVolumeFieldUnit: 'actSolutionVolumeUnit', //分装的最大量单位字段
|
|
|
|
|
|
showWidth: 180, |
|
|
|
|
|
width: 280 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: 'template.sp.sp00456.ysmbrynd', |
|
|
|
|
|
prop: 'ysmbrynd', |
|
|
|
|
|
width: 280, |
|
|
|
|
|
showWidth: 120, |
|
|
|
|
|
headerSelectKey: 'ysmbrynddw', |
|
|
|
|
|
fillType: 'preFill', |
|
|
|
|
|
headerOptions: $this.getDictOptions('business_nddw'), |
|
|
|
|
|
bodyType: 'inputNumber', |
|
|
|
|
|
bodyFillType: 'preFill', |
|
|
|
|
|
bodyMaxlength: 10, |
|
|
|
|
|
headerSelectTo: 'sjmbrynddw' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: 'template.sp.sp00456.sjmbrynd', |
|
|
|
|
|
prop: 'sjmbrynd', |
|
|
|
|
|
width: 280, |
|
|
|
|
|
showWidth: 120, |
|
|
|
|
|
headerSelectKey: 'sjmbrynddw', |
|
|
|
|
|
fillType: 'preFill', |
|
|
|
|
|
headerOptions: $this.getDictOptions('business_nddw'), |
|
|
|
|
|
bodyDisabled: true, |
|
|
|
|
|
bodyType: 'inputNumber', |
|
|
|
|
|
bodyFillType: 'actFill', |
|
|
|
|
|
bodyMaxlength: 10, |
|
|
|
|
|
bodySubPlaceholder: 'template.common.xswsPlaceholder', |
|
|
|
|
|
compareTo: 'ysmbrynd' //比较哪个字段
|
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: 'template.sp.sp00456.ysmbrytj', |
|
|
|
|
|
prop: 'ysmbrytj', |
|
|
|
|
|
width: 280, |
|
|
|
|
|
showWidth: 120, |
|
|
|
|
|
headerSelectKey: 'ysmbrytjdw', |
|
|
|
|
|
fillType: 'preFill', |
|
|
|
|
|
headerOptions: $this.getDictOptions('business_tjdw'), |
|
|
|
|
|
bodyType: 'inputNumber', |
|
|
|
|
|
bodyFillType: 'preFill', |
|
|
|
|
|
bodyMaxlength: 10, |
|
|
|
|
|
headerSelectTo: 'sjmbrytjdw' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: 'template.sp.sp00456.sjmbrytj', |
|
|
|
|
|
prop: 'sjmbrytj', |
|
|
|
|
|
width: 280, |
|
|
|
|
|
showWidth: 120, |
|
|
|
|
|
headerSelectKey: 'sjmbrytjdw', |
|
|
|
|
|
fillType: 'preFill', |
|
|
|
|
|
headerOptions: $this.getDictOptions('business_tjdw'), |
|
|
|
|
|
bodyType: 'inputNumber', |
|
|
|
|
|
bodyFillType: 'actFill', |
|
|
|
|
|
bodyMaxlength: 10, |
|
|
|
|
|
bodySubPlaceholder: 'template.common.xswsPlaceholder', |
|
|
|
|
|
compareTo: 'ysmbrytj' //比较哪个字段
|
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: 'template.sp.sp00456.mbryyxzq', |
|
|
|
|
|
prop: 'targetSolutionCycle', |
|
|
|
|
|
width: 280, |
|
|
|
|
|
showWidth: 160, |
|
|
|
|
|
fillType: 'preFill', |
|
|
|
|
|
bodyType: 'inputNumber', |
|
|
|
|
|
bodySubType: 'select', |
|
|
|
|
|
showBodySub: true, |
|
|
|
|
|
bodySubKey: 'targetSolutionCyclePrecision', |
|
|
|
|
|
bodySubOptions: $this.getDictOptions('business_yxqdw'), |
|
|
|
|
|
bodyFillType: 'preFill', |
|
|
|
|
|
bodySubFillType: 'preFill', |
|
|
|
|
|
bodyMaxlength: 10 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: 'template.sp.sp00456.mbrysxr', |
|
|
|
|
|
prop: 'targetSolutionExpirationDate', |
|
|
|
|
|
showWidth: 120, |
|
|
|
|
|
width: 180, |
|
|
|
|
|
bodyType: 'span' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: 'template.sp.sp00456.ysyybh', |
|
|
|
|
|
prop: 'ysyybh', |
|
|
|
|
|
width: 280, |
|
|
|
|
|
showWidth: 120, |
|
|
|
|
|
bodyType: 'input', |
|
|
|
|
|
bodyFillType: 'preFill' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: 'template.sp.sp00456.sjyybh', |
|
|
|
|
|
prop: 'sjyybh', |
|
|
|
|
|
width: 280, |
|
|
|
|
|
showWidth: 180, |
|
|
|
|
|
bodyType: 'input', |
|
|
|
|
|
bodyFillType: 'actFill', |
|
|
|
|
|
copyFrom: 'ysyybh', |
|
|
|
|
|
compareTo: 'ysyybh' //比较哪个字段
|
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: 'template.sp.sp00456.ysyyzl', |
|
|
|
|
|
prop: 'ysyyzl', |
|
|
|
|
|
headerSelectKey: 'ysyyzldw', |
|
|
|
|
|
fillType: 'preFill', |
|
|
|
|
|
headerOptions: $this.getDictOptions('business_zldw'), |
|
|
|
|
|
width: 280, |
|
|
|
|
|
showWidth: 160, |
|
|
|
|
|
bodyType: 'inputNumber', |
|
|
|
|
|
bodyFillType: 'preFill', |
|
|
|
|
|
bodyMaxlength: 10, |
|
|
|
|
|
headerSelectTo: 'sjyyzldw' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: 'template.sp.sp00456.sjyyzl', |
|
|
|
|
|
prop: 'sjyyzl', |
|
|
|
|
|
fillType: 'preFill', |
|
|
|
|
|
headerSelectKey: 'sjyyzldw', |
|
|
|
|
|
headerOptions: $this.getDictOptions('business_zldw'), |
|
|
|
|
|
width: 280, |
|
|
|
|
|
showWidth: 120, |
|
|
|
|
|
bodyType: 'inputNumber', |
|
|
|
|
|
bodyFillType: 'actFill', |
|
|
|
|
|
bodyDisabled: true, |
|
|
|
|
|
compareTo: 'ysyyzl', //比较哪个字段
|
|
|
|
|
|
bodySubKey: 'ysyyzlButton', |
|
|
|
|
|
bodySubType: 'button', |
|
|
|
|
|
bodySubButtonName:"获取值", |
|
|
|
|
|
bodySubFillType: 'actFill', |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
label: 'template.sp.sp00456.yjxsytj', |
|
|
|
|
|
prop: 'yjxsytj', |
|
|
|
|
|
headerSelectKey: 'yjxsytjdw', |
|
|
|
|
|
fillType: 'preFill', |
|
|
|
|
|
headerOptions: $this.getDictOptions('business_tjdw'), |
|
|
|
|
|
width: 280, |
|
|
|
|
|
showWidth: 120, |
|
|
|
|
|
bodyType: 'inputNumber', |
|
|
|
|
|
bodyFillType: 'preFill', |
|
|
|
|
|
bodyMaxlength: 10, |
|
|
|
|
|
headerSelectTo: 'sjxsytjdw' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: 'template.sp.sp00456.sjxsytj', |
|
|
|
|
|
prop: 'sjxsytj', |
|
|
|
|
|
headerSelectKey: 'sjxsytjdw', |
|
|
|
|
|
fillType: 'preFill', |
|
|
|
|
|
headerOptions: $this.getDictOptions('business_tjdw'), |
|
|
|
|
|
width: 280, |
|
|
|
|
|
showWidth: 120, |
|
|
|
|
|
bodyType: 'inputNumber', |
|
|
|
|
|
bodyFillType: 'actFill', |
|
|
|
|
|
bodyMaxlength: 10, |
|
|
|
|
|
copyFrom: 'yjxsytj', |
|
|
|
|
|
compareTo: 'yjxsytj' //比较哪个字段
|
|
|
|
|
|
} |
|
|
|
|
|
] |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
//阶梯配制
|
|
|
//阶梯配制
|
|
|
export const getLadderFormConfig = ($this) => { |
|
|
export const getLadderFormConfig = ($this) => { |
|
|
@ -545,8 +716,8 @@ export const getLadderFormConfig = ($this) => { |
|
|
] |
|
|
] |
|
|
if (sn === 'LBA007' || sn === 'ADA007') { |
|
|
if (sn === 'LBA007' || sn === 'ADA007') { |
|
|
defaultConfig.unshift(explainConfig) |
|
|
defaultConfig.unshift(explainConfig) |
|
|
}else if (sn === 'GSP004') { |
|
|
|
|
|
defaultConfig[0].config = {...gsp4config1,...defaultConfig[0].config, } |
|
|
|
|
|
|
|
|
} else if (sn === 'GSP004') { |
|
|
|
|
|
defaultConfig[0].config = { ...gsp4config1, ...defaultConfig[0].config, } |
|
|
} |
|
|
} |
|
|
return defaultConfig |
|
|
return defaultConfig |
|
|
} |
|
|
} |
|
|
@ -741,7 +912,62 @@ export const getParalleStepFormConfig = ($this) => { |
|
|
const sn = $this.sn |
|
|
const sn = $this.sn |
|
|
if (sn === 'LBA007' || sn === 'ADA007') { |
|
|
if (sn === 'LBA007' || sn === 'ADA007') { |
|
|
defaultConfig.unshift(explainConfig) |
|
|
defaultConfig.unshift(explainConfig) |
|
|
|
|
|
} else if (sn === 'GSP004') { |
|
|
|
|
|
defaultConfig[0].config = { ...gsp4config1, ...defaultConfig[0].config, } |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return defaultConfig |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//平行质量配制
|
|
|
|
|
|
export const getParalleMassStepFormConfig = ($this) => { |
|
|
|
|
|
const defaultConfig = [ |
|
|
|
|
|
{ |
|
|
|
|
|
type: 'step', |
|
|
|
|
|
config: { |
|
|
|
|
|
jsgs: { |
|
|
|
|
|
label: 'template.gsp.GSP003.calcConditionLabel', |
|
|
|
|
|
type: 'input', |
|
|
|
|
|
fillType: 'preFill', |
|
|
|
|
|
span:1, |
|
|
|
|
|
maxlength: 50 |
|
|
|
|
|
}, |
|
|
|
|
|
sfxyzjfx: { |
|
|
|
|
|
label: 'template.gsp.GSP003.sfxyzjfx', |
|
|
|
|
|
type: "select", |
|
|
|
|
|
fillType: "actFill", |
|
|
|
|
|
options: [ |
|
|
|
|
|
{ label: '是', value: '是' }, |
|
|
|
|
|
{ label: '否', value: '否' } |
|
|
|
|
|
] |
|
|
|
|
|
}, |
|
|
|
|
|
dztp:{ |
|
|
|
|
|
label: 'template.gsp.GSP003.dztp', |
|
|
|
|
|
type: 'yq', |
|
|
|
|
|
fillType: 'actFill', |
|
|
|
|
|
}, |
|
|
|
|
|
xsy: { |
|
|
|
|
|
label: 'template.sp.sp00456.xsy', |
|
|
|
|
|
labelWidth: 80, |
|
|
|
|
|
type: 'input', |
|
|
|
|
|
fillType: 'preFill', |
|
|
|
|
|
subType: 'sj', |
|
|
|
|
|
subKey: 'subSolution', |
|
|
|
|
|
subFillType: 'actFill', |
|
|
|
|
|
maxlength: 20 |
|
|
|
|
|
}, |
|
|
|
|
|
cctj: { |
|
|
|
|
|
label: 'template.sp.sp00456.cctj', |
|
|
|
|
|
labelWidth: 80, |
|
|
|
|
|
type: 'select', |
|
|
|
|
|
fillType: 'preFill', |
|
|
|
|
|
options: $this.getDictOptions('business_cctj'), |
|
|
|
|
|
multiple: true, |
|
|
|
|
|
otherCode: 'paralleStepStorageConditionOther' |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
] |
|
|
return defaultConfig |
|
|
return defaultConfig |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|