Browse Source

feat: [非试验] 删除新增判断

master
memorylkf 4 days ago
parent
commit
30bd625d33
6 changed files with 16 additions and 48 deletions
  1. +1
    -9
      src/views/business/form/drug/comp/tbbdList.vue
  2. +1
    -9
      src/views/business/form/drug/comp/ytbdList.vue
  3. +6
    -6
      src/views/business/form/drug/list.vue
  4. +1
    -9
      src/views/business/form/nonTrial/comp/tbbdList.vue
  5. +1
    -9
      src/views/business/form/nonTrial/comp/ytbdList.vue
  6. +6
    -6
      src/views/business/form/nonTrial/list.vue

+ 1
- 9
src/views/business/form/drug/comp/tbbdList.vue View File

@ -69,7 +69,7 @@
<div class="tbbd-content">
<el-row class="add-box">
<el-col>
<el-button type="primary" icon="el-icon-plus" v-if="isMatchSubject" @click="add()" v-hasPermi="['business:drugFormFill:xz']">{{
<el-button type="primary" icon="el-icon-plus" @click="add()" v-hasPermi="['business:drugFormFill:xz']">{{
$t('page.business.study.studyFormFill.xzbd') }}</el-button>
</el-col>
</el-row>
@ -169,7 +169,6 @@
</template>
<script>
import { studySubject_isMatchSubject } from "@/api/business/study/studySubject"
import { studyFormFill_list } from '@/api/business/study/studyFormFill'
import Bj from "@/views/business/study/comp/tbbd/Bj";
import Xq from "@/views/business/study/comp/tbbd/Xq";
@ -207,7 +206,6 @@ export default {
this.searchForm.studyId = newVal.studyId
this.searchForm.studySubjectId = newVal.studySubjectId
this.leader = newVal.leader
// this.getIsMatchSubject()
this.search()
},
immediate: true,
@ -217,7 +215,6 @@ export default {
components: { Ghgsr, Fh, Fz, Bj, Xq, Qrfz, Sy, Jq, Gc, SelectDeptUser, SelectDeptUserDialog },
data() {
return {
isMatchSubject:false,
leader: null,
showFh: false,
showAudit: false,
@ -250,11 +247,6 @@ export default {
},
created() { },
methods: {
getIsMatchSubject() {
studySubject_isMatchSubject({studySubjectId:this.searchForm.studySubjectId }).then(response => {
this.isMatchSubject=response.data
})
},
ghgsr(row) {
this.currentRow = row
this.$refs.selectDeptUserDialog.show(null, null)

+ 1
- 9
src/views/business/form/drug/comp/ytbdList.vue View File

@ -50,7 +50,7 @@
<div class="ytbd-content">
<el-row class="add-box">
<el-col>
<el-button type="primary" icon="el-icon-plus" v-if="isMatchSubject" @click="showAdd()"
<el-button type="primary" icon="el-icon-plus" @click="showAdd()"
v-hasPermi="['business:drugFormPre:xz']">{{
$t('page.business.study.studyFormPre.xzbd') }}</el-button>
</el-col>
@ -168,7 +168,6 @@
</template>
<script>
import { studySubject_isMatchSubject } from "@/api/business/study/studySubject"
import { studyFormPre_list, studyFormPre_info } from '@/api/business/study/studyFormPre'
import { public_studyList, public_studyFormPreList } from '@/api/business/public/public'
import TemplateTable from '@/views/business/comps/template/TemplateTable';
@ -201,7 +200,6 @@ export default {
this.searchForm.studyId = newVal.studyId
this.searchForm.studySubjectId = newVal.studySubjectId
this.leader = newVal.leader
// this.getIsMatchSubject()
this.search()
},
immediate: true,
@ -211,7 +209,6 @@ export default {
components: { Bj, Xq, Sh, SelectDeptUser, TemplateTable },
data() {
return {
isMatchSubject:false,
formPreview: {
templateSn: null
},
@ -263,11 +260,6 @@ export default {
},
created() { },
methods: {
getIsMatchSubject() {
studySubject_isMatchSubject({studySubjectId:this.searchForm.studySubjectId }).then(response => {
this.isMatchSubject=response.data
})
},
copy() {
this.$modal.loading()
public_studyList().then(response => {

+ 6
- 6
src/views/business/form/drug/list.vue View File

@ -81,21 +81,21 @@
<el-table-column :label="$t('form.operate')" fixed="right" align="center" width="200">
<template slot-scope="scope">
<!-- 编辑 -->
<el-button type="text" @click="edit(scope.row)" v-hasPermi="['business:form:drug:edit']" v-if="(scope.row.leader==userId || checkRole(['TFM'])) && (scope.row.status===1 || scope.row.status===3)">{{$t('page.business.study.drug.edit')}}</el-button>
<el-button type="text" @click="edit(scope.row)" v-hasPermi="['business:form:drug:edit']" v-if="(scope.row.leader==userId || checkRole(['bz'])) && (scope.row.status===1 || scope.row.status===3)">{{$t('page.business.study.drug.edit')}}</el-button>
<!-- 删除 -->
<el-button type="text" @click="del(scope.row)" v-hasPermi="['business:form:drug:remove']" v-if="(scope.row.leader==userId || checkRole(['TFM'])) && scope.row.status===1">{{$t('page.business.study.drug.delete')}}</el-button>
<el-button type="text" @click="del(scope.row)" v-hasPermi="['business:form:drug:remove']" v-if="(scope.row.leader==userId || checkRole(['bz'])) && scope.row.status===1">{{$t('page.business.study.drug.delete')}}</el-button>
<!-- 详情 -->
<el-button type="text" @click="detail(scope.row)" v-hasPermi="['business:form:drug:detail']" v-if="scope.row.status===1 || scope.row.status===3 || scope.row.status===5 || (scope.row.status===9 && scope.row.borrowStatus===10)">{{$t('page.business.study.drug.detail')}}</el-button>
<!-- 进入试验 -->
<el-button type="text" @click="enter(scope.row)" v-hasPermi="['business:form:drug:enter']" v-if="scope.row.status===3 || scope.row.status===5 || (scope.row.status===9 && scope.row.borrowStatus===10)">{{$t('page.business.study.drug.enter')}}</el-button>
<!-- 归档 -->
<el-button type="text" @click="gd(scope.row)" v-hasPermi="['business:form:drug:gd']" v-if="(scope.row.leader==userId || checkRole(['TFM'])) && scope.row.status===5">{{$t('page.business.study.drug.gd')}}</el-button>
<el-button type="text" @click="gd(scope.row)" v-hasPermi="['business:form:drug:gd']" v-if="(scope.row.leader==userId || checkRole(['bz'])) && scope.row.status===5">{{$t('page.business.study.drug.gd')}}</el-button>
<!-- 解锁 -->
<el-button type="text" @click="js(scope.row)" v-hasPermi="['business:form:drug:js']" v-if="(scope.row.leader==userId || checkRole(['TFM'])) && scope.row.status===5">{{$t('page.business.study.drug.js')}}</el-button>
<el-button type="text" @click="js(scope.row)" v-hasPermi="['business:form:drug:js']" v-if="(scope.row.leader==userId || checkRole(['bz'])) && scope.row.status===5">{{$t('page.business.study.drug.js')}}</el-button>
<!-- 解档 -->
<el-button type="text" @click="jd(scope.row)" v-hasPermi="['business:form:drug:jd']" v-if="(scope.row.leader==userId || checkRole(['TFM'])) && scope.row.status===9 && scope.row.borrowStatus===1">{{$t('page.business.study.drug.jd')}}</el-button>
<el-button type="text" @click="jd(scope.row)" v-hasPermi="['business:form:drug:jd']" v-if="(scope.row.leader==userId || checkRole(['bz'])) && scope.row.status===9 && scope.row.borrowStatus===1">{{$t('page.business.study.drug.jd')}}</el-button>
<!-- 借阅 -->
<el-button type="text" @click="jy(scope.row)" v-hasPermi="['business:form:drug:jy']" v-if="(scope.row.leader==userId || checkRole(['TFM'])) && scope.row.status===9 && scope.row.borrowStatus===1">{{$t('page.business.study.drug.jy')}}</el-button>
<el-button type="text" @click="jy(scope.row)" v-hasPermi="['business:form:drug:jy']" v-if="(scope.row.leader==userId || checkRole(['bz'])) && scope.row.status===9 && scope.row.borrowStatus===1">{{$t('page.business.study.drug.jy')}}</el-button>
</template>
</el-table-column>
</el-table>

+ 1
- 9
src/views/business/form/nonTrial/comp/tbbdList.vue View File

@ -69,7 +69,7 @@
<div class="tbbd-content">
<el-row class="add-box">
<el-col>
<el-button type="primary" icon="el-icon-plus" v-if="isMatchSubject" @click="add()" v-hasPermi="['business:nonTrialFormFill:xz']">{{
<el-button type="primary" icon="el-icon-plus" @click="add()" v-hasPermi="['business:nonTrialFormFill:xz']">{{
$t('page.business.study.studyFormFill.xzbd') }}</el-button>
</el-col>
</el-row>
@ -169,7 +169,6 @@
</template>
<script>
import { studySubject_isMatchSubject } from "@/api/business/study/studySubject"
import { studyFormFill_list } from '@/api/business/study/studyFormFill'
import Bj from "@/views/business/study/comp/tbbd/Bj";
import Xq from "@/views/business/study/comp/tbbd/Xq";
@ -207,7 +206,6 @@ export default {
this.searchForm.studyId = newVal.studyId
this.searchForm.studySubjectId = newVal.studySubjectId
this.leader = newVal.leader
// this.getIsMatchSubject()
this.search()
},
immediate: true,
@ -217,7 +215,6 @@ export default {
components: { Ghgsr, Fh, Fz, Bj, Xq, Qrfz, Sy, Jq, Gc, SelectDeptUser, SelectDeptUserDialog },
data() {
return {
isMatchSubject:false,
leader: null,
showFh: false,
showAudit: false,
@ -250,11 +247,6 @@ export default {
},
created() { },
methods: {
getIsMatchSubject() {
studySubject_isMatchSubject({studySubjectId:this.searchForm.studySubjectId }).then(response => {
this.isMatchSubject=response.data
})
},
ghgsr(row) {
this.currentRow = row
this.$refs.selectDeptUserDialog.show(null, null)

+ 1
- 9
src/views/business/form/nonTrial/comp/ytbdList.vue View File

@ -50,7 +50,7 @@
<div class="ytbd-content">
<el-row class="add-box">
<el-col>
<el-button type="primary" icon="el-icon-plus" v-if="isMatchSubject" @click="showAdd()"
<el-button type="primary" icon="el-icon-plus" @click="showAdd()"
v-hasPermi="['business:nonTrialFormPre:xz']">{{
$t('page.business.study.studyFormPre.xzbd') }}</el-button>
</el-col>
@ -168,7 +168,6 @@
</template>
<script>
import { studySubject_isMatchSubject } from "@/api/business/study/studySubject"
import { studyFormPre_list, studyFormPre_info } from '@/api/business/study/studyFormPre'
import { public_studyList, public_studyFormPreList } from '@/api/business/public/public'
import TemplateTable from '@/views/business/comps/template/TemplateTable';
@ -201,7 +200,6 @@ export default {
this.searchForm.studyId = newVal.studyId
this.searchForm.studySubjectId = newVal.studySubjectId
this.leader = newVal.leader
// this.getIsMatchSubject()
this.search()
},
immediate: true,
@ -211,7 +209,6 @@ export default {
components: { Bj, Xq, Sh, SelectDeptUser, TemplateTable },
data() {
return {
isMatchSubject:false,
formPreview: {
templateSn: null
},
@ -263,11 +260,6 @@ export default {
},
created() { },
methods: {
getIsMatchSubject() {
studySubject_isMatchSubject({studySubjectId:this.searchForm.studySubjectId }).then(response => {
this.isMatchSubject=response.data
})
},
copy() {
this.$modal.loading()
public_studyList().then(response => {

+ 6
- 6
src/views/business/form/nonTrial/list.vue View File

@ -81,21 +81,21 @@
<el-table-column :label="$t('form.operate')" fixed="right" align="center" width="200">
<template slot-scope="scope">
<!-- 编辑 -->
<el-button type="text" @click="edit(scope.row)" v-hasPermi="['business:form:nonTrial:edit']" v-if="(scope.row.leader==userId || checkRole(['TFM'])) && (scope.row.status===1 || scope.row.status===3)">{{$t('page.business.study.nonTrial.edit')}}</el-button>
<el-button type="text" @click="edit(scope.row)" v-hasPermi="['business:form:nonTrial:edit']" v-if="(scope.row.leader==userId || checkRole(['bz'])) && (scope.row.status===1 || scope.row.status===3)">{{$t('page.business.study.nonTrial.edit')}}</el-button>
<!-- 删除 -->
<el-button type="text" @click="del(scope.row)" v-hasPermi="['business:form:nonTrial:remove']" v-if="(scope.row.leader==userId || checkRole(['TFM'])) && scope.row.status===1">{{$t('page.business.study.nonTrial.delete')}}</el-button>
<el-button type="text" @click="del(scope.row)" v-hasPermi="['business:form:nonTrial:remove']" v-if="(scope.row.leader==userId || checkRole(['bz'])) && scope.row.status===1">{{$t('page.business.study.nonTrial.delete')}}</el-button>
<!-- 详情 -->
<el-button type="text" @click="detail(scope.row)" v-hasPermi="['business:form:nonTrial:detail']" v-if="scope.row.status===1 || scope.row.status===3 || scope.row.status===5 || (scope.row.status===9 && scope.row.borrowStatus===10)">{{$t('page.business.study.nonTrial.detail')}}</el-button>
<!-- 进入试验 -->
<el-button type="text" @click="enter(scope.row)" v-hasPermi="['business:form:nonTrial:enter']" v-if="scope.row.status===3 || scope.row.status===5 || (scope.row.status===9 && scope.row.borrowStatus===10)">{{$t('page.business.study.nonTrial.enter')}}</el-button>
<!-- 归档 -->
<el-button type="text" @click="gd(scope.row)" v-hasPermi="['business:form:nonTrial:gd']" v-if="(scope.row.leader==userId || checkRole(['TFM'])) && scope.row.status===5">{{$t('page.business.study.nonTrial.gd')}}</el-button>
<el-button type="text" @click="gd(scope.row)" v-hasPermi="['business:form:nonTrial:gd']" v-if="(scope.row.leader==userId || checkRole(['bz'])) && scope.row.status===5">{{$t('page.business.study.nonTrial.gd')}}</el-button>
<!-- 解锁 -->
<el-button type="text" @click="js(scope.row)" v-hasPermi="['business:form:nonTrial:js']" v-if="(scope.row.leader==userId || checkRole(['TFM'])) && scope.row.status===5">{{$t('page.business.study.nonTrial.js')}}</el-button>
<el-button type="text" @click="js(scope.row)" v-hasPermi="['business:form:nonTrial:js']" v-if="(scope.row.leader==userId || checkRole(['bz'])) && scope.row.status===5">{{$t('page.business.study.nonTrial.js')}}</el-button>
<!-- 解档 -->
<el-button type="text" @click="jd(scope.row)" v-hasPermi="['business:form:nonTrial:jd']" v-if="(scope.row.leader==userId || checkRole(['TFM'])) && scope.row.status===9 && scope.row.borrowStatus===1">{{$t('page.business.study.nonTrial.jd')}}</el-button>
<el-button type="text" @click="jd(scope.row)" v-hasPermi="['business:form:nonTrial:jd']" v-if="(scope.row.leader==userId || checkRole(['bz'])) && scope.row.status===9 && scope.row.borrowStatus===1">{{$t('page.business.study.nonTrial.jd')}}</el-button>
<!-- 借阅 -->
<el-button type="text" @click="jy(scope.row)" v-hasPermi="['business:form:nonTrial:jy']" v-if="(scope.row.leader==userId || checkRole(['TFM'])) && scope.row.status===9 && scope.row.borrowStatus===1">{{$t('page.business.study.nonTrial.jy')}}</el-button>
<el-button type="text" @click="jy(scope.row)" v-hasPermi="['business:form:nonTrial:jy']" v-if="(scope.row.leader==userId || checkRole(['bz'])) && scope.row.status===9 && scope.row.borrowStatus===1">{{$t('page.business.study.nonTrial.jy')}}</el-button>
</template>
</el-table-column>
</el-table>

Loading…
Cancel
Save