|
|
|
@ -2,31 +2,24 @@ |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<div class="detail-container"> |
|
|
|
<div class="detail-title"><img src="@/assets/images/detail-title.png">{{formData.bdmc || "麻醉/精神药品配制/领取申请单"}}<img |
|
|
|
src="@/assets/images/detail-title.png" /></div> |
|
|
|
<div class="detail-title"><img src="@/assets/images/detail-title.png">{{ formData.bdmc || |
|
|
|
"麻醉/精神药品配制/领取申请单" }}<img src="@/assets/images/detail-title.png" /></div> |
|
|
|
<div class="detail-content"> |
|
|
|
<div class="content"> |
|
|
|
<LineLabel label="基本信息" /> |
|
|
|
<div class="template-form-item"> |
|
|
|
<BaseInfoFormPcakge @clickable = "onClickSybh" ref="baseInfoRef" :formConfig="baseInfoFormConfig" |
|
|
|
<BaseInfoFormPcakge @clickable="onClickSybh" ref="baseInfoRef" :formConfig="baseInfoFormConfig" |
|
|
|
:formData="formData" /> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<BaseInfoFormPcakge label="备注" ref="remarkRef" :formConfig="remarkConig" :formData="formData" /> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<SelectReagentDialog |
|
|
|
type = "MJYLQSQD" |
|
|
|
selectedCode="sn" |
|
|
|
title = "请选择试验/部门" |
|
|
|
:searchForm="searchForm" |
|
|
|
:columns="columns" |
|
|
|
@submit="onDialogSubmit" |
|
|
|
:listApi="public_studyList" |
|
|
|
ref="selectReagentDialogRef" > |
|
|
|
</SelectReagentDialog> |
|
|
|
<SelectReagentDialog type="MJYLQSQD" selectedCode="sn" title="请选择试验/部门" :searchForm="searchForm" |
|
|
|
:columns="columns" @submit="onDialogSubmit" :listApi="public_studyList" ref="selectReagentDialogRef"> |
|
|
|
</SelectReagentDialog> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
@ -41,8 +34,8 @@ import { public_studyList } from '@/api/business/public/public'; |
|
|
|
|
|
|
|
export default { |
|
|
|
name: "MJYLQSQD", |
|
|
|
dicts:["business_gyjl","business_gynd","business_dwzs","business_dwsl","business_dwtz","business_sywzmc"], |
|
|
|
components: { BaseInfoFormPcakge, LineLabel, CustomTable, TableOpertaion,SelectReagentDialog }, |
|
|
|
dicts: ["business_gyjl", "business_gynd", "business_dwzs", "business_dwsl", "business_dwtz", "business_sywzmc"], |
|
|
|
components: { BaseInfoFormPcakge, LineLabel, CustomTable, TableOpertaion, SelectReagentDialog }, |
|
|
|
mixins: [templateMixin], |
|
|
|
props: { |
|
|
|
value: { |
|
|
|
@ -64,12 +57,12 @@ export default { |
|
|
|
fillType: { |
|
|
|
immediate: true, |
|
|
|
handler(v) { |
|
|
|
console.log(v,"fillType") |
|
|
|
console.log(v, "fillType") |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
|
|
|
|
|
|
|
|
// 备注表单配置 |
|
|
|
remarkConig() { |
|
|
|
return [ |
|
|
|
@ -163,7 +156,7 @@ export default { |
|
|
|
fillType: "actFill", |
|
|
|
subType: "select", |
|
|
|
subFillType: "actFill", |
|
|
|
subKey: "dwzsUnit", |
|
|
|
subKey: "dwslUnit", |
|
|
|
otherCode: "dwslOther", |
|
|
|
subOptions: this.getDictOptions('business_dwsl'), |
|
|
|
}, |
|
|
|
@ -175,71 +168,70 @@ export default { |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
syId:null, |
|
|
|
bmId:null, |
|
|
|
sdId:null, |
|
|
|
public_studyList:public_studyList, |
|
|
|
syId: null, |
|
|
|
bmId: null, |
|
|
|
sdId: null, |
|
|
|
public_studyList: public_studyList, |
|
|
|
searchForm: { |
|
|
|
name: { |
|
|
|
label:this.$t('page.business.study.study.name'), |
|
|
|
label: this.$t('page.business.study.study.name'), |
|
|
|
}, |
|
|
|
sn: { |
|
|
|
label:this.$t('page.business.study.study.sn'), |
|
|
|
label: this.$t('page.business.study.study.sn'), |
|
|
|
}, |
|
|
|
leaderName: { |
|
|
|
label:this.$t('page.business.study.study.leader'), |
|
|
|
label: this.$t('page.business.study.study.leader'), |
|
|
|
}, |
|
|
|
}, |
|
|
|
columns:[ |
|
|
|
{ |
|
|
|
prop: 'name', |
|
|
|
label: 'page.business.study.study.name', |
|
|
|
}, |
|
|
|
{ |
|
|
|
prop: 'sn', |
|
|
|
label: 'page.business.study.study.sn', |
|
|
|
}, |
|
|
|
{ |
|
|
|
prop: 'status', |
|
|
|
label: 'page.business.study.study.status', |
|
|
|
}, |
|
|
|
{ |
|
|
|
prop: 'leaderName', |
|
|
|
label: 'page.business.study.study.leader', |
|
|
|
}, |
|
|
|
{ |
|
|
|
prop: 'createTime', |
|
|
|
label: 'page.business.study.study.createDate', |
|
|
|
} |
|
|
|
] |
|
|
|
columns: [ |
|
|
|
{ |
|
|
|
prop: 'name', |
|
|
|
label: 'page.business.study.study.name', |
|
|
|
}, |
|
|
|
{ |
|
|
|
prop: 'sn', |
|
|
|
label: 'page.business.study.study.sn', |
|
|
|
}, |
|
|
|
{ |
|
|
|
prop: 'status', |
|
|
|
label: 'page.business.study.study.status', |
|
|
|
}, |
|
|
|
{ |
|
|
|
prop: 'leaderName', |
|
|
|
label: 'page.business.study.study.leader', |
|
|
|
}, |
|
|
|
{ |
|
|
|
prop: 'createTime', |
|
|
|
label: 'page.business.study.study.createDate', |
|
|
|
} |
|
|
|
] |
|
|
|
}; |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
onDialogSubmit(selectedId,currentRow){ |
|
|
|
onDialogSubmit(selectedId, currentRow) { |
|
|
|
console.log(JSON.stringify(currentRow)) |
|
|
|
//试验 |
|
|
|
if(currentRow.type==1){ |
|
|
|
if (currentRow.type == 1) { |
|
|
|
this.$refs.baseInfoRef.batchUpdateFormData({ |
|
|
|
syNo: currentRow.sn, |
|
|
|
SD: currentRow.leaderName, |
|
|
|
}); |
|
|
|
this.syId=currentRow.id |
|
|
|
this.bmId=currentRow.deptId |
|
|
|
this.sdId=currentRow.leader |
|
|
|
this.syId = currentRow.id |
|
|
|
this.bmId = currentRow.deptId |
|
|
|
this.sdId = currentRow.leader |
|
|
|
} |
|
|
|
//部门 |
|
|
|
if(currentRow.type==2){ |
|
|
|
if (currentRow.type == 2) { |
|
|
|
this.$refs.baseInfoRef.batchUpdateFormData({ |
|
|
|
syNo: currentRow.deptName, |
|
|
|
SD: currentRow.nickName, |
|
|
|
}); |
|
|
|
this.syId='' |
|
|
|
this.bmId=currentRow.deptId |
|
|
|
this.sdId=currentRow.userId |
|
|
|
this.syId = '' |
|
|
|
this.bmId = currentRow.deptId |
|
|
|
this.sdId = currentRow.userId |
|
|
|
} |
|
|
|
console.log(currentRow,"currentRow") |
|
|
|
this.$refs.selectReagentDialogRef.onCancel() |
|
|
|
}, |
|
|
|
// 试验编号或部门名称点击事件 |
|
|
|
@ -248,14 +240,18 @@ export default { |
|
|
|
// this.$refs.baseInfoRef.setClickable("syNo", true); |
|
|
|
}, |
|
|
|
//获取已填写的表单数据 |
|
|
|
getFilledFormData(){ |
|
|
|
return this.getFilledFormDataByRefs(["baseInfoRef", "storageConditionRef", "stepFormPackageRef", "stepRef", "remarkRef"]) |
|
|
|
getFilledFormData() { |
|
|
|
let content = this.getFilledFormDataByRefs(["baseInfoRef", "storageConditionRef", "stepFormPackageRef", "stepRef", "remarkRef"]) |
|
|
|
content.syId = this.syId |
|
|
|
content.bmId = this.bmId |
|
|
|
content.sdId = this.sdId |
|
|
|
return content; |
|
|
|
}, |
|
|
|
async getFormData() { |
|
|
|
let content = await this.validFormFields(["baseInfoRef","remarkRef"]); |
|
|
|
content.syId=this.syId |
|
|
|
content.bmId=this.bmId |
|
|
|
content.sdId=this.sdId |
|
|
|
let content = await this.validFormFields(["baseInfoRef", "remarkRef"]); |
|
|
|
content.syId = this.syId |
|
|
|
content.bmId = this.bmId |
|
|
|
content.sdId = this.sdId |
|
|
|
return content; |
|
|
|
}, |
|
|
|
async onSave() { |
|
|
|
@ -270,5 +266,4 @@ export default { |
|
|
|
.mt-20 { |
|
|
|
margin-top: 20px; |
|
|
|
} |
|
|
|
|
|
|
|
</style> |