From a1408e6d21150232236a88bd7d9d907bc7438b48 Mon Sep 17 00:00:00 2001 From: HanLong <404402223@qq.com> Date: Wed, 4 Feb 2026 13:56:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:[=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86]SP009?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../template/comps/sp/SWYPFXFFXYPZBB/SP009.vue | 167 ++++++++++++++++++++- .../formConfig/SWYPFXFFXYPZBBTableConfig.js | 6 +- 2 files changed, 166 insertions(+), 7 deletions(-) diff --git a/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP009.vue b/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP009.vue index 0c636f3..68c83f9 100644 --- a/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP009.vue +++ b/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP009.vue @@ -78,7 +78,8 @@ import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue" import SelectReagentDialog from '../../../dialog/SelectReagentDialog.vue'; import { EventBus } from "@/utils/eventBus"; import { sj_subpackage,sj_startConfiguration,sj_configurationCompleted } from '@/api/business/sj/sj'; -import { addTj,uniqeResource } from "@/utils/calUnitTools"; +import { addTj,uniqeResource,uniqeResourceOne,addDecimals } from "@/utils/calUnitTools"; + export default { name: "SWYPFXRYPZB", components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable, TableOpertaion, SelectReagentDialog }, @@ -379,6 +380,7 @@ export default { type:1 }) } + const result = await getLatestSnArr(postSn) if(result.code == 200){ for(let i=0;i0){ + for(let j=0;j0?fzTotal:null, type: null, elnType: this.product, - syldw:unit, + syldw:fzTotal>0?item.fzsj.dw:unit, yxzq:null, yxzqdw:null, }) @@ -445,6 +513,92 @@ export default { for(let i=0;i0){ + for(let j=0;j0?fzTotal:null, type: null, elnType: this.product, - syldw:unit, + syldw:fzTotal>0?item.fzsj.dw:unit, yxzq:null, yxzqdw:null, }) } } } + if(tmpResource.length>0){ + tmpResource = uniqeResourceOne(tmpResource) + } //使用的试剂、仪器 const stepResource = this.$refs.stepRef.getStepResource() this.resourceTmp =uniqeResource(tmpResource,stepResource.sjResource||[]) diff --git a/src/views/business/comps/template/formConfig/SWYPFXFFXYPZBBTableConfig.js b/src/views/business/comps/template/formConfig/SWYPFXFFXYPZBBTableConfig.js index 0b5eef3..71fd483 100644 --- a/src/views/business/comps/template/formConfig/SWYPFXFFXYPZBBTableConfig.js +++ b/src/views/business/comps/template/formConfig/SWYPFXFFXYPZBBTableConfig.js @@ -118,13 +118,15 @@ export const getSWYPFXFFXYPZBBTQHSLTableConfig = ($this, selectKey) => { { label: 'template.sp.sp008.bh', prop: 'bh', - bodyType: 'select', + bodyType: selectKey === '' ? 'input' : 'select', bodyOptions: $this.getDictOptions(selectKey), + otherCode: 'bhOther', + otherLabel: 'template.sp.sp016.bs', bodySubType: 'span', bodySubKey: 'bhCode', bodyFillType: 'preFill', width: 280, - myCodeFields: ['bh', 'bhCode'], + myCodeFields: ['bh', 'bhOther', 'bhCode'], maxVolumeField: 'sjryxql,sjgzyxql,sjxsyxql', //分装的最大量字段 maxVolumeFieldUnit: 'sjryxqlUnit,sjgzyxqlUnit,sjxsyxqlUnit' //分装的最大量单位字段 },