diff --git a/src/views/business/comps/template/comps/dl/DL011.vue b/src/views/business/comps/template/comps/dl/DL011.vue index e41c302..4c3cee7 100644 --- a/src/views/business/comps/template/comps/dl/DL011.vue +++ b/src/views/business/comps/template/comps/dl/DL011.vue @@ -55,6 +55,7 @@ import Step from '@/components/Template/Step' import templateMixin from '../../mixins/templateMixin' import moment from 'moment' import { uniqeYqOne, uniqeResource } from "@/utils/calUnitTools"; +import { EventBus } from "@/utils/eventBus"; const refConf = { base: 'baseInfoRef', @@ -280,6 +281,13 @@ export default { this.$refs.pyxxRef.updateFormData('pyxbh_xh', data.selectInfo.row.xh) this.$refs.pyxxRef.updateFormData('pyxbh_jzrq', data.selectInfo.row.jzrq) } + //通知后端保存数据 + const params = { + type: "fieldChanged", + newRecord: null, + resourceList: null, + } + EventBus.$emit('onModifyRecord', params); }, // 处理培养信息中按钮点击事件 handlePyxxClickButton(_item, signData) { diff --git a/src/views/business/comps/template/comps/dl/DL012.vue b/src/views/business/comps/template/comps/dl/DL012.vue index ef9bf15..e10e802 100644 --- a/src/views/business/comps/template/comps/dl/DL012.vue +++ b/src/views/business/comps/template/comps/dl/DL012.vue @@ -50,6 +50,7 @@ import Step from '@/components/Template/Step' import templateMixin from '../../mixins/templateMixin' import moment from 'moment' import { uniqeYqOne, uniqeResource } from "@/utils/calUnitTools"; +import { EventBus } from "@/utils/eventBus"; const refConf = { base: 'baseInfoRef', @@ -322,6 +323,13 @@ export default { this.$refs.pyxxRef.updateFormData('pyxbh_xh', data.selectInfo.row.xh) this.$refs.pyxxRef.updateFormData('pyxbh_jzrq', data.selectInfo.row.jzrq) } + //通知后端保存数据 + const params = { + type: "fieldChanged", + newRecord: null, + resourceList: null, + } + EventBus.$emit('onModifyRecord', params); }, handleClickButton(e, signData) { console.log(e) @@ -350,61 +358,15 @@ export default { async validFields() { return await this.validFormFields(refNames) }, - _getResource() { - const stepResource = this.$refs.stepRef.getStepResource() - // 使用的试剂、仪器(来自制备步骤) - this.resourceTmp = stepResource.sjResource || [] - this.yqResourceTmp = [...(stepResource.yqResource || [])] - - // 获取细胞信息 - const xbxxData = this.$refs.xbxxRef?.getFilledFormData() || {} - - // 如果选择了细胞制备前编号,添加到细胞细菌信息中 - if (xbxxData.xbzbqbh) { - const xbInfo = xbxxData.selectInfo_xbzbqbh || {} - // 细胞信息格式:不包含 type 字段 - this.xbxjTmp = [ - { - value: xbxxData.xbzbqbh, - bh: xbInfo.bh || xbxxData.xbzbqbh, - mc: xbInfo.mc || '', - xh: xbInfo.xh || '', - jzrq: xbInfo.jzrq || '' - } - ] - } else { - this.xbxjTmp = [] - } - - // 获取培养信息 - const pyxxData = this.$refs.pyxxRef?.getFilledFormData() || {} - - // 如果选择了培养箱编号,添加到仪器信息中 - if (pyxxData.pyxbh) { - const pyxInfo = pyxxData.selectInfo_pyxbh || {} - // 仪器信息格式:包含 type 字段 - this.yqResourceTmp.push({ - type: 'yq', - value: pyxxData.pyxbh, - bh: pyxInfo.bh || pyxxData.pyxbh, - mc: pyxInfo.mc || '', - xh: pyxInfo.xh || '', - jzrq: pyxInfo.jzrq || '' - }) - } - - return this.resourceTmp - }, getResource() { const content = this.getFilledFormData() let tmpResource = [] let tmpYq = [] - debugger //生成细胞 for (var i = 0; i < parseInt(content.zbxbs); i++) { tmpResource.push({ mc: content.xbmc, - bh: content['zbhxbbh_'+(i+1)] +content['zbhxbbhCodeSn_'+(i+1)], + bh: content['zbhxbbh_' + (i + 1)] + content['zbhxbbhCodeSn_' + (i + 1)], ph: '', ndz: '', nd: '', @@ -451,7 +413,6 @@ export default { const stepResource = this.$refs.stepRef.getStepResource() this.resourceTmp = uniqeResource(tmpResource, stepResource.sjResource || []) this.yqResourceTmp = uniqeYqOne(tmpYq, stepResource.yqResource || []) - debugger return this.resourceTmp; }, onRegentSubmit(e) { diff --git a/src/views/business/comps/template/comps/dl/DL014.vue b/src/views/business/comps/template/comps/dl/DL014.vue index 4956fb3..823c441 100644 --- a/src/views/business/comps/template/comps/dl/DL014.vue +++ b/src/views/business/comps/template/comps/dl/DL014.vue @@ -8,76 +8,36 @@
- - - - + + + + - + - +
- + - + +
@@ -87,44 +47,22 @@
- + - -