Browse Source

feat:[试验管理][非实验管理]新增方法阅读判断

lkf
15881625488@163.com 3 months ago
parent
commit
96b2b7c710
6 changed files with 265 additions and 104 deletions
  1. +10
    -0
      src/api/business/study/studyMethod.js
  2. +66
    -24
      src/views/business/form/nonTrial/comp/tbbdList.vue
  3. +43
    -19
      src/views/business/form/nonTrial/comp/ytbdList.vue
  4. +38
    -21
      src/views/business/study/comp/jhbdList.vue
  5. +68
    -27
      src/views/business/study/comp/tbbdList.vue
  6. +40
    -13
      src/views/business/study/comp/ytbdList.vue

+ 10
- 0
src/api/business/study/studyMethod.js View File

@ -47,3 +47,13 @@ export function studyMethod_export(query) {
params: query
})
}
// 判断用户是否全部已读试验/学科下的试验方法
export function studyMethod_getReadAllMethodStatus(query) {
return request({
url: '/system/business/studyMethod/getReadAllMethodStatus',
method: 'get',
params: query
})
}

+ 66
- 24
src/views/business/form/nonTrial/comp/tbbdList.vue View File

@ -76,9 +76,9 @@
</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">
@ -173,6 +173,7 @@
<script>
import { studySubject_isQa } from "@/api/business/study/studySubject"
import { studyMethod_getReadAllMethodStatus } from '@/api/business/study/studyMethod'
import { checkPermi, checkRole } from "@/utils/permission";
import { studyFormFill_list } from '@/api/business/study/studyFormFill'
import Bj from "@/views/business/study/comp/tbbd/Bj";
@ -260,23 +261,49 @@ export default {
})
},
ghgsr(row) {
this.currentRow = row
this.$refs.selectDeptUserDialog.show(null, null)
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId }).then(response => {
this.currentRow = row
this.$refs.selectDeptUserDialog.show(null, null)
}).finally(() => {
this.$modal.closeLoading()
})
},
ghgsrChange(val) {
this.$refs.Ghgsr.show({ id: this.currentRow.id, userId: val.id, userMc: val.name })
},
jq(row) {
this.$refs.Jq.show(row)
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId }).then(response => {
this.$refs.Jq.show(row)
}).finally(() => {
this.$modal.closeLoading()
})
},
qrfz(row) {
this.$refs.Qrfz.show(row)
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId }).then(response => {
this.$refs.Qrfz.show(row)
}).finally(() => {
this.$modal.closeLoading()
})
},
gc(row) {
this.$refs.Gc.show(row)
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId }).then(response => {
this.$refs.Gc.show(row)
}).finally(() => {
this.$modal.closeLoading()
})
},
fz(row) {
this.$refs.Fz.show(row)
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId }).then(response => {
this.$refs.Fz.show(row)
}).finally(() => {
this.$modal.closeLoading()
})
},
userChange(val) {
this.searchForm.userId = val.id
@ -317,23 +344,33 @@ export default {
// this.showEdit = true
// this.$emit('showDetail', this.showEdit)
// this.$refs.Bj.edit({ studySn:this.searchForm.studySn, studyMc:this.searchForm.studyMc,studyId: this.searchForm.studyId })
let params = caesarCipher(JSON.stringify({
url: this.$route.fullPath,
studyId: this.searchForm.studyId,
formId: null
}))
this.$tab.openPage(this.$t('page.business.study.studyFormFill.xzbd'), '/nonTrial/formFillBj/' + params)
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId }).then(response => {
let params = caesarCipher(JSON.stringify({
url: this.$route.fullPath,
studyId: this.searchForm.studyId,
formId: null
}))
this.$tab.openPage(this.$t('page.business.study.studyFormFill.xzbd'), '/nonTrial/formFillBj/' + params)
}).finally(() => {
this.$modal.closeLoading()
})
},
edit(row) {
// this.showEdit = true
// this.$emit('showDetail', this.showEdit)
// this.$refs.Bj.edit(row)
let params = caesarCipher(JSON.stringify({
url: this.$route.fullPath,
studyId: this.searchForm.studyId,
formId: row.id
}))
this.$tab.openPage(row.bdmc, '/nonTrial/formFillBj/' + params)
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId }).then(response => {
let params = caesarCipher(JSON.stringify({
url: this.$route.fullPath,
studyId: this.searchForm.studyId,
formId: row.id
}))
this.$tab.openPage(row.bdmc, '/nonTrial/formFillBj/' + params)
}).finally(() => {
this.$modal.closeLoading()
})
},
bjClose() {
this.showEdit = false
@ -366,9 +403,14 @@ export default {
this.$refs.Sy.show(row)
},
fh(row) {
this.showFh = true
this.$emit('showDetail', this.showFh)
this.$refs.Fh.show(row)
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId }).then(response => {
this.showFh = true
this.$emit('showDetail', this.showFh)
this.$refs.Fh.show(row)
}).finally(() => {
this.$modal.closeLoading()
})
},
}
}

