-
@@ -105,22 +60,6 @@ export default {
},
},
computed: {
- // 操作步骤表单配置
- jcbColumns() {
- return [{
- label: 'template.lba.lba002.jcbmc',
- prop: 'jcb',
- bodyType: 'input',
- bodyFillType: 'preFill',
- width: 280,
- },{
- label: '',
- prop: 'jcbBh',
- bodyType: 'jcb',
- bodyFillType: 'actFill',
- width: 280
- }]
- },
// 备注表单配置
remarkConig() {
return [
@@ -159,7 +98,7 @@ export default {
methodCode: {
label: 'template.common.methodCode',
type: "input",
- fillType: "preFill",
+ fillType: "actFill",
maxlength: 50
},
versionNum: {
@@ -173,30 +112,21 @@ export default {
},
{
type: "conditionItem",
- label: 'template.lba.lba002.cztj',
+ label: 'template.lba.lba006.fxtj',
config: {
- pre: {
- label: 'template.common.preFill',
- type: "select",
- multiple: true,
- fillType: "preFill",
- options: this.getDictOptions('business_pztj'),
- otherCode: "preOther",
- },
act: {
label: 'template.common.actualFill',
type: "select",
fillType: "actFill",
otherCode: "actOther",
multiple: true,
- compareTo: "pre",
options: this.getDictOptions('business_pztj')
}
}
},
{
type: "cellItem",
- label: 'template.lba.lba002.czsj',
+ label: 'template.lba.lba006.fxsj',
config: {
startDate: {
label: 'template.common.startTime',
@@ -210,102 +140,37 @@ export default {
}
]
},
- // 附件表单配置
- getFjFormConfig() {
+ paralleStepFormConfig(){
return [
{
- type: "attachment",
+ type: 'step',
config: {
- attTitle: {
- label: 'template.lba.lba003.fj',
- type: "attachment",
+ jcb: {
+ label: 'template.lba.lba006.jcb',
+ type: 'jcb',
+ fillType: 'actFill',
+ maxlength: 20
+ },
+ jg: {
+ label: 'template.lba.lba006.jg',
+ type: "select",
fillType: "actFill",
+ otherCode: "jgOther",
+ otherMaxlength: 100,
+ multiple: false,
+ options: this.getDictOptions('business_lba_jg')
},
+ sjwjm: {
+ span:1,
+ label: 'template.lba.lba006.sjwjm',
+ type: 'input',
+ fillType: 'actFill',
+ maxlength: 100
+ }
}
}
]
},
- paralleStepFormConfig(){
- return [
- {
- type: 'step',
- config: {
- jz: {
- label: 'template.lba.lba004.jzmc',
- type: 'input',
- fillType: 'preFill',
- subType: 'sj',
- subKey: 'jzCode',
- subFillType: 'actFill',
- maxlength: 20
- }
- }
- }
- ]
- },
- paralleStepColumns(){
- return [
- {
- label: 'template.lba.lba004.xsbs',
- prop: 'xsbs',
- width: 150,
- showWidth: 120,
- bodyType: 'input',
- bodyFillType: 'preFill'
- },
- {
- label: 'template.lba.lba004.ysypjrz',
- prop: 'ysypjrz',
- width: 250,
- showWidth: 120,
- fillType: 'preFill',
- bodyType: 'inputNumber',
- bodyFillType: 'preFill',
- headerSelectKey: 'ysypjrzUnit',
- headerSelectTo: 'sjypjrzUnit',
- headerOptions: this.getDictOptions('business_tjdw'),
- },
- {
- label: 'template.lba.lba004.sjypjrz',
- prop: 'sjypjrz',
- width: 250,
- showWidth: 120,
- fillType: 'preFill',
- bodyType: 'inputNumber',
- bodyFillType: 'actFill',
- compareTo: 'ysypjrz',
- copyFrom: 'ysypjrz',
- headerSelectKey: 'sjypjrzUnit',
- headerOptions: this.getDictOptions('business_tjdw'),
- },
- {
- label: 'template.lba.lba004.ysjzjrz',
- prop: 'ysjzjrz',
- width: 250,
- showWidth: 120,
- fillType: 'preFill',
- bodyType: 'inputNumber',
- bodyFillType: 'preFill',
- headerSelectKey: 'ysjzjrzUnit',
- headerSelectTo: 'sjjzjrzUnit',
- headerOptions: this.getDictOptions('business_tjdw'),
- },
- {
- label: 'template.lba.lba004.sjjzjrz',
- prop: 'sjjzjrz',
- width: 250,
- showWidth: 120,
- fillType: 'preFill',
- bodyType: 'inputNumber',
- bodyFillType: 'actFill',
- compareTo: 'ysjzjrz',
- copyFrom: 'ysjzjrz',
- headerSelectKey: 'sjjzjrzUnit',
- headerOptions: this.getDictOptions('business_tjdw'),
- }
- ]
- }
-
},
data() {
return {
@@ -313,9 +178,7 @@ export default {
};
},
mounted() {
- if(this.fillType === "preFill"){
- this.handleAddParalle(true);
- }
+ this.handleAddParalle(true);
},
methods: {
//获取已填写的表单数据
From fdfd723f8f6573af5a0af0be16561021aec31a75 Mon Sep 17 00:00:00 2001
From: memorylkf <312904636@qq.com>
Date: Wed, 11 Feb 2026 20:28:21 +0800
Subject: [PATCH 10/10] =?UTF-8?q?feat:=20[=E6=A8=A1=E6=9D=BF=E7=AE=A1?=
=?UTF-8?q?=E7=90=86]=20LBA006=20=E6=8B=92=E7=BB=9D=E5=92=8C=E9=83=A8?=
=?UTF-8?q?=E5=88=86=E6=8E=A5=E5=8F=97=E5=A2=9E=E5=8A=A0=E5=85=B6=E4=BB=96?=
=?UTF-8?q?=E8=BE=93=E5=85=A5=E6=A1=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/utils/formPackageCommon.js | 2 +-
.../business/comps/template/comps/lba/LBA006.vue | 75 ++--------------------
.../comps/template/mixins/templateMixin.js | 2 +
3 files changed, 7 insertions(+), 72 deletions(-)
diff --git a/src/utils/formPackageCommon.js b/src/utils/formPackageCommon.js
index b14d1cc..d28af7d 100644
--- a/src/utils/formPackageCommon.js
+++ b/src/utils/formPackageCommon.js
@@ -5,7 +5,7 @@ export const isShowOther = (v = [], col) => {
}
// 确保v是数组类型,以避免类型错误
const arr = Array.isArray(v) ? v : [v]
- const otherArr = ['其他', '遮光', 'CA-QC Dilution-']
+ const otherArr = ['其他', '遮光', 'CA-QC Dilution-', '拒绝', '部分接受']
//和凡哥商量,只要value为负数都显示其他
return arr.some((item) => otherArr.includes(item))
}
diff --git a/src/views/business/comps/template/comps/lba/LBA006.vue b/src/views/business/comps/template/comps/lba/LBA006.vue
index 13f3578..cc9270c 100644
--- a/src/views/business/comps/template/comps/lba/LBA006.vue
+++ b/src/views/business/comps/template/comps/lba/LBA006.vue
@@ -155,6 +155,7 @@ export default {
label: 'template.lba.lba006.jg',
type: "select",
fillType: "actFill",
+ otherLabel: " ",
otherCode: "jgOther",
otherMaxlength: 100,
multiple: false,
@@ -184,8 +185,6 @@ export default {
//获取已填写的表单数据
getFilledFormData() {
const baseData = this.$refs.baseInfoRef.getFilledFormData();
- const jcbData = this.$refs.jcbRef.getFilledFormData();
- const fjData = this.$refs.fjRef.getFilledFormData();
const remarkData = this.$refs.remarkRef.getFilledFormData();
// 获取所有平行配制数据
@@ -193,21 +192,15 @@ export default {
if (this.formData.paralleConfigs && this.formData.paralleConfigs.length > 0) {
for (let i = 0; i < this.formData.paralleConfigs.length; i++) {
const paralleFormData = this.$refs[`paralleStepFormPackageRef_${i}`][0].getFilledFormData();
- const paralleTableFormData = this.$refs[`paralleStepTableRef_${i}`][0].getFilledFormData();
- const paralleStepData = this.$refs[`paralleStepRef_${i}`][0].getFilledFormData();
paralleConfigsData.push({
...paralleFormData,
- ...paralleTableFormData,
- paralleStepData: paralleStepData.stepData,
showParalleConfig: true
});
}
}
return {
...baseData,
- ...jcbData,
- ...fjData,
...remarkData,
paralleConfigs: paralleConfigsData,
}
@@ -225,79 +218,27 @@ export default {
//只做校验
async validFields() {
// 构建需要验证的引用数组
- let refsToValidate = ["baseInfoRef","jcbRef","fjRef", "remarkRef"];
+ let refsToValidate = ["baseInfoRef", "remarkRef"];
// 添加平行配制相关的引用
if (this.formData.paralleConfigs && this.formData.paralleConfigs.length > 0) {
for (let i = 0; i < this.formData.paralleConfigs.length; i++) {
refsToValidate.push(`paralleStepFormPackageRef_${i}`);
- refsToValidate.push(`paralleStepTableRef_${i}`);
- refsToValidate.push(`paralleStepRef_${i}`);
}
}
return await this.validFormFields(refsToValidate);
},
getResource() {
let content = this.getFilledFormData();
- //生成resource
- let tmpResource = []
- if (this.fillType === "actFill") {
- //平行配置
- if (content.paralleConfigs && content.paralleConfigs.length > 0) {
- for (let i = 0; i < content.paralleConfigs.length; i++) {
- let paralleConfigs = content.paralleConfigs[i]
- let stepTableFormData = paralleConfigs.stepTableFormData
- for (let j = 0; j < stepTableFormData.length; j++) {
- //稀释液
- tmpResource.push({
- mc: null,
- bh: paralleConfigs.jzCode,
- ph: null,
- nd: null,
- nddw: null,
- ndz: null,
- ly: null,
- sxrq: null,
- kc: null,
- kcdw: null,
- type: 1,
- syl: stepTableFormData[j].sjjzjrz,
- syldw: paralleConfigs.headerSelectFields.sjjzjrzUnit,
- yxzq: null,
- yxzqdw: null,
- })
- }
- }
- }
- }
- if (tmpResource.length > 0) {
- tmpResource = uniqeResourceOne(tmpResource)
- }
//使用的试剂、仪器
- const stepResource = this.getStepResource()
- this.resourceTmp = uniqeResource(tmpResource, stepResource.sjResource || [])
- this.yqResourceTmp = stepResource.yqResource || []
- this.resourceTmp = tmpResource
+ this.resourceTmp = []
+ this.yqResourceTmp = []
return this.resourceTmp;
},
- getStepResource() {
- const sjResource = [], yqResource = [];
- if (this.formData.paralleConfigs && this.formData.paralleConfigs.length > 0) {
- for (let i = 0; i < this.formData.paralleConfigs.length; i++) {
- const paralleResource = this.$refs[`paralleStepRef_${i}`][0].getStepResource();
- sjResource.push(...paralleResource.sjResource);
- yqResource.push(...paralleResource.yqResource);
- }
- }
- //去重
- const { sj, yq } = duplicateResource(sjResource, yqResource)
- return { sjResource: sj, yqResource: yq };
- },
//保存
async onSave() {
const formData = this.getStepResource();
console.log(formData, "formData")
-
},
//新增平行配制
handleAddParalle(init) {
@@ -312,8 +253,6 @@ export default {
}
// 添加新的平行配制配置
this.formData.paralleConfigs.push({
- paralleStepData: [],
- paralleTableFormData: [],
showParalleConfig: true
});
}
@@ -326,12 +265,6 @@ export default {
}
this.formData.paralleConfigs.splice(index, 1);
},
- deleteJcbRow(rowIndex){
- const jcbRef = this.$refs['jcbRef'];
- if (jcbRef) {
- jcbRef.deleteRow(rowIndex);
- }
- },
// 删除表格行
deleteRow(rowIndex, type, configIndex = 0) {
// 根据类型删除对应的表格行
diff --git a/src/views/business/comps/template/mixins/templateMixin.js b/src/views/business/comps/template/mixins/templateMixin.js
index 87ba982..dbf043b 100644
--- a/src/views/business/comps/template/mixins/templateMixin.js
+++ b/src/views/business/comps/template/mixins/templateMixin.js
@@ -27,6 +27,8 @@ export default {
'business_sp_xskkx', //色谱-编号-稀释可靠性
'business_sp_cbydb', //色谱-编号-储备液对比
'business_pcr_gzy', // PCR-编号-工作液
+
+ 'business_lba_jg' // LBA006-结果
],
props: {
templateData: {