|
|
|
@ -50,11 +50,12 @@ |
|
|
|
<div class="ytbd-content"> |
|
|
|
<el-row class="add-box"> |
|
|
|
<el-col> |
|
|
|
<el-button type="primary" icon="el-icon-plus" @click="showAdd()" |
|
|
|
v-hasPermi="['business:drugFormPre:xz']">{{ |
|
|
|
$t('page.business.study.studyFormPre.xzbd') }}</el-button> |
|
|
|
<el-button type="primary" icon="el-icon-plus" @click="showAdd()" v-hasPermi="['business:drugFormPre:xz']">{{ |
|
|
|
$t('page.business.study.studyFormPre.xzbd') }}</el-button> |
|
|
|
|
|
|
|
<el-button type="primary" @click="sdsy" v-hasPermi="['business:form:drug:sd']" v-if="(leader==id || checkRole(['bz'])) && studyStatus!=5 && formCount===formFinishCount">{{ $t('page.business.study.drug.sdsy') }}</el-button> |
|
|
|
<el-button type="primary" @click="sdsy" v-hasPermi="['business:form:drug:sd']" |
|
|
|
v-if="(leader == id || checkRole(['bz'])) && studyStatus != 5 && formCount === formFinishCount">{{ |
|
|
|
$t('page.business.study.drug.sdsy') }}</el-button> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
@ -81,7 +82,7 @@ |
|
|
|
$t('form.detail') }}</el-button> |
|
|
|
<!-- 编辑 --> |
|
|
|
<el-button type="text" v-hasPermi="['business:drugFormPre:bj']" @click="edit(scope.row)" |
|
|
|
v-if="(scope.row.bdzt === 1||scope.row.bdzt === 7)&&id==scope.row.userId">{{ |
|
|
|
v-if="(scope.row.bdzt === 1 || scope.row.bdzt === 7) && id == scope.row.userId">{{ |
|
|
|
$t('form.edit') }}</el-button> |
|
|
|
<template v-if="scope.row.fzrsh == 10"> |
|
|
|
<template v-if="scope.row.fzrshzt == 5"> |
|
|
|
@ -173,7 +174,7 @@ |
|
|
|
|
|
|
|
<script> |
|
|
|
import { checkPermi, checkRole } from "@/utils/permission"; |
|
|
|
import { drug_checkSd,drug_sd } from "@/api/business/form/drug" |
|
|
|
import { drug_checkSd, drug_sd } from "@/api/business/form/drug" |
|
|
|
import { studyFormPre_list, studyFormPre_info } from '@/api/business/study/studyFormPre' |
|
|
|
import { public_studyList, public_studyFormPreList } from '@/api/business/public/public' |
|
|
|
import TemplateTable from '@/views/business/comps/template/TemplateTable'; |
|
|
|
@ -215,11 +216,11 @@ export default { |
|
|
|
deep: true |
|
|
|
} |
|
|
|
}, |
|
|
|
components: { Bj, Xq, Sh, SelectDeptUser, TemplateTable,Sign }, |
|
|
|
components: { Bj, Xq, Sh, SelectDeptUser, TemplateTable, Sign }, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
formCount:0, |
|
|
|
formFinishCount:0, |
|
|
|
formCount: 0, |
|
|
|
formFinishCount: 0, |
|
|
|
formPreview: { |
|
|
|
templateSn: null |
|
|
|
}, |
|
|
|
@ -306,7 +307,17 @@ export default { |
|
|
|
this.openPreview = false |
|
|
|
this.showEdit = true |
|
|
|
this.$emit('showDetail', this.showEdit) |
|
|
|
this.$refs.Bj.edit({ templateId: tmp.templateId,templateMc: tmp.templateMc,templateSn:tmp.templateSn ,bdmc: tmp.bdmc, bdnr: tmp.bdnr }) |
|
|
|
this.$refs.Bj.edit({ |
|
|
|
studySn: this.searchForm.studySn, |
|
|
|
studyMc: this.searchForm.studyMc, |
|
|
|
studyId: this.searchForm.studyId, |
|
|
|
templateId: tmp.templateId, |
|
|
|
templateMc: tmp.templateMc, |
|
|
|
templateSn: tmp.templateSn, |
|
|
|
bdmc: tmp.bdmc, |
|
|
|
bdnr: tmp.bdnr, |
|
|
|
permitForSecectUser: 'business:drugFormPre:sh' |
|
|
|
}) |
|
|
|
}).finally(() => { |
|
|
|
this.$modal.closeLoading() |
|
|
|
}) |
|
|
|
@ -359,7 +370,12 @@ export default { |
|
|
|
this.open = false |
|
|
|
this.showEdit = true |
|
|
|
this.$emit('showDetail', this.showEdit) |
|
|
|
this.$refs.Bj.edit({ studySn:this.searchForm.studySn, studyMc:this.searchForm.studyMc,studyId: this.searchForm.studyId }) |
|
|
|
this.$refs.Bj.edit({ |
|
|
|
studySn: this.searchForm.studySn, |
|
|
|
studyMc: this.searchForm.studyMc, |
|
|
|
studyId: this.searchForm.studyId, |
|
|
|
permitForSecectUser: 'business:drugFormPre:sh' |
|
|
|
}) |
|
|
|
}, |
|
|
|
edit(row) { |
|
|
|
this.showEdit = true |
|
|
|
@ -384,7 +400,7 @@ export default { |
|
|
|
detail(row) { |
|
|
|
this.showDetail = true |
|
|
|
this.$emit('showDetail', this.showDetail) |
|
|
|
this.$refs.Xq.show(row,true) |
|
|
|
this.$refs.Xq.show(row, true) |
|
|
|
}, |
|
|
|
audit(row) { |
|
|
|
this.showAudit = true |
|
|
|
@ -395,21 +411,21 @@ export default { |
|
|
|
sdsy() { |
|
|
|
this.$modal.loading() |
|
|
|
drug_checkSd({ |
|
|
|
study:{id:this.study.id}, |
|
|
|
study: { id: this.study.id }, |
|
|
|
}).then(() => { |
|
|
|
this.$refs.fsySignRef.show(this.$t('page.business.study.drug.sdsy'),this.$t('page.business.study.drug.sdsy')) |
|
|
|
this.$refs.fsySignRef.show(this.$t('page.business.study.drug.sdsy'), this.$t('page.business.study.drug.sdsy')) |
|
|
|
}).finally(() => { |
|
|
|
this.$modal.closeLoading() |
|
|
|
}) |
|
|
|
}, |
|
|
|
doSign(val){ |
|
|
|
doSign(val) { |
|
|
|
this.doSd(val) |
|
|
|
}, |
|
|
|
doSd(sign){ |
|
|
|
doSd(sign) { |
|
|
|
this.$modal.loading() |
|
|
|
drug_sd({ |
|
|
|
study:{id:this.study.id}, |
|
|
|
sign:sign |
|
|
|
study: { id: this.study.id }, |
|
|
|
sign: sign |
|
|
|
}).then(() => { |
|
|
|
this.$refs.fsySignRef.cancel() |
|
|
|
this.studyStatus = 5 |
|
|
|
|