+ 43
- 19
src/views/business/form/nonTrial/comp/ytbdList.vue View File

@ -61,9 +61,9 @@
</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" />
@ -105,11 +105,13 @@
<el-button type="text" @click="audit(scope.row)" v-hasPermi="['business:nonTrialFormPre:sh']"
v-if="scope.row.bdzt === 3">{{ $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 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 === 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>
@ -126,9 +128,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">
@ -179,7 +181,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" />
@ -190,7 +193,8 @@
<script>
import { checkPermi, checkRole } from "@/utils/permission";
import { nonTrial_checkSd, nonTrial_sd } from "@/api/business/form/nonTrial"
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 { studyMethod_getReadAllMethodStatus } from '@/api/business/study/studyMethod'
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";
@ -232,7 +236,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,
@ -304,7 +308,7 @@ export default {
})
},
previewFzbd() {
this.$modal.loading()
this.$modal.loading()
studyFormPre_info({ id: this.formXz.formPreId }).then(response => {
this.formDatePreview = _.merge({}, response.data, {
studySn: this.searchForm.studySn,
@ -359,7 +363,12 @@ export default {
})
},
showAdd() {
this.open = true
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId }).then(response => {
this.open = true
}).finally(() => {
this.$modal.closeLoading()
})
},
userChange(val) {
this.searchForm.userId = val.id
@ -401,9 +410,14 @@ export default {
})
},
edit(row) {
this.showEdit = true
this.$emit('showDetail', this.showEdit)
this.$refs.Bj.edit(row)
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId }).then(response => {
this.showEdit = true
this.$emit('showDetail', this.showEdit)
this.$refs.Bj.edit(row)
}).finally(() => {
this.$modal.closeLoading()
})
},
bjClose() {
this.showEdit = false
@ -431,10 +445,20 @@ export default {
this.$refs.Sh.show(row)
},
gb(row) {
this.$refs.Gb.show(row)
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId }).then(response => {
this.$refs.Gb.show(row)
}).finally(() => {
this.$modal.closeLoading()
})
},
qrgb(row) {
this.$refs.Qrgb.show(row)
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId }).then(response => {
this.$refs.Qrgb.show(row)
}).finally(() => {
this.$modal.closeLoading()
})
},
sdsy() {
this.$modal.loading()

+ 38
- 21
src/views/business/study/comp/jhbdList.vue View File

@ -42,15 +42,16 @@
<div class="tbbd-content">
<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">{{
$t('page.business.study.studyFormPlan.xzpzjhb') }}</el-button>
<el-button type="primary" icon="el-icon-plus" @click="add()" v-hasPermi="['business:studyFormPlan:xz']"
v-if="id == leader">{{
$t('page.business.study.studyFormPlan.xzpzjhb') }}</el-button>
</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">
@ -67,7 +68,7 @@
<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"
<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>
<!-- 复核 -->
@ -76,11 +77,11 @@
$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"
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)"
<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>
@ -109,6 +110,7 @@
<script>
import { studySubject_isQa } from "@/api/business/study/studySubject"
import { studyFormPlan_list } from '@/api/business/study/studyFormPlan'
import { studyMethod_getReadAllMethodStatus } from '@/api/business/study/studyMethod'
import Bj from "./jhbd/Bj";
import Xq from "./jhbd/Xq";
import Sy from "./jhbd/Sy";
@ -149,7 +151,7 @@ export default {
components: { Ghgsr, Fh, Bj, Xq, Sy, SelectDeptUser, SelectDeptUserDialog },
data() {
return {
isQa:false,
isQa: false,
leader: null,
showFh: false,
showAudit: false,
@ -175,11 +177,11 @@ export default {
currentRow: null
}
},
created() {this.getIsQa() },
created() { this.getIsQa() },
methods: {
getIsQa() {
studySubject_isQa().then(response => {
this.isQa=response.data
this.isQa = response.data
})
},
ghgsr(row) {
@ -218,14 +220,24 @@ export default {
})
},
add() {
this.showEdit = true
this.$emit('showDetail', this.showEdit)
this.$refs.Bj.edit({studySn:this.searchForm.studySn, studyMc:this.searchForm.studyMc, studyId: this.searchForm.studyId, studySubjectId: this.searchForm.studySubjectId })
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId, studySubjectId: this.searchForm.studySubjectId }).then(response => {
this.showEdit = true
this.$emit('showDetail', this.showEdit)
this.$refs.Bj.edit({ studySn: this.searchForm.studySn, studyMc: this.searchForm.studyMc, studyId: this.searchForm.studyId, studySubjectId: this.searchForm.studySubjectId })
}).finally(() => {
this.$modal.closeLoading()
})
},
edit(row) {
this.showEdit = true
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 => {
this.showEdit = true
this.$emit('showDetail', this.showEdit)
this.$refs.Bj.edit(row)
}).finally(() => {
this.$modal.closeLoading()
})
},
bjClose() {
this.showEdit = false
@ -258,16 +270,21 @@ export default {
this.$refs.Sy.show(row)
},
fh(row) {
this.showFh = true
this.$emit('showDetail', this.showFh)
this.$refs.Fh.show(row)
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId, studySubjectId: this.searchForm.studySubjectId }).then(response => {
this.showFh = true
this.$emit('showDetail', this.showFh)
this.$refs.Fh.show(row)
}).finally(() => {
this.$modal.closeLoading()
})
},
}
}
</script>
<style lang="scss" scoped>
.tbbd-list {
.tbbd-search {
background: #fff;

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

@ -76,9 +76,9 @@
</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">
@ -172,6 +172,7 @@
<script>
import { studySubject_isMatchSubject, studySubject_isQa } from "@/api/business/study/studySubject"
import { studyMethod_getReadAllMethodStatus } from '@/api/business/study/studyMethod'
import { studyFormFill_list } from '@/api/business/study/studyFormFill'
import Bj from "./tbbd/Bj";
import Xq from "./tbbd/Xq";
@ -252,7 +253,9 @@ export default {
currentRow: null
}
},
created() { this.getIsQa() },
created() {
this.getIsQa()
},
methods: {
getIsMatchSubject() {
studySubject_isMatchSubject({ studySubjectId: this.searchForm.studySubjectId }).then(response => {
@ -264,25 +267,49 @@ export default {
this.isQa = response.data
})
},
ghgsr(row) {
this.currentRow = row
this.$refs.selectDeptUserDialog.show(null, null)
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId }).then(response => {
this.currentRow = row
this.$refs.selectDeptUserDialog.show(null, null)
}).finally(() => {
this.$modal.closeLoading()
})
},
ghgsrChange(val) {
this.$refs.Ghgsr.show({ id: this.currentRow.id, userId: val.id, userMc: val.name })
},
jq(row) {
this.$refs.Jq.show(row)
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId }).then(response => {
this.$refs.Jq.show(row)
}).finally(() => {
this.$modal.closeLoading()
})
},
qrfz(row) {
this.$refs.Qrfz.show(row)
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId }).then(response => {
this.$refs.Qrfz.show(row)
}).finally(() => {
this.$modal.closeLoading()
})
},
gc(row) {
this.$refs.Gc.show(row)
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId }).then(response => {
this.$refs.Gc.show(row)
}).finally(() => {
this.$modal.closeLoading()
})
},
fz(row) {
this.$refs.Fz.show(row)
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId }).then(response => {
this.$refs.Fz.show(row)
}).finally(() => {
this.$modal.closeLoading()
})
},
userChange(val) {
this.searchForm.userId = val.id
@ -323,24 +350,33 @@ export default {
// this.showEdit = true
// this.$emit('showDetail', this.showEdit)
// this.$refs.Bj.edit({ studySn:this.searchForm.studySn, studyMc:this.searchForm.studyMc,studyId: this.searchForm.studyId, studySubjectId: this.searchForm.studySubjectId })
let params=caesarCipher(JSON.stringify({
url: this.$route.fullPath,
studyId: this.searchForm.studyId,
id:null
}))
this.$tab.openPage(this.$t('page.business.study.studyFormFill.xzbd'), '/study/formFillBj/'+params)
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId, studySubjectId: this.searchForm.studySubjectId }).then(response => {
let params = caesarCipher(JSON.stringify({
url: this.$route.fullPath,
studyId: this.searchForm.studyId,
id: null
}))
this.$tab.openPage(this.$t('page.business.study.studyFormFill.xzbd'), '/study/formFillBj/' + params)
}).finally(() => {
this.$modal.closeLoading()
})
},
edit(row) {
// this.showEdit = true
// this.$emit('showDetail', this.showEdit)
// this.$refs.Bj.edit(row)
let params=caesarCipher(JSON.stringify({
url: this.$route.fullPath,
studyId: this.searchForm.studyId,
formId:row.id
}))
this.$tab.openPage(row.bdmc, '/study/formFillBj/' +params)
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId, studySubjectId: this.searchForm.studySubjectId }).then(response => {
let params = caesarCipher(JSON.stringify({
url: this.$route.fullPath,
studyId: this.searchForm.studyId,
formId: row.id
}))
this.$tab.openPage(row.bdmc, '/study/formFillBj/' + params)
}).finally(() => {
this.$modal.closeLoading()
})
},
bjClose() {
this.showEdit = false
@ -373,9 +409,14 @@ export default {
this.$refs.Sy.show(row)
},
fh(row) {
this.showFh = true
this.$emit('showDetail', this.showFh)
this.$refs.Fh.show(row)
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId, studySubjectId: this.searchForm.studySubjectId }).then(response => {
this.showFh = true
this.$emit('showDetail', this.showFh)
this.$refs.Fh.show(row)
}).finally(() => {
this.$modal.closeLoading()
})
},
}
}

