Browse Source

feat:[试验管理]填报跳转详情

master
15881625488@163.com 2 days ago
parent
commit
18490de791
8 changed files with 263 additions and 107 deletions
  1. +1
    -0
      src/lang/en/business/study/studyFormFill.js
  2. +1
    -1
      src/lang/zh/business/study/studyFormFill.js
  3. +42
    -0
      src/router/index.js
  4. +17
    -6
      src/views/business/form/drug/comp/tbbdList.vue
  5. +27
    -14
      src/views/business/form/nonTrial/comp/tbbdList.vue
  6. +128
    -56
      src/views/business/study/comp/tbbd/Bj.vue
  7. +35
    -23
      src/views/business/study/comp/tbbdList.vue
  8. +12
    -7
      src/views/business/study/comp/ytbd/Xq.vue

+ 1
- 0
src/lang/en/business/study/studyFormFill.js View File

@ -33,6 +33,7 @@ export default {
dcxgjcgj:'导出(修改稽查轨迹)',
dcbhsjgj:'导出(不含数据轨迹)',
ytbd:'预填表单',
tbz:'On-going',
ytj:'Submitted',
ywc:'Completed',

+ 1
- 1
src/lang/zh/business/study/studyFormFill.js View File

@ -33,7 +33,7 @@ export default {
dcbjjcgj:'导出(编辑稽查轨迹)',
dcxgjcgj:'导出(修改稽查轨迹)',
dcbhsjgj:'导出(不含数据轨迹)',
ytbd:'预填表单',
tbz:'填报中',
ytj:'已提交',
ywc:'已完成',

+ 42
- 0
src/router/index.js View File

@ -209,6 +209,48 @@ export const dynamicRoutes = [
meta: { title: '进入', activeMenu: '/form/drug' }
}
]
},
{
path: '/study/formFillBj',
component: Layout,
hidden: true,
permissions: ['business:studyFormFill:bj'],
children: [
{
path: ':formId(\\d+)/:fromYt/:key/:studyId',
component: () => import('@/views/business/study/comp/tbbd/Bj'),
name: 'studyFormFillBj',
meta: { title: 'loading', activeMenu: '/trial/list' }
}
]
},
{
path: '/nonTrial/formFillBj',
component: Layout,
hidden: true,
permissions: ['business:nonTrialFormFill:bj'],
children: [
{
path: ':formId(\\d+)/:fromYt/:key/:studyId',
component: () => import('@/views/business/study/comp/tbbd/Bj'),
name: 'nonTrialFormFillBj',
meta: { title: 'loading', activeMenu: '/form/nonTrial' }
}
]
},
{
path: '/drug/formFillBj',
component: Layout,
hidden: true,
permissions: ['business:drugFormFill:bj'],
children: [
{
path: ':formId(\\d+)/:fromYt/:key/:studyId',
component: () => import('@/views/business/study/comp/tbbd/Bj'),
name: 'drugFormFillBj',
meta: { title: 'loading', activeMenu: '/form/drug' }
}
]
}
]

+ 17
- 6
src/views/business/form/drug/comp/tbbdList.vue View File

