diff --git a/src/views/business/comps/template/comps/dl/DL021.vue b/src/views/business/comps/template/comps/dl/DL021.vue index 005054e..d91040f 100644 --- a/src/views/business/comps/template/comps/dl/DL021.vue +++ b/src/views/business/comps/template/comps/dl/DL021.vue @@ -187,6 +187,17 @@ export default { const { selectInfo, key, rowIndex } = e const { row } = selectInfo console.log('选择显微镜预留===',row) + + if (key == 'xwj') { + this.$refs.swypyjInfoRef.updateFormData('wxjmc', row.mc) + this.$refs.swypyjInfoRef.updateFormData('wxjxh', row.xh) + this.$refs.swypyjInfoRef.updateFormData('wxjjzrq', row.jzrq) + } + + + + + // if (key === 'yqbh' && this.$refs.yqsyTableRef) { // const params = { // yqmc: row.mc, @@ -273,10 +284,17 @@ export default { return content; }, getResource() { - //使用的试剂、仪器 - // stepRef不存在,直接返回空数组 + let content = this.getFilledFormData(); + let tmpYq = [] + tmpYq.push({ + mc: content.wxjmc, + xh: content.wxjxh, + bh: content.xwj, + jzrq: content.wxjjzrq, + }) + this.resourceTmp = [] - this.yqResourceTmp = [] + this.yqResourceTmp = tmpYq return this.resourceTmp; }, //保存 diff --git a/src/views/business/comps/template/comps/dl/DL023.vue b/src/views/business/comps/template/comps/dl/DL023.vue index ada231e..0b1ca39 100644 --- a/src/views/business/comps/template/comps/dl/DL023.vue +++ b/src/views/business/comps/template/comps/dl/DL023.vue @@ -187,6 +187,8 @@ export default { subType: 'button', subKey: 'zskssj', buttonName: 'template.dl.dl023.ksButton', + disabled:true, + subDisabled:false }, zsjssj: { label: 'template.dl.dl023.zsjssj', @@ -196,6 +198,8 @@ export default { subType: 'button', subKey: 'zsjssj', buttonName: 'template.dl.dl023.jsButton', + disabled:true, + subDisabled:false }, } } @@ -318,10 +322,22 @@ export default { return content; }, getResource() { - //使用的试剂、仪器 - // stepRef不存在,直接返回空数组 + let content = this.getFilledFormData(); + let tmpYq = [] + let table = content.stepTableFormData + if (table && table.length > 0) { + for (let i = 0; i < table.length; i++) { + let item = table[i] + tmpYq.push({ + mc: item.yqmc, + xh: item.yqxh, + bh: item.yqbh, + jzrq: item.xcrq, + }) + } + } + this.yqResourceTmp = tmpYq this.resourceTmp = [] - this.yqResourceTmp = [] return this.resourceTmp; }, //保存