Browse Source

fix:[表单管理]试验锁定,表单不能操作

lkf
15881625488@163.com 1 month ago
parent
commit
953764c4d5
14 changed files with 592 additions and 488 deletions
  1. +80
    -65
      src/views/business/form/drug/comp/sqbdList.vue
  2. +72
    -60
      src/views/business/form/drug/comp/tbbdList.vue
  3. +59
    -45
      src/views/business/form/drug/comp/ytbdList.vue
  4. +53
    -47
      src/views/business/form/nonTrial/comp/tbbdList.vue
  5. +39
    -34
      src/views/business/form/nonTrial/comp/ytbdList.vue
  6. +33
    -27
      src/views/business/study/comp/jhbdList.vue
  7. +57
    -51
      src/views/business/study/comp/tbbdList.vue
  8. +2
    -0
      src/views/business/study/comp/wzlb/bacteriaList.vue
  9. +2
    -0
      src/views/business/study/comp/wzlb/cellList.vue
  10. +17
    -13
      src/views/business/study/comp/wzlb/gspList.vue
  11. +59
    -48
      src/views/business/study/comp/wzlb/gyzjList.vue
  12. +55
    -43
      src/views/business/study/comp/wzlb/mjyList.vue
  13. +17
    -13
      src/views/business/study/comp/wzlb/sjList.vue
  14. +47
    -42
      src/views/business/study/comp/ytbdList.vue

+ 80
- 65
src/views/business/form/drug/comp/sqbdList.vue View File