+ 40
- 13
src/views/business/study/comp/ytbdList.vue View File

@ -57,9 +57,9 @@
</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" />
@ -188,6 +188,7 @@
<script>
import { studySubject_isMatchSubject } from "@/api/business/study/studySubject"
import { studyMethod_getReadAllMethodStatus } from '@/api/business/study/studyMethod'
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 "./ytbd/Bj";
@ -279,7 +280,8 @@ export default {
},
}
},
created() { },
created() {
},
methods: {
getIsMatchSubject() {
studySubject_isMatchSubject({ studySubjectId: this.searchForm.studySubjectId }).then(response => {
@ -355,7 +357,12 @@ export default {
})
},
showAdd() {
this.open = true
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId, studySubjectId: this.searchForm.studySubjectId }).then(response => {
this.open = true
}).finally(() => {
this.$modal.closeLoading()
})
},
userChange(val) {
this.searchForm.userId = val.id
@ -398,9 +405,14 @@ export default {
})
},
edit(row) {
this.showEdit = true
this.$emit('showDetail', this.showEdit)
this.$refs.Bj.edit(_.merge({}, row, { permitForSecectUser: 'business:studyFormPre:sh' }))
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId, studySubjectId: this.searchForm.studySubjectId }).then(response => {
this.showEdit = true
this.$emit('showDetail', this.showEdit)
this.$refs.Bj.edit(_.merge({}, row, { permitForSecectUser: 'business:studyFormPre:sh' }))
}).finally(() => {
this.$modal.closeLoading()
})
},
bjClose() {
this.showEdit = false
@ -423,15 +435,30 @@ export default {
this.$refs.Xq.show(row, false)
},
gb(row) {
this.$refs.Gb.show(row)
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId, studySubjectId: this.searchForm.studySubjectId }).then(response => {
this.$refs.Gb.show(row)
}).finally(() => {
this.$modal.closeLoading()
})
},
qrgb(row) {
this.$refs.Qrgb.show(row)
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId, studySubjectId: this.searchForm.studySubjectId }).then(response => {
this.$refs.Qrgb.show(row)
}).finally(() => {
this.$modal.closeLoading()
})
},
audit(row) {
this.showAudit = true
this.$emit('showDetail', this.showAudit)
this.$refs.Sh.show(row)
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId, studySubjectId: this.searchForm.studySubjectId }).then(response => {
this.showAudit = true
this.$emit('showDetail', this.showAudit)
this.$refs.Sh.show(row)
}).finally(() => {
this.$modal.closeLoading()
})
},
}
}

Loading…
Cancel
Save