diff --git a/src/components/Template/Step.vue b/src/components/Template/Step.vue index 328a47d..6267f5c 100644 --- a/src/components/Template/Step.vue +++ b/src/components/Template/Step.vue @@ -103,6 +103,24 @@ import cl from './StepComponents/b/cl.vue';//表配置-称量 //表配置-孵育:使用溶液-孵育 //表配置-复溶:使用溶液-复溶 + +//生物样品分析 +//生物样品分析-解冻:使用溶液-解冻 +//生物样品分析-涡旋混匀:使用溶液-涡旋混匀 +//生物样品分析-选择容器:使用溶液-选择容器 +import jryp from './StepComponents/swypfx/jryp.vue';//生物样品分析-加入样品 +//生物样品分析-衍生反应:使用溶液-离心 +import hhspe from './StepComponents/swypfx/hhspe.vue';//生物样品分析-活化(SPE) +//生物样品分析-平衡(SPE):使用溶液-活化(SPE) +//生物样品分析-上样(SPE):使用溶液-活化(SPE) +//生物样品分析-淋洗(SPE):使用溶液-活化(SPE) +//生物样品分析-洗脱(SPE):使用溶液-活化(SPE) +import zyfc from './StepComponents/swypfx/zyfc.vue';//生物样品分析-转移(分层) +//生物样品分析-氮吹:使用溶液-氮吹 +//生物样品分析-正压:使用溶液-正压 +//生物样品分析-孵育:使用溶液-孵育 +//生物样品分析-复溶:使用溶液-复溶 + import { public_templateStepList } from '@/api/business/public/public'; @@ -223,6 +241,11 @@ export default { //表配置 jrry_b, cl, + + //生物样品分析 + jryp, + hhspe, + zyfc }, computed: { stepComponentMap() { @@ -280,8 +303,8 @@ export default { //标配配置 'jrry_b': 'jrry_b', 'cl': 'cl', - 'lx_b': 'lx', - 'cs_b': 'cs', + 'lx_b': 'Lx', + 'cs_b': 'Cs', 'hwhy_b': 'Hwhy', 'zyhy_b': 'Zyhy', 'wxhy_b': 'Wxhy', @@ -298,6 +321,19 @@ export default { 'jd_b': 'Jd', 'fy_b': 'Fy', 'fr_b': 'Fr', + + //生物样品分析 + 'jd_swypfx': 'Jd', + 'jryp': 'jryp', + 'ysfy': 'Lx', + 'hhspe': 'hhspe', + + 'phspe': 'hhspe', + 'syspe': 'hhspe', + 'lxspe': 'hhspe', + 'xtspe': 'hhspe', + 'zyfc': 'zyfc', + } } return this.componentMap @@ -339,6 +375,7 @@ export default { }, methods: { getStepList(){ + debugger public_templateStepList({templateId:this.templateData.templateId}).then(response => { let options = [] _.forEach(response.data,(item)=>{ diff --git a/src/components/Template/StepComponents/ry/fy.vue b/src/components/Template/StepComponents/ry/fy.vue index da8de0a..e893c5f 100644 --- a/src/components/Template/StepComponents/ry/fy.vue +++ b/src/components/Template/StepComponents/ry/fy.vue @@ -40,7 +40,7 @@ export default { fillType: "preFill", }, text3: { - label: "实际条件为", + label: "实际设置条件为", type: "text", }, sjtj: { diff --git a/src/components/Template/StepComponents/ry/jd.vue b/src/components/Template/StepComponents/ry/jd.vue index 40b1ca1..f9fc081 100644 --- a/src/components/Template/StepComponents/ry/jd.vue +++ b/src/components/Template/StepComponents/ry/jd.vue @@ -21,7 +21,107 @@ export default { }, computed: { formConfig() { - let config = [{ + let config = this.sn==='jd_swypfx'? + [{ + config: { + text1: { + label: "将上述样品预计放置于", + type: "text", + }, + ccwz: { + type: "select", + options: this.getDictOptions("business_ccwz"), + fillType: "preFill", + otherCode: "ccwzOther", + }, + text3: { + label: "实际放置于", + type: "text", + }, + sjccwz: { + type: "select", + options: this.getDictOptions("business_ccwz"), + fillType: "actFill", + otherCode: "sjccwzOther", + compareTo: "ccwz", + }, + text4: { + label: "位置,其环境条件预计为", + type: "text", + }, + yjwd: { + type: "select", + options: this.getDictOptions("business_wddw"), + fillType: "preFill", + otherCode: "yjwdOther", + }, + yjhj: { + type: "select", + options: this.getDictOptions("business_hjxx"), + fillType: "preFill", + otherCode: "yjhjOther", + }, + text5: { + label: ",实际条件为", + type: "text", + }, + sjwd: { + type: "select", + options: this.getDictOptions("business_wddw"), + fillType: "actFill", + otherCode: "sjwdOther", + compareTo: "yjwd", + }, + sjhj: { + type: "select", + options: this.getDictOptions("business_hjxx"), + fillType: "actFill", + otherCode: "sjhjOther", + compareTo: "yjhj", + }, + text6: { + label: ",放置", + type: "text", + }, + sr1:{ + type: "input", + fillType: "preFill", + }, + text7:{ + type:"text", + label:",解冻", + }, + startDate: { + type: "input", + fillType: "actFill", + disabled: true, + }, + button1:{ + type:"button", + buttonName:"开始", + }, + text8:{ + type:"text", + label:",解冻", + }, + endDate: { + type: "input", + fillType: "actFill", + disabled: true, + }, + button2:{ + type:"button", + buttonName:"结束", + }, + text9: { + type: "text", + label: "。", + }, + + + } + }]: + [{ config: { text1: { label: "将", diff --git a/src/components/Template/StepComponents/ry/lx.vue b/src/components/Template/StepComponents/ry/lx.vue index 4bb113d..86e0fa9 100644 --- a/src/components/Template/StepComponents/ry/lx.vue +++ b/src/components/Template/StepComponents/ry/lx.vue @@ -23,7 +23,7 @@ export default { let config = [{ config: { text1: { - label: "使用离心机", + label: this.sn==='ysfy'?"使用恒温混匀仪":"使用离心机", type: "text", }, yq: { @@ -110,7 +110,7 @@ export default { fillType: "preFill", }, text8: { - label: ",进行离心。离心", + label: this.sn==='ysfy'?",进行衍生反应,反应":",进行离心。离心", type: "text", }, startDate: { diff --git a/src/components/Template/StepComponents/swypfx/hhspe.vue b/src/components/Template/StepComponents/swypfx/hhspe.vue new file mode 100644 index 0000000..b6d686e --- /dev/null +++ b/src/components/Template/StepComponents/swypfx/hhspe.vue @@ -0,0 +1,91 @@ + + + + + + \ No newline at end of file diff --git a/src/components/Template/StepComponents/swypfx/jryp.vue b/src/components/Template/StepComponents/swypfx/jryp.vue new file mode 100644 index 0000000..8d9ada2 --- /dev/null +++ b/src/components/Template/StepComponents/swypfx/jryp.vue @@ -0,0 +1,67 @@ + + + + + + \ No newline at end of file diff --git a/src/components/Template/StepComponents/swypfx/zyfc.vue b/src/components/Template/StepComponents/swypfx/zyfc.vue new file mode 100644 index 0000000..016a9c5 --- /dev/null +++ b/src/components/Template/StepComponents/swypfx/zyfc.vue @@ -0,0 +1,79 @@ + + + + + + \ No newline at end of file diff --git a/src/lang/en/template/pcr.js b/src/lang/en/template/pcr.js index e5ae109..ff5c6ca 100644 --- a/src/lang/en/template/pcr.js +++ b/src/lang/en/template/pcr.js @@ -49,6 +49,11 @@ export default { }, pcr007: { dztpbh: '电子天平编号', + ypmc: '样品名称', + cyqypgsjyjtjtj: '采样前样品管试剂预计添加体积', + cyqypgsjsjtjtj: '采样前样品管试剂实际添加体积', + cygzl: '采集管重量', + czsj: '称重时间', clpbh: 'Analysis Batch Number', ypmc: '样品名称', ypcsnd: '样品初始浓度', diff --git a/src/lang/zh/template/pcr.js b/src/lang/zh/template/pcr.js index 80f8fe1..919028d 100644 --- a/src/lang/zh/template/pcr.js +++ b/src/lang/zh/template/pcr.js @@ -48,6 +48,11 @@ export default { }, pcr007: { dztpbh: '电子天平编号', + ypmc: '样品名称', + cyqypgsjyjtjtj: '采样前样品管试剂预计添加体积', + cyqypgsjsjtjtj: '采样前样品管试剂实际添加体积', + cygzl: '采集管重量', + czsj: '称重时间', clpbh: 'Analysis Batch Number', ypmc: '样品名称', ypcsnd: '样品初始浓度', diff --git a/src/utils/index.js b/src/utils/index.js index a4e7998..017a517 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -441,7 +441,7 @@ export function isValueEmpty(value) { if (Array.isArray(value) && value.length === 0) { return true } - if (Object.keys(value).length === 0 && typeof value === 'object') { + if (Object.keys(value).length === 0 && typeof value=='object') { return true; } return false diff --git a/src/views/business/comps/template/comps/pcr/PCR005.vue b/src/views/business/comps/template/comps/pcr/PCR005.vue index 6a23326..dc9e66c 100644 --- a/src/views/business/comps/template/comps/pcr/PCR005.vue +++ b/src/views/business/comps/template/comps/pcr/PCR005.vue @@ -26,10 +26,11 @@ @@ -43,8 +44,6 @@ - - @@ -177,11 +176,11 @@ export default { type: "cellItem", label: 'template.pcr.pcr005.clpbh', config: { - act: { + clpbh: { label: '', type: "input", fillType: "actFill", - otherCode: "preOther", + otherCode: "clpbh", } } }, @@ -237,7 +236,7 @@ export default { }, methods: { downloadExcelTemplate() { - this.exportExcel(['样品名称', '样品初始浓度', '稀释倍数', '预设样品吸样体积']) + this.exportExcel(['样品名称', '样品初始浓度', '稀释倍数', '预设样品吸样体积'], 'PCR分析样品处理表导入模板') }, //选择试剂提交事件 onSelectReagentSubmit(code, row) { @@ -310,15 +309,15 @@ export default { }, //获取已填写的表单数据 getFilledFormData() { - return this.getFilledFormDataByRefs(["baseInfoRef", "stepFormPackageRef", "stepTableRef", "stepRef", "remarkRef"]) + return this.getFilledFormDataByRefs(["baseInfoRef", "stepFormPackageRef", "stepTableRef", "stepRef", "fjRef", "remarkRef"]) }, async getFormData() { - let content = await this.validFormFields(["baseInfoRef", "stepFormPackageRef", "stepTableRef", "stepRef", "remarkRef"]); + let content = await this.validFormFields(["baseInfoRef", "stepFormPackageRef", "stepTableRef", "stepRef", "fjRef", "remarkRef"]); return content; }, getResource() { let content = this.getFilledFormData(); - + console.log(content) //生成resource let tmpResource = [] if (this.fillType === "actFill") { @@ -333,7 +332,7 @@ export default { tmpResource.push({ mc: null, - bh: item.startSolutionCode, + bh: content.subSolution, ph: null, ndz: null, nd: null, @@ -342,10 +341,10 @@ export default { sxrq: null, kc: null, kcdw: null, - syl: item.actStartSolutionVolume, + syl: item.ysxsyxytj, type: 1, elnType: this.product, - syldw: content.headerSelectFields.actStartSolutionVolumeUnit, + syldw: content.headerSelectFields.sjxsyxytjUnit, yxzq: null, yxzqdw: null, }) diff --git a/src/views/business/comps/template/comps/pcr/PCR007.vue b/src/views/business/comps/template/comps/pcr/PCR007.vue index 8d8a7f5..dcfbadb 100644 --- a/src/views/business/comps/template/comps/pcr/PCR007.vue +++ b/src/views/business/comps/template/comps/pcr/PCR007.vue @@ -26,6 +26,7 @@