|
|
@ -8,11 +8,24 @@ |
|
|
</div> |
|
|
</div> |
|
|
<div class="detail-content"> |
|
|
<div class="detail-content"> |
|
|
<div class="content"> |
|
|
<div class="content"> |
|
|
<BaseInfoFormPackage fieldItemLabel="template.common.baseInfo" label="template.common.baseInfo" |
|
|
|
|
|
:ref="refConf.base" :formConfig="baseInfoFormConfig" :formData="formData" /> |
|
|
|
|
|
|
|
|
<BaseInfoFormPackage |
|
|
|
|
|
fieldItemLabel="template.common.baseInfo" |
|
|
|
|
|
label="template.common.baseInfo" |
|
|
|
|
|
:ref="refConf.base" |
|
|
|
|
|
:formConfig="baseInfoFormConfig" |
|
|
|
|
|
:formData="formData" |
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
<TableList label="template.common.reagentInfo" :columns="sysjColumns" :dataSource="resourceSj" /> |
|
|
|
|
|
<TableList label="template.common.instrumentInfo" :columns="yqColumns" :dataSource="yqResource" /> |
|
|
|
|
|
|
|
|
<TableList |
|
|
|
|
|
label="template.common.reagentInfo" |
|
|
|
|
|
:columns="sysjColumns" |
|
|
|
|
|
:dataSource="resourceSj" |
|
|
|
|
|
/> |
|
|
|
|
|
<TableList |
|
|
|
|
|
label="template.common.instrumentInfo" |
|
|
|
|
|
:columns="yqColumns" |
|
|
|
|
|
:dataSource="yqResource" |
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
<!-- 细胞信息 --> |
|
|
<!-- 细胞信息 --> |
|
|
<LineLabel label="template.dl.dl011.xbxx" /> |
|
|
<LineLabel label="template.dl.dl011.xbxx" /> |
|
|
@ -22,8 +35,14 @@ |
|
|
$t('template.dl.dl011.bqdy') |
|
|
$t('template.dl.dl011.bqdy') |
|
|
}}</el-button> |
|
|
}}</el-button> |
|
|
</div> |
|
|
</div> |
|
|
<BaseInfoFormPackage fieldItemLabel="" label="" :ref="refConf.xbxx" :formConfig="xbxxConfig" |
|
|
|
|
|
@onRegentSubmit="(data) => onTableRegentSubmit(data)" :formData="formData" /> |
|
|
|
|
|
|
|
|
<BaseInfoFormPackage |
|
|
|
|
|
fieldItemLabel="" |
|
|
|
|
|
label="" |
|
|
|
|
|
:ref="refConf.xbxx" |
|
|
|
|
|
:formConfig="xbxxConfig" |
|
|
|
|
|
@onRegentSubmit="(data) => onTableRegentSubmit(data)" |
|
|
|
|
|
:formData="formData" |
|
|
|
|
|
/> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<LineLabel label="template.dl.dl011.fxbz" /> |
|
|
<LineLabel label="template.dl.dl011.fxbz" /> |
|
|
@ -32,13 +51,24 @@ |
|
|
<!-- 预留区域 - 培养信息 --> |
|
|
<!-- 预留区域 - 培养信息 --> |
|
|
<LineLabel label="template.dl.dl011.pyxx" /> |
|
|
<LineLabel label="template.dl.dl011.pyxx" /> |
|
|
<div class="template-form-item"> |
|
|
<div class="template-form-item"> |
|
|
<BaseInfoFormPackage fieldItemLabel="" label="" :ref="refConf.pyxx" :formConfig="pyxxConfig" |
|
|
|
|
|
:formData="formData" @onRegentSubmit="(data) => onTableRegentSubmit(data)" |
|
|
|
|
|
@clickButton="handlePyxxClickButton" /> |
|
|
|
|
|
|
|
|
<BaseInfoFormPackage |
|
|
|
|
|
fieldItemLabel="" |
|
|
|
|
|
label="" |
|
|
|
|
|
:ref="refConf.pyxx" |
|
|
|
|
|
:formConfig="pyxxConfig" |
|
|
|
|
|
:formData="formData" |
|
|
|
|
|
@onRegentSubmit="(data) => onTableRegentSubmit(data)" |
|
|
|
|
|
@clickButton="handlePyxxClickButton" |
|
|
|
|
|
/> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<BaseInfoFormPackage fieldItemLabel="template.dl.dl007.bz" label="template.dl.dl007.bz" :ref="refConf.remark" |
|
|
|
|
|
:formConfig="remarkConfig" :formData="formData" /> |
|
|
|
|
|
|
|
|
<BaseInfoFormPackage |
|
|
|
|
|
fieldItemLabel="template.dl.dl007.bz" |
|
|
|
|
|
label="template.dl.dl007.bz" |
|
|
|
|
|
:ref="refConf.remark" |
|
|
|
|
|
:formConfig="remarkConfig" |
|
|
|
|
|
:formData="formData" |
|
|
|
|
|
/> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
@ -54,8 +84,8 @@ import TableList from '@/components/Template/Table' |
|
|
import Step from '@/components/Template/Step' |
|
|
import Step from '@/components/Template/Step' |
|
|
import templateMixin from '../../mixins/templateMixin' |
|
|
import templateMixin from '../../mixins/templateMixin' |
|
|
import moment from 'moment' |
|
|
import moment from 'moment' |
|
|
import { uniqeYqOne, uniqeResource } from "@/utils/calUnitTools"; |
|
|
|
|
|
import { EventBus } from "@/utils/eventBus"; |
|
|
|
|
|
|
|
|
import { uniqeYqOne, uniqeResource } from '@/utils/calUnitTools' |
|
|
|
|
|
import { EventBus } from '@/utils/eventBus' |
|
|
|
|
|
|
|
|
const refConf = { |
|
|
const refConf = { |
|
|
base: 'baseInfoRef', |
|
|
base: 'baseInfoRef', |
|
|
@ -166,16 +196,23 @@ export default { |
|
|
type: 'span', |
|
|
type: 'span', |
|
|
label: '' |
|
|
label: '' |
|
|
}, |
|
|
}, |
|
|
pykssj: { |
|
|
|
|
|
label: 'template.dl.dl011.pykssj', |
|
|
|
|
|
type: 'input', |
|
|
|
|
|
fillType: 'actFill', |
|
|
|
|
|
subType: 'button', |
|
|
|
|
|
subKey: 'pykssjButton', |
|
|
|
|
|
subDisabled: this.fillType !== 'actFill', |
|
|
|
|
|
disabled: true, |
|
|
|
|
|
buttonName: 'template.dl.dl011.pykssjButton' |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
pykssj: |
|
|
|
|
|
this.fillType === 'actFill' |
|
|
|
|
|
? { |
|
|
|
|
|
label: 'template.dl.dl011.pykssj', |
|
|
|
|
|
type: 'input', |
|
|
|
|
|
fillType: 'actFill', |
|
|
|
|
|
subType: 'button', |
|
|
|
|
|
subKey: 'pykssjButton', |
|
|
|
|
|
disabled: true, |
|
|
|
|
|
buttonName: 'template.dl.dl011.pykssjButton' |
|
|
|
|
|
} |
|
|
|
|
|
: { |
|
|
|
|
|
label: 'template.dl.dl011.pykssj', |
|
|
|
|
|
type: 'input', |
|
|
|
|
|
fillType: 'actFill', |
|
|
|
|
|
disabled: true |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
] |
|
|
] |
|
|
@ -212,9 +249,9 @@ export default { |
|
|
subType: 'select', |
|
|
subType: 'select', |
|
|
subKey: 'fshxbyjtjUnit', |
|
|
subKey: 'fshxbyjtjUnit', |
|
|
fillType: 'preFill', |
|
|
fillType: 'preFill', |
|
|
subOptions: this.getDictOptions('business_nddw'), |
|
|
|
|
|
|
|
|
subOptions: this.getDictOptions('business_tjdw'), |
|
|
maxlength: 10, |
|
|
maxlength: 10, |
|
|
selectTo: 'fshxbsjtjUnit' //下拉选择后,赋值到对应字段 |
|
|
|
|
|
|
|
|
// selectTo: 'fshxbsjtjUnit' |
|
|
}, |
|
|
}, |
|
|
fshxbsjtj: { |
|
|
fshxbsjtj: { |
|
|
label: 'template.dl.dl011.fshxbsjtj', |
|
|
label: 'template.dl.dl011.fshxbsjtj', |
|
|
@ -279,15 +316,18 @@ export default { |
|
|
if (data.key === 'pyxbh') { |
|
|
if (data.key === 'pyxbh') { |
|
|
this.$refs.pyxxRef.updateFormData('pyxbh_mc', data.selectInfo.row.mc) |
|
|
this.$refs.pyxxRef.updateFormData('pyxbh_mc', data.selectInfo.row.mc) |
|
|
this.$refs.pyxxRef.updateFormData('pyxbh_xh', data.selectInfo.row.xh) |
|
|
this.$refs.pyxxRef.updateFormData('pyxbh_xh', data.selectInfo.row.xh) |
|
|
this.$refs.pyxxRef.updateFormData('pyxbh_jzrq', data.selectInfo.row.jzrq) |
|
|
|
|
|
|
|
|
this.$refs.pyxxRef.updateFormData( |
|
|
|
|
|
'pyxbh_jzrq', |
|
|
|
|
|
data.selectInfo.row.jzrq |
|
|
|
|
|
) |
|
|
} |
|
|
} |
|
|
//通知后端保存数据 |
|
|
|
|
|
|
|
|
//通知后端保存数据 |
|
|
const params = { |
|
|
const params = { |
|
|
type: "fieldChanged", |
|
|
|
|
|
|
|
|
type: 'fieldChanged', |
|
|
newRecord: null, |
|
|
newRecord: null, |
|
|
resourceList: null, |
|
|
|
|
|
|
|
|
resourceList: null |
|
|
} |
|
|
} |
|
|
EventBus.$emit('onModifyRecord', params); |
|
|
|
|
|
|
|
|
EventBus.$emit('onModifyRecord', params) |
|
|
}, |
|
|
}, |
|
|
// 处理培养信息中按钮点击事件 |
|
|
// 处理培养信息中按钮点击事件 |
|
|
handlePyxxClickButton(_item, signData) { |
|
|
handlePyxxClickButton(_item, signData) { |
|
|
@ -331,10 +371,10 @@ export default { |
|
|
kcdw: content.fshxbsjtjUnit, |
|
|
kcdw: content.fshxbsjtjUnit, |
|
|
syl: null, |
|
|
syl: null, |
|
|
type: null, //生成的时候传null |
|
|
type: null, //生成的时候传null |
|
|
elnType: this.product, //生成的时候传 his.product |
|
|
|
|
|
|
|
|
elnType: this.product, //生成的时候传 his.product |
|
|
syldw: content.fshxbsjtjUnit, |
|
|
syldw: content.fshxbsjtjUnit, |
|
|
yxzq: null, |
|
|
yxzq: null, |
|
|
yxzqdw: null, |
|
|
|
|
|
|
|
|
yxzqdw: null |
|
|
}) |
|
|
}) |
|
|
//使用细胞 |
|
|
//使用细胞 |
|
|
tmpResource.push({ |
|
|
tmpResource.push({ |
|
|
@ -353,20 +393,23 @@ export default { |
|
|
elnType: null, //传null |
|
|
elnType: null, //传null |
|
|
syldw: content.xbdcbh_dw, |
|
|
syldw: content.xbdcbh_dw, |
|
|
yxzq: null, |
|
|
yxzq: null, |
|
|
yxzqdw: null, |
|
|
|
|
|
|
|
|
yxzqdw: null |
|
|
}) |
|
|
}) |
|
|
//使用仪器 |
|
|
//使用仪器 |
|
|
tmpYq.push({ |
|
|
tmpYq.push({ |
|
|
mc: content.pyxbh_mc, |
|
|
mc: content.pyxbh_mc, |
|
|
xh: content.pyxbh_xh, |
|
|
xh: content.pyxbh_xh, |
|
|
bh: content.pyxbh, |
|
|
bh: content.pyxbh, |
|
|
jzrq: content.pyxbh_jzrq, |
|
|
|
|
|
|
|
|
jzrq: content.pyxbh_jzrq |
|
|
}) |
|
|
}) |
|
|
//使用的试剂、仪器 |
|
|
//使用的试剂、仪器 |
|
|
const stepResource = this.$refs.stepRef.getStepResource() |
|
|
const stepResource = this.$refs.stepRef.getStepResource() |
|
|
this.resourceTmp = uniqeResource(tmpResource, stepResource.sjResource || []) |
|
|
|
|
|
|
|
|
this.resourceTmp = uniqeResource( |
|
|
|
|
|
tmpResource, |
|
|
|
|
|
stepResource.sjResource || [] |
|
|
|
|
|
) |
|
|
this.yqResourceTmp = uniqeYqOne(tmpYq, stepResource.yqResource || []) |
|
|
this.yqResourceTmp = uniqeYqOne(tmpYq, stepResource.yqResource || []) |
|
|
return this.resourceTmp; |
|
|
|
|
|
|
|
|
return this.resourceTmp |
|
|
}, |
|
|
}, |
|
|
onRegentSubmit(e) { |
|
|
onRegentSubmit(e) { |
|
|
// 预留方法,如果需要处理试剂提交事件可以在这里添加 |
|
|
// 预留方法,如果需要处理试剂提交事件可以在这里添加 |
|
|
|