|
|
|
@ -27,7 +27,7 @@ |
|
|
|
</CustomTable> |
|
|
|
</div> |
|
|
|
<LineLabel :label="getOperationStepsLabel()" /> |
|
|
|
<div v-if="fillType === 'preFill' && !isPcr234" class="mt-20"> |
|
|
|
<div v-if="fillType === 'preFill' && !isPcr234 && !isGsp4" class="mt-20"> |
|
|
|
<el-button type="primary" @click="handleAddConfig('paralleConfigs')">{{ |
|
|
|
$t('template.common.xzpxpz') |
|
|
|
}}</el-button> |
|
|
|
@ -35,21 +35,39 @@ |
|
|
|
$t('template.common.xzjtpz') |
|
|
|
}}</el-button> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div v-if="isGsp4"> |
|
|
|
<el-button type="primary" @click="handleAddConfig('paralleConfigs')">{{ |
|
|
|
$t('template.common.xzpxpz') |
|
|
|
}}</el-button> |
|
|
|
<el-button type="primary" @click="handleAddConfig('paralleMassConfigs')">{{ |
|
|
|
$t('template.common.xzzlpx') |
|
|
|
}}</el-button> |
|
|
|
<el-button type="primary" @click="handleAddConfig('ladderConfigs')">{{ |
|
|
|
$t('template.common.xztdxs') |
|
|
|
}}</el-button> |
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- 阶梯配制区域 --> |
|
|
|
<div v-for="(ladderConfig, ladderIndex) in formData.ladderConfigs" |
|
|
|
:key="'ladder_' + ladderConfig.id"> |
|
|
|
<LadderConfig :currentFormConfig="ladderStepFormConfig" :currentFormData="ladderConfig" |
|
|
|
:showOperation="fillType === 'actFill' || fillType === 'preFill'" |
|
|
|
:tableColumns="ladderStepColumns" :prefixKey="'ladder_' + ladderIndex" |
|
|
|
:configType="'ladder'" :ref="`ladderRef_${ladderIndex}`" |
|
|
|
:sn = "sn" |
|
|
|
ladderType = "bq" |
|
|
|
:fieldItemLabel="getTableLabel('ladder')" |
|
|
|
:showHeader="!isPcr234" |
|
|
|
:configType="'ladder'" :ref="`ladderRef_${ladderIndex}`" :sn="sn" ladderType="bq" |
|
|
|
:fieldItemLabel="getTableLabel('ladder')" :showHeader="!isPcr234" |
|
|
|
@deleteConfig="deleteConfig('ladderConfigs', ladderConfig)" :fillType="fillType" /> |
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- 质量平行配制区域 --> |
|
|
|
<div v-for="(paralleConfig, paralleIndex) in formData.paralleMassConfigs" |
|
|
|
:key="'zl_paralle_' + paralleConfig.id"> |
|
|
|
<LadderConfig :currentFormConfig="paralleStepFormConfig" :currentFormData="paralleConfig" |
|
|
|
:showOperation="fillType === 'actFill' || fillType === 'preFill'" |
|
|
|
:tableColumns="paralleStepColumns" :prefixKey="'zl_paralle_' + paralleIndex" |
|
|
|
:configType="'paralle'" :ref="`zl_paralleRef_${paralleIndex}`" |
|
|
|
:fieldItemLabel="getTableLabel('zl_paralle')" :showHeader="!isPcr234" |
|
|
|
@deleteConfig="deleteConfig('paralleMassConfigs', paralleConfig)" :fillType="fillType" /> |
|
|
|
</div> |
|
|
|
<!-- 平行配制区域 --> |
|
|
|
<div v-for="(paralleConfig, paralleIndex) in formData.paralleConfigs" |
|
|
|
:key="'paralle_' + paralleConfig.id"> |
|
|
|
@ -57,8 +75,7 @@ |
|
|
|
:showOperation="fillType === 'actFill' || fillType === 'preFill'" |
|
|
|
:tableColumns="paralleStepColumns" :prefixKey="'paralle_' + paralleIndex" |
|
|
|
:configType="'paralle'" :ref="`paralleRef_${paralleIndex}`" |
|
|
|
:fieldItemLabel="getTableLabel('paralle')" |
|
|
|
:showHeader="!isPcr234" |
|
|
|
:fieldItemLabel="getTableLabel('paralle')" :showHeader="!isPcr234" |
|
|
|
@deleteConfig="deleteConfig('paralleConfigs', paralleConfig)" :fillType="fillType" /> |
|
|
|
</div> |
|
|
|
<template v-if="sn === 'LBA005'"> |
|
|
|
@ -194,7 +211,7 @@ export default { |
|
|
|
return getLadderFormConfig(this); |
|
|
|
}, |
|
|
|
paralleStepColumns() { |
|
|
|
return getParallelColumnsConfig(this,this.sn); |
|
|
|
return getParallelColumnsConfig(this, this.sn); |
|
|
|
}, |
|
|
|
paralleStepColumns1() { |
|
|
|
return getParallelColumnsConfig(this); |
|
|
|
@ -205,7 +222,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
const labArr = ["LBA005", "LBA007","ADA005","ADA007"]; |
|
|
|
const labArr = ["LBA005", "LBA007", "ADA005", "ADA007"]; |
|
|
|
const pcr234Arr = ["PCR002", "PCR003", "PCR004"]; |
|
|
|
const pcr34Arr = ["PCR003", "PCR004"]; |
|
|
|
const sn = this.sn || ''; |
|
|
|
@ -223,6 +240,7 @@ export default { |
|
|
|
isSp: sn.startsWith('SP'),//是否是色谱 |
|
|
|
isPcr: sn.startsWith('PCR'),//是否是PCR |
|
|
|
isGsp: sn.startsWith('GSP'),//是否是供试品 |
|
|
|
isGsp4: sn === "GSP004",//是否是供试品 |
|
|
|
isPcr234: pcr234Arr.includes(this.sn),//是否是PCR234 |
|
|
|
isPcr34: pcr34Arr.includes(this.sn),//是否是PCR34 |
|
|
|
}; |
|
|
|
@ -235,7 +253,7 @@ export default { |
|
|
|
}, 0); |
|
|
|
} |
|
|
|
// 如果是PCR234,默认添加一个阶梯配制 并且不支持增删 |
|
|
|
if(this.isPcr234 &&!this.formData.ladderConfigs){ |
|
|
|
if (this.isPcr234 && !this.formData.ladderConfigs) { |
|
|
|
this.handleAddConfig("ladderConfigs"); |
|
|
|
} |
|
|
|
}, |
|
|
|
@ -252,10 +270,17 @@ export default { |
|
|
|
}, |
|
|
|
// 获取表格标签 |
|
|
|
getTableLabel(type) { |
|
|
|
const obj = { |
|
|
|
let obj = { |
|
|
|
"paralle": "template.common.pxpz",//标准曲线配制 |
|
|
|
"ladder": "template.common.jtpz",//阶梯配制 |
|
|
|
} |
|
|
|
if(this.isGsp4){ |
|
|
|
obj = { |
|
|
|
"paralle": "template.common.pxpz",//平行配置 |
|
|
|
"ladder": "template.common.tdxs",//梯度稀释 |
|
|
|
"zl_paralle": "template.common.zlpx",//质量平行 |
|
|
|
} |
|
|
|
} |
|
|
|
return obj[type] || '';//表格标签 |
|
|
|
}, |
|
|
|
// 删除选板信息行 |
|
|
|
@ -390,7 +415,7 @@ export default { |
|
|
|
let conditionData = {}, jcbData = []; |
|
|
|
if (this.isSp) { |
|
|
|
conditionData = this.$refs.storageConditionRef?.getFilledFormData(); |
|
|
|
} else if(this.isLba) { |
|
|
|
} else if (this.isLba) { |
|
|
|
jcbData = this.$refs.jcbRef.getFilledFormData(); |
|
|
|
} |
|
|
|
const remarkData = this.$refs.remarkRef.getFilledFormData(); |
|
|
|
@ -638,7 +663,7 @@ export default { |
|
|
|
const stepResource = this.getStepResource() |
|
|
|
this.resourceTmp = uniqeResource(tmpResource, stepResource.sjResource || []) |
|
|
|
this.yqResourceTmp = stepResource.yqResource || [] |
|
|
|
console.log(this.resourceTmp,"resourceTmp") |
|
|
|
console.log(this.resourceTmp, "resourceTmp") |
|
|
|
return this.resourceTmp; |
|
|
|
}, |
|
|
|
getStepResource() { |
|
|
|
|