Browse Source

feat: [表单管理] [麻精药] 权限修改

master
memorylkf 4 days ago
parent
commit
82b3325472
3 changed files with 31 additions and 15 deletions
  1. +16
    -6
      src/views/business/form/drug/comp/sqbdList.vue
  2. +13
    -7
      src/views/business/study/comp/jhbdList.vue
  3. +2
    -2
      src/views/business/study/comp/tbbdList.vue

+ 16
- 6
src/views/business/form/drug/comp/sqbdList.vue View File

@ -106,7 +106,7 @@
<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"
<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']">{{ @click="edit(scope.row)" v-hasPermi="['business:drugFormApply:bj']">{{
$t('form.edit') }}</el-button> $t('form.edit') }}</el-button>
<!-- 复核 --> <!-- 复核 -->
@ -119,11 +119,11 @@
$t('page.business.study.studyFormApply.jq') }}</el-button> $t('page.business.study.studyFormApply.jq') }}</el-button>
<!-- 更换归属人 --> <!-- 更换归属人 -->
<el-button type="text" <el-button type="text"
v-if="scope.row.bdzt === 1 || scope.row.bdzt === 3 || scope.row.bdzt === 5 || scope.row.bdzt === 7"
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']">{{ @click="ghgsr(scope.row)" v-hasPermi="['business:drugFormApply:ghgsr']">{{
$t('page.business.study.studyFormApply.ghgsr') }}</el-button> $t('page.business.study.studyFormApply.ghgsr') }}</el-button>
<!-- 审阅 --> <!-- 审阅 -->
<el-button type="text" v-if="scope.row.bdzt === 7" @click="sy(scope.row)"
<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']">{{ v-hasPermi="['business:drugFormApply:sy']">{{
$t('page.business.study.studyFormApply.sy') }}</el-button> $t('page.business.study.studyFormApply.sy') }}</el-button>
<!-- 审核 --> <!-- 审核 -->
@ -131,11 +131,11 @@
v-hasPermi="['business:drugFormApply:sh']">{{ v-hasPermi="['business:drugFormApply:sh']">{{
$t('page.business.study.studyFormApply.sh') }}</el-button> $t('page.business.study.studyFormApply.sh') }}</el-button>
<!-- 废止 --> <!-- 废止 -->
<el-button type="text" v-if="scope.row.bdzt === 1" @click="fz(scope.row)"
<el-button type="text" v-if="scope.row.bdzt === 1 && id==scope.row.userId" @click="fz(scope.row)"
v-hasPermi="['business:drugFormApply:fz']">{{ v-hasPermi="['business:drugFormApply:fz']">{{
$t('page.business.study.studyFormApply.fz') }}</el-button> $t('page.business.study.studyFormApply.fz') }}</el-button>
<!-- 确认废止 --> <!-- 确认废止 -->
<el-button type="text" v-if="scope.row.bdzt === 9" @click="qrfz(scope.row)"
<el-button type="text" v-if="scope.row.bdzt === 9 && checkRole(['bz'])" @click="qrfz(scope.row)"
v-hasPermi="['business:drugFormApply:qrfz']">{{ v-hasPermi="['business:drugFormApply:qrfz']">{{
$t('page.business.study.studyFormApply.qrfz') }}</el-button> $t('page.business.study.studyFormApply.qrfz') }}</el-button>
</template> </template>
@ -170,6 +170,8 @@
</template> </template>
<script> <script>
import { studySubject_isQa } from "@/api/business/study/studySubject"
import { checkPermi, checkRole } from "@/utils/permission";
import { studyFormApply_list } from '@/api/business/study/studyFormApply' import { studyFormApply_list } from '@/api/business/study/studyFormApply'
import Bj from "@/views/business/study/comp/sqbd/Bj"; import Bj from "@/views/business/study/comp/sqbd/Bj";
import Xq from "@/views/business/study/comp/sqbd/Xq"; import Xq from "@/views/business/study/comp/sqbd/Xq";
@ -215,6 +217,7 @@ export default {
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,
leader: null, leader: null,
showFh: false, showFh: false,
showSh: false, showSh: false,
@ -245,8 +248,15 @@ export default {
currentRow: null currentRow: null
} }
}, },
created() { },
created() { this.getIsQa()},
methods: { methods: {
checkPermi,
checkRole,
getIsQa() {
studySubject_isQa().then(response => {
this.isQa=response.data
})
},
ghgsr(row) { ghgsr(row) {
this.currentRow = row this.currentRow = row
this.$refs.selectDeptUserDialog.show(null, null) this.$refs.selectDeptUserDialog.show(null, null)

+ 13
- 7
src/views/business/study/comp/jhbdList.vue View File

@ -42,7 +42,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()" v-hasPermi="['business:studyFormPlan:xz']">{{
<el-button type="primary" icon="el-icon-plus" @click="add()" v-hasPermi="['business:studyFormPlan:xz']" v-if="id==leader">{{
$t('page.business.study.studyFormPlan.xzpzjhb') }}</el-button> $t('page.business.study.studyFormPlan.xzpzjhb') }}</el-button>
</el-col> </el-col>
</el-row> </el-row>
@ -57,18 +57,17 @@
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.bdzt === 1">{{ $t('page.business.study.studyFormPlan.tbz') }}</span> <span v-if="scope.row.bdzt === 1">{{ $t('page.business.study.studyFormPlan.tbz') }}</span>
<span v-if="scope.row.bdzt === 3">{{ $t('page.business.study.studyFormPlan.ytj') }}</span> <span v-if="scope.row.bdzt === 3">{{ $t('page.business.study.studyFormPlan.ytj') }}</span>
<span v-if="scope.row.bdzt === 7">{{ $t('page.business.study.studyFormPlan.ywc') }}</span>
<span v-if="scope.row.bdzt === 5">{{ $t('page.business.study.studyFormPlan.ywcfh') }}</span> <span v-if="scope.row.bdzt === 5">{{ $t('page.business.study.studyFormPlan.ywcfh') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('form.operate')" align="left" fixed="right" width="200"> <el-table-column :label="$t('form.operate')" align="left" fixed="right" width="200">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- 表单状态1填报中3已提交5已完成经复核;7已完成 -->
<!-- 表单状态1填报中3已提交5已完成经复核; -->
<!-- 详情 --> <!-- 详情 -->
<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 || scope.row.bdzt === 7"
<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']">{{ @click="edit(scope.row)" v-hasPermi="['business:studyFormPlan:bj']">{{
$t('form.edit') }}</el-button> $t('form.edit') }}</el-button>
<!-- 复核 --> <!-- 复核 -->
@ -77,11 +76,11 @@
$t('page.business.study.studyFormPlan.fh') }}</el-button> $t('page.business.study.studyFormPlan.fh') }}</el-button>
<!-- 更换归属人 --> <!-- 更换归属人 -->
<el-button type="text" <el-button type="text"
v-if="scope.row.bdzt === 1 || scope.row.bdzt === 3 || scope.row.bdzt === 5 || scope.row.bdzt === 7"
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']">{{ @click="ghgsr(scope.row)" v-hasPermi="['business:studyFormPlan:ghgsr']">{{
$t('page.business.study.studyFormPlan.ghgsr') }}</el-button> $t('page.business.study.studyFormPlan.ghgsr') }}</el-button>
<!-- 审阅 --> <!-- 审阅 -->
<el-button type="text" v-if="scope.row.bdzt === 5 || scope.row.bdzt === 7" @click="sy(scope.row)"
<el-button type="text" v-if="scope.row.bdzt === 5 && (isQa || id==leader)" @click="sy(scope.row)"
v-hasPermi="['business:studyFormPlan:sy']">{{ v-hasPermi="['business:studyFormPlan:sy']">{{
$t('page.business.study.studyFormPlan.sy') }}</el-button> $t('page.business.study.studyFormPlan.sy') }}</el-button>
</template> </template>
@ -108,6 +107,7 @@
</template> </template>
<script> <script>
import { studySubject_isQa } from "@/api/business/study/studySubject"
import { studyFormPlan_list } from '@/api/business/study/studyFormPlan' import { studyFormPlan_list } from '@/api/business/study/studyFormPlan'
import Bj from "./jhbd/Bj"; import Bj from "./jhbd/Bj";
import Xq from "./jhbd/Xq"; import Xq from "./jhbd/Xq";
@ -149,6 +149,7 @@ export default {
components: { Ghgsr, Fh, Bj, Xq, Sy, SelectDeptUser, SelectDeptUserDialog }, components: { Ghgsr, Fh, Bj, Xq, Sy, SelectDeptUser, SelectDeptUserDialog },
data() { data() {
return { return {
isQa:false,
leader: null, leader: null,
showFh: false, showFh: false,
showAudit: false, showAudit: false,
@ -174,8 +175,13 @@ export default {
currentRow: null currentRow: null
} }
}, },
created() { },
created() {this.getIsQa() },
methods: { methods: {
getIsQa() {
studySubject_isQa().then(response => {
this.isQa=response.data
})
},
ghgsr(row) { ghgsr(row) {
this.currentRow = row this.currentRow = row
this.$refs.selectDeptUserDialog.show(null, null) this.$refs.selectDeptUserDialog.show(null, null)

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

@ -122,7 +122,7 @@
@click="ghgsr(scope.row)" v-hasPermi="['business:studyFormFill:ghgsr']">{{ @click="ghgsr(scope.row)" v-hasPermi="['business:studyFormFill:ghgsr']">{{
$t('page.business.study.studyFormFill.ghgsr') }}</el-button> $t('page.business.study.studyFormFill.ghgsr') }}</el-button>
<!-- 审阅 --> <!-- 审阅 -->
<el-button type="text" v-if="(scope.row.bdzt === 5 || scope.row.bdzt === 7) && (isQa || id==scope.row.studyLeader)" @click="sy(scope.row)"
<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']">{{ v-hasPermi="['business:studyFormFill:sy']">{{
$t('page.business.study.studyFormFill.sy') }}</el-button> $t('page.business.study.studyFormFill.sy') }}</el-button>
<!-- 废止 --> <!-- 废止 -->
@ -130,7 +130,7 @@
v-hasPermi="['business:studyFormFill:fz']">{{ v-hasPermi="['business:studyFormFill:fz']">{{
$t('page.business.study.studyFormFill.fz') }}</el-button> $t('page.business.study.studyFormFill.fz') }}</el-button>
<!-- 确认废止 --> <!-- 确认废止 -->
<el-button type="text" v-if="scope.row.bdzt === 9 && id==scope.row.studyLeader" @click="qrfz(scope.row)"
<el-button type="text" v-if="scope.row.bdzt === 9 && id==leader" @click="qrfz(scope.row)"
v-hasPermi="['business:studyFormFill:qrfz']">{{ v-hasPermi="['business:studyFormFill:qrfz']">{{
$t('page.business.study.studyFormFill.qrfz') }}</el-button> $t('page.business.study.studyFormFill.qrfz') }}</el-button>
<!-- 观察 todo 观察按钮只在系统模板为细胞复苏记录表才展示) --> <!-- 观察 todo 观察按钮只在系统模板为细胞复苏记录表才展示) -->

Loading…
Cancel
Save