From 54ac3b46dfa3c66872c673d5bfe793632e2c62dd Mon Sep 17 00:00:00 2001 From: luojie <125330818@qq.com> Date: Mon, 2 Mar 2026 22:04:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:[=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86][yp0?= =?UTF-8?q?03]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Template/BaseInfoFormPackage.vue | 17 ++- src/components/Template/HandleFormItem.vue | 11 +- src/utils/formPackageCommon.js | 2 +- .../business/comps/template/TemplateTable.vue | 4 +- .../business/comps/template/comps/sp/SP0020.vue | 124 +++++++++++++++++++++ .../comps/template/formConfig/sp/SP0020.js | 15 +++ 6 files changed, 159 insertions(+), 14 deletions(-) create mode 100644 src/views/business/comps/template/comps/sp/SP0020.vue create mode 100644 src/views/business/comps/template/formConfig/sp/SP0020.js diff --git a/src/components/Template/BaseInfoFormPackage.vue b/src/components/Template/BaseInfoFormPackage.vue index bade853..b1739d4 100644 --- a/src/components/Template/BaseInfoFormPackage.vue +++ b/src/components/Template/BaseInfoFormPackage.vue @@ -40,7 +40,7 @@
-
{{ sItem.otherLabel ? $t(sItem.otherLabel) : +
{{ sItem.otherLabel ? $t(sItem.otherLabel) : $t("template.common.other") }}
-
{{ sItem.otherLabel ? $t(sItem.otherLabel) : +
{{ sItem.otherLabel ? $t(sItem.otherLabel) : $t("template.common.other") }}
-
{{ sItem.otherLabel ? $t(sItem.otherLabel) : +
{{ sItem.otherLabel ? $t(sItem.otherLabel) : $t("template.common.other") }}
-
{{ sItem.otherLabel ? $t(sItem.otherLabel) : +
{{ sItem.otherLabel ? $t(sItem.otherLabel) : $t("template.common.other") }}
({ @@ -916,7 +913,7 @@ export default { const { otherValues: oldOtherValues,checkboxValues: oldCheckboxValues } = this.oldCheckboxListValue; const o = { "checkboxListValue":{oldValue:oldCheckboxValues,newValue:checkboxValues,des:""}, - "checkboxListOther":{oldValue:oldOtherValues[this.currentOtherCode],newValue:otherValues[this.currentOtherCode],des:""}, + "checkboxListOther":{oldValue:oldOtherValues[this.currentOtherCode],newValue:otherValues[this.currentOtherCode],des:"样品信息:"}, } return o[this.currentHandleType]; }, @@ -1067,8 +1064,8 @@ export default { isModify = !!this.oldFqyqValue.mainRadio }else if(this.type === "checkboxList"){ const current = this.getCheckboxListInfo(); - recordOldVlaue = `${current.oldValue || ''}`; - recordValue = `${current.newValue || ''}`; + recordOldVlaue = `${current.des+(current.oldValue || '')}`; + recordValue = `${current.des+(current.newValue || '')}`; isModify = !!current.oldValue; } const record = { diff --git a/src/utils/formPackageCommon.js b/src/utils/formPackageCommon.js index 568e8d3..b431518 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-', '拒绝', '部分接受',"污染"] return arr.some((item) => otherArr.includes(item)) } diff --git a/src/views/business/comps/template/TemplateTable.vue b/src/views/business/comps/template/TemplateTable.vue index 1ed5232..eea82a2 100644 --- a/src/views/business/comps/template/TemplateTable.vue +++ b/src/views/business/comps/template/TemplateTable.vue @@ -31,6 +31,7 @@ import SP007 from "./comps/sp/SP007.vue"; import SP008 from "./comps/sp/SP008.vue"; import SP009 from "./comps/sp/SP009.vue"; import SP0019 from "./comps/sp/SP0019.vue"; +import SP0020 from "./comps/sp/SP0020.vue"; import Demo from "./comps/sp/Demo.vue"; //供试品 import GSP001 from "./comps/gsp/GSP001.vue"; @@ -111,7 +112,7 @@ export default { //供试品 GSP001,GSP002, GSP003, GSP004,GSP009, GSP010, //色谱 - SP001, SP003, SP00456,SP007, SP008, SP009,SP0019, + SP001, SP003, SP00456,SP007, SP008, SP009,SP0019,SP0020, // PCR PCR002, PCR003, PCR004, PCR005, //LBA @@ -206,6 +207,7 @@ export default { 'SP017': 'SP008', 'SP018': 'SP008', 'SP019': 'SP0019', + 'SP020': 'SP0020', //供试品 'GSP001': 'GSP001', diff --git a/src/views/business/comps/template/comps/sp/SP0020.vue b/src/views/business/comps/template/comps/sp/SP0020.vue new file mode 100644 index 0000000..18fbaf4 --- /dev/null +++ b/src/views/business/comps/template/comps/sp/SP0020.vue @@ -0,0 +1,124 @@ + + + + + \ No newline at end of file diff --git a/src/views/business/comps/template/formConfig/sp/SP0020.js b/src/views/business/comps/template/formConfig/sp/SP0020.js new file mode 100644 index 0000000..a951969 --- /dev/null +++ b/src/views/business/comps/template/formConfig/sp/SP0020.js @@ -0,0 +1,15 @@ +export const getSynrFormConfig = ($this) => { + return [ + { + type: 'step', + config: { + yqmxh: { + label: '色谱柱型号', + type: 'yq', + fillType: 'actFill', + filledCodes:['mc','bh'], + }, + } + }, + ] +} \ No newline at end of file