Browse Source

feat: [模板] 生物样品分析方法学样品制备表(准确度与精密度)

lkf
memorylkf 3 months ago
parent
commit
228f6732ac
1 changed files with 27 additions and 24 deletions
  1. +27
    -24
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/ZQDYJMD.vue

+ 27
- 24
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/ZQDYJMD.vue View File

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

Loading…
Cancel
Save