luojie 1 month ago
parent
commit
24aecc95eb
21 changed files with 775 additions and 572 deletions
  1. +4
    -4
      src/App.vue
  2. +7
    -0
      src/api/business/study/studyFormFill.js
  3. +80
    -65
      src/views/business/form/drug/comp/sqbdList.vue
  4. +72
    -60
      src/views/business/form/drug/comp/tbbdList.vue
  5. +59
    -45
      src/views/business/form/drug/comp/ytbdList.vue
  6. +53
    -47
      src/views/business/form/nonTrial/comp/tbbdList.vue
  7. +39
    -34
      src/views/business/form/nonTrial/comp/ytbdList.vue
  8. +18
    -13
      src/views/business/study/comp/jhbd/Bj.vue
  9. +33
    -27
      src/views/business/study/comp/jhbdList.vue
  10. +17
    -12
      src/views/business/study/comp/sqbd/Bj.vue
  11. +10
    -4
      src/views/business/study/comp/tbbd/Bj.vue
  12. +102
    -36
      src/views/business/study/comp/tbbd/Xq.vue
  13. +57
    -51
      src/views/business/study/comp/tbbdList.vue
  14. +2
    -0
      src/views/business/study/comp/wzlb/bacteriaList.vue
  15. +2
    -0
      src/views/business/study/comp/wzlb/cellList.vue
  16. +17
    -13
      src/views/business/study/comp/wzlb/gspList.vue
  17. +59
    -48
      src/views/business/study/comp/wzlb/gyzjList.vue
  18. +55
    -43
      src/views/business/study/comp/wzlb/mjyList.vue
  19. +17
    -13
      src/views/business/study/comp/wzlb/sjList.vue
  20. +25
    -15
      src/views/business/study/comp/ytbd/Bj.vue
  21. +47
    -42
      src/views/business/study/comp/ytbdList.vue

+ 4
- 4
src/App.vue View File