@ -1,19 +1,19 @@
<template> <template>
<div> <div>
<div class="sqbd-list" v-show="!showDetail && !showEdit && !showAudit && !showFh&& !showSh">
<div class="sqbd-list" v-show="!showDetail && !showEdit && !showAudit && !showFh && !showSh">
<div class="sqbd-search"> <div class="sqbd-search">
<el-form :model="searchForm" ref="searchForm" :inline="true" label-width="110px"> <el-form :model="searchForm" ref="searchForm" :inline="true" label-width="110px">
<el-row> <el-row>
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('page.business.form.bdmc')" prop="name"> <el-form-item :label="$t('page.business.form.bdmc')" prop="name">
<el-input v-model="searchForm.bdmc" :placeholder="$t('form.placeholderInput')" clearable <el-input v-model="searchForm.bdmc" :placeholder="$t('form.placeholderInput')" clearable
style="width: 200px" />
style="width: 200px" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('page.business.form.bdbh')" prop="sn"> <el-form-item :label="$t('page.business.form.bdbh')" prop="sn">
<el-input v-model="searchForm.bdbh" :placeholder="$t('form.placeholderInput')" clearable <el-input v-model="searchForm.bdbh" :placeholder="$t('form.placeholderInput')" clearable
style="width: 200px" />
style="width: 200px" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
@ -35,23 +35,21 @@
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('page.business.form.xtmbmc')" prop="templateName"> <el-form-item :label="$t('page.business.form.xtmbmc')" prop="templateName">
<el-input v-model="searchForm.templateMc" :placeholder="$t('form.placeholderInput')" clearable <el-input v-model="searchForm.templateMc" :placeholder="$t('form.placeholderInput')" clearable
style="width: 200px" />
style="width: 200px" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('page.business.form.cjsj')"> <el-form-item :label="$t('page.business.form.cjsj')">
<el-date-picker v-model="daterange" clearable type="daterange" range-separator="-" <el-date-picker v-model="daterange" clearable type="daterange" range-separator="-"
:start-placeholder="$t('page.business.form.startDate')" :start-placeholder="$t('page.business.form.startDate')"
:end-placeholder="$t('page.business.form.endDate')" value-format="yyyy-MM-dd"
style="width: 200px" />
:end-placeholder="$t('page.business.form.endDate')" value-format="yyyy-MM-dd" style="width: 200px" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('page.business.form.tjsj')"> <el-form-item :label="$t('page.business.form.tjsj')">
<el-date-picker v-model="daterangetj" clearable type="daterange" range-separator="-" <el-date-picker v-model="daterangetj" clearable type="daterange" range-separator="-"
:start-placeholder="$t('page.business.form.startDate')" :start-placeholder="$t('page.business.form.startDate')"
:end-placeholder="$t('page.business.form.endDate')" value-format="yyyy-MM-dd"
style="width: 200px" />
:end-placeholder="$t('page.business.form.endDate')" value-format="yyyy-MM-dd" style="width: 200px" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
@ -69,33 +67,43 @@
<div class="sqbd-content"> <div class="sqbd-content">
<el-row class="add-box"> <el-row class="add-box">
<el-col> <el-col>
<el-button type="primary" icon="el-icon-plus" @click="add()" v-hasPermi="['business:drugFormApply:xz']">{{
$t('page.business.study.studyFormApply.xzbd') }}</el-button>
<el-button type="primary" icon="el-icon-plus" @click="add()" v-if="searchForm.studyStatus != 5"
v-hasPermi="['business:drugFormApply:xz']">{{
$t('page.business.study.studyFormApply.xzbd') }}</el-button>
</el-col> </el-col>
</el-row> </el-row>
<el-table v-loading="loading" :data="list"> <el-table v-loading="loading" :data="list">
<el-table-column :label="$t('page.business.form.bh')" prop="bdbh" :show-overflow-tooltip="true"/>
<el-table-column :label="$t('page.business.form.bdmc')" prop="bdmc" :show-overflow-tooltip="true"/>
<el-table-column :label="$t('page.business.form.xtmbmc')" prop="templateMc" :show-overflow-tooltip="true"/>
<el-table-column :label="$t('page.business.form.bh')" prop="bdbh" :show-overflow-tooltip="true" />
<el-table-column :label="$t('page.business.form.bdmc')" prop="bdmc" :show-overflow-tooltip="true" />
<el-table-column :label="$t('page.business.form.xtmbmc')" prop="templateMc" :show-overflow-tooltip="true" />
<el-table-column :label="$t('page.business.form.cjsj')" align="center" prop="createTime" width="140" /> <el-table-column :label="$t('page.business.form.cjsj')" align="center" prop="createTime" width="140" />
<el-table-column :label="$t('page.business.form.gsr')" align="center" prop="userMc" width="100" /> <el-table-column :label="$t('page.business.form.gsr')" align="center" prop="userMc" width="100" />
<el-table-column :label="$t('page.business.study.studyFormApply.sfbl')" align="center" prop="status"
<el-table-column :label="$t('page.business.study.studyFormApply.sfbl')" align="center" prop="status"
width="100"> width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.sfbl === '是'"><span class="status-circle yes"></span>{{ $t('page.business.study.studyFormApply.yes') }}</span>
<span v-if="scope.row.sfbl === '否'"><span class="status-circle no"></span>{{ $t('page.business.study.studyFormApply.no') }}</span>
<span v-if="scope.row.sfbl === '是'"><span class="status-circle yes"></span>{{
$t('page.business.study.studyFormApply.yes') }}</span>
<span v-if="scope.row.sfbl === '否'"><span class="status-circle no"></span>{{
$t('page.business.study.studyFormApply.no') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('page.business.form.status')" prop="status" align="center" width="100"> <el-table-column :label="$t('page.business.form.status')" prop="status" align="center" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.bdzt === 1"><span class="status-circle tbz"></span>{{ $t('page.business.study.studyFormApply.tbz') }}</span>
<span v-if="scope.row.bdzt === 3"><span class="status-circle ytj"></span>{{ $t('page.business.study.studyFormApply.ytj') }}</span>
<span v-if="scope.row.bdzt === 5"><span class="status-circle yfh"></span>{{ $t('page.business.study.studyFormApply.yfh') }}</span>
<span v-if="scope.row.bdzt === 6"><span class="status-circle wtg"></span>{{ $t('page.business.study.studyFormApply.wtg') }}</span>
<span v-if="scope.row.bdzt === 7"><span class="status-circle ywc"></span>{{ $t('page.business.study.studyFormApply.ywc') }}</span>
<span v-if="scope.row.bdzt === 9"><span class="status-circle dfz"></span>{{ $t('page.business.study.studyFormApply.dfz') }}</span>
<span v-if="scope.row.bdzt === 11"><span class="status-circle yfz"></span>{{ $t('page.business.study.studyFormApply.yfz') }}</span>
<span v-if="scope.row.bdzt === 1"><span class="status-circle tbz"></span>{{
$t('page.business.study.studyFormApply.tbz') }}</span>
<span v-if="scope.row.bdzt === 3"><span class="status-circle ytj"></span>{{
$t('page.business.study.studyFormApply.ytj') }}</span>
<span v-if="scope.row.bdzt === 5"><span class="status-circle yfh"></span>{{
$t('page.business.study.studyFormApply.yfh') }}</span>
<span v-if="scope.row.bdzt === 6"><span class="status-circle wtg"></span>{{
$t('page.business.study.studyFormApply.wtg') }}</span>
<span v-if="scope.row.bdzt === 7"><span class="status-circle ywc"></span>{{
$t('page.business.study.studyFormApply.ywc') }}</span>
<span v-if="scope.row.bdzt === 9"><span class="status-circle dfz"></span>{{
$t('page.business.study.studyFormApply.dfz') }}</span>
<span v-if="scope.row.bdzt === 11"><span class="status-circle yfz"></span>{{
$t('page.business.study.studyFormApply.yfz') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('page.business.form.tjsj')" align="center" prop="tjsj" width="140" /> <el-table-column :label="$t('page.business.form.tjsj')" align="center" prop="tjsj" width="140" />
@ -105,39 +113,43 @@
<!-- 详情 --> <!-- 详情 -->
<el-button type="text" @click="detail(scope.row)" v-hasPermi="['business:drugFormApply:xq']">{{ <el-button type="text" @click="detail(scope.row)" v-hasPermi="['business:drugFormApply:xq']">{{
$t('form.detail') }}</el-button> $t('form.detail') }}</el-button>
<!-- 编辑 -->
<el-button type="text" v-if="(scope.row.bdzt === 1 || scope.row.bdzt === 6 || scope.row.bdzt === 7) && id==scope.row.userId"
@click="edit(scope.row)" v-hasPermi="['business:drugFormApply:bj']">{{
$t('form.edit') }}</el-button>
<!-- 复核 -->
<el-button type="text" v-if="scope.row.bdzt === 3&&id != scope.row.userId" @click="fh(scope.row)"
v-hasPermi="['business:drugFormApply:fh']">{{
$t('page.business.study.studyFormApply.fh') }}</el-button>
<!-- 加签 -->
<el-button type="text" v-if="scope.row.bdzt === 1" @click="jq(scope.row)"
v-hasPermi="['business:drugFormApply:jq']">{{
$t('page.business.study.studyFormApply.jq') }}</el-button>
<!-- 更换归属人 -->
<el-button type="text"
v-if="(scope.row.bdzt === 1 || scope.row.bdzt === 3 || scope.row.bdzt === 5 || scope.row.bdzt === 6 || scope.row.bdzt === 7) && checkRole(['bz'])"
@click="ghgsr(scope.row)" v-hasPermi="['business:drugFormApply:ghgsr']">{{
$t('page.business.study.studyFormApply.ghgsr') }}</el-button>
<!-- 审阅 -->
<el-button type="text" v-if="(scope.row.bdzt === 6 || scope.row.bdzt === 7) && (isQa || checkRole(['bz']))" @click="sy(scope.row)"
v-hasPermi="['business:drugFormApply:sy']">{{
$t('page.business.study.studyFormApply.sy') }}</el-button>
<!-- 审核 -->
<el-button type="text" v-if="scope.row.bdzt === 5&&id != scope.row.userId" @click="sh(scope.row)"
v-hasPermi="['business:drugFormApply:sh']">{{
$t('page.business.study.studyFormApply.sh') }}</el-button>
<!-- 废止 -->
<el-button type="text" v-if="scope.row.bdzt === 1 && id==scope.row.userId" @click="fz(scope.row)"
v-hasPermi="['business:drugFormApply:fz']">{{
$t('page.business.study.studyFormApply.fz') }}</el-button>
<!-- 确认废止 -->
<el-button type="text" v-if="scope.row.bdzt === 9 && checkRole(['bz'])" @click="qrfz(scope.row)"
v-hasPermi="['business:drugFormApply:qrfz']">{{
$t('page.business.study.studyFormApply.qrfz') }}</el-button>
<template v-if="searchForm.studyStatus != 5">
<!-- 编辑 -->
<el-button type="text"
v-if="(scope.row.bdzt === 1 || scope.row.bdzt === 6 || scope.row.bdzt === 7) && id == scope.row.userId"
@click="edit(scope.row)" v-hasPermi="['business:drugFormApply:bj']">{{
$t('form.edit') }}</el-button>
<!-- 复核 -->
<el-button type="text" v-if="scope.row.bdzt === 3 && id != scope.row.userId" @click="fh(scope.row)"
v-hasPermi="['business:drugFormApply:fh']">{{
$t('page.business.study.studyFormApply.fh') }}</el-button>
<!-- 加签 -->
<el-button type="text" v-if="scope.row.bdzt === 1" @click="jq(scope.row)"
v-hasPermi="['business:drugFormApply:jq']">{{
$t('page.business.study.studyFormApply.jq') }}</el-button>
<!-- 更换归属人 -->
<el-button type="text"
v-if="(scope.row.bdzt === 1 || scope.row.bdzt === 3 || scope.row.bdzt === 5 || scope.row.bdzt === 6 || scope.row.bdzt === 7) && checkRole(['bz'])"
@click="ghgsr(scope.row)" v-hasPermi="['business:drugFormApply:ghgsr']">{{
$t('page.business.study.studyFormApply.ghgsr') }}</el-button>
<!-- 审阅 -->
<el-button type="text"
v-if="(scope.row.bdzt === 6 || scope.row.bdzt === 7) && (isQa || checkRole(['bz']))"
@click="sy(scope.row)" v-hasPermi="['business:drugFormApply:sy']">{{
$t('page.business.study.studyFormApply.sy') }}</el-button>
<!-- 审核 -->
<el-button type="text" v-if="scope.row.bdzt === 5 && id != scope.row.userId" @click="sh(scope.row)"
v-hasPermi="['business:drugFormApply:sh']">{{
$t('page.business.study.studyFormApply.sh') }}</el-button>
<!-- 废止 -->
<el-button type="text" v-if="scope.row.bdzt === 1 && id == scope.row.userId" @click="fz(scope.row)"
v-hasPermi="['business:drugFormApply:fz']">{{
$t('page.business.study.studyFormApply.fz') }}</el-button>
<!-- 确认废止 -->
<el-button type="text" v-if="scope.row.bdzt === 9 && checkRole(['bz'])" @click="qrfz(scope.row)"
v-hasPermi="['business:drugFormApply:qrfz']">{{
$t('page.business.study.studyFormApply.qrfz') }}</el-button>
</template>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -205,6 +217,7 @@ export default {
study: { study: {
handler(newVal) { handler(newVal) {
this.searchForm.studySn = newVal.sn this.searchForm.studySn = newVal.sn
this.searchForm.studyStatus = newVal.status
this.searchForm.studyMc = newVal.name this.searchForm.studyMc = newVal.name
this.searchForm.studyId = newVal.id this.searchForm.studyId = newVal.id
this.leader = newVal.leader this.leader = newVal.leader
@ -214,10 +227,10 @@ export default {
deep: true deep: true
} }
}, },
components: { Ghgsr, Fh, Sh,Fz, Bj, Xq, Qrfz, Sy, Jq, SelectDeptUser, SelectDeptUserDialog },
components: { Ghgsr, Fh, Sh, Fz, Bj, Xq, Qrfz, Sy, Jq, SelectDeptUser, SelectDeptUserDialog },
data() { data() {
return { return {
isQa:false,
isQa: false,
leader: null, leader: null,
showFh: false, showFh: false,
showSh: false, showSh: false,
@ -230,6 +243,7 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
studyId: -1, studyId: -1,
studyStatus: 5,
studySn: '', studySn: '',
studyMc: '', studyMc: '',
bdbh: '', bdbh: '',
@ -239,7 +253,7 @@ export default {
templateMc: '', templateMc: '',
cjsjjs: '', cjsjjs: '',
cjsjks: '', cjsjks: '',
sfbl:null,
sfbl: null,
tjsjjs: '', tjsjjs: '',
tjsjks: '', tjsjks: '',
}, },
@ -249,13 +263,13 @@ export default {
currentRow: null currentRow: null
} }
}, },
created() { this.getIsQa()},
created() { this.getIsQa() },
methods: { methods: {
checkPermi, checkPermi,
checkRole, checkRole,
getIsQa() { getIsQa() {
studySubject_isQa().then(response => { studySubject_isQa().then(response => {
this.isQa=response.data
this.isQa = response.data
}) })
}, },
ghgsr(row) { ghgsr(row) {
@ -292,7 +306,7 @@ export default {
this.searchForm.cjsjjs = '' this.searchForm.cjsjjs = ''
this.searchForm.tjsjks = '' this.searchForm.tjsjks = ''
this.searchForm.tjsjjs = '' this.searchForm.tjsjjs = ''
this.searchForm.sfbl =null
this.searchForm.sfbl = null
this.daterange = [] this.daterange = []
this.daterangetj = [] this.daterangetj = []
this.search() this.search()
@ -322,8 +336,9 @@ export default {
add() { add() {
this.showEdit = true this.showEdit = true
this.$emit('showDetail', this.showEdit) this.$emit('showDetail', this.showEdit)
this.$refs.Bj.edit({
studyFormType:15,studyType: 10,studySn:this.searchForm.studySn, studyMc:this.searchForm.studyMc, studyId: this.searchForm.studyId })
this.$refs.Bj.edit({
studyFormType: 15, studyType: 10, studySn: this.searchForm.studySn, studyMc: this.searchForm.studyMc, studyId: this.searchForm.studyId
})
}, },
edit(row) { edit(row) {
this.showEdit = true this.showEdit = true
@ -370,7 +385,7 @@ export default {
this.$emit('showDetail', this.showFh) this.$emit('showDetail', this.showFh)
this.$refs.Fh.show(row) this.$refs.Fh.show(row)
}, },
sh(row) {
sh(row) {
this.showSh = true this.showSh = true
this.$emit('showDetail', this.showSh) this.$emit('showDetail', this.showSh)
this.$refs.Sh.show(row) this.$refs.Sh.show(row)

+ 72
- 60
src/views/business/form/drug/comp/tbbdList.vue View File

@ -7,13 +7,13 @@
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('page.business.form.bdmc')" prop="name"> <el-form-item :label="$t('page.business.form.bdmc')" prop="name">
<el-input v-model="searchForm.bdmc" :placeholder="$t('form.placeholderInput')" clearable <el-input v-model="searchForm.bdmc" :placeholder="$t('form.placeholderInput')" clearable
style="width: 200px" />
style="width: 200px" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('page.business.form.bdbh')" prop="sn"> <el-form-item :label="$t('page.business.form.bdbh')" prop="sn">
<el-input v-model="searchForm.bdbh" :placeholder="$t('form.placeholderInput')" clearable <el-input v-model="searchForm.bdbh" :placeholder="$t('form.placeholderInput')" clearable
style="width: 200px" />
style="width: 200px" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
@ -42,16 +42,14 @@
<el-form-item :label="$t('page.business.form.cjsj')"> <el-form-item :label="$t('page.business.form.cjsj')">
<el-date-picker v-model="daterange" clearable type="daterange" range-separator="-" <el-date-picker v-model="daterange" clearable type="daterange" range-separator="-"
:start-placeholder="$t('page.business.form.startDate')" :start-placeholder="$t('page.business.form.startDate')"
:end-placeholder="$t('page.business.form.endDate')" value-format="yyyy-MM-dd"
style="width: 200px" />
:end-placeholder="$t('page.business.form.endDate')" value-format="yyyy-MM-dd" style="width: 200px" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('page.business.form.tjsj')"> <el-form-item :label="$t('page.business.form.tjsj')">
<el-date-picker v-model="daterangetj" clearable type="daterange" range-separator="-" <el-date-picker v-model="daterangetj" clearable type="daterange" range-separator="-"
:start-placeholder="$t('page.business.form.startDate')" :start-placeholder="$t('page.business.form.startDate')"
:end-placeholder="$t('page.business.form.endDate')" value-format="yyyy-MM-dd"
style="width: 200px" />
:end-placeholder="$t('page.business.form.endDate')" value-format="yyyy-MM-dd" style="width: 200px" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
@ -69,32 +67,41 @@
<div class="tbbd-content"> <div class="tbbd-content">
<el-row class="add-box"> <el-row class="add-box">
<el-col> <el-col>
<el-button type="primary" icon="el-icon-plus" @click="add()" v-hasPermi="['business:drugFormFill:xz']">{{
$t('page.business.study.studyFormFill.xzbd') }}</el-button>
<el-button type="primary" icon="el-icon-plus" @click="add()" v-if="searchForm.studyStatus != 5"
v-hasPermi="['business:drugFormFill:xz']">{{
$t('page.business.study.studyFormFill.xzbd') }}</el-button>
</el-col> </el-col>
</el-row> </el-row>
<el-table v-loading="loading" :data="list"> <el-table v-loading="loading" :data="list">
<el-table-column :label="$t('page.business.form.bh')" prop="bdbh" :show-overflow-tooltip="true"/>
<el-table-column :label="$t('page.business.form.bdmc')" prop="bdmc" :show-overflow-tooltip="true"/>
<el-table-column :label="$t('page.business.form.xtmbmc')" prop="templateMc" :show-overflow-tooltip="true"/>
<el-table-column :label="$t('page.business.form.bh')" prop="bdbh" :show-overflow-tooltip="true" />
<el-table-column :label="$t('page.business.form.bdmc')" prop="bdmc" :show-overflow-tooltip="true" />
<el-table-column :label="$t('page.business.form.xtmbmc')" prop="templateMc" :show-overflow-tooltip="true" />
<el-table-column :label="$t('page.business.form.cjsj')" align="center" prop="createTime" width="140" /> <el-table-column :label="$t('page.business.form.cjsj')" align="center" prop="createTime" width="140" />
<el-table-column :label="$t('page.business.form.gsr')" align="center" prop="userMc" width="100" /> <el-table-column :label="$t('page.business.form.gsr')" align="center" prop="userMc" width="100" />
<el-table-column :label="$t('page.business.form.status')" prop="status" align="center" width="100"> <el-table-column :label="$t('page.business.form.status')" prop="status" align="center" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.bdzt === 1"><span class="status-circle tbz"></span>{{ $t('page.business.study.studyFormFill.tbz') }}</span>
<span v-if="scope.row.bdzt === 3"><span class="status-circle ytj"></span>{{ $t('page.business.study.studyFormFill.ytj') }}</span>
<span v-if="scope.row.bdzt === 5"><span class="status-circle ywcfh"></span>{{ $t('page.business.study.studyFormFill.ywcfh') }}</span>
<span v-if="scope.row.bdzt === 7"><span class="status-circle ywc"></span>{{ $t('page.business.study.studyFormFill.ywc') }}</span>
<span v-if="scope.row.bdzt === 9"><span class="status-circle dfz"></span>{{ $t('page.business.study.studyFormFill.dfz') }}</span>
<span v-if="scope.row.bdzt === 11"><span class="status-circle yfz"></span>{{ $t('page.business.study.studyFormFill.yfz') }}</span>
<span v-if="scope.row.bdzt === 1"><span class="status-circle tbz"></span>{{
$t('page.business.study.studyFormFill.tbz') }}</span>
<span v-if="scope.row.bdzt === 3"><span class="status-circle ytj"></span>{{
$t('page.business.study.studyFormFill.ytj') }}</span>
<span v-if="scope.row.bdzt === 5"><span class="status-circle ywcfh"></span>{{
$t('page.business.study.studyFormFill.ywcfh') }}</span>
<span v-if="scope.row.bdzt === 7"><span class="status-circle ywc"></span>{{
$t('page.business.study.studyFormFill.ywc') }}</span>
<span v-if="scope.row.bdzt === 9"><span class="status-circle dfz"></span>{{
$t('page.business.study.studyFormFill.dfz') }}</span>
<span v-if="scope.row.bdzt === 11"><span class="status-circle yfz"></span>{{
$t('page.business.study.studyFormFill.yfz') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('page.business.study.studyFormFill.sfbl')" align="center" prop="status" <el-table-column :label="$t('page.business.study.studyFormFill.sfbl')" align="center" prop="status"
width="100"> width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.sfbl === '是'"><span class="status-circle yes"></span>{{ $t('page.business.study.studyFormFill.yes') }}</span>
<span v-if="scope.row.sfbl === '否'"><span class="status-circle no"></span>{{ $t('page.business.study.studyFormFill.no') }}</span>
<span v-if="scope.row.sfbl === '是'"><span class="status-circle yes"></span>{{
$t('page.business.study.studyFormFill.yes') }}</span>
<span v-if="scope.row.sfbl === '否'"><span class="status-circle no"></span>{{
$t('page.business.study.studyFormFill.no') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('page.business.form.tjsj')" align="center" prop="tjsj" width="140" /> <el-table-column :label="$t('page.business.form.tjsj')" align="center" prop="tjsj" width="140" />
@ -104,41 +111,44 @@
<!-- 详情 --> <!-- 详情 -->
<el-button type="text" @click="detail(scope.row)" v-hasPermi="['business:drugFormFill:xq']">{{ <el-button type="text" @click="detail(scope.row)" v-hasPermi="['business:drugFormFill:xq']">{{
$t('form.detail') }}</el-button> $t('form.detail') }}</el-button>
<!-- 编辑 -->
<el-button type="text"
v-if="(scope.row.bdzt === 1 || scope.row.bdzt === 5 || scope.row.bdzt === 7) && id == scope.row.userId"
@click="edit(scope.row)" v-hasPermi="['business:drugFormFill:bj']">{{
$t('form.edit') }}</el-button>
<!-- 复核 -->
<el-button type="text" v-if="scope.row.bdzt === 3&&(id!=scope.row.userId||id<=103 || id==118 || id==119 || id==120)" @click="fh(scope.row)"
v-hasPermi="['business:drugFormFill:fh']">{{
$t('page.business.study.studyFormFill.fh') }}</el-button>
<!-- 加签 -->
<el-button type="text" v-if="scope.row.bdzt === 1" @click="jq(scope.row)"
v-hasPermi="['business:drugFormFill:jq']">{{
$t('page.business.study.studyFormFill.jq') }}</el-button>
<!-- 更换归属人 -->
<el-button type="text"
v-if="(scope.row.bdzt === 1 || scope.row.bdzt === 3 || scope.row.bdzt === 5 || scope.row.bdzt === 7) && checkRole(['bz'])"
@click="ghgsr(scope.row)" v-hasPermi="['business:drugFormFill:ghgsr']">{{
$t('page.business.study.studyFormFill.ghgsr') }}</el-button>
<!-- 审阅 -->
<el-button type="text"
v-if="(scope.row.bdzt === 5 || scope.row.bdzt === 7) && (isQa || checkRole(['bz']))"
@click="sy(scope.row)" v-hasPermi="['business:drugFormFill:sy']">{{
$t('page.business.study.studyFormFill.sy') }}</el-button>
<!-- 废止 -->
<el-button type="text" v-if="scope.row.bdzt === 1 && id == scope.row.userId" @click="fz(scope.row)"
v-hasPermi="['business:drugFormFill:fz']">{{
$t('page.business.study.studyFormFill.fz') }}</el-button>
<!-- 确认废止 -->
<el-button type="text" v-if="scope.row.bdzt === 9 && checkRole(['bz'])" @click="qrfz(scope.row)"
v-hasPermi="['business:drugFormFill:qrfz']">{{
$t('page.business.study.studyFormFill.qrfz') }}</el-button>
<!-- 观察 -->
<el-button type="text" v-if="scope.row.bdzt === 1" @click="gc(scope.row)"
v-hasPermi="['business:drugFormFill:gc']">{{
$t('page.business.study.studyFormFill.gc') }}</el-button>
<template v-if="searchForm.studyStatus != 5">
<!-- 编辑 -->
<el-button type="text"
v-if="(scope.row.bdzt === 1 || scope.row.bdzt === 5 || scope.row.bdzt === 7) && id == scope.row.userId"
@click="edit(scope.row)" v-hasPermi="['business:drugFormFill:bj']">{{
$t('form.edit') }}</el-button>
<!-- 复核 -->
<el-button type="text"
v-if="scope.row.bdzt === 3 && (id != scope.row.userId || id <= 103 || id == 118 || id == 119 || id == 120)"
@click="fh(scope.row)" v-hasPermi="['business:drugFormFill:fh']">{{
$t('page.business.study.studyFormFill.fh') }}</el-button>
<!-- 加签 -->
<el-button type="text" v-if="scope.row.bdzt === 1" @click="jq(scope.row)"
v-hasPermi="['business:drugFormFill:jq']">{{
$t('page.business.study.studyFormFill.jq') }}</el-button>
<!-- 更换归属人 -->
<el-button type="text"
v-if="(scope.row.bdzt === 1 || scope.row.bdzt === 3 || scope.row.bdzt === 5 || scope.row.bdzt === 7) && checkRole(['bz'])"
@click="ghgsr(scope.row)" v-hasPermi="['business:drugFormFill:ghgsr']">{{
$t('page.business.study.studyFormFill.ghgsr') }}</el-button>
<!-- 审阅 -->
<el-button type="text"
v-if="(scope.row.bdzt === 5 || scope.row.bdzt === 7) && (isQa || checkRole(['bz']))"
@click="sy(scope.row)" v-hasPermi="['business:drugFormFill:sy']">{{
$t('page.business.study.studyFormFill.sy') }}</el-button>
<!-- 废止 -->
<el-button type="text" v-if="scope.row.bdzt === 1 && id == scope.row.userId" @click="fz(scope.row)"
v-hasPermi="['business:drugFormFill:fz']">{{
$t('page.business.study.studyFormFill.fz') }}</el-button>
<!-- 确认废止 -->
<el-button type="text" v-if="scope.row.bdzt === 9 && checkRole(['bz'])" @click="qrfz(scope.row)"
v-hasPermi="['business:drugFormFill:qrfz']">{{
$t('page.business.study.studyFormFill.qrfz') }}</el-button>
<!-- 观察 -->
<el-button type="text" v-if="scope.row.bdzt === 1" @click="gc(scope.row)"
v-hasPermi="['business:drugFormFill:gc']">{{
$t('page.business.study.studyFormFill.gc') }}</el-button>
</template>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -208,6 +218,7 @@ export default {
study: { study: {
handler(newVal) { handler(newVal) {
this.searchForm.studySn = newVal.sn this.searchForm.studySn = newVal.sn
this.searchForm.studyStatus = newVal.status
this.searchForm.studyMc = newVal.name this.searchForm.studyMc = newVal.name
this.searchForm.studyId = newVal.id this.searchForm.studyId = newVal.id
this.leader = newVal.leader this.leader = newVal.leader
@ -232,6 +243,7 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
studyId: -1, studyId: -1,
studyStatus: 5,
studySn: '', studySn: '',
studyMc: '', studyMc: '',
bdbh: '', bdbh: '',
@ -241,7 +253,7 @@ export default {
templateMc: '', templateMc: '',
cjsjjs: '', cjsjjs: '',
cjsjks: '', cjsjks: '',
sfbl:null,
sfbl: null,
tjsjjs: '', tjsjjs: '',
tjsjks: '', tjsjks: '',
}, },
@ -253,7 +265,7 @@ export default {
}, },
created() { this.getIsQa() }, created() { this.getIsQa() },
mounted() { mounted() {
EventBus.$on('onRefreshDrugTbbdList',(data) => {
EventBus.$on('onRefreshDrugTbbdList', (data) => {
this.getList() this.getList()
}); });
}, },
@ -307,8 +319,8 @@ export default {
this.searchForm.tjsjjs = '' this.searchForm.tjsjjs = ''
this.searchForm.tjsjks = '' this.searchForm.tjsjks = ''
this.searchForm.sfbl = null this.searchForm.sfbl = null
this.daterange=[]
this.daterangetj=[]
this.daterange = []
this.daterangetj = []
this.search() this.search()
}, },
getList() { getList() {
@ -341,7 +353,7 @@ export default {
url: this.$route.fullPath, url: this.$route.fullPath,
studyId: this.searchForm.studyId, studyId: this.searchForm.studyId,
studyType: 10, studyType: 10,
studyFormType:5,
studyFormType: 5,
formId: null formId: null
})) }))
this.$tab.openPage(this.$t('page.business.study.studyFormFill.xzbd'), '/drug/formFillBj/' + params) this.$tab.openPage(this.$t('page.business.study.studyFormFill.xzbd'), '/drug/formFillBj/' + params)
@ -354,7 +366,7 @@ export default {
url: this.$route.fullPath, url: this.$route.fullPath,
studyId: this.searchForm.studyId, studyId: this.searchForm.studyId,
studyType: 10, studyType: 10,
studyFormType:5,
studyFormType: 5,
formId: row.id formId: row.id
})) }))
this.$tab.openPage(row.bdmc, '/drug/formFillBj/' + params) this.$tab.openPage(row.bdmc, '/drug/formFillBj/' + params)

+ 59
- 45
src/views/business/form/drug/comp/ytbdList.vue View File

@ -7,7 +7,7 @@
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('page.business.form.bdmc')" prop="name"> <el-form-item :label="$t('page.business.form.bdmc')" prop="name">
<el-input v-model="searchForm.bdmc" :placeholder="$t('form.placeholderInput')" clearable <el-input v-model="searchForm.bdmc" :placeholder="$t('form.placeholderInput')" clearable
style="width: 200px" />
style="width: 200px" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
@ -40,8 +40,7 @@
<el-form-item :label="$t('page.business.form.cjsj')"> <el-form-item :label="$t('page.business.form.cjsj')">
<el-date-picker v-model="daterange" clearable type="daterange" range-separator="-" <el-date-picker v-model="daterange" clearable type="daterange" range-separator="-"
:start-placeholder="$t('page.business.form.startDate')" :start-placeholder="$t('page.business.form.startDate')"
:end-placeholder="$t('page.business.form.endDate')" value-format="yyyy-MM-dd"
style="width: 200px" />
:end-placeholder="$t('page.business.form.endDate')" value-format="yyyy-MM-dd" style="width: 200px" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -50,29 +49,35 @@
<div class="ytbd-content"> <div class="ytbd-content">
<el-row class="add-box"> <el-row class="add-box">
<el-col> <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-if="searchForm.studyStatus != 5"
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']" <el-button type="primary" @click="sdsy" v-hasPermi="['business:form:drug:sd']"
v-if="(leader == id || checkRole(['bz']))" :disabled="studyStatus>=5">{{
v-if="(leader == id || checkRole(['bz']))" :disabled="studyStatus >= 5">{{
$t('page.business.study.drug.sdsy') }}</el-button> $t('page.business.study.drug.sdsy') }}</el-button>
</el-col> </el-col>
</el-row> </el-row>
<el-table v-loading="loading" :data="list"> <el-table v-loading="loading" :data="list">
<el-table-column :label="$t('page.business.form.bh')" prop="bdbh" :show-overflow-tooltip="true"/>
<el-table-column :label="$t('page.business.form.bdmc')" prop="bdmc" :show-overflow-tooltip="true"/>
<el-table-column :label="$t('page.business.form.xtmbmc')" prop="templateMc" :show-overflow-tooltip="true"/>
<el-table-column :label="$t('page.business.form.bh')" prop="bdbh" :show-overflow-tooltip="true" />
<el-table-column :label="$t('page.business.form.bdmc')" prop="bdmc" :show-overflow-tooltip="true" />
<el-table-column :label="$t('page.business.form.xtmbmc')" prop="templateMc" :show-overflow-tooltip="true" />
<el-table-column :label="$t('page.business.form.cjsj')" align="center" prop="createTime" width="140" /> <el-table-column :label="$t('page.business.form.cjsj')" align="center" prop="createTime" width="140" />
<el-table-column :label="$t('page.business.form.cjr')" align="center" prop="userMc" width="100" /> <el-table-column :label="$t('page.business.form.cjr')" align="center" prop="userMc" width="100" />
<el-table-column :label="$t('page.business.form.status')" prop="status" width="100"> <el-table-column :label="$t('page.business.form.status')" prop="status" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.bdzt === 1"><span class="status-circle tbz"></span>{{ $t('page.business.form.statusTbz') }}</span>
<span v-if="scope.row.bdzt === 3"><span class="status-circle ytj"></span>{{ $t('page.business.form.statusYtj') }}</span>
<span v-if="scope.row.bdzt === 5"><span class="status-circle ytg"></span>{{ $t('page.business.form.statusYtg') }}</span>
<span v-if="scope.row.bdzt === 9"><span class="status-circle dgb"></span>{{ $t('page.business.form.statusDgb') }}</span>
<span v-if="scope.row.bdzt === 11"><span class="status-circle ygb"></span>{{ $t('page.business.form.statusYgb') }}</span>
<span v-if="scope.row.bdzt === 1"><span class="status-circle tbz"></span>{{
$t('page.business.form.statusTbz') }}</span>
<span v-if="scope.row.bdzt === 3"><span class="status-circle ytj"></span>{{
$t('page.business.form.statusYtj') }}</span>
<span v-if="scope.row.bdzt === 5"><span class="status-circle ytg"></span>{{
$t('page.business.form.statusYtg') }}</span>
<span v-if="scope.row.bdzt === 9"><span class="status-circle dgb"></span>{{
$t('page.business.form.statusDgb') }}</span>
<span v-if="scope.row.bdzt === 11"><span class="status-circle ygb"></span>{{
$t('page.business.form.statusYgb') }}</span>
</template> </template>
</el-table-column> </el-table-column>
@ -82,33 +87,39 @@
<!-- 详情 --> <!-- 详情 -->
<el-button type="text" v-hasPermi="['business:drugFormPre:xq']" @click="detail(scope.row)">{{ <el-button type="text" v-hasPermi="['business:drugFormPre:xq']" @click="detail(scope.row)">{{
$t('form.detail') }}</el-button> $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">{{
$t('form.edit') }}</el-button>
<template v-if="scope.row.fzrsh == '是'">
<template v-if="scope.row.fzrshzt == 5">
<!-- 负责人审核 -->
<el-button type="text" @click="audit(scope.row)" v-hasPermi="['business:drugFormPre:sh']"
v-if="scope.row.bdzt === 3 && id == leader">{{
$t('page.business.form.audit') }}</el-button>
<template v-if="searchForm.studyStatus != 5">
<!-- 编辑 -->
<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">{{
$t('form.edit') }}</el-button>
<template v-if="scope.row.fzrsh == '是'">
<template v-if="scope.row.fzrshzt == 5">
<!-- 负责人审核 -->
<el-button type="text" @click="audit(scope.row)" v-hasPermi="['business:drugFormPre:sh']"
v-if="scope.row.bdzt === 3 && id == leader">{{
$t('page.business.form.audit') }}</el-button>
</template>
<template v-else>
<!-- 有权限审核 -->
<el-button type="text" @click="audit(scope.row)" v-hasPermi="['business:drugFormPre:sh']"
v-if="scope.row.bdzt === 3 && (id != scope.row.userId || id <= 103 || id == 118 || id == 119 || id == 120)">{{
$t('page.business.form.audit') }}</el-button>
</template>
</template> </template>
<template v-else> <template v-else>
<!-- 有权限审核 --> <!-- 有权限审核 -->
<el-button type="text" @click="audit(scope.row)" v-hasPermi="['business:drugFormPre:sh']" <el-button type="text" @click="audit(scope.row)" v-hasPermi="['business:drugFormPre:sh']"
v-if="scope.row.bdzt === 3&&(id!=scope.row.userId||id<=103 || id==118 || id==119 || id==120)">{{ $t('page.business.form.audit') }}</el-button>
v-if="scope.row.bdzt === 3 && (id != scope.row.userId || id <= 103 || id == 118 || id == 119 || id == 120)">{{
$t('page.business.form.audit') }}</el-button>
</template>
<template v-if="scope.row.bdzt === 5 && id == scope.row.userId">
<el-button type="text" @click="gb(scope.row)">{{ $t('page.business.study.studyFormPre.guanbi')
}}</el-button>
</template>
<template v-if="scope.row.bdzt === 9 && id == scope.row.sjshryId">
<el-button type="text" @click="qrgb(scope.row)">{{ $t('page.business.study.studyFormPre.qrgb')
}}</el-button>
</template> </template>
</template>
<template v-else>
<!-- 有权限审核 -->
<el-button type="text" @click="audit(scope.row)" v-hasPermi="['business:drugFormPre:sh']"
v-if="scope.row.bdzt === 3&&(id!=scope.row.userId||id<=103 || id==118 || id==119 || id==120)">{{ $t('page.business.form.audit') }}</el-button>
</template>
<template v-if="scope.row.bdzt === 5&&id==scope.row.userId">
<el-button type="text" @click="gb(scope.row)">{{ $t('page.business.study.studyFormPre.guanbi') }}</el-button>
</template>
<template v-if="scope.row.bdzt === 9&&id==scope.row.sjshryId">
<el-button type="text" @click="qrgb(scope.row)">{{ $t('page.business.study.studyFormPre.qrgb') }}</el-button>
</template> </template>
</template> </template>
</el-table-column> </el-table-column>
@ -125,9 +136,9 @@
<!-- 审核 --> <!-- 审核 -->
<Sh v-show="showAudit" key="Sh" ref="Sh" @close="shClose" /> <Sh v-show="showAudit" key="Sh" ref="Sh" @close="shClose" />
<!-- 关闭 --> <!-- 关闭 -->
<Gb key="Gb" ref="Gb" @callback="search" />
<Gb key="Gb" ref="Gb" @callback="search" />
<!-- 确认关闭 --> <!-- 确认关闭 -->
<Qrgb key="Qrgb" ref="Qrgb" @callback="search" />
<Qrgb key="Qrgb" ref="Qrgb" @callback="search" />
<el-dialog :title="$t('page.business.study.studyFormPre.xjbd')" :visible.sync="open" width="500px" append-to-body <el-dialog :title="$t('page.business.study.studyFormPre.xjbd')" :visible.sync="open" width="500px" append-to-body
:close-on-click-modal="false"> :close-on-click-modal="false">
<el-form ref="form" label-width="120px"> <el-form ref="form" label-width="120px">
@ -178,7 +189,8 @@
<el-dialog :title="$t('page.business.study.studyFormPre.yulan')" :visible.sync="openPreview" width="80%" <el-dialog :title="$t('page.business.study.studyFormPre.yulan')" :visible.sync="openPreview" width="80%"
append-to-body :close-on-click-modal="false"> append-to-body :close-on-click-modal="false">
<TemplateTable ref="templateTable" :sn="formDatePreview.templateSn" v-if="openPreview" :templateData="formDatePreview" fillType="detail" />
<TemplateTable ref="templateTable" :sn="formDatePreview.templateSn" v-if="openPreview"
:templateData="formDatePreview" fillType="detail" />
</el-dialog> </el-dialog>
<Sign ref="fsySignRef" @callback="doSign" /> <Sign ref="fsySignRef" @callback="doSign" />
@ -189,7 +201,7 @@
<script> <script>
import { checkPermi, checkRole } from "@/utils/permission"; 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,studyFormPre_studyList, studyFormPre_studyFormPreList } from '@/api/business/study/studyFormPre'
import { studyFormPre_list, studyFormPre_info, studyFormPre_studyList, studyFormPre_studyFormPreList } from '@/api/business/study/studyFormPre'
import TemplateTable from '@/views/business/comps/template/TemplateTable'; import TemplateTable from '@/views/business/comps/template/TemplateTable';
import Bj from "@/views/business/study/comp/ytbd/Bj"; import Bj from "@/views/business/study/comp/ytbd/Bj";
import Xq from "@/views/business/study/comp/ytbd/Xq"; import Xq from "@/views/business/study/comp/ytbd/Xq";
@ -222,6 +234,7 @@ export default {
this.searchForm.studyMc = newVal.name this.searchForm.studyMc = newVal.name
this.searchForm.studyId = newVal.id this.searchForm.studyId = newVal.id
this.leader = newVal.leader this.leader = newVal.leader
this.searchForm.studyStatus = newVal.status
this.studyStatus = newVal.status this.studyStatus = newVal.status
this.formCount = newVal.formCount this.formCount = newVal.formCount
this.formFinishCount = newVal.formFinishCount this.formFinishCount = newVal.formFinishCount
@ -231,7 +244,7 @@ export default {
deep: true deep: true
} }
}, },
components: { Qrgb,Gb,Bj, Xq, Sh, SelectDeptUser, TemplateTable, Sign },
components: { Qrgb, Gb, Bj, Xq, Sh, SelectDeptUser, TemplateTable, Sign },
data() { data() {
return { return {
formCount: 0, formCount: 0,
@ -253,6 +266,7 @@ export default {
pageSize: 10, pageSize: 10,
studyId: -1, studyId: -1,
studySn: '', studySn: '',
studyStatus: 5,
studyMc: '', studyMc: '',
bdbh: '', bdbh: '',
bdmc: '', bdmc: '',
@ -291,7 +305,7 @@ export default {
checkRole, checkRole,
copy() { copy() {
this.$modal.loading() this.$modal.loading()
studyFormPre_studyList({type:10}).then(response => {
studyFormPre_studyList({ type: 10 }).then(response => {
this.studyList = response.data this.studyList = response.data
this.formXz.studyId = null this.formXz.studyId = null
this.formXz.formPreId = null this.formXz.formPreId = null
@ -349,7 +363,7 @@ export default {
}, },
studyChange() { studyChange() {
this.$modal.loading() this.$modal.loading()
studyFormPre_studyFormPreList({ studyId: this.formXz.studyId,bdzt:5 }).then(response => {
studyFormPre_studyFormPreList({ studyId: this.formXz.studyId, bdzt: 5 }).then(response => {
this.formXz.formPre = null this.formXz.formPre = null
this.formPreList = response.data this.formPreList = response.data
this.$modal.closeLoading() this.$modal.closeLoading()
@ -376,7 +390,7 @@ export default {
this.searchForm.templateMc = '' this.searchForm.templateMc = ''
this.searchForm.startDate = '' this.searchForm.startDate = ''
this.searchForm.endDate = '' this.searchForm.endDate = ''
this.daterange=[]
this.daterange = []
this.search() this.search()
}, },
getList() { getList() {
@ -403,7 +417,7 @@ export default {
studyMc: this.searchForm.studyMc, studyMc: this.searchForm.studyMc,
studyId: this.searchForm.studyId, studyId: this.searchForm.studyId,
studyType: 10, studyType: 10,
studyFormType:1,
studyFormType: 1,
permitForSecectUser: 'business:drugFormPre:sh' permitForSecectUser: 'business:drugFormPre:sh'
}) })
}, },

+ 53
- 47
src/views/business/form/nonTrial/comp/tbbdList.vue View File

@ -66,7 +66,7 @@
<div class="tbbd-content"> <div class="tbbd-content">
<el-row class="add-box"> <el-row class="add-box">
<el-col> <el-col>
<el-button type="primary" icon="el-icon-plus" @click="add()"
<el-button type="primary" icon="el-icon-plus" v-if="searchForm.studyStatus != 5" @click="add()"
v-hasPermi="['business:nonTrialFormFill:xz']">{{ v-hasPermi="['business:nonTrialFormFill:xz']">{{
$t('page.business.study.studyFormFill.xzbd') }}</el-button> $t('page.business.study.studyFormFill.xzbd') }}</el-button>
</el-col> </el-col>
@ -110,41 +110,43 @@
<!-- 详情 --> <!-- 详情 -->
<el-button type="text" @click="detail(scope.row)" v-hasPermi="['business:nonTrialFormFill:xq']">{{ <el-button type="text" @click="detail(scope.row)" v-hasPermi="['business:nonTrialFormFill:xq']">{{
$t('form.detail') }}</el-button> $t('form.detail') }}</el-button>
<!-- 编辑 -->
<el-button type="text"
v-if="(scope.row.bdzt === 1 || scope.row.bdzt === 5 || scope.row.bdzt === 7) && id == scope.row.userId"
@click="edit(scope.row)" v-hasPermi="['business:nonTrialFormFill:bj']">{{
$t('form.edit') }}</el-button>
<!-- 复核 -->
<el-button type="text" v-if="scope.row.bdzt === 3 && id != scope.row.userId" @click="fh(scope.row)"
v-hasPermi="['business:nonTrialFormFill:fh']">{{
$t('page.business.study.studyFormFill.fh') }}</el-button>
<!-- 加签 -->
<el-button type="text" v-if="scope.row.bdzt === 1" @click="jq(scope.row)"
v-hasPermi="['business:nonTrialFormFill:jq']">{{
$t('page.business.study.studyFormFill.jq') }}</el-button>
<!-- 更换归属人 -->
<el-button type="text"
v-if="(scope.row.bdzt === 1 || scope.row.bdzt === 3 || scope.row.bdzt === 5 || scope.row.bdzt === 7) && checkRole(['bz'])"
@click="ghgsr(scope.row)" v-hasPermi="['business:nonTrialFormFill:ghgsr']">{{
$t('page.business.study.studyFormFill.ghgsr') }}</el-button>
<!-- 审阅 -->
<el-button type="text"
v-if="(scope.row.bdzt === 5 || scope.row.bdzt === 7) && (isQa || checkRole(['bz']))"
@click="sy(scope.row)" v-hasPermi="['business:nonTrialFormFill:sy']">{{
$t('page.business.study.studyFormFill.sy') }}</el-button>
<!-- 废止 -->
<el-button type="text" v-if="scope.row.bdzt === 1 && id == scope.row.userId" @click="fz(scope.row)"
v-hasPermi="['business:nonTrialFormFill:fz']">{{
$t('page.business.study.studyFormFill.fz') }}</el-button>
<!-- 确认废止 -->
<el-button type="text" v-if="scope.row.bdzt === 9 && checkRole(['bz'])" @click="qrfz(scope.row)"
v-hasPermi="['business:nonTrialFormFill:qrfz']">{{
$t('page.business.study.studyFormFill.qrfz') }}</el-button>
<!-- 观察 todo 观察按钮只在系统模板为细胞复苏记录表才展示) -->
<el-button type="text" v-if="scope.row.bdzt === 1" @click="gc(scope.row)"
v-hasPermi="['business:nonTrialFormFill:gc']">{{
$t('page.business.study.studyFormFill.gc') }}</el-button>
<template v-if="searchForm.studyStatus != 5">
<!-- 编辑 -->
<el-button type="text"
v-if="(scope.row.bdzt === 1 || scope.row.bdzt === 5 || scope.row.bdzt === 7) && id == scope.row.userId"
@click="edit(scope.row)" v-hasPermi="['business:nonTrialFormFill:bj']">{{
$t('form.edit') }}</el-button>
<!-- 复核 -->
<el-button type="text" v-if="scope.row.bdzt === 3 && id != scope.row.userId" @click="fh(scope.row)"
v-hasPermi="['business:nonTrialFormFill:fh']">{{
$t('page.business.study.studyFormFill.fh') }}</el-button>
<!-- 加签 -->
<el-button type="text" v-if="scope.row.bdzt === 1" @click="jq(scope.row)"
v-hasPermi="['business:nonTrialFormFill:jq']">{{
$t('page.business.study.studyFormFill.jq') }}</el-button>
<!-- 更换归属人 -->
<el-button type="text"
v-if="(scope.row.bdzt === 1 || scope.row.bdzt === 3 || scope.row.bdzt === 5 || scope.row.bdzt === 7) && checkRole(['bz'])"
@click="ghgsr(scope.row)" v-hasPermi="['business:nonTrialFormFill:ghgsr']">{{
$t('page.business.study.studyFormFill.ghgsr') }}</el-button>
<!-- 审阅 -->
<el-button type="text"
v-if="(scope.row.bdzt === 5 || scope.row.bdzt === 7) && (isQa || checkRole(['bz']))"
@click="sy(scope.row)" v-hasPermi="['business:nonTrialFormFill:sy']">{{
$t('page.business.study.studyFormFill.sy') }}</el-button>
<!-- 废止 -->
<el-button type="text" v-if="scope.row.bdzt === 1 && id == scope.row.userId" @click="fz(scope.row)"
v-hasPermi="['business:nonTrialFormFill:fz']">{{
$t('page.business.study.studyFormFill.fz') }}</el-button>
<!-- 确认废止 -->
<el-button type="text" v-if="scope.row.bdzt === 9 && checkRole(['bz'])" @click="qrfz(scope.row)"
v-hasPermi="['business:nonTrialFormFill:qrfz']">{{
$t('page.business.study.studyFormFill.qrfz') }}</el-button>
<!-- 观察 todo 观察按钮只在系统模板为细胞复苏记录表才展示) -->
<el-button type="text" v-if="scope.row.bdzt === 1" @click="gc(scope.row)"
v-hasPermi="['business:nonTrialFormFill:gc']">{{
$t('page.business.study.studyFormFill.gc') }}</el-button>
</template>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -216,6 +218,7 @@ export default {
handler(newVal) { handler(newVal) {
this.searchForm.studySn = newVal.sn this.searchForm.studySn = newVal.sn
this.searchForm.studyMc = newVal.name this.searchForm.studyMc = newVal.name
this.searchForm.studyStatus = newVal.status
this.searchForm.studyId = newVal.id this.searchForm.studyId = newVal.id
this.leader = newVal.leader this.leader = newVal.leader
this.search() this.search()
@ -241,6 +244,7 @@ export default {
studyId: -1, studyId: -1,
studySn: '', studySn: '',
studyMc: '', studyMc: '',
studyStatus: 5,
bdbh: '', bdbh: '',
bdmc: '', bdmc: '',
userId: '', userId: '',
@ -261,7 +265,7 @@ export default {
}, },
created() { this.getIsQa() }, created() { this.getIsQa() },
mounted() { mounted() {
EventBus.$on('onRefreshNonTrialTbbdList',(data) => {
EventBus.$on('onRefreshNonTrialTbbdList', (data) => {
this.getList() this.getList()
}); });
}, },
@ -345,15 +349,15 @@ export default {
this.$alert(data.ffmc, '', { this.$alert(data.ffmc, '', {
confirmButtonText: this.$t('page.business.study.studyMethod.qyd'), confirmButtonText: this.$t('page.business.study.studyMethod.qyd'),
callback: action => { callback: action => {
if(this.$route.path===data.toUrl){
this.$emit('changeTab',{key:'syff'})
}else{
let index = _.findIndex(this.$store.state.tagsView.visitedViews,(tab)=>{
if (this.$route.path === data.toUrl) {
this.$emit('changeTab', { key: 'syff' })
} else {
let index = _.findIndex(this.$store.state.tagsView.visitedViews, (tab) => {
return tab.path === data.toUrl return tab.path === data.toUrl
}) })
if(index>-1){
if (index > -1) {
this.$tab.refreshPage(this.$store.state.tagsView.visitedViews[index]); this.$tab.refreshPage(this.$store.state.tagsView.visitedViews[index]);
}else{
} else {
this.$tab.openPage("loading", data.toUrl) this.$tab.openPage("loading", data.toUrl)
} }
} }
@ -412,14 +416,15 @@ export default {
// 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 })
this.$modal.loading() this.$modal.loading()
studyMethod_getReadAllMethodStatus({ studyMethod_getReadAllMethodStatus({
studyType: 5,userId: this.id, studyId: this.searchForm.studyId }).then(response => {
studyType: 5, userId: this.id, studyId: this.searchForm.studyId
}).then(response => {
if (response.data.toUrl) { if (response.data.toUrl) {
this.toRead(response.data) this.toRead(response.data)
} else { } else {
let params = caesarCipher(JSON.stringify({ let params = caesarCipher(JSON.stringify({
url: this.$route.fullPath, url: this.$route.fullPath,
studyId: this.searchForm.studyId, studyId: this.searchForm.studyId,
studyFormType:5,
studyFormType: 5,
formId: null formId: null
})) }))
this.$tab.openPage(this.$t('page.business.study.studyFormFill.xzbd'), '/nonTrial/formFillBj/' + params) this.$tab.openPage(this.$t('page.business.study.studyFormFill.xzbd'), '/nonTrial/formFillBj/' + params)
@ -434,7 +439,8 @@ export default {
// this.$refs.Bj.edit(row) // this.$refs.Bj.edit(row)
this.$modal.loading() this.$modal.loading()
studyMethod_getReadAllMethodStatus({ studyMethod_getReadAllMethodStatus({
studyType: 5, userId: this.id, studyId: this.searchForm.studyId }).then(response => {
studyType: 5, userId: this.id, studyId: this.searchForm.studyId
}).then(response => {
if (response.data.toUrl) { if (response.data.toUrl) {
this.toRead(response.data) this.toRead(response.data)
} else { } else {
@ -442,7 +448,7 @@ export default {
url: this.$route.fullPath, url: this.$route.fullPath,
studyId: this.searchForm.studyId, studyId: this.searchForm.studyId,
formId: row.id, formId: row.id,
studyFormType:5,
studyFormType: 5,
})) }))
this.$tab.openPage(row.bdmc, '/nonTrial/formFillBj/' + params) this.$tab.openPage(row.bdmc, '/nonTrial/formFillBj/' + params)
} }

+ 39
- 34
src/views/business/form/nonTrial/comp/ytbdList.vue View File

@ -49,11 +49,11 @@
<div class="ytbd-content"> <div class="ytbd-content">
<el-row class="add-box"> <el-row class="add-box">
<el-col> <el-col>
<el-button type="primary" icon="el-icon-plus" @click="showAdd()"
<el-button type="primary" icon="el-icon-plus" v-if="searchForm.studyStatus != 5" @click="showAdd()"
v-hasPermi="['business:nonTrialFormPre:xz']">{{ v-hasPermi="['business:nonTrialFormPre:xz']">{{
$t('page.business.study.studyFormPre.xzbd') }}</el-button> $t('page.business.study.studyFormPre.xzbd') }}</el-button>
<el-button type="primary" @click="sdsy" v-hasPermi="['business:form:nonTrial:sd']" <el-button type="primary" @click="sdsy" v-hasPermi="['business:form:nonTrial:sd']"
v-if="(leader == id || checkRole(['bz']))" :disabled="studyStatus>=5">{{
v-if="(leader == id || checkRole(['bz']))" :disabled="studyStatus >= 5">{{
$t('page.business.study.nonTrial.sdsy') }}</el-button> $t('page.business.study.nonTrial.sdsy') }}</el-button>
</el-col> </el-col>
</el-row> </el-row>
@ -86,16 +86,24 @@
<!-- 详情 --> <!-- 详情 -->
<el-button type="text" v-hasPermi="['business:nonTrialFormPre:xq']" @click="detail(scope.row)">{{ <el-button type="text" v-hasPermi="['business:nonTrialFormPre:xq']" @click="detail(scope.row)">{{
$t('form.detail') }}</el-button> $t('form.detail') }}</el-button>
<!-- 编辑 -->
<el-button type="text" v-hasPermi="['business:nonTrialFormPre:bj']" @click="edit(scope.row)"
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 == '是'">
<template v-if="scope.row.fzrshzt == 5">
<!-- 负责人审核 -->
<el-button type="text" @click="audit(scope.row)" v-hasPermi="['business:nonTrialFormPre:sh']"
v-if="scope.row.bdzt === 3 && id == leader">{{
$t('page.business.form.audit') }}</el-button>
<template v-if="searchForm.studyStatus != 5">
<!-- 编辑 -->
<el-button type="text" v-hasPermi="['business:nonTrialFormPre:bj']" @click="edit(scope.row)"
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 == '是'">
<template v-if="scope.row.fzrshzt == 5">
<!-- 负责人审核 -->
<el-button type="text" @click="audit(scope.row)" v-hasPermi="['business:nonTrialFormPre:sh']"
v-if="scope.row.bdzt === 3 && id == leader">{{
$t('page.business.form.audit') }}</el-button>
</template>
<template v-else>
<!-- 有权限审核 -->
<el-button type="text" @click="audit(scope.row)" v-hasPermi="['business:nonTrialFormPre:sh']"
v-if="scope.row.bdzt === 3 && id != scope.row.userId">{{ $t('page.business.form.audit')
}}</el-button>
</template>
</template> </template>
<template v-else> <template v-else>
<!-- 有权限审核 --> <!-- 有权限审核 -->
@ -103,19 +111,14 @@
v-if="scope.row.bdzt === 3 && id != scope.row.userId">{{ $t('page.business.form.audit') v-if="scope.row.bdzt === 3 && id != scope.row.userId">{{ $t('page.business.form.audit')
}}</el-button> }}</el-button>
</template> </template>
</template>
<template v-else>
<!-- 有权限审核 -->
<el-button type="text" @click="audit(scope.row)" v-hasPermi="['business:nonTrialFormPre:sh']"
v-if="scope.row.bdzt === 3 && id != scope.row.userId">{{ $t('page.business.form.audit') }}</el-button>
</template>
<template v-if="scope.row.bdzt === 5 && id == scope.row.userId">
<el-button type="text" @click="gb(scope.row)">{{ $t('page.business.study.studyFormPre.guanbi')
}}</el-button>
</template>
<template v-if="scope.row.bdzt === 9 && id == scope.row.sjshryId">
<el-button type="text" @click="qrgb(scope.row)">{{ $t('page.business.study.studyFormPre.qrgb')
}}</el-button>
<template v-if="scope.row.bdzt === 5 && id == scope.row.userId">
<el-button type="text" @click="gb(scope.row)">{{ $t('page.business.study.studyFormPre.guanbi')
}}</el-button>
</template>
<template v-if="scope.row.bdzt === 9 && id == scope.row.sjshryId">
<el-button type="text" @click="qrgb(scope.row)">{{ $t('page.business.study.studyFormPre.qrgb')
}}</el-button>
</template>
</template> </template>
</template> </template>
</el-table-column> </el-table-column>
@ -232,6 +235,7 @@ export default {
this.searchForm.studyId = newVal.id this.searchForm.studyId = newVal.id
this.leader = newVal.leader this.leader = newVal.leader
this.studyStatus = newVal.status this.studyStatus = newVal.status
this.searchForm.studyStatus = newVal.status
this.formCount = newVal.formCount this.formCount = newVal.formCount
this.formFinishCount = newVal.formFinishCount this.formFinishCount = newVal.formFinishCount
this.search() this.search()
@ -261,6 +265,7 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
studyId: -1, studyId: -1,
studyStatus:5,
studySn: '', studySn: '',
studyMc: '', studyMc: '',
bdbh: '', bdbh: '',
@ -358,7 +363,7 @@ export default {
}, },
studyChange() { studyChange() {
this.$modal.loading() this.$modal.loading()
studyFormPre_studyFormPreList({ studyId: this.formXz.studyId,bdzt:5 }).then(response => {
studyFormPre_studyFormPreList({ studyId: this.formXz.studyId, bdzt: 5 }).then(response => {
this.formXz.formPre = null this.formXz.formPre = null
this.formPreList = response.data this.formPreList = response.data
this.$modal.closeLoading() this.$modal.closeLoading()
@ -370,15 +375,15 @@ export default {
this.$alert(data.ffmc, '', { this.$alert(data.ffmc, '', {
confirmButtonText: this.$t('page.business.study.studyMethod.qyd'), confirmButtonText: this.$t('page.business.study.studyMethod.qyd'),
callback: action => { callback: action => {
if(this.$route.path===data.toUrl){
this.$emit('changeTab',{key:'syff'})
}else{
let index = _.findIndex(this.$store.state.tagsView.visitedViews,(tab)=>{
if (this.$route.path === data.toUrl) {
this.$emit('changeTab', { key: 'syff' })
} else {
let index = _.findIndex(this.$store.state.tagsView.visitedViews, (tab) => {
return tab.path === data.toUrl return tab.path === data.toUrl
}) })
if(index>-1){
if (index > -1) {
this.$tab.refreshPage(this.$store.state.tagsView.visitedViews[index]); this.$tab.refreshPage(this.$store.state.tagsView.visitedViews[index]);
}else{
} else {
this.$tab.openPage("loading", data.toUrl) this.$tab.openPage("loading", data.toUrl)
} }
} }
@ -440,13 +445,13 @@ export default {
studyMc: this.searchForm.studyMc, studyMc: this.searchForm.studyMc,
studyId: this.searchForm.studyId, studyId: this.searchForm.studyId,
studyType: 5, studyType: 5,
studyFormType:1,
studyFormType: 1,
permitForSecectUser: 'business:nonTrialFormPre:sh' permitForSecectUser: 'business:nonTrialFormPre:sh'
}) })
}, },
edit(row) { edit(row) {
this.$modal.loading() this.$modal.loading()
studyMethod_getReadAllMethodStatus({ studyType: 5,userId: this.id, studyId: this.searchForm.studyId }).then(response => {
studyMethod_getReadAllMethodStatus({ studyType: 5, userId: this.id, studyId: this.searchForm.studyId }).then(response => {
if (response.data.toUrl) { if (response.data.toUrl) {
this.toRead(response.data) this.toRead(response.data)
} else { } else {

+ 33
- 27
src/views/business/study/comp/jhbdList.vue View File

@ -43,7 +43,7 @@
<el-row class="add-box"> <el-row class="add-box">
<el-col> <el-col>
<el-button type="primary" icon="el-icon-plus" @click="add()" v-hasPermi="['business:studyFormPlan:xz']" <el-button type="primary" icon="el-icon-plus" @click="add()" v-hasPermi="['business:studyFormPlan:xz']"
v-if="id == leader">{{
v-if="id == leader && searchForm.studyStatus != 5">{{
$t('page.business.study.studyFormPlan.xzpzjhb') }}</el-button> $t('page.business.study.studyFormPlan.xzpzjhb') }}</el-button>
</el-col> </el-col>
</el-row> </el-row>
@ -70,23 +70,26 @@
<!-- 详情 --> <!-- 详情 -->
<el-button type="text" @click="detail(scope.row)" v-hasPermi="['business:studyFormPlan:xq']">{{ <el-button type="text" @click="detail(scope.row)" v-hasPermi="['business:studyFormPlan:xq']">{{
$t('form.detail') }}</el-button> $t('form.detail') }}</el-button>
<!-- 编辑 -->
<el-button type="text" v-if="(scope.row.bdzt === 1 || scope.row.bdzt === 5) && id == scope.row.userId"
@click="edit(scope.row)" v-hasPermi="['business:studyFormPlan:bj']">{{
$t('form.edit') }}</el-button>
<!-- 复核 -->
<el-button type="text" v-if="scope.row.bdzt === 3 && id != scope.row.userId" @click="fh(scope.row)"
v-hasPermi="['business:studyFormPlan:fh']">{{
$t('page.business.study.studyFormPlan.fh') }}</el-button>
<!-- 更换归属人 -->
<el-button type="text"
v-if="(scope.row.bdzt === 1 || scope.row.bdzt === 3 || scope.row.bdzt === 5) && id == scope.row.subjectLeader"
@click="ghgsr(scope.row)" v-hasPermi="['business:studyFormPlan:ghgsr']">{{
$t('page.business.study.studyFormPlan.ghgsr') }}</el-button>
<!-- 审阅 -->
<el-button type="text" v-if="scope.row.bdzt === 5 && (isQa || id == leader)" @click="sy(scope.row)"
v-hasPermi="['business:studyFormPlan:sy']">{{
$t('page.business.study.studyFormPlan.sy') }}</el-button>
<!-- 未锁定才有 -->
<template v-if="searchForm.studyStatus != 5">
<!-- 编辑 -->
<el-button type="text" v-if="(scope.row.bdzt === 1 || scope.row.bdzt === 5) && id == scope.row.userId"
@click="edit(scope.row)" v-hasPermi="['business:studyFormPlan:bj']">{{
$t('form.edit') }}</el-button>
<!-- 复核 -->
<el-button type="text" v-if="scope.row.bdzt === 3 && id != scope.row.userId" @click="fh(scope.row)"
v-hasPermi="['business:studyFormPlan:fh']">{{
$t('page.business.study.studyFormPlan.fh') }}</el-button>
<!-- 更换归属人 -->
<el-button type="text"
v-if="(scope.row.bdzt === 1 || scope.row.bdzt === 3 || scope.row.bdzt === 5) && id == scope.row.subjectLeader"
@click="ghgsr(scope.row)" v-hasPermi="['business:studyFormPlan:ghgsr']">{{
$t('page.business.study.studyFormPlan.ghgsr') }}</el-button>
<!-- 审阅 -->
<el-button type="text" v-if="scope.row.bdzt === 5 && (isQa || id == leader)" @click="sy(scope.row)"
v-hasPermi="['business:studyFormPlan:sy']">{{
$t('page.business.study.studyFormPlan.sy') }}</el-button>
</template>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -143,6 +146,7 @@ export default {
handler(newVal) { handler(newVal) {
this.searchForm.studySn = newVal.sn this.searchForm.studySn = newVal.sn
this.searchForm.studyMc = newVal.name this.searchForm.studyMc = newVal.name
this.searchForm.studyStatus = newVal.status
this.searchForm.studyId = newVal.id this.searchForm.studyId = newVal.id
this.leader = newVal.leader this.leader = newVal.leader
this.search() this.search()
@ -165,6 +169,7 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
studyId: -1, studyId: -1,
studyStatus: 5,
bdbh: '', bdbh: '',
bdmc: '', bdmc: '',
studySn: '', studySn: '',
@ -191,15 +196,15 @@ export default {
this.$alert(data.ffmc, '', { this.$alert(data.ffmc, '', {
confirmButtonText: this.$t('page.business.study.studyMethod.qyd'), confirmButtonText: this.$t('page.business.study.studyMethod.qyd'),
callback: action => { callback: action => {
if(this.$route.path===data.toUrl){
this.$emit('changeTab',{key:'syff'})
}else{
let index = _.findIndex(this.$store.state.tagsView.visitedViews,(tab)=>{
if (this.$route.path === data.toUrl) {
this.$emit('changeTab', { key: 'syff' })
} else {
let index = _.findIndex(this.$store.state.tagsView.visitedViews, (tab) => {
return tab.path === data.toUrl return tab.path === data.toUrl
}) })
if(index>-1){
if (index > -1) {
this.$tab.refreshPage(this.$store.state.tagsView.visitedViews[index]); this.$tab.refreshPage(this.$store.state.tagsView.visitedViews[index]);
}else{
} else {
this.$tab.openPage("loading", data.toUrl) this.$tab.openPage("loading", data.toUrl)
} }
} }
@ -254,8 +259,9 @@ export default {
} else { } else {
this.showEdit = true this.showEdit = true
this.$emit('showDetail', this.showEdit) this.$emit('showDetail', this.showEdit)
this.$refs.Bj.edit({
studyFormType:10, studyType: 1,studySn: this.searchForm.studySn, studyMc: this.searchForm.studyMc, studyId: this.searchForm.studyId, studySubjectId: this.searchForm.studySubjectId })
this.$refs.Bj.edit({
studyFormType: 10, studyType: 1, studySn: this.searchForm.studySn, studyMc: this.searchForm.studyMc, studyId: this.searchForm.studyId, studySubjectId: this.searchForm.studySubjectId
})
} }
}).finally(() => { }).finally(() => {
this.$modal.closeLoading() this.$modal.closeLoading()
@ -263,7 +269,7 @@ export default {
}, },
edit(row) { edit(row) {
this.$modal.loading() this.$modal.loading()
studyMethod_getReadAllMethodStatus({ studyType: 1,userId: this.id, studyId: this.searchForm.studyId, studySubjectId: this.searchForm.studySubjectId }).then(response => {
studyMethod_getReadAllMethodStatus({ studyType: 1, userId: this.id, studyId: this.searchForm.studyId, studySubjectId: this.searchForm.studySubjectId }).then(response => {
if (response.data.toUrl) { if (response.data.toUrl) {
this.toRead(response.data) this.toRead(response.data)
} else { } else {

+ 57
- 51
src/views/business/study/comp/tbbdList.vue View File

@ -66,8 +66,8 @@
<div class="tbbd-content"> <div class="tbbd-content">
<el-row class="add-box"> <el-row class="add-box">
<el-col> <el-col>
<el-button type="primary" icon="el-icon-plus" v-if="isMatchSubject" @click="add()"
v-hasPermi="['business:studyFormFill:xz']">{{
<el-button type="primary" icon="el-icon-plus" v-if="isMatchSubject && searchForm.studyStatus != 5"
@click="add()" v-hasPermi="['business:studyFormFill:xz']">{{
$t('page.business.study.studyFormFill.xzbd') }}</el-button> $t('page.business.study.studyFormFill.xzbd') }}</el-button>
</el-col> </el-col>
</el-row> </el-row>
@ -110,40 +110,44 @@
<!-- 详情 --> <!-- 详情 -->
<el-button type="text" @click="detail(scope.row)" v-hasPermi="['business:studyFormFill:xq']">{{ <el-button type="text" @click="detail(scope.row)" v-hasPermi="['business:studyFormFill:xq']">{{
$t('form.detail') }}</el-button> $t('form.detail') }}</el-button>
<!-- 编辑 -->
<el-button type="text"
v-if="(scope.row.bdzt === 1 || scope.row.bdzt === 5 || scope.row.bdzt === 7) && id == scope.row.userId"
@click="edit(scope.row)" v-hasPermi="['business:studyFormFill:bj']">{{
$t('form.edit') }}</el-button>
<!-- 复核 -->
<el-button type="text" v-if="scope.row.bdzt === 3 && isMatchSubject && (id != scope.row.userId||id<=103 || id==118 || id==119 || id==120)"
@click="fh(scope.row)" v-hasPermi="['business:studyFormFill:fh']">{{
$t('page.business.study.studyFormFill.fh') }}</el-button>
<!-- 加签 -->
<el-button type="text" v-if="scope.row.bdzt === 1 && isMatchSubject" @click="jq(scope.row)"
v-hasPermi="['business:studyFormFill:jq']">{{
$t('page.business.study.studyFormFill.jq') }}</el-button>
<!-- 更换归属人 -->
<el-button type="text"
v-if="(scope.row.bdzt === 1 || scope.row.bdzt === 3 || scope.row.bdzt === 5 || scope.row.bdzt === 7) && id == scope.row.subjectLeader"
@click="ghgsr(scope.row)" v-hasPermi="['business:studyFormFill:ghgsr']">{{
$t('page.business.study.studyFormFill.ghgsr') }}</el-button>
<!-- 审阅 -->
<el-button type="text" v-if="(scope.row.bdzt === 5 || scope.row.bdzt === 7) && (isQa || id == leader)"
@click="sy(scope.row)" v-hasPermi="['business:studyFormFill:sy']">{{
$t('page.business.study.studyFormFill.sy') }}</el-button>
<!-- 废止 -->
<el-button type="text" v-if="scope.row.bdzt === 1 && id == scope.row.userId" @click="fz(scope.row)"
v-hasPermi="['business:studyFormFill:fz']">{{
$t('page.business.study.studyFormFill.fz') }}</el-button>
<!-- 确认废止 -->
<el-button type="text" v-if="scope.row.bdzt === 9 && id == leader" @click="qrfz(scope.row)"
v-hasPermi="['business:studyFormFill:qrfz']">{{
$t('page.business.study.studyFormFill.qrfz') }}</el-button>
<!-- 观察 todo 观察按钮只在系统模板为细胞复苏记录表才展示) -->
<el-button type="text" v-if="scope.row.bdzt === 1 && scope.row.showGc == 10" @click="gc(scope.row)"
v-hasPermi="['business:studyFormFill:gc']">{{
$t('page.business.study.studyFormFill.gc') }}</el-button>
<!-- 未锁定才有 -->
<template v-if="searchForm.studyStatus != 5">
<!-- 编辑 -->
<el-button type="text"
v-if="(scope.row.bdzt === 1 || scope.row.bdzt === 5 || scope.row.bdzt === 7) && id == scope.row.userId"
@click="edit(scope.row)" v-hasPermi="['business:studyFormFill:bj']">{{
$t('form.edit') }}</el-button>
<!-- 复核 -->
<el-button type="text"
v-if="scope.row.bdzt === 3 && isMatchSubject && (id != scope.row.userId || id <= 103 || id == 118 || id == 119 || id == 120)"
@click="fh(scope.row)" v-hasPermi="['business:studyFormFill:fh']">{{
$t('page.business.study.studyFormFill.fh') }}</el-button>
<!-- 加签 -->
<el-button type="text" v-if="scope.row.bdzt === 1 && isMatchSubject" @click="jq(scope.row)"
v-hasPermi="['business:studyFormFill:jq']">{{
$t('page.business.study.studyFormFill.jq') }}</el-button>
<!-- 更换归属人 -->
<el-button type="text"
v-if="(scope.row.bdzt === 1 || scope.row.bdzt === 3 || scope.row.bdzt === 5 || scope.row.bdzt === 7) && id == scope.row.subjectLeader"
@click="ghgsr(scope.row)" v-hasPermi="['business:studyFormFill:ghgsr']">{{
$t('page.business.study.studyFormFill.ghgsr') }}</el-button>
<!-- 审阅 -->
<el-button type="text" v-if="(scope.row.bdzt === 5 || scope.row.bdzt === 7) && (isQa || id == leader)"
@click="sy(scope.row)" v-hasPermi="['business:studyFormFill:sy']">{{
$t('page.business.study.studyFormFill.sy') }}</el-button>
<!-- 废止 -->
<el-button type="text" v-if="scope.row.bdzt === 1 && id == scope.row.userId" @click="fz(scope.row)"
v-hasPermi="['business:studyFormFill:fz']">{{
$t('page.business.study.studyFormFill.fz') }}</el-button>
<!-- 确认废止 -->
<el-button type="text" v-if="scope.row.bdzt === 9 && id == leader" @click="qrfz(scope.row)"
v-hasPermi="['business:studyFormFill:qrfz']">{{
$t('page.business.study.studyFormFill.qrfz') }}</el-button>
<!-- 观察 todo 观察按钮只在系统模板为细胞复苏记录表才展示) -->
<el-button type="text" v-if="scope.row.bdzt === 1 && scope.row.showGc == 10" @click="gc(scope.row)"
v-hasPermi="['business:studyFormFill:gc']">{{
$t('page.business.study.studyFormFill.gc') }}</el-button>
</template>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -204,9 +208,9 @@ export default {
return {} return {}
} }
}, },
selectedDeptId:{
type:[Number,String],
default:()=>{
selectedDeptId: {
type: [Number, String],
default: () => {
return null return null
} }
}, },
@ -221,6 +225,7 @@ export default {
handler(newVal) { handler(newVal) {
this.searchForm.studySn = newVal.sn this.searchForm.studySn = newVal.sn
this.searchForm.studyMc = newVal.name this.searchForm.studyMc = newVal.name
this.searchForm.studyStatus = newVal.status
this.searchForm.studyId = newVal.id this.searchForm.studyId = newVal.id
this.searchForm.studySubjectId = newVal.studySubjectId this.searchForm.studySubjectId = newVal.studySubjectId
this.leader = newVal.leader this.leader = newVal.leader
@ -232,7 +237,7 @@ export default {
} }
}, },
mounted() { mounted() {
EventBus.$on('onRefreshStudyTbbdList',(data) => {
EventBus.$on('onRefreshStudyTbbdList', (data) => {
this.getList() this.getList()
}); });
}, },
@ -258,6 +263,7 @@ export default {
studyId: -1, studyId: -1,
studySn: '', studySn: '',
studyMc: '', studyMc: '',
studyStatus: 5,
studySubjectId: '', studySubjectId: '',
bdbh: '', bdbh: '',
bdmc: '', bdmc: '',
@ -403,15 +409,15 @@ export default {
this.$alert(data.ffmc, '', { this.$alert(data.ffmc, '', {
confirmButtonText: this.$t('page.business.study.studyMethod.qyd'), confirmButtonText: this.$t('page.business.study.studyMethod.qyd'),
callback: action => { callback: action => {
if(this.$route.path===data.toUrl){
this.$emit('changeTab',{key:'syff'})
}else{
let index = _.findIndex(this.$store.state.tagsView.visitedViews,(tab)=>{
if (this.$route.path === data.toUrl) {
this.$emit('changeTab', { key: 'syff' })
} else {
let index = _.findIndex(this.$store.state.tagsView.visitedViews, (tab) => {
return tab.path === data.toUrl return tab.path === data.toUrl
}) })
if(index>-1){
if (index > -1) {
this.$tab.refreshPage(this.$store.state.tagsView.visitedViews[index]); this.$tab.refreshPage(this.$store.state.tagsView.visitedViews[index]);
}else{
} else {
this.$tab.openPage("loading", data.toUrl) this.$tab.openPage("loading", data.toUrl)
} }
} }
@ -431,8 +437,8 @@ export default {
url: this.$route.fullPath, url: this.$route.fullPath,
studyId: this.searchForm.studyId, studyId: this.searchForm.studyId,
studyType: 1, studyType: 1,
studyFormType:5,
selectedDeptId:this.selectedDeptId,
studyFormType: 5,
selectedDeptId: this.selectedDeptId,
studySubjectId: this.searchForm.studySubjectId, studySubjectId: this.searchForm.studySubjectId,
id: null id: null
})) }))
@ -447,7 +453,7 @@ export default {
// this.$emit('showDetail', this.showEdit) // this.$emit('showDetail', this.showEdit)
// this.$refs.Bj.edit(row) // this.$refs.Bj.edit(row)
this.$modal.loading() this.$modal.loading()
studyMethod_getReadAllMethodStatus({userId: this.id, studyId: this.searchForm.studyId, studySubjectId: this.searchForm.studySubjectId }).then(response => {
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId, studySubjectId: this.searchForm.studySubjectId }).then(response => {
if (response.data.toUrl) { if (response.data.toUrl) {
this.toRead(response.data) this.toRead(response.data)
} else { } else {
@ -455,9 +461,9 @@ export default {
url: this.$route.fullPath, url: this.$route.fullPath,
studyId: this.searchForm.studyId, studyId: this.searchForm.studyId,
studyType: 1, studyType: 1,
studyFormType:5,
studyFormType: 5,
studySubjectId: this.searchForm.studySubjectId, studySubjectId: this.searchForm.studySubjectId,
selectedDeptId:this.selectedDeptId,
selectedDeptId: this.selectedDeptId,
formId: row.id formId: row.id
})) }))
this.$tab.openPage(row.bdmc, '/study/formFillBj/' + params) this.$tab.openPage(row.bdmc, '/study/formFillBj/' + params)

+ 2
- 0
src/views/business/study/comp/wzlb/bacteriaList.vue View File

@ -94,6 +94,7 @@ export default {
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
studyStatus: 5,
mc: null, mc: null,
jyzt: null, jyzt: null,
studyId: null, studyId: null,
@ -117,6 +118,7 @@ export default {
watch: { watch: {
study: { study: {
handler(newVal) { handler(newVal) {
this.queryParams.studyStatus = newVal.status
this.queryParams.studyId = newVal.id this.queryParams.studyId = newVal.id
this.handleQuery() this.handleQuery()
}, },

+ 2
- 0
src/views/business/study/comp/wzlb/cellList.vue View File

@ -93,6 +93,7 @@ export default {
// //
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
studyStatus: 5,
pageSize: 10, pageSize: 10,
mc: null, mc: null,
jyzt: null, jyzt: null,
@ -117,6 +118,7 @@ export default {
watch: { watch: {
study: { study: {
handler(newVal) { handler(newVal) {
this.queryParams.studyStatus = newVal.status
this.queryParams.studyId = newVal.id this.queryParams.studyId = newVal.id
this.handleQuery() this.handleQuery()
}, },

+ 17
- 13
src/views/business/study/comp/wzlb/gspList.vue View File

@ -76,19 +76,21 @@
<el-button type="text" @click="handleXq(scope.row)" <el-button type="text" @click="handleXq(scope.row)"
v-hasPermi="['business:studyMjy:xq', 'business:nonTrialMjy:xq', 'business:drugMjy:xq']">{{ v-hasPermi="['business:studyMjy:xq', 'business:nonTrialMjy:xq', 'business:drugMjy:xq']">{{
$t('page.business.resource.gsp.detail') }}</el-button> $t('page.business.resource.gsp.detail') }}</el-button>
<template v-if="scope.row.syghzt == 1">
<!-- 处置 -->
<el-button type="text" @click="handleCz(scope.row)"
v-hasPermi="['business:studyMjy:czyj', 'business:nonTrialMjy:czyj', 'business:drugMjy:czyj']">{{
$t('page.business.resource.gsp.cz') }}</el-button>
<!-- 编辑 -->
<el-button type="text" @click="handleBj(scope.row)"
v-hasPermi="['business:studyMjy:bj', 'business:nonTrialMjy:bj', 'business:drugMjy:bj']">{{
$t('form.edit') }}</el-button>
<!-- 修改库存 -->
<el-button type="text" @click="handleXgkc(scope.row)"
v-hasPermi="['business:studyMjy:xgkc', 'business:nonTrialMjy:xgkc', 'business:drugMjy:xgkc']">{{
$t('page.business.resource.gsp.xgkc') }}</el-button>
<template v-if="queryParams.studyStatus != 5">
<template v-if="scope.row.syghzt == 1">
<!-- 处置 -->
<el-button type="text" @click="handleCz(scope.row)"
v-hasPermi="['business:studyMjy:czyj', 'business:nonTrialMjy:czyj', 'business:drugMjy:czyj']">{{
$t('page.business.resource.gsp.cz') }}</el-button>
<!-- 编辑 -->
<el-button type="text" @click="handleBj(scope.row)"
v-hasPermi="['business:studyMjy:bj', 'business:nonTrialMjy:bj', 'business:drugMjy:bj']">{{
$t('form.edit') }}</el-button>
<!-- 修改库存 -->
<el-button type="text" @click="handleXgkc(scope.row)"
v-hasPermi="['business:studyMjy:xgkc', 'business:nonTrialMjy:xgkc', 'business:drugMjy:xgkc']">{{
$t('page.business.resource.gsp.xgkc') }}</el-button>
</template>
</template> </template>
</template> </template>
</el-table-column> </el-table-column>
@ -134,6 +136,7 @@ export default {
// //
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
studyStatus: 5,
pageSize: 10, pageSize: 10,
mc: null, mc: null,
jyzt: null, jyzt: null,
@ -158,6 +161,7 @@ export default {
watch: { watch: {
study: { study: {
handler(newVal) { handler(newVal) {
this.queryParams.studyStatus = newVal.status
this.queryParams.studyId = newVal.id this.queryParams.studyId = newVal.id
this.handleQuery() this.handleQuery()
}, },

+ 59
- 48
src/views/business/study/comp/wzlb/gyzjList.vue View File

@ -6,18 +6,15 @@
<el-form :model="queryParams" ref="queryForm" class="search-area" :inline="true" label-width="88px"> <el-form :model="queryParams" ref="queryForm" class="search-area" :inline="true" label-width="88px">
<!-- 名称 --> <!-- 名称 -->
<el-form-item :label="$t('page.business.resource.gyzj.mc') + ':'"> <el-form-item :label="$t('page.business.resource.gyzj.mc') + ':'">
<el-input v-model="queryParams.mc" clearable
:placeholder="$t('form.placeholderInput')" />
<el-input v-model="queryParams.mc" clearable :placeholder="$t('form.placeholderInput')" />
</el-form-item> </el-form-item>
<!-- 编号 --> <!-- 编号 -->
<el-form-item :label="$t('page.business.resource.gyzj.bh') + ':'"> <el-form-item :label="$t('page.business.resource.gyzj.bh') + ':'">
<el-input v-model="queryParams.bh" clearable
:placeholder="$t('form.placeholderInput')" />
<el-input v-model="queryParams.bh" clearable :placeholder="$t('form.placeholderInput')" />
</el-form-item> </el-form-item>
<!-- 制剂状态 --> <!-- 制剂状态 -->
<el-form-item :label="$t('page.business.resource.gyzj.zjzt') + ':'"> <el-form-item :label="$t('page.business.resource.gyzj.zjzt') + ':'">
<el-select v-model="queryParams.zjzt" :placeholder="$t('form.placeholderSelect')" clearable
>
<el-select v-model="queryParams.zjzt" :placeholder="$t('form.placeholderSelect')" clearable>
<el-option :label="$t('page.business.resource.resource.zjzt.rk')" :value="1" /> <el-option :label="$t('page.business.resource.resource.zjzt.rk')" :value="1" />
<el-option :label="$t('page.business.resource.resource.zjzt.wrk')" :value="2" /> <el-option :label="$t('page.business.resource.resource.zjzt.wrk')" :value="2" />
<el-option :label="$t('page.business.resource.resource.zjzt.yff')" :value="3" /> <el-option :label="$t('page.business.resource.resource.zjzt.yff')" :value="3" />
@ -31,7 +28,7 @@
<el-form-item :label="$t('page.business.resource.gyzj.sxrq') + ':'"> <el-form-item :label="$t('page.business.resource.gyzj.sxrq') + ':'">
<el-date-picker v-model="daterange" class="chat-histogram-daterange" type="daterange" range-separator="-" <el-date-picker v-model="daterange" class="chat-histogram-daterange" type="daterange" range-separator="-"
:start-placeholder="$t('form.startDate')" :end-placeholder="$t('form.endDate')" value-format="yyyy-MM-dd" :start-placeholder="$t('form.startDate')" :end-placeholder="$t('form.endDate')" value-format="yyyy-MM-dd"
style="width: 250px;" />
style="width: 250px;" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery">{{ $t('form.search') }}</el-button> <el-button type="primary" icon="el-icon-search" @click="handleQuery">{{ $t('form.search') }}</el-button>
@ -56,19 +53,28 @@
<el-table-column :label="$t('page.business.resource.gyzj.sxrq')" align="center" prop="sxrq" width="150px" /> <el-table-column :label="$t('page.business.resource.gyzj.sxrq')" align="center" prop="sxrq" width="150px" />
<el-table-column :label="$t('page.business.resource.gyzj.sfcc')" align="center" width="100px" fixed="right"> <el-table-column :label="$t('page.business.resource.gyzj.sfcc')" align="center" width="100px" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.cczt == 1"><span class="status-circle yes"></span>{{ $t('page.business.resource.resource.cczt.qc') }}</span>
<span v-if="scope.row.cczt == 3"><span class="status-circle no"></span>{{ $t('page.business.resource.resource.cczt.cc') }}</span>
<span v-if="scope.row.cczt == 1"><span class="status-circle yes"></span>{{
$t('page.business.resource.resource.cczt.qc') }}</span>
<span v-if="scope.row.cczt == 3"><span class="status-circle no"></span>{{
$t('page.business.resource.resource.cczt.cc') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('page.business.resource.gyzj.zjzt')" align="center" width="100px" fixed="right"> <el-table-column :label="$t('page.business.resource.gyzj.zjzt')" align="center" width="100px" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.zjzt == 1"><span class="status-circle rk"></span>{{ $t('page.business.resource.resource.zjzt.rk') }}</span>
<span v-if="scope.row.zjzt == 2"><span class="status-circle wrk"></span>{{ $t('page.business.resource.resource.zjzt.wrk') }}</span>
<span v-if="scope.row.zjzt == 3"><span class="status-circle yff"></span>{{ $t('page.business.resource.resource.zjzt.yff') }}</span>
<span v-if="scope.row.zjzt == 5"><span class="status-circle ysd"></span>{{ $t('page.business.resource.resource.zjzt.ysd') }}</span>
<span v-if="scope.row.zjzt == 7"><span class="status-circle dgd"></span>{{ $t('page.business.resource.resource.zjzt.dgd') }}</span>
<span v-if="scope.row.zjzt == 9"><span class="status-circle gd"></span>{{ $t('page.business.resource.resource.zjzt.gd') }}</span>
<span v-if="scope.row.zjzt == 11"><span class="status-circle djd"></span>{{ $t('page.business.resource.resource.zjzt.djd') }}</span>
<span v-if="scope.row.zjzt == 1"><span class="status-circle rk"></span>{{
$t('page.business.resource.resource.zjzt.rk') }}</span>
<span v-if="scope.row.zjzt == 2"><span class="status-circle wrk"></span>{{
$t('page.business.resource.resource.zjzt.wrk') }}</span>
<span v-if="scope.row.zjzt == 3"><span class="status-circle yff"></span>{{
$t('page.business.resource.resource.zjzt.yff') }}</span>
<span v-if="scope.row.zjzt == 5"><span class="status-circle ysd"></span>{{
$t('page.business.resource.resource.zjzt.ysd') }}</span>
<span v-if="scope.row.zjzt == 7"><span class="status-circle dgd"></span>{{
$t('page.business.resource.resource.zjzt.dgd') }}</span>
<span v-if="scope.row.zjzt == 9"><span class="status-circle gd"></span>{{
$t('page.business.resource.resource.zjzt.gd') }}</span>
<span v-if="scope.row.zjzt == 11"><span class="status-circle djd"></span>{{
$t('page.business.resource.resource.zjzt.djd') }}</span>
</template> </template>
</el-table-column> </el-table-column>
@ -79,40 +85,43 @@
<el-button type="text" @click="handleXq(scope.row)" <el-button type="text" @click="handleXq(scope.row)"
v-hasPermi="['business:studyGyzj:xq', 'business:nonTrialGyzj:xq', 'business:drugGyzj:xq']">{{ v-hasPermi="['business:studyGyzj:xq', 'business:nonTrialGyzj:xq', 'business:drugGyzj:xq']">{{
$t('page.business.resource.gyzj.detail') }}</el-button> $t('page.business.resource.gyzj.detail') }}</el-button>
<template v-if="scope.row.zjzt == 3 && scope.row.cczt == 1">
<template v-if="scope.row.ghzt == 1">
<!-- 归还 -->
<el-button type="text" @click="handleGh(scope.row)"
v-hasPermi="['business:studyGyzj:gh', 'business:nonTrialGyzj:gh', 'business:drugGyzj:gh']">{{
$t('page.business.resource.gyzj.sqguihuan') }}</el-button>
</template>
<template>
<!-- 处置药剂 -->
<el-button type="text" @click="handleCzyj(scope.row)"
v-hasPermi="['business:studyGyzj:czyj', 'business:nonTrialGyzj:czyj', 'business:drugGyzj:czyj']">{{
$t('page.business.resource.gyzj.czyj') }}</el-button>
<!-- 编辑 -->
<el-button type="text" @click="handleBj(scope.row)"
v-hasPermi="['business:studyGyzj:bj', 'business:nonTrialGyzj:bj', 'business:drugGyzj:bj']">{{
$t('form.edit') }}</el-button>
<!-- 修改库存 -->
<el-button type="text" @click="handleXgkc(scope.row)"
v-hasPermi="['business:studyGyzj:xgkc', 'business:nonTrialGyzj:xgkc', 'business:drugGyzj:xgkc']">{{
$t('page.business.resource.gyzj.xgkc') }}</el-button>
<template v-if="queryParams.studyStatus != 5">
<template v-if="scope.row.zjzt == 3 && scope.row.cczt == 1">
<template v-if="scope.row.ghzt == 1">
<!-- 归还 -->
<el-button type="text" @click="handleGh(scope.row)"
v-hasPermi="['business:studyGyzj:gh', 'business:nonTrialGyzj:gh', 'business:drugGyzj:gh']">{{
$t('page.business.resource.gyzj.sqguihuan') }}</el-button>
</template>
<template>
<!-- 处置药剂 -->
<el-button type="text" @click="handleCzyj(scope.row)"
v-hasPermi="['business:studyGyzj:czyj', 'business:nonTrialGyzj:czyj', 'business:drugGyzj:czyj']">{{
$t('page.business.resource.gyzj.czyj') }}</el-button>
<!-- 编辑 -->
<el-button type="text" @click="handleBj(scope.row)"
v-hasPermi="['business:studyGyzj:bj', 'business:nonTrialGyzj:bj', 'business:drugGyzj:bj']">{{
$t('form.edit') }}</el-button>
<!-- 修改库存 -->
<el-button type="text" @click="handleXgkc(scope.row)"
v-hasPermi="['business:studyGyzj:xgkc', 'business:nonTrialGyzj:xgkc', 'business:drugGyzj:xgkc']">{{
$t('page.business.resource.gyzj.xgkc') }}</el-button>
</template>
</template> </template>
<!-- 入库 -->
<el-button type="text" v-if="scope.row.zjzt == 2 && scope.row.rksqzt == 1 && scope.row.cczt == 1"
@click="handleRk(scope.row)"
v-hasPermi="['business:studyGyzj:rk', 'business:nonTrialGyzj:rk', 'business:drugGyzj:rk']">{{
$t('page.business.resource.gyzj.ruku') }}</el-button>
<!-- 取出 -->
<el-button type="text" v-if="scope.row.zjzt == 3 && scope.row.cczt == 3" @click="handleQc(scope.row)"
v-hasPermi="['business:studyGyzj:qc', 'business:nonTrialGyzj:qc', 'business:drugGyzj:qc']">{{
$t('page.business.resource.gyzj.quchu') }}</el-button>
<!-- 存储 -->
<el-button type="text" v-if="scope.row.zjzt == 3 && scope.row.cczt == 1" @click="handleCc(scope.row)"
v-hasPermi="['business:studyGyzj:cc', 'business:nonTrialGyzj:cc', 'business:drugGyzj:cc']">{{
$t('page.business.resource.gyzj.cunchu') }}</el-button>
</template> </template>
<!-- 入库 -->
<el-button type="text" v-if="scope.row.zjzt == 2 && scope.row.rksqzt == 1&& scope.row.cczt == 1" @click="handleRk(scope.row)"
v-hasPermi="['business:studyGyzj:rk', 'business:nonTrialGyzj:rk', 'business:drugGyzj:rk']">{{
$t('page.business.resource.gyzj.ruku') }}</el-button>
<!-- 取出 -->
<el-button type="text" v-if="scope.row.zjzt == 3 && scope.row.cczt == 3" @click="handleQc(scope.row)"
v-hasPermi="['business:studyGyzj:qc', 'business:nonTrialGyzj:qc', 'business:drugGyzj:qc']">{{
$t('page.business.resource.gyzj.quchu') }}</el-button>
<!-- 存储 -->
<el-button type="text" v-if="scope.row.zjzt == 3 && scope.row.cczt == 1" @click="handleCc(scope.row)"
v-hasPermi="['business:studyGyzj:cc', 'business:nonTrialGyzj:cc', 'business:drugGyzj:cc']">{{
$t('page.business.resource.gyzj.cunchu') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -171,6 +180,7 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
studyId: null, studyId: null,
studyStatus: 5,
mc: null, mc: null,
jyzt: null, jyzt: null,
zjzt: null, zjzt: null,
@ -194,6 +204,7 @@ export default {
study: { study: {
handler(newVal) { handler(newVal) {
this.queryParams.studyId = newVal.id this.queryParams.studyId = newVal.id
this.queryParams.studyStatus = newVal.status
this.handleQuery() this.handleQuery()
}, },
immediate: true, immediate: true,

+ 55
- 43
src/views/business/study/comp/wzlb/mjyList.vue View File

@ -6,18 +6,15 @@
<el-form :model="queryParams" ref="queryForm" class="search-area" :inline="true" label-width="88px"> <el-form :model="queryParams" ref="queryForm" class="search-area" :inline="true" label-width="88px">
<!-- 名称 --> <!-- 名称 -->
<el-form-item :label="$t('page.business.resource.mjy.mc') + ':'"> <el-form-item :label="$t('page.business.resource.mjy.mc') + ':'">
<el-input v-model="queryParams.mc" clearable
:placeholder="$t('form.placeholderInput')" />
<el-input v-model="queryParams.mc" clearable :placeholder="$t('form.placeholderInput')" />
</el-form-item> </el-form-item>
<!-- 编号 --> <!-- 编号 -->
<el-form-item :label="$t('page.business.resource.mjy.bh') + ':'"> <el-form-item :label="$t('page.business.resource.mjy.bh') + ':'">
<el-input v-model="queryParams.bh" clearable
:placeholder="$t('form.placeholderInput')" />
<el-input v-model="queryParams.bh" clearable :placeholder="$t('form.placeholderInput')" />
</el-form-item> </el-form-item>
<!-- 制剂状态 --> <!-- 制剂状态 -->
<el-form-item :label="$t('page.business.resource.mjy.zjzt') + ':'"> <el-form-item :label="$t('page.business.resource.mjy.zjzt') + ':'">
<el-select v-model="queryParams.zjzt" :placeholder="$t('form.placeholderSelect')" clearable
>
<el-select v-model="queryParams.zjzt" :placeholder="$t('form.placeholderSelect')" clearable>
<el-option :label="$t('page.business.resource.resource.zjzt.rk')" :value="1" /> <el-option :label="$t('page.business.resource.resource.zjzt.rk')" :value="1" />
<el-option :label="$t('page.business.resource.resource.zjzt.wrk')" :value="2" /> <el-option :label="$t('page.business.resource.resource.zjzt.wrk')" :value="2" />
<el-option :label="$t('page.business.resource.resource.zjzt.yff')" :value="3" /> <el-option :label="$t('page.business.resource.resource.zjzt.yff')" :value="3" />
@ -31,7 +28,7 @@
<el-form-item :label="$t('page.business.resource.mjy.sxrq') + ':'"> <el-form-item :label="$t('page.business.resource.mjy.sxrq') + ':'">
<el-date-picker v-model="daterange" class="chat-histogram-daterange" type="daterange" range-separator="-" <el-date-picker v-model="daterange" class="chat-histogram-daterange" type="daterange" range-separator="-"
:start-placeholder="$t('form.startDate')" :end-placeholder="$t('form.endDate')" value-format="yyyy-MM-dd" :start-placeholder="$t('form.startDate')" :end-placeholder="$t('form.endDate')" value-format="yyyy-MM-dd"
style="width: 250px;" />
style="width: 250px;" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery">{{ $t('form.search') }}</el-button> <el-button type="primary" icon="el-icon-search" @click="handleQuery">{{ $t('form.search') }}</el-button>
@ -56,50 +53,63 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('page.business.resource.mjy.sxrq')" align="center" prop="sxrq" width="150px" /> <el-table-column :label="$t('page.business.resource.mjy.sxrq')" align="center" prop="sxrq" width="150px" />
<el-table-column :label="$t('page.business.resource.gyzj.sfcc')" align="center" width="100px" fixed="right">
<el-table-column :label="$t('page.business.resource.gyzj.sfcc')" align="center" width="100px" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.cczt == 1"><span class="status-circle yes"></span>{{ $t('page.business.resource.resource.cczt.qc') }}</span>
<span v-if="scope.row.cczt == 3"><span class="status-circle no"></span>{{ $t('page.business.resource.resource.cczt.cc') }}</span>
<span v-if="scope.row.cczt == 1"><span class="status-circle yes"></span>{{
$t('page.business.resource.resource.cczt.qc') }}</span>
<span v-if="scope.row.cczt == 3"><span class="status-circle no"></span>{{
$t('page.business.resource.resource.cczt.cc') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('page.business.resource.mjy.zjzt')" align="center" width="100px" fixed="right"> <el-table-column :label="$t('page.business.resource.mjy.zjzt')" align="center" width="100px" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.zjzt == 1"><span class="status-circle rk"></span>{{ $t('page.business.resource.resource.zjzt.rk') }}</span>
<span v-if="scope.row.zjzt == 2"><span class="status-circle wrk"></span>{{ $t('page.business.resource.resource.zjzt.wrk') }}</span>
<span v-if="scope.row.zjzt == 3"><span class="status-circle yff"></span>{{ $t('page.business.resource.resource.zjzt.yff') }}</span>
<span v-if="scope.row.zjzt == 5"><span class="status-circle ysd"></span>{{ $t('page.business.resource.resource.zjzt.ysd') }}</span>
<span v-if="scope.row.zjzt == 7"><span class="status-circle dgd"></span>{{ $t('page.business.resource.resource.zjzt.dgd') }}</span>
<span v-if="scope.row.zjzt == 9"><span class="status-circle gd"></span>{{ $t('page.business.resource.resource.zjzt.gd') }}</span>
<span v-if="scope.row.zjzt == 11"><span class="status-circle djd"></span>{{ $t('page.business.resource.resource.zjzt.djd') }}</span>
<span v-if="scope.row.zjzt == 1"><span class="status-circle rk"></span>{{
$t('page.business.resource.resource.zjzt.rk') }}</span>
<span v-if="scope.row.zjzt == 2"><span class="status-circle wrk"></span>{{
$t('page.business.resource.resource.zjzt.wrk') }}</span>
<span v-if="scope.row.zjzt == 3"><span class="status-circle yff"></span>{{
$t('page.business.resource.resource.zjzt.yff') }}</span>
<span v-if="scope.row.zjzt == 5"><span class="status-circle ysd"></span>{{
$t('page.business.resource.resource.zjzt.ysd') }}</span>
<span v-if="scope.row.zjzt == 7"><span class="status-circle dgd"></span>{{
$t('page.business.resource.resource.zjzt.dgd') }}</span>
<span v-if="scope.row.zjzt == 9"><span class="status-circle gd"></span>{{
$t('page.business.resource.resource.zjzt.gd') }}</span>
<span v-if="scope.row.zjzt == 11"><span class="status-circle djd"></span>{{
$t('page.business.resource.resource.zjzt.djd') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('form.operate')" fixed="right" align="center" <el-table-column :label="$t('form.operate')" fixed="right" align="center"
class-name="small-padding fixed-width" width="250px"> class-name="small-padding fixed-width" width="250px">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- 详情 -->
<el-button type="text" @click="handleXq(scope.row)" v-hasPermi="['business:studyMjy:xq', 'business:nonTrialMjy:xq', 'business:drugMjy:xq']">{{
<!-- 详情 -->
<el-button type="text" @click="handleXq(scope.row)"
v-hasPermi="['business:studyMjy:xq', 'business:nonTrialMjy:xq', 'business:drugMjy:xq']">{{
$t('page.business.resource.mjy.detail') }}</el-button> $t('page.business.resource.mjy.detail') }}</el-button>
<template v-if="scope.row.zjzt==3&&scope.row.cczt==1">
<!-- 处置药剂 -->
<el-button type="text" @click="handleCzyj(scope.row)" v-hasPermi="['business:studyMjy:czyj', 'business:nonTrialMjy:czyj', 'business:drugMjy:czyj']">{{
$t('page.business.resource.mjy.czyj') }}</el-button>
<!-- 编辑 -->
<el-button type="text" @click="handleBj(scope.row)"
v-hasPermi="['business:studyMjy:bj', 'business:nonTrialMjy:bj', 'business:drugMjy:bj']">{{
$t('form.edit') }}</el-button>
<!-- 修改库存 -->
<el-button type="text" @click="handleXgkc(scope.row)"
v-hasPermi="['business:studyMjy:xgkc', 'business:nonTrialMjy:xgkc', 'business:drugMjy:xgkc']">{{
$t('page.business.resource.mjy.xgkc') }}</el-button>
<template v-if="queryParams.studyStatus != 5">
<template v-if="scope.row.zjzt == 3 && scope.row.cczt == 1">
<!-- 处置药剂 -->
<el-button type="text" @click="handleCzyj(scope.row)"
v-hasPermi="['business:studyMjy:czyj', 'business:nonTrialMjy:czyj', 'business:drugMjy:czyj']">{{
$t('page.business.resource.mjy.czyj') }}</el-button>
<!-- 编辑 -->
<el-button type="text" @click="handleBj(scope.row)"
v-hasPermi="['business:studyMjy:bj', 'business:nonTrialMjy:bj', 'business:drugMjy:bj']">{{
$t('form.edit') }}</el-button>
<!-- 修改库存 -->
<el-button type="text" @click="handleXgkc(scope.row)"
v-hasPermi="['business:studyMjy:xgkc', 'business:nonTrialMjy:xgkc', 'business:drugMjy:xgkc']">{{
$t('page.business.resource.mjy.xgkc') }}</el-button>
</template>
<!-- 取出 -->
<el-button type="text" v-if="scope.row.zjzt == 3 && scope.row.cczt == 3" @click="handleQc(scope.row)"
v-hasPermi="['business:studyMjy:qc', 'business:nonTrialMjy:qc', 'business:drugMjy:qc']">{{
$t('page.business.resource.gyzj.quchu') }}</el-button>
<!-- 存储 -->
<el-button type="text" v-if="scope.row.zjzt == 3 && scope.row.cczt == 1" @click="handleCc(scope.row)"
v-hasPermi="['business:studyMjy:cc', 'business:nonTrialMjy:cc', 'business:drugMjy:cc']">{{
$t('page.business.resource.gyzj.cunchu') }}</el-button>
</template> </template>
<!-- 取出 -->
<el-button type="text" v-if="scope.row.zjzt==3&&scope.row.cczt==3" @click="handleQc(scope.row)"
v-hasPermi="['business:studyMjy:qc', 'business:nonTrialMjy:qc', 'business:drugMjy:qc']">{{
$t('page.business.resource.gyzj.quchu') }}</el-button>
<!-- 存储 -->
<el-button type="text" v-if="scope.row.zjzt==3&&scope.row.cczt==1" @click="handleCc(scope.row)"
v-hasPermi="['business:studyMjy:cc', 'business:nonTrialMjy:cc', 'business:drugMjy:cc']">{{
$t('page.business.resource.gyzj.cunchu') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -135,7 +145,7 @@ import moment from "moment";
export default { export default {
name: "MjyList", name: "MjyList",
components: {Qc,Cc, Xq, Bj, Xgkc, Czyj },
components: { Qc, Cc, Xq, Bj, Xgkc, Czyj },
data() { data() {
return { return {
daterange: [], daterange: [],
@ -152,6 +162,7 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
mc: null, mc: null,
studyStatus: 5,
jyzt: null, jyzt: null,
studyId: null, studyId: null,
zjzt: null, zjzt: null,
@ -174,6 +185,7 @@ export default {
watch: { watch: {
study: { study: {
handler(newVal) { handler(newVal) {
this.queryParams.studyStatus = newVal.status
this.queryParams.studyId = newVal.id this.queryParams.studyId = newVal.id
this.handleQuery() this.handleQuery()
}, },
@ -182,12 +194,12 @@ export default {
} }
}, },
methods: { methods: {
//
handleQc(row){
//
handleQc(row) {
this.$refs.Qc.show(row) this.$refs.Qc.show(row)
}, },
// //
handleCc(row){
handleCc(row) {
this.$refs.Cc.show(row) this.$refs.Cc.show(row)
}, },
// //

+ 17
- 13
src/views/business/study/comp/wzlb/sjList.vue View File

@ -67,25 +67,27 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('form.operate')" fixed="right" align="center" <el-table-column :label="$t('form.operate')" fixed="right" align="center"
class-name="small-padding fixed-width" width="250px"> class-name="small-padding fixed-width" width="250px">
<template slot-scope="scope">
<template slot-scope="scope">
<!-- 详情 --> <!-- 详情 -->
<template <template
v-if="scope.row.zjzt == 1 || scope.row.zjzt == 5 || (scope.row.zjzt == 9 && scope.row.jyzt == 5)"> v-if="scope.row.zjzt == 1 || scope.row.zjzt == 5 || (scope.row.zjzt == 9 && scope.row.jyzt == 5)">
<el-button type="text" @click="handleXq(scope.row)" v-hasPermi="['business:resource:sj:xq']">{{ <el-button type="text" @click="handleXq(scope.row)" v-hasPermi="['business:resource:sj:xq']">{{
$t('page.business.resource.sj.detail') }}</el-button> $t('page.business.resource.sj.detail') }}</el-button>
</template> </template>
<!-- 处置 -->
<template v-if="scope.row.zjzt == 1">
<el-button type="text" @click="handleCz(scope.row)" v-hasPermi="['business:resource:sj:cz']">{{
$t('page.business.resource.sj.cz') }}</el-button>
</template>
<template v-if="scope.row.zjzt == 1">
<!-- 编辑 -->
<el-button type="text" @click="handleBj(scope.row)" v-hasPermi="['business:resource:sj:bj']">{{
$t('form.edit') }}</el-button>
<!-- 修改库存 -->
<el-button type="text" @click="handleXgkc(scope.row)" v-hasPermi="['business:resource:sj:xgkc']">{{
$t('page.business.resource.sj.xgkc') }}</el-button>
<template v-if="queryParams.studyStatus != 5">
<!-- 处置 -->
<template v-if="scope.row.zjzt == 1">
<el-button type="text" @click="handleCz(scope.row)" v-hasPermi="['business:resource:sj:cz']">{{
$t('page.business.resource.sj.cz') }}</el-button>
</template>
<template v-if="scope.row.zjzt == 1">
<!-- 编辑 -->
<el-button type="text" @click="handleBj(scope.row)" v-hasPermi="['business:resource:sj:bj']">{{
$t('form.edit') }}</el-button>
<!-- 修改库存 -->
<el-button type="text" @click="handleXgkc(scope.row)" v-hasPermi="['business:resource:sj:xgkc']">{{
$t('page.business.resource.sj.xgkc') }}</el-button>
</template>
</template> </template>
</template> </template>
</el-table-column> </el-table-column>
@ -132,6 +134,7 @@ export default {
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
studyStatus: 5,
mc: null, mc: null,
jyzt: null, jyzt: null,
studyId: null, studyId: null,
@ -155,6 +158,7 @@ export default {
watch: { watch: {
study: { study: {
handler(newVal) { handler(newVal) {
this.queryParams.studyStatus = newVal.status
this.queryParams.studyId = newVal.id this.queryParams.studyId = newVal.id
this.handleQuery() this.handleQuery()
}, },

+ 47
- 42
src/views/business/study/comp/ytbdList.vue View File

@ -49,8 +49,8 @@
<div class="ytbd-content"> <div class="ytbd-content">
<el-row class="add-box"> <el-row class="add-box">
<el-col> <el-col>
<el-button type="primary" icon="el-icon-plus" v-if="isMatchSubject" @click="showAdd()"
v-hasPermi="['business:studyFormPre:xz']">{{
<el-button type="primary" icon="el-icon-plus" v-if="isMatchSubject && searchForm.studyStatus != 5"
@click="showAdd()" v-hasPermi="['business:studyFormPre:xz']">{{
$t('page.business.study.studyFormPre.xzbd') }}</el-button> $t('page.business.study.studyFormPre.xzbd') }}</el-button>
</el-col> </el-col>
</el-row> </el-row>
@ -85,38 +85,41 @@
<!-- 详情 --> <!-- 详情 -->
<el-button type="text" v-hasPermi="['business:studyFormPre:xq']" @click="detail(scope.row)">{{ <el-button type="text" v-hasPermi="['business:studyFormPre:xq']" @click="detail(scope.row)">{{
$t('form.detail') }}</el-button> $t('form.detail') }}</el-button>
<!-- 编辑 -->
<el-button type="text" v-hasPermi="['business:studyFormPre:bj']" @click="edit(scope.row)"
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 == '是'">
<template v-if="scope.row.fzrshzt == 5">
<!-- 负责人审核 -->
<el-button type="text" @click="audit(scope.row)" v-hasPermi="['business:studyFormPre:sh']"
v-if="scope.row.bdzt === 3 && id == leader">{{
$t('page.business.form.audit') }}</el-button>
<!-- 未锁定才有 -->
<template v-if="searchForm.studyStatus != 5">
<!-- 编辑 -->
<el-button type="text" v-hasPermi="['business:studyFormPre:bj']" @click="edit(scope.row)"
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 == '是'">
<template v-if="scope.row.fzrshzt == 5">
<!-- 负责人审核 -->
<el-button type="text" @click="audit(scope.row)" v-hasPermi="['business:studyFormPre:sh']"
v-if="scope.row.bdzt === 3 && id == leader">{{
$t('page.business.form.audit') }}</el-button>
</template>
<template v-else>
<!-- 有权限审核 -->
<el-button type="text" @click="audit(scope.row)" v-hasPermi="['business:studyFormPre:sh']"
v-if="scope.row.bdzt === 3 && isMatchSubject && (id != scope.row.userId || id <= 103 || id == 118 || id == 119 || id == 120)">{{
$t('page.business.form.audit') }}</el-button>
</template>
</template> </template>
<template v-else> <template v-else>
<!-- 有权限审核 --> <!-- 有权限审核 -->
<el-button type="text" @click="audit(scope.row)" v-hasPermi="['business:studyFormPre:sh']" <el-button type="text" @click="audit(scope.row)" v-hasPermi="['business:studyFormPre:sh']"
v-if="scope.row.bdzt === 3 && isMatchSubject && (id != scope.row.userId||id<=103 || id==118 || id==119 || id==120)">{{
$t('page.business.form.audit') }}</el-button>
v-if="scope.row.bdzt === 3 && isMatchSubject && (id != scope.row.userId || id <= 103 || id == 118 || id == 119 || id == 120)">{{
$t('page.business.form.audit')
}}</el-button>
</template>
<template v-if="scope.row.bdzt === 5 && id == scope.row.userId">
<el-button type="text" @click="gb(scope.row)">{{ $t('page.business.study.studyFormPre.guanbi')
}}</el-button>
</template>
<template v-if="scope.row.bdzt === 9 && id == scope.row.sjshryId">
<el-button type="text" @click="qrgb(scope.row)">{{ $t('page.business.study.studyFormPre.qrgb')
}}</el-button>
</template> </template>
</template>
<template v-else>
<!-- 有权限审核 -->
<el-button type="text" @click="audit(scope.row)" v-hasPermi="['business:studyFormPre:sh']"
v-if="scope.row.bdzt === 3 && isMatchSubject && (id != scope.row.userId||id<=103 || id==118 || id==119 || id==120)">{{
$t('page.business.form.audit')
}}</el-button>
</template>
<template v-if="scope.row.bdzt === 5 && id == scope.row.userId">
<el-button type="text" @click="gb(scope.row)">{{ $t('page.business.study.studyFormPre.guanbi')
}}</el-button>
</template>
<template v-if="scope.row.bdzt === 9 && id == scope.row.sjshryId">
<el-button type="text" @click="qrgb(scope.row)">{{ $t('page.business.study.studyFormPre.qrgb')
}}</el-button>
</template> </template>
</template> </template>
</el-table-column> </el-table-column>
@ -216,9 +219,9 @@ export default {
return {} return {}
} }
}, },
selectedDeptId:{
type:[Number,String],
default:()=>{
selectedDeptId: {
type: [Number, String],
default: () => {
return null return null
} }
}, },
@ -234,6 +237,7 @@ export default {
this.searchForm.studySn = newVal.sn this.searchForm.studySn = newVal.sn
this.searchForm.studyMc = newVal.name this.searchForm.studyMc = newVal.name
this.searchForm.studyId = newVal.id this.searchForm.studyId = newVal.id
this.searchForm.studyStatus = newVal.status
this.searchForm.studySubjectId = newVal.studySubjectId this.searchForm.studySubjectId = newVal.studySubjectId
this.leader = newVal.leader this.leader = newVal.leader
this.search() this.search()
@ -261,6 +265,7 @@ export default {
pageSize: 10, pageSize: 10,
studyId: -1, studyId: -1,
studySn: '', studySn: '',
studyStatus: 5,
studyMc: '', studyMc: '',
studySubjectId: '', studySubjectId: '',
bdbh: '', bdbh: '',
@ -364,7 +369,7 @@ export default {
}, },
studyChange() { studyChange() {
this.$modal.loading() this.$modal.loading()
studyFormPre_studyFormPreList({ studyId: this.formXz.studyId,bdzt:5 }).then(response => {
studyFormPre_studyFormPreList({ studyId: this.formXz.studyId, bdzt: 5 }).then(response => {
this.formXz.formPre = null this.formXz.formPre = null
this.formPreList = response.data this.formPreList = response.data
this.$modal.closeLoading() this.$modal.closeLoading()
@ -376,15 +381,15 @@ export default {
this.$alert(data.ffmc, '', { this.$alert(data.ffmc, '', {
confirmButtonText: this.$t('page.business.study.studyMethod.qyd'), confirmButtonText: this.$t('page.business.study.studyMethod.qyd'),
callback: action => { callback: action => {
if(this.$route.path===data.toUrl){
this.$emit('changeTab',{key:'syff'})
}else{
let index = _.findIndex(this.$store.state.tagsView.visitedViews,(tab)=>{
if (this.$route.path === data.toUrl) {
this.$emit('changeTab', { key: 'syff' })
} else {
let index = _.findIndex(this.$store.state.tagsView.visitedViews, (tab) => {
return tab.path === data.toUrl return tab.path === data.toUrl
}) })
if(index>-1){
if (index > -1) {
this.$tab.refreshPage(this.$store.state.tagsView.visitedViews[index]); this.$tab.refreshPage(this.$store.state.tagsView.visitedViews[index]);
}else{
} else {
this.$tab.openPage("loading", data.toUrl) this.$tab.openPage("loading", data.toUrl)
} }
} }
@ -445,7 +450,7 @@ export default {
studySn: this.searchForm.studySn, studySn: this.searchForm.studySn,
studyMc: this.searchForm.studyMc, studyMc: this.searchForm.studyMc,
studyId: this.searchForm.studyId, studyId: this.searchForm.studyId,
selectedDeptId:this.selectedDeptId,
selectedDeptId: this.selectedDeptId,
studyType: 1, studyType: 1,
studySubjectId: this.searchForm.studySubjectId, studySubjectId: this.searchForm.studySubjectId,
permitForSecectUser: 'business:studyFormPre:sh' permitForSecectUser: 'business:studyFormPre:sh'
@ -453,13 +458,13 @@ export default {
}, },
edit(row) { edit(row) {
this.$modal.loading() this.$modal.loading()
studyMethod_getReadAllMethodStatus({ selectedDeptId:this.selectedDeptId,userId: this.id, studyId: this.searchForm.studyId, studySubjectId: this.searchForm.studySubjectId }).then(response => {
studyMethod_getReadAllMethodStatus({ selectedDeptId: this.selectedDeptId, userId: this.id, studyId: this.searchForm.studyId, studySubjectId: this.searchForm.studySubjectId }).then(response => {
if (response.data.toUrl) { if (response.data.toUrl) {
this.toRead(response.data) this.toRead(response.data)
} else { } else {
this.showEdit = true this.showEdit = true
this.$emit('showDetail', this.showEdit) this.$emit('showDetail', this.showEdit)
this.$refs.Bj.edit(_.merge({}, row, { permitForSecectUser: 'business:studyFormPre:sh',studyType: 1 }))
this.$refs.Bj.edit(_.merge({}, row, { permitForSecectUser: 'business:studyFormPre:sh', studyType: 1 }))
} }
}).finally(() => { }).finally(() => {
this.$modal.closeLoading() this.$modal.closeLoading()

Loading…
Cancel
Save