@ -310,14 +310,25 @@ 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 })
// 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 key = 'formFillReturnUrl' + this.searchForm.studyId
localStorage.setItem(key, JSON.stringify({
url: this.$route.fullPath
}))
this.$tab.openPage("新增表单", '/drug/formFillBj/0/0/' + key + '/' + this.searchForm.studyId)
},
edit(row) {
this.showEdit = true
this.$emit('showDetail', this.showEdit)
this.$refs.Bj.edit(row)
// this.showEdit = true
// this.$emit('showDetail', this.showEdit)
// this.$refs.Bj.edit(row)
let key = 'formFillReturnUrl' + this.searchForm.studyId
localStorage.setItem(key, JSON.stringify({
url: this.$route.fullPath
}))
this.$tab.openPage(row.bdmc, '/drug/formFillBj/' + row.id + "/0/" + key + '/' + searchForm.studyId)
},
bjClose() {
this.showEdit = false

+ 27
- 14
src/views/business/form/nonTrial/comp/tbbdList.vue View File

@ -69,8 +69,9 @@
<div class="tbbd-content">
<el-row class="add-box">
<el-col>
<el-button type="primary" icon="el-icon-plus" @click="add()" v-hasPermi="['business:nonTrialFormFill:xz']">{{
$t('page.business.study.studyFormFill.xzbd') }}</el-button>
<el-button type="primary" icon="el-icon-plus" @click="add()"
v-hasPermi="['business:nonTrialFormFill:xz']">{{
$t('page.business.study.studyFormFill.xzbd') }}</el-button>
</el-col>
</el-row>
@ -105,7 +106,8 @@
<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"
<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>
<!-- 复核 -->
@ -122,11 +124,12 @@
@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']">{{
<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)"
<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>
<!-- 确认废止 -->
@ -216,7 +219,7 @@ export default {
components: { Ghgsr, Fh, Fz, Bj, Xq, Qrfz, Sy, Jq, Gc, SelectDeptUser, SelectDeptUserDialog },
data() {
return {
isQa:false,
isQa: false,
leader: null,
showFh: false,
showAudit: false,
@ -252,7 +255,7 @@ export default {
checkRole,
getIsQa() {
studySubject_isQa().then(response => {
this.isQa=response.data
this.isQa = response.data
})
},
ghgsr(row) {
@ -310,14 +313,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 })
// 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 key = 'formFillReturnUrl' + this.searchForm.studyId
localStorage.setItem(key, JSON.stringify({
url: this.$route.fullPath
}))
this.$tab.openPage("新增表单", '/nonTrial/formFillBj/0/0/' + key + '/' + this.searchForm.studyId)
},
edit(row) {
this.showEdit = true
this.$emit('showDetail', this.showEdit)
this.$refs.Bj.edit(row)
// this.showEdit = true
// this.$emit('showDetail', this.showEdit)
// this.$refs.Bj.edit(row)
let key = 'formFillReturnUrl' + this.searchForm.studyId
localStorage.setItem(key, JSON.stringify({
url: this.$route.fullPath
}))
this.$tab.openPage(row.bdmc, '/nonTrial/formFillBj/' + row.id + "/0/" + key + '/' + searchForm.studyId)
},
bjClose() {
this.showEdit = false

+ 128
- 56
src/views/business/study/comp/tbbd/Bj.vue View File

@ -29,7 +29,7 @@
</template>
<template v-else>
<el-button @click="saveNext">{{ $t('page.business.study.studyFormFill.save') }}</el-button>
<el-button type="primary" @click="openSubmit = true">{{ $t('page.business.study.studyFormFill.submit')
<el-button type="primary" @click="showApprove">{{ $t('page.business.study.studyFormFill.submit')
}}</el-button>
<el-button type="primary" @click="pre">{{ $t('page.business.study.studyFormFill.pre') }}</el-button>
</template>
@ -40,9 +40,9 @@
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
<el-row>
<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 !== ''" :name="form.templateMc"
@change="selectTemplateChange" :needPre="1" />
<el-form-item :label="bdmbTitle" prop="templateId">
<SelectTemplate v-model="form.templateId" :disabled="form.id && form.id !== ''"
:name="form.templateMc" @change="selectTemplateChange" :needPre="1" />
</el-form-item>
</el-col>
</el-row>
@ -56,7 +56,8 @@
<el-row>
<el-col :span="24">
<el-form-item :label="$t('page.business.study.studyFormFill.sfbl')" prop="sfbl">
<el-select v-model="form.sfbl" :placeholder="$t('form.placeholderSelect')" :disabled="form.id && form.id !== ''">
<el-select v-model="form.sfbl" :placeholder="$t('form.placeholderSelect')"
:disabled="form.id && form.id !== ''">
<el-option :label="$t('page.business.study.studyFormFill.yes')" :value="10" />
<el-option :label="$t('page.business.study.studyFormFill.no')" :value="1" />
</el-select>
@ -80,15 +81,64 @@
</div>
</div>
<el-dialog :title="$t('page.business.study.studyFormFill.tjjl')" :visible.sync="openSubmit" width="500px"
<el-dialog :title="$t('page.business.study.studyFormFill.tjjl')" :visible.sync="openApprove" width="1200px"
append-to-body :close-on-click-modal="false">
<el-form ref="formSubmit" :model="form" :rules="rulesApprove" label-width="120px">
todo
<el-form ref="formApprove" :model="formApprove" :rules="rulesApprove" label-width="120px">
<el-row>
<el-col :psna="24">
<el-form-item>
<el-checkbox v-model="showCz">处置</el-checkbox>
</el-form-item>
</el-col>
<el-col :psna="24">
<el-form-item>
<el-checkbox v-model="showCc">存储</el-checkbox>
</el-form-item>
</el-col>
<el-col :psna="24">
<el-form-item>
用量统计
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item :label="$t('form.qmyy')" prop="qmyy">
<el-input type="text" :value="formApprove.qmyy" maxlength="50" disabled
:placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item :label="$t('form.remark')" prop="remark">
<el-input type="textarea" v-model="formApprove.remark" :rows="5" maxlength="500"
:placeholder="$t('form.placeholderInput')">
</el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item :label="$t('form.signer')">
<el-input type="text" v-model="nickName" maxlength="50" disabled
:placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item :label="$t('form.password')" prop="qmrmm">
<el-input type="password" v-model="formApprove.qmrmm" maxlength="20"
:placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>
</el-row>
</el-form>
<!-- <div slot="footer" class="dialog-footer">
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="tj">{{ $t('form.confirm') }}</el-button>
<el-button @click="openSubmit = false">{{ $t('form.cancel') }}</el-button>
</div> -->
<el-button @click="openApprove = false">{{ $t('form.cancel') }}</el-button>
</div>
</el-dialog>
</div>
</template>
@ -107,25 +157,9 @@ export default {
return {
open: false,
showIndex: 1,
showCz: false,
showCc: false,
form: {},
openSubmit: false,
rulesApprove: {
qmrmm: [{
required: true,
message: ' ',
trigger: 'blur'
}],
fzrsh: [{
required: true,
message: ' ',
trigger: 'blur'
}],
shryId: [{
required: true,
message: ' ',
trigger: 'blur'
}]
},
rules: {
bdmc: [{
required: true,
@ -143,17 +177,67 @@ export default {
trigger: 'blur'
}],
}
},
openApprove: false,
formApprove: {},
bdmbTitle:this.$t('page.business.form.bdmb'),
rulesApprove: {
qmrmm: [{
required: true,
message: ' ',
trigger: 'blur'
}]
},
}
},
computed: {
...mapGetters([
'nickName','name'
'nickName', 'name'
]),
},
created() {
this.getInfo()
},
methods: {
getInfo() {
let formId = this.$route.params.formId
let studyId = this.$route.params.studyId
let fromYt = this.$route.params.fromYt
this.reset()
if (parseInt(formId) > 0) {
if (fromYt + '' == "10") {
this.showIndex = 1
this.bdmbTitle=this.$t('page.business.study.studyFormFill.ytbd')
} else {
this.showIndex = 2
}
this.$modal.loading()
studyFormFill_info({ id: formId }).then(response => {
this.form = response.data
this.form.qmyy = '制作提交预制表单'
this.$modal.closeLoading()
})
} else {
this.showIndex = 1
this.form = _.merge({}, this.form, { stydyId: studyId })
}
},
showApprove() {
this.resetApprove()
this.formApprove.id = this.form.id
this.openApprove = true
},
resetApprove() {
this.formApprove = {
id: null,
qmyy: '填写并提交记录',
remark: '',
bdnr: '',
resource: '',
qmrmm: '',
}
this.resetForm("formApprove")
},
pre() {
this.showIndex = 1
},
@ -171,7 +255,12 @@ export default {
this.form.templateSn = val.sn
},
cancel() {
this.$emit('close')
let data = localStorage.getItem(this.$route.params.key)
if (data && data != '') {
let params = JSON.parse(data)
const obj = { path: params.url }
this.$tab.closeOpenPage(obj)
}
},
reset() {
this.form = {
@ -194,30 +283,13 @@ export default {
selectDeptUserChange(val) {
this.form.shryMc = val.name
},
edit(row) {
this.reset()
if (row && row.id) {
this.showIndex = 2
this.$modal.loading()
studyFormFill_info({ id: row.id }).then(response => {
this.form = response.data
this.form.qmyy = '制作提交预制表单'
this.open = true
this.$modal.closeLoading()
})
} else {
this.showIndex = 1
this.form = _.merge({}, this.form, row)
this.open = true
}
},
save() {
this.$refs["form"].validate(valid => {
if (valid) {
this.$modal.loading()
studyFormFill_bc(this.form).then(response => {
this.$emit('close')
this.$modal.closeLoading()
this.cancel()
}).finally(() => {
this.$modal.closeLoading()
})
@ -229,14 +301,14 @@ export default {
this.form.bdnr = JSON.stringify(content)
this.$modal.loading()
studyFormFill_bc(this.form).then(response => {
this.$emit('close')
this.$modal.closeLoading()
this.cancel()
}).finally(() => {
this.$modal.closeLoading()
})
},
tj() {
this.$refs["formSubmit"].validate(valid => {
this.$refs["formApprove"].validate(valid => {
if (valid) {
this.dotj()
}
@ -244,12 +316,12 @@ export default {
},
async dotj() {
let content = await this.$refs.templateTable.getFormData()
this.form.bdnr = JSON.stringify(content)
this.formApprove.bdnr = JSON.stringify(content)
this.$modal.loading()
studyFormFill_tj(this.form).then(response => {
this.$emit('close')
this.openSubmit = false
studyFormFill_tj(this.formApprove).then(response => {
this.openApprove = false
this.$modal.closeLoading()
this.cancel()
}).finally(() => {
this.$modal.closeLoading()
})

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

@ -69,8 +69,9 @@
<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']">{{
$t('page.business.study.studyFormFill.xzbd') }}</el-button>
<el-button type="primary" icon="el-icon-plus" v-if="isMatchSubject" @click="add()"
v-hasPermi="['business:studyFormFill:xz']">{{
$t('page.business.study.studyFormFill.xzbd') }}</el-button>
</el-col>
</el-row>
@ -105,7 +106,8 @@
<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"
<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>
<!-- 复核 -->
@ -118,19 +120,19 @@
$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"
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']">{{
<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)"
<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)"
<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 观察按钮只在系统模板为细胞复苏记录表才展示) -->
@ -169,7 +171,7 @@
</template>
<script>
import { studySubject_isMatchSubject,studySubject_isQa } from "@/api/business/study/studySubject"
import { studySubject_isMatchSubject, studySubject_isQa } from "@/api/business/study/studySubject"
import { studyFormFill_list } from '@/api/business/study/studyFormFill'
import Bj from "./tbbd/Bj";
import Xq from "./tbbd/Xq";
@ -217,8 +219,8 @@ export default {
components: { Ghgsr, Fh, Fz, Bj, Xq, Qrfz, Sy, Jq, Gc, SelectDeptUser, SelectDeptUserDialog },
data() {
return {
isMatchSubject:false,
isQa:false,
isMatchSubject: false,
isQa: false,
leader: null,
showFh: false,
showAudit: false,
@ -249,19 +251,19 @@ export default {
currentRow: null
}
},
created() {this.getIsQa() },
created() { this.getIsQa() },
methods: {
getIsMatchSubject() {
studySubject_isMatchSubject({studySubjectId:this.searchForm.studySubjectId }).then(response => {
this.isMatchSubject=response.data
getIsMatchSubject() {
studySubject_isMatchSubject({ studySubjectId: this.searchForm.studySubjectId }).then(response => {
this.isMatchSubject = response.data
})
},
getIsQa() {
studySubject_isQa().then(response => {
this.isQa=response.data
this.isQa = response.data
})
},
ghgsr(row) {
this.currentRow = row
this.$refs.selectDeptUserDialog.show(null, null)
@ -317,14 +319,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.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 key = 'formFillReturnUrl' + this.searchForm.studyId
localStorage.setItem(key, JSON.stringify({
url: this.$route.fullPath
}))
this.$tab.openPage("新增表单", '/study/formFillBj/0/0/' + key+'/'+this.searchForm.studyId)
},
edit(row) {
this.showEdit = true
this.$emit('showDetail', this.showEdit)
this.$refs.Bj.edit(row)
// this.showEdit = true
// this.$emit('showDetail', this.showEdit)
// this.$refs.Bj.edit(row)
let key = 'formFillReturnUrl' + this.searchForm.studyId
localStorage.setItem(key, JSON.stringify({
url: this.$route.fullPath
}))
this.$tab.openPage(row.bdmc, '/study/formFillBj/' + row.id + "/0/" + key+'/'+this.searchForm.studyId)
},
bjClose() {
this.showEdit = false

+ 12
- 7
src/views/business/study/comp/ytbd/Xq.vue View File

@ -16,7 +16,7 @@
</div>
<div class="edit-content ">
<div class="content-left">
<TemplateTable ref="templateTable" :sn="form.templateSn" :templateData="form" fillType="audit" />
<TemplateTable ref="templateTable" :sn="form.templateSn" :templateData="form" fillType="audit" />
<div class="content-title">
<div class="line"></div>
<div class="subtitle"> {{ $t('page.business.study.studyFormPre.qmxx') }}</div>
@ -43,7 +43,7 @@
<div class="line"></div>
<div class="subtitle"> {{ $t('page.business.study.studyFormPre.jcgj') }}</div>
</div>
<JcgjList ref="jcgjList" @handleQuery="getJjcgjList" :showBj="false" :showXg="true"/>
<JcgjList ref="jcgjList" @handleQuery="getJjcgjList" :showBj="false" :showXg="true" />
<pagination v-show="jcgjTotal > 0" small layout="prev, pager, next" :total="jcgjTotal"
@pagination="getJjcgjList" />
@ -111,7 +111,7 @@ export default {
components: { JcgjList, TemplateTable },
data() {
return {
isMatchSubject:false,
isMatchSubject: false,
openApprove: false,
formApprove: {
id: null,
@ -158,7 +158,7 @@ export default {
pageSize: 10,
},
fromNon:false//+
fromNon: false//+
}
},
computed: {
@ -171,8 +171,8 @@ export default {
},
methods: {
getIsMatchSubject() {
studySubject_isMatchSubject({studySubjectId:this.form.studySubjectId }).then(response => {
this.isMatchSubject=response.data
studySubject_isMatchSubject({ studySubjectId: this.form.studySubjectId }).then(response => {
this.isMatchSubject = response.data
})
},
getJjcgjList(val) {
@ -206,7 +206,7 @@ export default {
}
this.resetForm("form")
},
show(row,fromNon) {
show(row, fromNon) {
this.fromNon = fromNon
this.reset()
this.$modal.loading()
@ -228,6 +228,11 @@ export default {
if (valid) {
this.$modal.loading()
studyFormPre_tb(this.formApprove).then(response => {
let key = 'formFillReturnUrl' + response.data.studyId
localStorage.setItem(key, JSON.stringify({
url: this.$route.fullPath
}))
this.$tab.openPage(response.data.bdmc, '/study/formFillBj/' + response.data.id + "/10/" + key+'/'+response.data.studyId)
this.$emit('close')
this.openApprove = false
this.$modal.closeLoading()

Loading…
Cancel
Save