|
|
|
@ -53,6 +53,8 @@ |
|
|
|
<el-button type="primary" icon="el-icon-plus" @click="showAdd()" |
|
|
|
v-hasPermi="['business:nonTrialFormPre:xz']">{{ |
|
|
|
$t('page.business.study.studyFormPre.xzbd') }}</el-button> |
|
|
|
|
|
|
|
<el-button type="primary" @click="sdsy" v-hasPermi="['business:form:nonTrial:sd']" v-if="(leader==id || checkRole(['bz'])) && studyStatus!=5">{{ $t('page.business.study.nonTrial.sdsy') }}</el-button> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
@ -163,11 +165,15 @@ |
|
|
|
append-to-body :close-on-click-modal="false"> |
|
|
|
<TemplateTable ref="templateTable" :sn="formPreview.templateSn" fillType="preFill" /> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<Sign ref="fsySignRef" @callback="doSign" /> |
|
|
|
</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { checkPermi, checkRole } from "@/utils/permission"; |
|
|
|
import { nonTrial_checkSd,nonTrial_sd } from "@/api/business/form/nonTrial" |
|
|
|
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'; |
|
|
|
@ -175,6 +181,7 @@ import Bj from "@/views/business/study/comp/ytbd/Bj"; |
|
|
|
import Xq from "@/views/business/study/comp/ytbd/Xq"; |
|
|
|
import Sh from "@/views/business/study/comp/ytbd/Sh"; |
|
|
|
import SelectDeptUser from '@/views/business/comps/select/SelectDeptUser'; |
|
|
|
import Sign from './sign.vue' |
|
|
|
import moment from "moment"; |
|
|
|
import { mapGetters } from 'vuex' |
|
|
|
export default { |
|
|
|
@ -197,16 +204,16 @@ export default { |
|
|
|
handler(newVal) { |
|
|
|
this.searchForm.studySn = newVal.sn |
|
|
|
this.searchForm.studyMc = newVal.name |
|
|
|
this.searchForm.studyId = newVal.studyId |
|
|
|
this.searchForm.studySubjectId = newVal.studySubjectId |
|
|
|
this.searchForm.studyId = newVal.id |
|
|
|
this.leader = newVal.leader |
|
|
|
this.studyStatus = newVal.status |
|
|
|
this.search() |
|
|
|
}, |
|
|
|
immediate: true, |
|
|
|
deep: true |
|
|
|
} |
|
|
|
}, |
|
|
|
components: { Bj, Xq, Sh, SelectDeptUser, TemplateTable }, |
|
|
|
components: { Bj, Xq, Sh, SelectDeptUser, TemplateTable,Sign }, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
formPreview: { |
|
|
|
@ -216,6 +223,7 @@ export default { |
|
|
|
openXz: false, |
|
|
|
open: false, |
|
|
|
leader: null, |
|
|
|
studyStatus: null, |
|
|
|
showAudit: false, |
|
|
|
showEdit: false, |
|
|
|
showDetail: false, |
|
|
|
@ -226,7 +234,6 @@ export default { |
|
|
|
studyId: '', |
|
|
|
studySn: '', |
|
|
|
studyMc: '', |
|
|
|
studySubjectId: '', |
|
|
|
bdbh: '', |
|
|
|
bdmc: '', |
|
|
|
userId: '', |
|
|
|
@ -260,6 +267,8 @@ export default { |
|
|
|
}, |
|
|
|
created() { }, |
|
|
|
methods: { |
|
|
|
checkPermi, |
|
|
|
checkRole, |
|
|
|
copy() { |
|
|
|
this.$modal.loading() |
|
|
|
public_studyList().then(response => { |
|
|
|
@ -346,7 +355,7 @@ 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, studySubjectId: this.searchForm.studySubjectId }) |
|
|
|
this.$refs.Bj.edit({ studySn:this.searchForm.studySn, studyMc:this.searchForm.studyMc,studyId: this.searchForm.studyId}) |
|
|
|
}, |
|
|
|
edit(row) { |
|
|
|
this.showEdit = true |
|
|
|
@ -378,6 +387,31 @@ export default { |
|
|
|
this.$emit('showDetail', this.showAudit) |
|
|
|
this.$refs.Sh.show(row) |
|
|
|
}, |
|
|
|
sdsy() { |
|
|
|
this.$modal.loading() |
|
|
|
nonTrial_checkSd({ |
|
|
|
study:{id:this.study.id}, |
|
|
|
}).then(() => { |
|
|
|
this.$refs.fsySignRef.show(this.$t('page.business.study.nonTrial.sdsy'),this.$t('page.business.study.nonTrial.sdsy')) |
|
|
|
}).finally(() => { |
|
|
|
this.$modal.closeLoading() |
|
|
|
}) |
|
|
|
}, |
|
|
|
doSign(val){ |
|
|
|
this.doSd(val) |
|
|
|
}, |
|
|
|
doSd(sign){ |
|
|
|
this.$modal.loading() |
|
|
|
nonTrial_sd({ |
|
|
|
study:{id:this.study.id}, |
|
|
|
sign:sign |
|
|
|
}).then(() => { |
|
|
|
this.$refs.fsySignRef.cancel() |
|
|
|
this.getStudyInfo() |
|
|
|
}).finally(() => { |
|
|
|
this.$modal.closeLoading() |
|
|
|
}) |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|