Browse Source

fix:[模板管理][生物样品分析方法学样品制备表(Recovery)]

lkf
HanLong 3 months ago
parent
commit
c75cfe0c4f
2 changed files with 57 additions and 27 deletions
  1. +53
    -23
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/Recovery.vue
  2. +4
    -4
      src/views/business/comps/template/formConfig/SWYPFXFFXYPZBBTableConfig.js

+ 53
- 23
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/Recovery.vue View File

@ -292,8 +292,8 @@ export default {
formData: {
immediate: true,
handler(v) {
if (!v.targetCodeSn && this.fillType === "actFill") {
this.getCode();
if (this.fillType === "actFill") {
this.getCode(v);
}
}
}
@ -350,7 +350,7 @@ export default {
}
},
//
async getCode() {
async getCode(v) {
//
const {stepTableFormData = []} = v;
if(stepTableFormData && stepTableFormData.length>0 && !stepTableFormData[0].bhCode){
@ -419,29 +419,59 @@ export default {
async getFormData() {
let content = await this.validFormFields(["baseInfoRef", "storageConditionRef", "stepFormPackageRef", "tableRef", "stepRef",
"rongyeTableRef", "rongyeStepFormPackageRef", "remarkRef"]);
console.log(content)
console.log(content)
//resource
let tmpResource = []
//
tmpResource.push({
mc: content.targetName,
bh: content.targetCode + content.targetCodeSn,
ph: '',
nd: content.targetActConcentration + content.targetActConcentrationUnit,
source: 'ELN配制',
sxrq: content.expireDate,
ndz: content.targetActConcentration,
nddw: content.targetActConcentrationUnit,
kc: content.targetActVolume,
kcdw: content.targetActVolumeUnit,
syl: null,
syldw: content.targetActVolumeUnit,
yxzq: content.effectivePeriod,
yxzqdw: content.effectivePeriodUnit,
})
//使
this.resource = tmpResource
let tableList = content.stepTableFormData
if(tableList && tableList.length>0){
for(let i=0;i<tableList.length;i++){
//
let item = tableList[i]
tmpResource.push({
mc: null,
bh: item.bh+item.bhCode,
ph: null,
nd: item.hhwznd + content.headerSelectFields.hhwzndUnit,
source: 'ELN配制',
sxrq: null,
ndz: item.hhwznd,
nddw: content.headerSelectFields.hhwzndUnit,
kc: item.sjjzxql+item.sjryxql,//todo -
kcdw: content.headerSelectFields.sjryxqlUnit || content.headerSelectFields.sjjzxqlUnit,//todo --
syl: null,
syldw:content.headerSelectFields.sjryxqlUnit || content.headerSelectFields.sjjzxqlUnit,//todo --,
yxzq:null,
yxzqdw:null,
})
}
}
tableList = content.stepTableFormData_1
if(tableList && tableList.length>0){
for(let i=0;i<tableList.length;i++){
//
let item = tableList[i]
tmpResource.push({
mc: null,
bh: item.bh+item.bhCode,
ph: null,
nd: item.hhwznd + content.headerSelectFields.hhwzndUnit,
source: 'ELN配制',
sxrq: null,
ndz: item.hhwznd,
nddw: content.headerSelectFields.hhwzndUnit,
kc: item.sjryxql+item.sjgzyxql + item.sjxsyxql,//todo -
kcdw: content.headerSelectFields.sjryxqlUnit || content.headerSelectFields.sjjzxqlUnit,//todo --
syl: null,
syldw:content.headerSelectFields.sjryxqlUnit || content.headerSelectFields.sjjzxqlUnit,//todo --,
yxzq:null,
yxzqdw:null,
})
}
}
//使
this.resource=tmpResource
return content;
},
async onSave() {

+ 4
- 4
src/views/business/comps/template/formConfig/SWYPFXFFXYPZBBTableConfig.js View File

@ -178,8 +178,8 @@ export const getSWYPFXFFXYPZBBTQHSLTableConfig = ($this, selectKey) => {
bodyType: 'inputNumber',
bodyFillType: 'actFill',
bodyMaxlength: 10,
bodyCompareTo: 'yjjzxql',
copyFrom: 'yjjzxql'
bodyCompareTo: 'yjgzyxql',
copyFrom: 'yjgzyxql'
},
{
label: 'template.sp.sp009.yjxsyxql',
@ -202,8 +202,8 @@ export const getSWYPFXFFXYPZBBTQHSLTableConfig = ($this, selectKey) => {
bodyType: 'inputNumber',
bodyFillType: 'actFill',
bodyMaxlength: 10,
bodyCompareTo: 'yjjzxql',
copyFrom: 'yjjzxql'
bodyCompareTo: 'yjxsyxql',
copyFrom: 'yjxsyxql'
},
{
label: 'template.sp.sp008.hhwznd',

Loading…
Cancel
Save