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"> <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: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> $t('page.business.study.studyFormFill.xzbd') }}</el-button>
</el-col> </el-col>
</el-row> </el-row>
@ -169,7 +169,6 @@
</template> </template>
<script> <script>
import { studySubject_isMatchSubject } from "@/api/business/study/studySubject"
import { studyFormFill_list } from '@/api/business/study/studyFormFill' import { studyFormFill_list } from '@/api/business/study/studyFormFill'
import Bj from "@/views/business/study/comp/tbbd/Bj"; import Bj from "@/views/business/study/comp/tbbd/Bj";
import Xq from "@/views/business/study/comp/tbbd/Xq"; import Xq from "@/views/business/study/comp/tbbd/Xq";
@ -207,7 +206,6 @@ export default {
this.searchForm.studyId = newVal.studyId this.searchForm.studyId = newVal.studyId
this.searchForm.studySubjectId = newVal.studySubjectId this.searchForm.studySubjectId = newVal.studySubjectId
this.leader = newVal.leader this.leader = newVal.leader
// this.getIsMatchSubject()
this.search() this.search()
}, },
immediate: true, immediate: true,
@ -217,7 +215,6 @@ export default {
components: { Ghgsr, Fh, Fz, Bj, Xq, Qrfz, Sy, Jq, Gc, SelectDeptUser, SelectDeptUserDialog }, components: { Ghgsr, Fh, Fz, Bj, Xq, Qrfz, Sy, Jq, Gc, SelectDeptUser, SelectDeptUserDialog },
data() { data() {
return { return {
isMatchSubject:false,
leader: null, leader: null,
showFh: false, showFh: false,
showAudit: false, showAudit: false,
@ -250,11 +247,6 @@ export default {
}, },
created() { }, created() { },
methods: { methods: {
getIsMatchSubject() {
studySubject_isMatchSubject({studySubjectId:this.searchForm.studySubjectId }).then(response => {
this.isMatchSubject=response.data
})
},
ghgsr(row) { ghgsr(row) {
this.currentRow = row this.currentRow = row
this.$refs.selectDeptUserDialog.show(null, null) 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"> <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()"
<el-button type="primary" icon="el-icon-plus" @click="showAdd()"
v-hasPermi="['business:drugFormPre:xz']">{{ v-hasPermi="['business:drugFormPre:xz']">{{
$t('page.business.study.studyFormPre.xzbd') }}</el-button> $t('page.business.study.studyFormPre.xzbd') }}</el-button>
</el-col> </el-col>
@ -168,7 +168,6 @@
</template> </template>
<script> <script>
import { studySubject_isMatchSubject } from "@/api/business/study/studySubject"
import { studyFormPre_list, studyFormPre_info } from '@/api/business/study/studyFormPre' import { studyFormPre_list, studyFormPre_info } from '@/api/business/study/studyFormPre'
import { public_studyList, public_studyFormPreList } from '@/api/business/public/public' import { public_studyList, public_studyFormPreList } from '@/api/business/public/public'
import TemplateTable from '@/views/business/comps/template/TemplateTable'; import TemplateTable from '@/views/business/comps/template/TemplateTable';
@ -201,7 +200,6 @@ export default {
this.searchForm.studyId = newVal.studyId this.searchForm.studyId = newVal.studyId
this.searchForm.studySubjectId = newVal.studySubjectId this.searchForm.studySubjectId = newVal.studySubjectId
this.leader = newVal.leader this.leader = newVal.leader
// this.getIsMatchSubject()
this.search() this.search()
}, },
immediate: true, immediate: true,
@ -211,7 +209,6 @@ export default {
components: { Bj, Xq, Sh, SelectDeptUser, TemplateTable }, components: { Bj, Xq, Sh, SelectDeptUser, TemplateTable },
data() { data() {
return { return {
isMatchSubject:false,
formPreview: { formPreview: {
templateSn: null templateSn: null
}, },
@ -263,11 +260,6 @@ export default {
}, },
created() { }, created() { },
methods: { methods: {
getIsMatchSubject() {
studySubject_isMatchSubject({studySubjectId:this.searchForm.studySubjectId }).then(response => {
this.isMatchSubject=response.data
})
},
copy() { copy() {
this.$modal.loading() this.$modal.loading()
public_studyList().then(response => { 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"> <el-table-column :label="$t('form.operate')" fixed="right" align="center" width="200">
<template slot-scope="scope"> <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="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="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> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>

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

@ -69,7 +69,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" 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> $t('page.business.study.studyFormFill.xzbd') }}</el-button>
</el-col> </el-col>
</el-row> </el-row>
@ -169,7 +169,6 @@
</template> </template>
<script> <script>
import { studySubject_isMatchSubject } from "@/api/business/study/studySubject"
import { studyFormFill_list } from '@/api/business/study/studyFormFill' import { studyFormFill_list } from '@/api/business/study/studyFormFill'
import Bj from "@/views/business/study/comp/tbbd/Bj"; import Bj from "@/views/business/study/comp/tbbd/Bj";
import Xq from "@/views/business/study/comp/tbbd/Xq"; import Xq from "@/views/business/study/comp/tbbd/Xq";
@ -207,7 +206,6 @@ export default {
this.searchForm.studyId = newVal.studyId this.searchForm.studyId = newVal.studyId
this.searchForm.studySubjectId = newVal.studySubjectId this.searchForm.studySubjectId = newVal.studySubjectId
this.leader = newVal.leader this.leader = newVal.leader
// this.getIsMatchSubject()
this.search() this.search()
}, },
immediate: true, immediate: true,
@ -217,7 +215,6 @@ export default {
components: { Ghgsr, Fh, Fz, Bj, Xq, Qrfz, Sy, Jq, Gc, SelectDeptUser, SelectDeptUserDialog }, components: { Ghgsr, Fh, Fz, Bj, Xq, Qrfz, Sy, Jq, Gc, SelectDeptUser, SelectDeptUserDialog },
data() { data() {
return { return {
isMatchSubject:false,
leader: null, leader: null,
showFh: false, showFh: false,
showAudit: false, showAudit: false,
@ -250,11 +247,6 @@ export default {
}, },
created() { }, created() { },
methods: { methods: {
getIsMatchSubject() {
studySubject_isMatchSubject({studySubjectId:this.searchForm.studySubjectId }).then(response => {
this.isMatchSubject=response.data
})
},
ghgsr(row) { ghgsr(row) {
this.currentRow = row this.currentRow = row
this.$refs.selectDeptUserDialog.show(null, null) 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"> <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()"
<el-button type="primary" icon="el-icon-plus" @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-col> </el-col>
@ -168,7 +168,6 @@
</template> </template>
<script> <script>
import { studySubject_isMatchSubject } from "@/api/business/study/studySubject"
import { studyFormPre_list, studyFormPre_info } from '@/api/business/study/studyFormPre' import { studyFormPre_list, studyFormPre_info } from '@/api/business/study/studyFormPre'
import { public_studyList, public_studyFormPreList } from '@/api/business/public/public' import { public_studyList, public_studyFormPreList } from '@/api/business/public/public'
import TemplateTable from '@/views/business/comps/template/TemplateTable'; import TemplateTable from '@/views/business/comps/template/TemplateTable';
@ -201,7 +200,6 @@ export default {
this.searchForm.studyId = newVal.studyId this.searchForm.studyId = newVal.studyId
this.searchForm.studySubjectId = newVal.studySubjectId this.searchForm.studySubjectId = newVal.studySubjectId
this.leader = newVal.leader this.leader = newVal.leader
// this.getIsMatchSubject()
this.search() this.search()
}, },
immediate: true, immediate: true,
@ -211,7 +209,6 @@ export default {
components: { Bj, Xq, Sh, SelectDeptUser, TemplateTable }, components: { Bj, Xq, Sh, SelectDeptUser, TemplateTable },
data() { data() {
return { return {
isMatchSubject:false,
formPreview: { formPreview: {
templateSn: null templateSn: null
}, },
@ -263,11 +260,6 @@ export default {
}, },
created() { }, created() { },
methods: { methods: {
getIsMatchSubject() {
studySubject_isMatchSubject({studySubjectId:this.searchForm.studySubjectId }).then(response => {
this.isMatchSubject=response.data
})
},
copy() { copy() {
this.$modal.loading() this.$modal.loading()
public_studyList().then(response => { 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"> <el-table-column :label="$t('form.operate')" fixed="right" align="center" width="200">
<template slot-scope="scope"> <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="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="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> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>

Loading…
Cancel
Save