|
|
@ -177,9 +177,11 @@ export default { |
|
|
label: 'template.sp.sp008.rqcz', |
|
|
label: 'template.sp.sp008.rqcz', |
|
|
config: { |
|
|
config: { |
|
|
rqcz: { |
|
|
rqcz: { |
|
|
type: "input", |
|
|
|
|
|
|
|
|
type: "select", |
|
|
|
|
|
multiple: true, |
|
|
fillType: "actFill", |
|
|
fillType: "actFill", |
|
|
maxlength: 50 |
|
|
|
|
|
|
|
|
options: this.getDictOptions('business_rqcz'), |
|
|
|
|
|
otherCode: "rqczOther", |
|
|
}, |
|
|
}, |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
@ -292,14 +294,12 @@ export default { |
|
|
}, |
|
|
}, |
|
|
//获取目标溶液编号 |
|
|
//获取目标溶液编号 |
|
|
async getCode(v){ |
|
|
async getCode(v){ |
|
|
debugger |
|
|
|
|
|
const {stepTableFormData = []} = v; |
|
|
const {stepTableFormData = []} = v; |
|
|
if(stepTableFormData && stepTableFormData.length>0 && !stepTableFormData[0].bhCode){ |
|
|
if(stepTableFormData && stepTableFormData.length>0 && !stepTableFormData[0].bhCode){ |
|
|
const result = await getLatestSn({ |
|
|
const result = await getLatestSn({ |
|
|
count: stepTableFormData.length, |
|
|
count: stepTableFormData.length, |
|
|
}) |
|
|
}) |
|
|
if(result.code == 200){ |
|
|
if(result.code == 200){ |
|
|
debugger |
|
|
|
|
|
if(stepTableFormData.length===0){ |
|
|
if(stepTableFormData.length===0){ |
|
|
this.$refs.tableRef.updateDataSourceByRowIndex(0,{ |
|
|
this.$refs.tableRef.updateDataSourceByRowIndex(0,{ |
|
|
[bhCode]: result.data, |
|
|
[bhCode]: result.data, |
|
|
@ -309,7 +309,6 @@ export default { |
|
|
this.$refs.tableRef.updateDataSourceByRowIndex(i,{ |
|
|
this.$refs.tableRef.updateDataSourceByRowIndex(i,{ |
|
|
bhCode: result.data[i], |
|
|
bhCode: result.data[i], |
|
|
}) |
|
|
}) |
|
|
debugger |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -323,27 +322,31 @@ export default { |
|
|
let content = await this.validFormFields(["baseInfoRef", "storageConditionRef", "stepFormPackageRef","tableRef" ,"stepRef", "remarkRef"]); |
|
|
let content = await this.validFormFields(["baseInfoRef", "storageConditionRef", "stepFormPackageRef","tableRef" ,"stepRef", "remarkRef"]); |
|
|
//生成resource |
|
|
//生成resource |
|
|
let tmpResource = [] |
|
|
let tmpResource = [] |
|
|
debugger |
|
|
|
|
|
//配置的试剂 |
|
|
|
|
|
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, |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let tableList = content.stepTableFormData |
|
|
|
|
|
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, |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
//使用的试剂 |
|
|
//使用的试剂 |
|
|
this.resource=tmpResource |
|
|
this.resource=tmpResource |
|
|
|
|
|
|
|
|
return content; |
|
|
return content; |
|
|
}, |
|
|
}, |
|
|
async onSave() { |
|
|
async onSave() { |
|
|
|