|
|
|
@ -15,7 +15,7 @@ |
|
|
|
<div class="template-form-item"> |
|
|
|
<BaseInfoFormPackage ref="swypyjInfoRef" fieldItemLabel="template.common.operationSteps" |
|
|
|
:formConfig="stepFormConfig" @blur="onHandleBlur" |
|
|
|
:formData="formData" /> |
|
|
|
:formData="formData" @onRegentSubmit="onRegentSubmit" /> |
|
|
|
<div style="color:#999;font-size:14px;"> |
|
|
|
畸变类型以代号填写:断片(b)、裂隙(g)、互换及射体(t)、环状染色体(r)、多倍体(p)、双着丝点染色体(d)、内复制(e)、染色体碎化(z)、缺失(l)、粘着(s)、微小体(m)。 |
|
|
|
</div> |
|
|
|
@ -282,10 +282,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; |
|
|
|
}, |
|
|
|
//保存 |
|
|
|
@ -300,6 +307,23 @@ export default { |
|
|
|
tableRef.deleteRow(rowIndex); |
|
|
|
} |
|
|
|
}, |
|
|
|
// 选择显微镜预留 |
|
|
|
onRegentSubmit(e) { |
|
|
|
const { selectInfo, key, rowIndex } = e |
|
|
|
const { row } = selectInfo |
|
|
|
if (key == 'xwj') { |
|
|
|
this.$refs.swypyjInfoRef.updateFormData('wxjmc', row.mc) |
|
|
|
this.$refs.swypyjInfoRef.updateFormData('wxjxh', row.xh) |
|
|
|
this.$refs.swypyjInfoRef.updateFormData('wxjjzrq', row.jzrq) |
|
|
|
} |
|
|
|
//通知后端保存数据 |
|
|
|
const params = { |
|
|
|
type: "fieldChanged", |
|
|
|
newRecord: null, |
|
|
|
resourceList: null, |
|
|
|
} |
|
|
|
EventBus.$emit('onModifyRecord', params); |
|
|
|
}, |
|
|
|
} |
|
|
|
}; |
|
|
|
</script> |
|
|
|
|