@ -202,14 +202,14 @@ export default {
justify-content: space-between;
.content-right {
width: 33%;
width: 20%;
margin-left: 2%;
padding: 0px 10px;
border-left: 1px solid #d0d0d0;
}
.content-left {
width: 65%;
width: 78%;
}
.content {
@ -444,14 +444,14 @@ th {
justify-content: center;
.content-right {
width: 33%;
width: 20%;
margin-left: 2%;
padding: 0px 10px;
border-left: 1px solid #d0d0d0;
}
.content-left {
width: 65%;
width: 78%;
}
.content {

+ 7
- 0
src/api/business/study/studyFormFill.js View File

@ -24,6 +24,13 @@ export function studyFormFill_exportDetail(query) {
params: query
})
}
export function studyFormFill_exportByFileUrl(query) {
return request({
url: '/system/business/studyFormFill/exportByFileUrl',
method: 'get',
params: query
})
}
export function studyFormFill_jcgjqmxxList(query) {
return request({
url: '/system/business/studyFormFill/jcgjqmxxList',

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

@ -1,19 +1,19 @@
<template>
<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">
<el-form :model="searchForm" ref="searchForm" :inline="true" label-width="110px">
<el-row>
<el-col :span="6">
<el-form-item :label="$t('page.business.form.bdmc')" prop="name">
<el-input v-model="searchForm.bdmc" :placeholder="$t('form.placeholderInput')" clearable
style="width: 200px" />
style="width: 200px" />
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :label="$t('page.business.form.bdbh')" prop="sn">
<el-input v-model="searchForm.bdbh" :placeholder="$t('form.placeholderInput')" clearable
style="width: 200px" />
style="width: 200px" />
</el-form-item>
</el-col>
<el-col :span="6">
@ -35,23 +35,21 @@
<el-col :span="6">
<el-form-item :label="$t('page.business.form.xtmbmc')" prop="templateName">
<el-input v-model="searchForm.templateMc" :placeholder="$t('form.placeholderInput')" clearable
style="width: 200px" />
style="width: 200px" />
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :label="$t('page.business.form.cjsj')">
<el-date-picker v-model="daterange" clearable type="daterange" range-separator="-"
: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-col>
<el-col :span="6">
<el-form-item :label="$t('page.business.form.tjsj')">
<el-date-picker v-model="daterangetj" clearable type="daterange" range-separator="-"
: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-col>
<el-col :span="6">
@ -69,33 +67,43 @@
<div class="sqbd-content">
<el-row class="add-box">
<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-row>
<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.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">
<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>
</el-table-column>
<el-table-column :label="$t('page.business.form.status')" prop="status" align="center" width="100">
<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>
</el-table-column>
<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']">{{
$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>
</el-table-column>
</el-table>
@ -205,6 +217,7 @@ export default {
study: {
handler(newVal) {
this.searchForm.studySn = newVal.sn
this.searchForm.studyStatus = newVal.status
this.searchForm.studyMc = newVal.name
this.searchForm.studyId = newVal.id
this.leader = newVal.leader
@ -214,10 +227,10 @@ export default {
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() {
return {
isQa:false,
isQa: false,
leader: null,
showFh: false,
showSh: false,
@ -230,6 +243,7 @@ export default {
pageNum: 1,
pageSize: 10,
studyId: -1,
studyStatus: 5,
studySn: '',
studyMc: '',
bdbh: '',
@ -239,7 +253,7 @@ export default {
templateMc: '',
cjsjjs: '',
cjsjks: '',
sfbl:null,
sfbl: null,
tjsjjs: '',
tjsjks: '',
},
@ -249,13 +263,13 @@ export default {
currentRow: null
}
},
created() { this.getIsQa()},
created() { this.getIsQa() },
methods: {
checkPermi,
checkRole,
getIsQa() {
studySubject_isQa().then(response => {
this.isQa=response.data
this.isQa = response.data
})
},
ghgsr(row) {
@ -292,7 +306,7 @@ export default {
this.searchForm.cjsjjs = ''
this.searchForm.tjsjks = ''
this.searchForm.tjsjjs = ''
this.searchForm.sfbl =null
this.searchForm.sfbl = null
this.daterange = []
this.daterangetj = []
this.search()
@ -322,8 +336,9 @@ export default {
add() {
this.showEdit = true
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) {
this.showEdit = true
@ -370,7 +385,7 @@ export default {
this.$emit('showDetail', this.showFh)
this.$refs.Fh.show(row)
},
sh(row) {
sh(row) {
this.showSh = true
this.$emit('showDetail', this.showSh)
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-form-item :label="$t('page.business.form.bdmc')" prop="name">
<el-input v-model="searchForm.bdmc" :placeholder="$t('form.placeholderInput')" clearable
style="width: 200px" />
style="width: 200px" />
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :label="$t('page.business.form.bdbh')" prop="sn">
<el-input v-model="searchForm.bdbh" :placeholder="$t('form.placeholderInput')" clearable
style="width: 200px" />
style="width: 200px" />
</el-form-item>
</el-col>
<el-col :span="6">
@ -42,16 +42,14 @@
<el-form-item :label="$t('page.business.form.cjsj')">
<el-date-picker v-model="daterange" clearable type="daterange" range-separator="-"
: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-col>
<el-col :span="6">
<el-form-item :label="$t('page.business.form.tjsj')">
<el-date-picker v-model="daterangetj" clearable type="daterange" range-separator="-"
: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-col>
<el-col :span="6">
@ -69,32 +67,41 @@
<div class="tbbd-content">
<el-row class="add-box">
<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-row>
<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.gsr')" align="center" prop="userMc" width="100" />
<el-table-column :label="$t('page.business.form.status')" prop="status" align="center" width="100">
<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>
</el-table-column>
<el-table-column :label="$t('page.business.study.studyFormFill.sfbl')" align="center" prop="status"
width="100">
<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>
</el-table-column>
<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']">{{
$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>
</el-table-column>
</el-table>
@ -208,6 +218,7 @@ export default {
study: {
handler(newVal) {
this.searchForm.studySn = newVal.sn
this.searchForm.studyStatus = newVal.status
this.searchForm.studyMc = newVal.name
this.searchForm.studyId = newVal.id
this.leader = newVal.leader
@ -232,6 +243,7 @@ export default {
pageNum: 1,
pageSize: 10,
studyId: -1,
studyStatus: 5,
studySn: '',
studyMc: '',
bdbh: '',
@ -241,7 +253,7 @@ export default {
templateMc: '',
cjsjjs: '',
cjsjks: '',
sfbl:null,
sfbl: null,
tjsjjs: '',
tjsjks: '',
},
@ -253,7 +265,7 @@ export default {
},
created() { this.getIsQa() },
mounted() {
EventBus.$on('onRefreshDrugTbbdList',(data) => {
EventBus.$on('onRefreshDrugTbbdList', (data) => {
this.getList()
});
},
@ -307,8 +319,8 @@ export default {
this.searchForm.tjsjjs = ''
this.searchForm.tjsjks = ''
this.searchForm.sfbl = null
this.daterange=[]
this.daterangetj=[]
this.daterange = []
this.daterangetj = []
this.search()
},
getList() {
@ -341,7 +353,7 @@ export default {
url: this.$route.fullPath,
studyId: this.searchForm.studyId,
studyType: 10,
studyFormType:5,
studyFormType: 5,
formId: null
}))
this.$tab.openPage(this.$t('page.business.study.studyFormFill.xzbd'), '/drug/formFillBj/' + params)
@ -354,7 +366,7 @@ export default {
url: this.$route.fullPath,
studyId: this.searchForm.studyId,
studyType: 10,
studyFormType:5,
studyFormType: 5,
formId: row.id
}))
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-form-item :label="$t('page.business.form.bdmc')" prop="name">
<el-input v-model="searchForm.bdmc" :placeholder="$t('form.placeholderInput')" clearable
style="width: 200px" />
style="width: 200px" />
</el-form-item>
</el-col>
<el-col :span="6">
@ -40,8 +40,7 @@
<el-form-item :label="$t('page.business.form.cjsj')">
<el-date-picker v-model="daterange" clearable type="daterange" range-separator="-"
: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-col>
</el-row>
@ -50,29 +49,35 @@
<div class="ytbd-content">
<el-row class="add-box">
<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']"
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>
</el-col>
</el-row>
<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.cjr')" align="center" prop="userMc" width="100" />
<el-table-column :label="$t('page.business.form.status')" prop="status" width="100">
<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>
</el-table-column>
@ -82,33 +87,39 @@
<!-- 详情 -->
<el-button type="text" v-hasPermi="['business:drugFormPre:xq']" @click="detail(scope.row)">{{
$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 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>
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 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>
</el-table-column>
@ -125,9 +136,9 @@
<!-- 审核 -->
<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
:close-on-click-modal="false">
<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%"
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>
<Sign ref="fsySignRef" @callback="doSign" />
@ -189,7 +201,7 @@
<script>
import { checkPermi, checkRole } from "@/utils/permission";
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 Bj from "@/views/business/study/comp/ytbd/Bj";
import Xq from "@/views/business/study/comp/ytbd/Xq";
@ -222,6 +234,7 @@ export default {
this.searchForm.studyMc = newVal.name
this.searchForm.studyId = newVal.id
this.leader = newVal.leader
this.searchForm.studyStatus = newVal.status
this.studyStatus = newVal.status
this.formCount = newVal.formCount
this.formFinishCount = newVal.formFinishCount
@ -231,7 +244,7 @@ export default {
deep: true
}
},
components: { Qrgb,Gb,Bj, Xq, Sh, SelectDeptUser, TemplateTable, Sign },
components: { Qrgb, Gb, Bj, Xq, Sh, SelectDeptUser, TemplateTable, Sign },
data() {
return {
formCount: 0,
@ -253,6 +266,7 @@ export default {
pageSize: 10,
studyId: -1,
studySn: '',
studyStatus: 5,
studyMc: '',
bdbh: '',
bdmc: '',
@ -291,7 +305,7 @@ export default {
checkRole,
copy() {
this.$modal.loading()
studyFormPre_studyList({type:10}).then(response => {
studyFormPre_studyList({ type: 10 }).then(response => {
this.studyList = response.data
this.formXz.studyId = null
this.formXz.formPreId = null
@ -349,7 +363,7 @@ export default {
},
studyChange() {
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.formPreList = response.data
this.$modal.closeLoading()
@ -376,7 +390,7 @@ export default {
this.searchForm.templateMc = ''
this.searchForm.startDate = ''
this.searchForm.endDate = ''
this.daterange=[]
this.daterange = []
this.search()
},
getList() {
@ -403,7 +417,7 @@ export default {
studyMc: this.searchForm.studyMc,
studyId: this.searchForm.studyId,
studyType: 10,
studyFormType:1,
studyFormType: 1,
permitForSecectUser: 'business:drugFormPre:sh'
})
},

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

@ -66,7 +66,7 @@
<div class="tbbd-content">
<el-row class="add-box">
<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']">{{
$t('page.business.study.studyFormFill.xzbd') }}</el-button>
</el-col>
@ -110,41 +110,43 @@
<!-- 详情 -->
<el-button type="text" @click="detail(scope.row)" v-hasPermi="['business:nonTrialFormFill:xq']">{{
$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>
</el-table-column>
</el-table>
@ -216,6 +218,7 @@ export default {
handler(newVal) {
this.searchForm.studySn = newVal.sn
this.searchForm.studyMc = newVal.name
this.searchForm.studyStatus = newVal.status
this.searchForm.studyId = newVal.id
this.leader = newVal.leader
this.search()
@ -241,6 +244,7 @@ export default {
studyId: -1,
studySn: '',
studyMc: '',
studyStatus: 5,
bdbh: '',
bdmc: '',
userId: '',
@ -261,7 +265,7 @@ export default {
},
created() { this.getIsQa() },
mounted() {
EventBus.$on('onRefreshNonTrialTbbdList',(data) => {
EventBus.$on('onRefreshNonTrialTbbdList', (data) => {
this.getList()
});
},
@ -345,15 +349,15 @@ export default {
this.$alert(data.ffmc, '', {
confirmButtonText: this.$t('page.business.study.studyMethod.qyd'),
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
})
if(index>-1){
if (index > -1) {
this.$tab.refreshPage(this.$store.state.tagsView.visitedViews[index]);
}else{
} else {
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.$modal.loading()
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) {
this.toRead(response.data)
} else {
let params = caesarCipher(JSON.stringify({
url: this.$route.fullPath,
studyId: this.searchForm.studyId,
studyFormType:5,
studyFormType: 5,
formId: null
}))
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.$modal.loading()
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) {
this.toRead(response.data)
} else {
@ -442,7 +448,7 @@ export default {
url: this.$route.fullPath,
studyId: this.searchForm.studyId,
formId: row.id,
studyFormType:5,
studyFormType: 5,
}))
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">
<el-row class="add-box">
<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']">{{
$t('page.business.study.studyFormPre.xzbd') }}</el-button>
<el-button type="primary" @click="sdsy" v-hasPermi="['business:form:nonTrial:sd']"
v-if="(leader == id || checkRole(['bz']))" :disabled="studyStatus>=5">{{
v-if="(leader == id || checkRole(['bz']))" :disabled="studyStatus >= 5">{{
$t('page.business.study.nonTrial.sdsy') }}</el-button>
</el-col>
</el-row>
@ -86,16 +86,24 @@
<!-- 详情 -->
<el-button type="text" v-hasPermi="['business:nonTrialFormPre:xq']" @click="detail(scope.row)">{{
$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 v-else>
<!-- 有权限审核 -->
@ -103,19 +111,14 @@
v-if="scope.row.bdzt === 3 && id != scope.row.userId">{{ $t('page.business.form.audit')
}}</el-button>
</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>
</el-table-column>
@ -232,6 +235,7 @@ export default {
this.searchForm.studyId = newVal.id
this.leader = newVal.leader
this.studyStatus = newVal.status
this.searchForm.studyStatus = newVal.status
this.formCount = newVal.formCount
this.formFinishCount = newVal.formFinishCount
this.search()
@ -261,6 +265,7 @@ export default {
pageNum: 1,
pageSize: 10,
studyId: -1,
studyStatus:5,
studySn: '',
studyMc: '',
bdbh: '',
@ -358,7 +363,7 @@ export default {
},
studyChange() {
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.formPreList = response.data
this.$modal.closeLoading()
@ -370,15 +375,15 @@ export default {
this.$alert(data.ffmc, '', {
confirmButtonText: this.$t('page.business.study.studyMethod.qyd'),
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
})
if(index>-1){
if (index > -1) {
this.$tab.refreshPage(this.$store.state.tagsView.visitedViews[index]);
}else{
} else {
this.$tab.openPage("loading", data.toUrl)
}
}
@ -440,13 +445,13 @@ export default {
studyMc: this.searchForm.studyMc,
studyId: this.searchForm.studyId,
studyType: 5,
studyFormType:1,
studyFormType: 1,
permitForSecectUser: 'business:nonTrialFormPre:sh'
})
},
edit(row) {
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) {
this.toRead(response.data)
} else {

+ 18
- 13
src/views/business/study/comp/jhbd/Bj.vue View File

@ -41,8 +41,8 @@
<el-row>
<el-col :span="24">
<el-form-item :label="$t('page.business.form.bdmb')" prop="templateId">
<SelectTemplate v-model="form.templateId" :studyType="studyType" :studyFormType="studyFormType" :needPre="1" :name="form.templateMc"
@change="selectTemplateChange" />
<SelectTemplate v-model="form.templateId" :studyType="studyType" :studyFormType="studyFormType"
:needPre="1" :name="form.templateMc" @change="selectTemplateChange" />
</el-form-item>
</el-col>
</el-row>
@ -181,7 +181,7 @@ export default {
},
templateData: {},
studyType: null,
studyFormType:null
studyFormType: null
}
},
computed: {
@ -195,7 +195,7 @@ export default {
onPlanCallback(data) {
console.log("data:" + JSON.stringify(data))
console.log("formdata:" + JSON.stringify(this.$refs.templateTable.getFilledFormData()))
if (data.type == 'fieldChanged' ) {
if (data.type == 'fieldChanged') {
studyFormPlan_updateBdnr(
{
id: this.form.id,
@ -235,9 +235,14 @@ export default {
})
},
selectTemplateChange(val) {
if (this.$i18n.locale === 'zh_CN') {
this.form.templateMc = val.name
this.form.bdmc = val.name
} else {
this.form.templateMc = val.nameEn
this.form.bdmc = val.nameEn
}
this.form.bdnr = val.content
this.form.bdmc = val.name
this.form.templateMc = val.name
this.form.templateSn = val.sn
this.templateData = deepClone(this.form)
},
@ -250,10 +255,10 @@ export default {
id: null,
studyId: null,
bdbh: null,
bdmc: '试验物质配制计划表',
bdmc: this.$i18n.locale === 'zh_CN'?'试验物质配制计划表':'试验物质配制计划表',
bdsm: null,
templateId: 1,
templateMc: '试验物质配制计划表',
templateMc: this.$i18n.locale === 'zh_CN'?'试验物质配制计划表':'试验物质配制计划表',
templateSn: 'SYWZPZJHB',
bdnr: null,
fzrsh: null,
@ -267,8 +272,8 @@ export default {
},
edit(row) {
this.reset()
this.studyType = row.studyType||null
this.studyFormType = row.studyFormType||null
this.studyType = row.studyType || null
this.studyFormType = row.studyFormType || null
this.form.qmyy = this.$t('page.business.study.studyFormPlan.cjjl')
if (row && row.id) {
this.showIndex = 2
@ -285,9 +290,9 @@ export default {
this.showIndex = 1
this.form = _.merge({}, this.form, row)
this.templateData = deepClone(this.form)
let name=this.studyType==1?'试验':(this.studyType==5?'非试验表单':'麻精药表单')
let nameEn=this.studyType==1?'Study':(this.studyType==5?'Non-study':'ontrolled Drug')
this.saveSimpleLog({jcmc:'计划表单新增',jcmcEn:'Plan Table Create',name:name,nameEn:nameEn})
let name = this.studyType == 1 ? '试验' : (this.studyType == 5 ? '非试验表单' : '麻精药表单')
let nameEn = this.studyType == 1 ? 'Study' : (this.studyType == 5 ? 'Non-study' : 'ontrolled Drug')
this.saveSimpleLog({ jcmc: '计划表单新增', jcmcEn: 'Plan Table Create', name: name, nameEn: nameEn })
this.open = true
}
},

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

@ -43,7 +43,7 @@
<el-row class="add-box">
<el-col>
<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>
</el-col>
</el-row>
@ -70,23 +70,26 @@
<!-- 详情 -->
<el-button type="text" @click="detail(scope.row)" v-hasPermi="['business:studyFormPlan:xq']">{{
$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>
</el-table-column>
</el-table>
@ -143,6 +146,7 @@ export default {
handler(newVal) {
this.searchForm.studySn = newVal.sn
this.searchForm.studyMc = newVal.name
this.searchForm.studyStatus = newVal.status
this.searchForm.studyId = newVal.id
this.leader = newVal.leader
this.search()
@ -165,6 +169,7 @@ export default {
pageNum: 1,
pageSize: 10,
studyId: -1,
studyStatus: 5,
bdbh: '',
bdmc: '',
studySn: '',
@ -191,15 +196,15 @@ export default {
this.$alert(data.ffmc, '', {
confirmButtonText: this.$t('page.business.study.studyMethod.qyd'),
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
})
if(index>-1){
if (index > -1) {
this.$tab.refreshPage(this.$store.state.tagsView.visitedViews[index]);
}else{
} else {
this.$tab.openPage("loading", data.toUrl)
}
}
@ -254,8 +259,9 @@ export default {
} else {
this.showEdit = true
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(() => {
this.$modal.closeLoading()
@ -263,7 +269,7 @@ export default {
},
edit(row) {
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) {
this.toRead(response.data)
} else {

+ 17
- 12
src/views/business/study/comp/sqbd/Bj.vue View File

@ -41,8 +41,8 @@
<el-row>
<el-col :span="24">
<el-form-item :label="$t('page.business.form.bdmb')" prop="templateId">
<SelectTemplate v-model="form.templateId" :studyType="studyType" :studyFormType="studyFormType" :name="form.templateMc"
@change="selectTemplateChange" />
<SelectTemplate v-model="form.templateId" :studyType="studyType" :studyFormType="studyFormType"
:name="form.templateMc" @change="selectTemplateChange" />
</el-form-item>
</el-col>
</el-row>
@ -181,7 +181,7 @@ export default {
},
templateData: {},
studyType: null,
studyFormType:null
studyFormType: null
}
},
computed: {
@ -236,9 +236,14 @@ export default {
})
},
selectTemplateChange(val) {
this.form.bdmc = val.name
if (this.$i18n.locale === 'zh_CN') {
this.form.templateMc = val.name
this.form.bdmc = val.name
} else {
this.form.templateMc = val.nameEn
this.form.bdmc = val.nameEn
}
this.form.bdnr = val.content
this.form.templateMc = val.name
this.form.templateSn = val.sn
this.templateData = deepClone(this.form)
},
@ -251,10 +256,10 @@ export default {
id: null,
studyId: null,
bdbh: null,
bdmc: '麻精药领取申请单',
bdmc: this.$i18n.locale === 'zh_CN'?'麻精药领取申请单':'麻精药领取申请单',
bdsm: null,
templateId: 2,
templateMc: '麻精药领取申请单',
templateMc: this.$i18n.locale === 'zh_CN'?'麻精药领取申请单':'麻精药领取申请单',
templateSn: 'MJYLQSQD',
bdnr: null,
fzrsh: null,
@ -270,8 +275,8 @@ export default {
},
edit(row) {
this.reset()
this.studyType = row.studyType||null
this.studyFormType = row.studyFormType||null
this.studyType = row.studyType || null
this.studyFormType = row.studyFormType || null
if (row && row.id) {
this.showIndex = 2
this.$modal.loading()
@ -287,9 +292,9 @@ export default {
this.showIndex = 1
this.form = _.merge({}, this.form, row)
this.templateData = deepClone(this.form)
let name=this.studyType==1?'试验':(this.studyType==5?'非试验表单':'麻精药表单')
let nameEn=this.studyType==1?'Study':(this.studyType==5?'Non-study':'ontrolled Drug')
this.saveSimpleLog({jcmc:'领取申请单新增',jcmcEn:'Material Application Table Create',name:name,nameEn:nameEn})
let name = this.studyType == 1 ? '试验' : (this.studyType == 5 ? '非试验表单' : '麻精药表单')
let nameEn = this.studyType == 1 ? 'Study' : (this.studyType == 5 ? 'Non-study' : 'ontrolled Drug')
this.saveSimpleLog({ jcmc: '领取申请单新增', jcmcEn: 'Material Application Table Create', name: name, nameEn: nameEn })
this.open = true
}
},

+ 10
- 4
src/views/business/study/comp/tbbd/Bj.vue View File

@ -177,7 +177,8 @@
<div style="display: flex;">
<div> {{ item.bh }}</div>
<div>
<el-input type="number" v-model="item.syl" maxlength="50" style="width:100px; margin:0px 0px 0px 5px;" />
<el-input type="number" v-model="item.syl" maxlength="50"
style="width:100px; margin:0px 0px 0px 5px;" />
</div>
<div>
<div style="width: 70px;">
@ -607,7 +608,7 @@ export default {
this.showIndex = 1
this.$modal.loading()
study_info({ id: params.studyId }).then(response => {
this.form = _.merge({}, this.form, { studySubjectId:params.studySubjectId,studyId: params.studyId, resourceStudy: response.data.resource, sftb: 1 })
this.form = _.merge({}, this.form, { studySubjectId: params.studySubjectId, studyId: params.studyId, resourceStudy: response.data.resource, sftb: 1 })
this.templateData = deepClone(this.form)
const obj = Object.assign({}, this.$route, { title: this.$t('page.business.study.studyFormFill.xzbd') })
this.$tab.updatePage(obj);
@ -764,8 +765,13 @@ export default {
},
selectTemplateChange(val) {
this.form.bdnr = val.content
this.form.templateMc = val.name
this.form.bdmc = val.name
if (this.$i18n.locale === 'zh_CN') {
this.form.templateMc = val.name
this.form.bdmc = val.name
} else {
this.form.templateMc = val.nameEn
this.form.bdmc = val.nameEn
}
this.form.templateSn = val.sn
},
cancel() {

+ 102
- 36
src/views/business/study/comp/tbbd/Xq.vue View File

@ -28,8 +28,8 @@
<div class="edit-content">
<div class="detail-content" style="width: 100%; height: 100%; padding: 0px 10px;">
<vue-html2pdf :show-layout="true" pdf-content-width="100%" :pdf-format="form.templatePdfSize" :pdf-quality="2"
:float-layout="false" pdf-orientation="landscape" :paginate-elements-by-height="0" :enable-download="true"
:preview-modal="false" :filename="form.bdmc" @beforeDownload="addDynamicWatermark" ref="html2Pdf"
:float-layout="false" pdf-orientation="landscape" :paginate-elements-by-height="0" :enable-download="false"
:preview-modal="false" :filename="form.bdmc" @beforeDownload="handleBeforeDownload" ref="html2Pdf"
@progress="onProgress">
<section slot="pdf-content">
<div class="pdf-content">
@ -150,7 +150,8 @@
</template>
<script>
import { studyFormFill_jcgjqmxxList, studyFormFill_tb, studyFormFill_info, studyFormFill_jcgj, studyFormFill_qmxx, studyFormFill_exportDetail } from "@/api/business/study/studyFormFill"
import { studyFormFill_jcgjqmxxList, studyFormFill_uploadFile, studyFormFill_exportByFileUrl, studyFormFill_tb, studyFormFill_info, studyFormFill_jcgj, studyFormFill_qmxx, studyFormFill_exportDetail } from "@/api/business/study/studyFormFill"
import { getToken } from "@/utils/auth"
import { mapGetters } from 'vuex'
import JcgjList from "@/views/business/comps/common/JcgjList";
import JcgjExportList from "@/views/business/comps/common/JcgjExportList";
@ -163,6 +164,7 @@ export default {
data() {
return {
watermarkText: '',
uploadFileUrl: process.env.VUE_APP_BASE_API + '/file/upload', //
opacity: 0.8,
watermarkOpacity: 0.8,
watermarkSize: 40,
@ -225,6 +227,7 @@ export default {
created() {
},
methods: {
//-
updateWatermark() {
//
const text = this.nickName + ' ' + moment().format("YYYY-MM-DD HH:mm:ss");
@ -251,37 +254,7 @@ export default {
container.style.backgroundImage = `url(${canvas.toDataURL()})`;
container.style.backgroundRepeat = 'repeat';
},
onProgress(progress) {
console.log(`生成进度: ${progress}%`)
this.removePageBreak()
if (progress == 100) {
this.showExport = false
this.$modal.closeLoading()
}
},
exportExcel(jcgjlx) {
this.$modal.loading()
this.jcgjlxExport = jcgjlx
this.showExport = true
studyFormFill_jcgjqmxxList({ jcgjlx: jcgjlx, id: this.form.id }).then(response => {
this.jcgjExportList = response.data.jcgj
this.qmxxExportList = response.data.qmxx
this.updateWatermark()
this.$refs.jcgjExportList.init(this.jcgjExportList)
setTimeout(() => {
this.$refs.html2Pdf.generatePdf({
margin: {
top: 20,
right: 15,
bottom: 20,
left: 15
},
})
}, 200);
this.saveSimpleLog({jcmc:'填报表单详情导出',jcmcEn:'Record Detail Export',name:this.form.bdmc+'('+this.form.bdbh+')',nameEn:this.form.bdmc+'('+this.form.bdbh+')'})
})
},
//
//-
async addDynamicWatermark({ pdfContent }) {
return new Promise((resolve) => {
const canvas = document.createElement('canvas')
@ -336,12 +309,105 @@ export default {
setTimeout(() => resolve(), 100)
})
},
//
onProgress(progress) {
console.log(`生成进度: ${progress}%`)
this.removePageBreak()
if (progress == 100) {
this.showExport = false
// this.$modal.closeLoading()
}
},
//
exportExcel(jcgjlx) {
this.$modal.loading()
this.jcgjlxExport = jcgjlx
this.showExport = true
studyFormFill_jcgjqmxxList({ jcgjlx: jcgjlx, id: this.form.id }).then(response => {
this.jcgjExportList = response.data.jcgj
this.qmxxExportList = response.data.qmxx
// this.updateWatermark()
this.$refs.jcgjExportList.init(this.jcgjExportList)
setTimeout(() => {
this.$refs.html2Pdf.generatePdf({
margin: {
top: 20,
right: 15,
bottom: 20,
left: 15
},
})
}, 200);
this.saveSimpleLog({ jcmc: '填报表单详情导出', jcmcEn: 'Record Detail Export', name: this.form.bdmc + '(' + this.form.bdbh + ')', nameEn: this.form.bdmc + '(' + this.form.bdbh + ')' })
})
},
//blog
async handleBeforeDownload({ html2pdf, options, pdfContent }) {
this.$modal.loading()
// 1. 使 html2pdf PDF jsPDF
const pdf = await html2pdf()
.set(options) //
.from(pdfContent) // PDF
.toPdf() // PDF
.get('pdf'); // jsPDF
// 2. jsPDF Blob
const blob = pdf.output('blob');
// 3. Blob
await this.uploadPdfToServer(blob);
// .save()
// pdf.save('my-document.pdf');
},
//
async uploadPdfToServer(blob) {
const formData = new FormData();
formData.append('file', blob, 'hxhq-export-form.pdf');
try {
const response = await fetch(this.uploadFileUrl, {
method: 'POST',
headers: {
Authorization: "Bearer " + getToken(),
},
body: formData
});
//
if (!response.ok) {
//
const errorData = await response.json().catch(() => ({}));
throw new Error(errorData.message || `HTTP error! status: ${response.status}`);
}
// JSON
const data = await response.json();
// console.log('JSON:', data);
if (data.code == 200) {
studyFormFill_exportByFileUrl(
{
url: data.data.url,
studyFormFillId: this.form.id,
}
).then(response => {
window.open(process.env.VUE_APP_FILE_DOMAIN + response.msg)
}).finally(() => {
this.$modal.closeLoading()
})
} else {
this.$modal.msgError(data.msg)
this.$modal.closeLoading()
}
} catch (error) {
this.$modal.msgError("导出失败,稍后再试")
this.$modal.closeLoading()
}
},
//
removePageBreak() {
document.querySelectorAll('.html2pdf__page-break').forEach(el => {
el.remove()
})
},
//-
exportExcel_bak(jcgjlx) {
this.$modal.loading()
studyFormFill_exportDetail(_.merge({}, this.queryParamsJcgj, { jcgjlx: jcgjlx, lang: this.$store.getters.language.split("_")[0] })).then(response => {
@ -352,8 +418,8 @@ export default {
},
getJjcgjList(val) {
this.$modal.loading()
if(val){
this.queryParamsJcgj=_.merge({}, this.queryParamsJcgj, val)
if (val) {
this.queryParamsJcgj = _.merge({}, this.queryParamsJcgj, val)
}
studyFormFill_jcgj(this.queryParamsJcgj).then(response => {
this.jcgjList = response.rows

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

@ -66,8 +66,8 @@
<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: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>
</el-col>
</el-row>
@ -110,40 +110,44 @@
<!-- 详情 -->
<el-button type="text" @click="detail(scope.row)" v-hasPermi="['business:studyFormFill:xq']">{{
$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>
</el-table-column>
</el-table>
@ -204,9 +208,9 @@ export default {
return {}
}
},
selectedDeptId:{
type:[Number,String],
default:()=>{
selectedDeptId: {
type: [Number, String],
default: () => {
return null
}
},
@ -221,6 +225,7 @@ export default {
handler(newVal) {
this.searchForm.studySn = newVal.sn
this.searchForm.studyMc = newVal.name
this.searchForm.studyStatus = newVal.status
this.searchForm.studyId = newVal.id
this.searchForm.studySubjectId = newVal.studySubjectId
this.leader = newVal.leader
@ -232,7 +237,7 @@ export default {
}
},
mounted() {
EventBus.$on('onRefreshStudyTbbdList',(data) => {
EventBus.$on('onRefreshStudyTbbdList', (data) => {
this.getList()
});
},
@ -258,6 +263,7 @@ export default {
studyId: -1,
studySn: '',
studyMc: '',
studyStatus: 5,
studySubjectId: '',
bdbh: '',
bdmc: '',
@ -403,15 +409,15 @@ export default {
this.$alert(data.ffmc, '', {
confirmButtonText: this.$t('page.business.study.studyMethod.qyd'),
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
})
if(index>-1){
if (index > -1) {
this.$tab.refreshPage(this.$store.state.tagsView.visitedViews[index]);
}else{
} else {
this.$tab.openPage("loading", data.toUrl)
}
}
@ -431,8 +437,8 @@ export default {
url: this.$route.fullPath,
studyId: this.searchForm.studyId,
studyType: 1,
studyFormType:5,
selectedDeptId:this.selectedDeptId,
studyFormType: 5,
selectedDeptId: this.selectedDeptId,
studySubjectId: this.searchForm.studySubjectId,
id: null
}))
@ -447,7 +453,7 @@ export default {
// this.$emit('showDetail', this.showEdit)
// this.$refs.Bj.edit(row)
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) {
this.toRead(response.data)
} else {
@ -455,9 +461,9 @@ export default {
url: this.$route.fullPath,
studyId: this.searchForm.studyId,
studyType: 1,
studyFormType:5,
studyFormType: 5,
studySubjectId: this.searchForm.studySubjectId,
selectedDeptId:this.selectedDeptId,
selectedDeptId: this.selectedDeptId,
formId: row.id
}))
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: {
pageNum: 1,
pageSize: 10,
studyStatus: 5,
mc: null,
jyzt: null,
studyId: null,
@ -117,6 +118,7 @@ export default {
watch: {
study: {
handler(newVal) {
this.queryParams.studyStatus = newVal.status
this.queryParams.studyId = newVal.id
this.handleQuery()
},

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

@ -93,6 +93,7 @@ export default {
//
queryParams: {
pageNum: 1,
studyStatus: 5,
pageSize: 10,
mc: null,
jyzt: null,
@ -117,6 +118,7 @@ export default {
watch: {
study: {
handler(newVal) {
this.queryParams.studyStatus = newVal.status
this.queryParams.studyId = newVal.id
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)"
v-hasPermi="['business:studyMjy:xq', 'business:nonTrialMjy:xq', 'business:drugMjy:xq']">{{
$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>
</el-table-column>
@ -134,6 +136,7 @@ export default {
//
queryParams: {
pageNum: 1,
studyStatus: 5,
pageSize: 10,
mc: null,
jyzt: null,
@ -158,6 +161,7 @@ export default {
watch: {
study: {
handler(newVal) {
this.queryParams.studyStatus = newVal.status
this.queryParams.studyId = newVal.id
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-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 :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 :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.wrk')" :value="2" />
<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-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"
style="width: 250px;" />
style="width: 250px;" />
</el-form-item>
<el-form-item>
<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.sfcc')" align="center" width="100px" fixed="right">
<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>
</el-table-column>
<el-table-column :label="$t('page.business.resource.gyzj.zjzt')" align="center" width="100px" fixed="right">
<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>
</el-table-column>
@ -79,40 +85,43 @@
<el-button type="text" @click="handleXq(scope.row)"
v-hasPermi="['business:studyGyzj:xq', 'business:nonTrialGyzj:xq', 'business:drugGyzj:xq']">{{
$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>
<!-- 入库 -->
<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>
<!-- 入库 -->
<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>
</el-table-column>
</el-table>
@ -171,6 +180,7 @@ export default {
pageNum: 1,
pageSize: 10,
studyId: null,
studyStatus: 5,
mc: null,
jyzt: null,
zjzt: null,
@ -194,6 +204,7 @@ export default {
study: {
handler(newVal) {
this.queryParams.studyId = newVal.id
this.queryParams.studyStatus = newVal.status
this.handleQuery()
},
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-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 :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 :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.wrk')" :value="2" />
<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-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"
style="width: 250px;" />
style="width: 250px;" />
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery">{{ $t('form.search') }}</el-button>
@ -56,50 +53,63 @@
</template>
</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.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">
<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>
</el-table-column>
<el-table-column :label="$t('page.business.resource.mjy.zjzt')" align="center" width="100px" fixed="right">
<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>
</el-table-column>
<el-table-column :label="$t('form.operate')" fixed="right" align="center"
class-name="small-padding fixed-width" width="250px">
<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>
<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>
<!-- 取出 -->
<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>
</el-table-column>
</el-table>
@ -135,7 +145,7 @@ import moment from "moment";
export default {
name: "MjyList",
components: {Qc,Cc, Xq, Bj, Xgkc, Czyj },
components: { Qc, Cc, Xq, Bj, Xgkc, Czyj },
data() {
return {
daterange: [],
@ -152,6 +162,7 @@ export default {
pageNum: 1,
pageSize: 10,
mc: null,
studyStatus: 5,
jyzt: null,
studyId: null,
zjzt: null,
@ -174,6 +185,7 @@ export default {
watch: {
study: {
handler(newVal) {
this.queryParams.studyStatus = newVal.status
this.queryParams.studyId = newVal.id
this.handleQuery()
},
@ -182,12 +194,12 @@ export default {
}
},
methods: {
//
handleQc(row){
//
handleQc(row) {
this.$refs.Qc.show(row)
},
//
handleCc(row){
handleCc(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 :label="$t('form.operate')" fixed="right" align="center"
class-name="small-padding fixed-width" width="250px">
<template slot-scope="scope">
<template slot-scope="scope">
<!-- 详情 -->
<template
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']">{{
$t('page.business.resource.sj.detail') }}</el-button>
</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>
</el-table-column>
@ -132,6 +134,7 @@ export default {
queryParams: {
pageNum: 1,
pageSize: 10,
studyStatus: 5,
mc: null,
jyzt: null,
studyId: null,
@ -155,6 +158,7 @@ export default {
watch: {
study: {
handler(newVal) {
this.queryParams.studyStatus = newVal.status
this.queryParams.studyId = newVal.id
this.handleQuery()
},

+ 25
- 15
src/views/business/study/comp/ytbd/Bj.vue View File

@ -42,7 +42,8 @@
<el-col :span="24">
<el-form-item :label="$t('page.business.form.bdmb')" prop="templateId">
<SelectTemplate v-model="form.templateId" :disabled="form.id && form.id !== ''" :needPre="10"
:name="form.templateMc" :studyType="studyType" :selectedDeptId="selectedDeptId" :studyFormType="studyFormType" @change="selectTemplateChange" />
:name="form.templateMc" :studyType="studyType" :selectedDeptId="selectedDeptId"
:studyFormType="studyFormType" @change="selectTemplateChange" />
</el-form-item>
</el-col>
</el-row>
@ -89,8 +90,12 @@
<el-col :span="24">
<el-form-item :label="$t('page.business.study.studyFormPre.fzrsh')" prop="fzrsh">
<el-radio-group v-model="form.fzrsh">
<el-radio :label="$t('page.business.study.studyFormPre.yes')">{{ $t('page.business.study.studyFormPre.yes') }}</el-radio>
<el-radio :label="$t('page.business.study.studyFormPre.no')">{{ $t('page.business.study.studyFormPre.no') }}</el-radio>
<el-radio :label="$t('page.business.study.studyFormPre.yes')">{{
$t('page.business.study.studyFormPre.yes')
}}</el-radio>
<el-radio :label="$t('page.business.study.studyFormPre.no')">{{
$t('page.business.study.studyFormPre.no')
}}</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
@ -155,7 +160,7 @@ export default {
open: false,
openSubmit: false,
permitForSecectUser: '',
selectedDeptId:null,
selectedDeptId: null,
rulesApprove: {
qmrmm: [{
required: true,
@ -187,8 +192,8 @@ export default {
},
templateData: {},
studyType:null,
studyFormType:null,
studyType: null,
studyFormType: null,
}
},
computed: {
@ -202,7 +207,7 @@ export default {
onPreCallback(data) {
console.log("data:" + JSON.stringify(data))
console.log("formdata:" + JSON.stringify(this.$refs.templateTable.getFilledFormData()))
if (data.type == 'fieldChanged' ) {
if (data.type == 'fieldChanged') {
studyFormPre_updateBdnr(
{
id: this.form.id,
@ -234,8 +239,13 @@ export default {
},
selectTemplateChange(val) {
this.form.bdnr = val.content
this.form.templateMc = val.name
this.form.bdmc = val.name
if ( this.$i18n.locale === 'zh_CN') {
this.form.templateMc = val.name
this.form.bdmc = val.name
} else {
this.form.templateMc = val.nameEn
this.form.bdmc = val.nameEn
}
this.form.templateSn = val.sn
this.templateData = deepClone(this.form)
},
@ -266,9 +276,9 @@ export default {
edit(row) {
this.reset()
this.permitForSecectUser = row.permitForSecectUser
this.studyType = row.studyType||null
this.studyFormType = row.studyFormType||null
this.selectedDeptId=row.selectedDeptId||null
this.studyType = row.studyType || null
this.studyFormType = row.studyFormType || null
this.selectedDeptId = row.selectedDeptId || null
if (row && row.id) {
this.showIndex = 2
this.$modal.loading()
@ -288,9 +298,9 @@ export default {
this.templateData = deepClone(this.form)
const obj = Object.assign({}, this.$route, { title: this.$t('page.business.study.studyFormFill.xzbd') })
this.$tab.updatePage(obj);
let name=this.studyType==1?'试验':(this.studyType==5?'非试验表单':'麻精药表单')
let nameEn=this.studyType==1?'Study':(this.studyType==5?'Non-study':'ontrolled Drug')
this.saveSimpleLog({jcmc:'预填表单新增',jcmcEn:'Preset Create',name:name,nameEn:nameEn})
let name = this.studyType == 1 ? '试验' : (this.studyType == 5 ? '非试验表单' : '麻精药表单')
let nameEn = this.studyType == 1 ? 'Study' : (this.studyType == 5 ? 'Non-study' : 'ontrolled Drug')
this.saveSimpleLog({ jcmc: '预填表单新增', jcmcEn: 'Preset Create', name: name, nameEn: nameEn })
this.open = true
}
},

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

@ -49,8 +49,8 @@
<div class="ytbd-content">
<el-row class="add-box">
<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>
</el-col>
</el-row>
@ -85,38 +85,41 @@
<!-- 详情 -->
<el-button type="text" v-hasPermi="['business:studyFormPre:xq']" @click="detail(scope.row)">{{
$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 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>
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 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>
</el-table-column>
@ -216,9 +219,9 @@ export default {
return {}
}
},
selectedDeptId:{
type:[Number,String],
default:()=>{
selectedDeptId: {
type: [Number, String],
default: () => {
return null
}
},
@ -234,6 +237,7 @@ export default {
this.searchForm.studySn = newVal.sn
this.searchForm.studyMc = newVal.name
this.searchForm.studyId = newVal.id
this.searchForm.studyStatus = newVal.status
this.searchForm.studySubjectId = newVal.studySubjectId
this.leader = newVal.leader
this.search()
@ -261,6 +265,7 @@ export default {
pageSize: 10,
studyId: -1,
studySn: '',
studyStatus: 5,
studyMc: '',
studySubjectId: '',
bdbh: '',
@ -364,7 +369,7 @@ export default {
},
studyChange() {
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.formPreList = response.data
this.$modal.closeLoading()
@ -376,15 +381,15 @@ export default {
this.$alert(data.ffmc, '', {
confirmButtonText: this.$t('page.business.study.studyMethod.qyd'),
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
})
if(index>-1){
if (index > -1) {
this.$tab.refreshPage(this.$store.state.tagsView.visitedViews[index]);
}else{
} else {
this.$tab.openPage("loading", data.toUrl)
}
}
@ -445,7 +450,7 @@ export default {
studySn: this.searchForm.studySn,
studyMc: this.searchForm.studyMc,
studyId: this.searchForm.studyId,
selectedDeptId:this.selectedDeptId,
selectedDeptId: this.selectedDeptId,
studyType: 1,
studySubjectId: this.searchForm.studySubjectId,
permitForSecectUser: 'business:studyFormPre:sh'
@ -453,13 +458,13 @@ export default {
},
edit(row) {
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) {
this.toRead(response.data)
} else {
this.showEdit = true
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(() => {
this.$modal.closeLoading()

Loading…
Cancel
Save