Browse Source

feat:[试验管理]方法未阅读跳转

lkf
15881625488@163.com 2 months ago
parent
commit
babbda75a6
7 changed files with 322 additions and 143 deletions
  1. +2
    -1
      src/lang/en/business/study/studyMethod.js
  2. +1
    -0
      src/lang/zh/business/study/studyMethod.js
  3. +87
    -43
      src/views/business/form/nonTrial/comp/tbbdList.vue
  4. +45
    -16
      src/views/business/form/nonTrial/comp/ytbdList.vue
  5. +39
    -16
      src/views/business/study/comp/jhbdList.vue
  6. +88
    -43
      src/views/business/study/comp/tbbdList.vue
  7. +60
    -24
      src/views/business/study/comp/ytbdList.vue

+ 2
- 1
src/lang/en/business/study/studyMethod.js View File

@ -16,5 +16,6 @@ export default {
qmr: 'Signed By',
qmsj: 'Date',
qmyy: 'Meaning of Signature',
remark: 'Comment'
remark: 'Comment',
qyd:'Go Read'
}

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

@ -17,4 +17,5 @@ export default {
qmsj: '签名时间',
qmyy: '签名意义',
remark: '备注',
qyd:'去阅读'
}

+ 87
- 43
src/views/business/form/nonTrial/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,22 +42,19 @@
<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">
<el-form-item :label="$t('page.business.study.studyFormFill.sfbl')">
<el-select v-model="searchForm.sfbl" :placeholder="$t('form.placeholderSelect')" clearable
>
<el-select v-model="searchForm.sfbl" :placeholder="$t('form.placeholderSelect')" clearable>
<el-option :label="$t('page.business.study.studyFormFill.yes')" value="是" />
<el-option :label="$t('page.business.study.studyFormFill.no')" value="否" />
</el-select>
@ -83,19 +80,27 @@
<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" />
@ -111,7 +116,7 @@
@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)"
<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>
<!-- 加签 -->
@ -241,11 +246,11 @@ export default {
userMc: '',
templateMc: '',
cjsjjs: '',
sfbl:null,
sfbl: null,
cjsjks: '',
tjsjjs: '',
tjsjks: '',
sfbl:null
sfbl: null
},
loading: false,
total: 0,
@ -265,8 +270,12 @@ export default {
ghgsr(row) {
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId }).then(response => {
this.currentRow = row
this.$refs.selectDeptUserDialog.show(null, null)
if (response.data.toUrl) {
this.toRead(response.data)
} else {
this.currentRow = row
this.$refs.selectDeptUserDialog.show(null, null)
}
}).finally(() => {
this.$modal.closeLoading()
})
@ -277,8 +286,11 @@ export default {
jq(row) {
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId }).then(response => {
this.$refs.Jq.show(row)
if (response.data.toUrl) {
this.toRead(response.data)
} else {
this.$refs.Jq.show(row)
}
}).finally(() => {
this.$modal.closeLoading()
})
@ -286,7 +298,11 @@ export default {
qrfz(row) {
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId }).then(response => {
this.$refs.Qrfz.show(row)
if (response.data.toUrl) {
this.toRead(response.data)
} else {
this.$refs.Qrfz.show(row)
}
}).finally(() => {
this.$modal.closeLoading()
})
@ -294,7 +310,11 @@ export default {
gc(row) {
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId }).then(response => {
this.$refs.Gc.show(row)
if (response.data.toUrl) {
this.toRead(response.data)
} else {
this.$refs.Gc.show(row)
}
}).finally(() => {
this.$modal.closeLoading()
})
@ -302,11 +322,23 @@ export default {
fz(row) {
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId }).then(response => {
this.$refs.Fz.show(row)
if (response.data.toUrl) {
this.toRead(response.data)
} else {
this.$refs.Fz.show(row)
}
}).finally(() => {
this.$modal.closeLoading()
})
},
toRead(data) {
this.$alert(data.ffmc, '', {
confirmButtonText: this.$t('page.business.study.studyMethod.qyd'),
callback: action => {
this.$tab.openPage("loading", data.toUrl)
}
});
},
userChange(val) {
this.searchForm.userId = val.id
this.searchForm.userMc = val.name
@ -327,8 +359,8 @@ export default {
this.searchForm.tjsjjs = ''
this.searchForm.tjsjks = ''
this.searchForm.sfbl = null
this.daterange=[]
this.daterangetj=[]
this.daterange = []
this.daterangetj = []
this.search()
},
getList() {
@ -359,12 +391,16 @@ export default {
// this.$refs.Bj.edit({ studySn:this.searchForm.studySn, studyMc:this.searchForm.studyMc,studyId: this.searchForm.studyId })
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)
if (response.data.toUrl) {
this.toRead(response.data)
} else {
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()
})
@ -375,12 +411,16 @@ export default {
// this.$refs.Bj.edit(row)
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)
if (response.data.toUrl) {
this.toRead(response.data)
} else {
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()
})
@ -418,9 +458,13 @@ export default {
fh(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)
if (response.data.toUrl) {
this.toRead(response.data)
} else {
this.showFh = true
this.$emit('showDetail', this.showFh)
this.$refs.Fh.show(row)
}
}).finally(() => {
this.$modal.closeLoading()
})

+ 45
- 16
src/views/business/form/nonTrial/comp/ytbdList.vue View File

@ -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>
@ -69,11 +68,16 @@
<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>
@ -97,13 +101,14 @@
<template>
<!-- 有权限审核 -->
<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>
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>
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')
@ -362,10 +367,22 @@ export default {
this.$modal.closeLoading()
})
},
toRead(data) {
this.$alert(data.ffmc, '', {
confirmButtonText: this.$t('page.business.study.studyMethod.qyd'),
callback: action => {
this.$tab.openPage("loading", data.toUrl)
}
});
},
showAdd() {
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId }).then(response => {
this.open = true
if (response.data.toUrl) {
this.toRead(response.data)
} else {
this.open = true
}
}).finally(() => {
this.$modal.closeLoading()
})
@ -386,7 +403,7 @@ export default {
this.searchForm.templateMc = ''
this.searchForm.startDate = ''
this.searchForm.endDate = ''
this.daterange=[]
this.daterange = []
this.search()
},
getList() {
@ -418,9 +435,13 @@ export default {
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)
if (response.data.toUrl) {
this.toRead(response.data)
} else {
this.showEdit = true
this.$emit('showDetail', this.showEdit)
this.$refs.Bj.edit(row)
}
}).finally(() => {
this.$modal.closeLoading()
})
@ -453,7 +474,11 @@ export default {
gb(row) {
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId }).then(response => {
this.$refs.Gb.show(row)
if (response.data.toUrl) {
this.toRead(response.data)
} else {
this.$refs.Gb.show(row)
}
}).finally(() => {
this.$modal.closeLoading()
})
@ -461,7 +486,11 @@ export default {
qrgb(row) {
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId }).then(response => {
this.$refs.Qrgb.show(row)
if (response.data.toUrl) {
this.toRead(response.data)
} else {
this.$refs.Qrgb.show(row)
}
}).finally(() => {
this.$modal.closeLoading()
})

+ 39
- 16
src/views/business/study/comp/jhbdList.vue View File

@ -5,7 +5,8 @@
<el-form :model="searchForm" ref="searchForm" :inline="true" label-width="100px">
<el-row>
<el-col :span="5">
<el-form-item :label="$t('page.business.form.bdmc')" prop="name" :label-width="$i18n.locale === 'zh_CN'?'100px':'120px'">
<el-form-item :label="$t('page.business.form.bdmc')" prop="name"
:label-width="$i18n.locale === 'zh_CN' ? '100px' : '120px'">
<el-input v-model="searchForm.bdmc" :placeholder="$t('form.placeholderInput')" clearable
style="width: 160px" />
</el-form-item>
@ -26,8 +27,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-col :span="4">
@ -56,9 +56,12 @@
<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="180">
<template slot-scope="scope">
<span v-if="scope.row.bdzt === 1"><span class="status-circle tbz"></span>{{ $t('page.business.study.studyFormPlan.tbz') }}</span>
<span v-if="scope.row.bdzt === 3"><span class="status-circle ytj"></span>{{ $t('page.business.study.studyFormPlan.ytj') }}</span>
<span v-if="scope.row.bdzt === 5"><span class="status-circle ywcfh"></span>{{ $t('page.business.study.studyFormPlan.ywcfh') }}</span>
<span v-if="scope.row.bdzt === 1"><span class="status-circle tbz"></span>{{
$t('page.business.study.studyFormPlan.tbz') }}</span>
<span v-if="scope.row.bdzt === 3"><span class="status-circle ytj"></span>{{
$t('page.business.study.studyFormPlan.ytj') }}</span>
<span v-if="scope.row.bdzt === 5"><span class="status-circle ywcfh"></span>{{
$t('page.business.study.studyFormPlan.ywcfh') }}</span>
</template>
</el-table-column>
<el-table-column :label="$t('form.operate')" align="left" fixed="right" width="200">
@ -72,7 +75,7 @@
@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)"
<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>
<!-- 更换归属人 -->
@ -184,6 +187,14 @@ export default {
this.isQa = response.data
})
},
toRead(data) {
this.$alert(data.ffmc, '', {
confirmButtonText: this.$t('page.business.study.studyMethod.qyd'),
callback: action => {
this.$tab.openPage("loading", data.toUrl)
}
});
},
ghgsr(row) {
this.currentRow = row
this.$refs.selectDeptUserDialog.show(null, null)
@ -227,9 +238,13 @@ export default {
add() {
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 })
if (response.data.toUrl) {
this.toRead(response.data)
} else {
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()
})
@ -237,9 +252,13 @@ export default {
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)
if (response.data.toUrl) {
this.toRead(response.data)
} else {
this.showEdit = true
this.$emit('showDetail', this.showEdit)
this.$refs.Bj.edit(row)
}
}).finally(() => {
this.$modal.closeLoading()
})
@ -277,9 +296,13 @@ export default {
fh(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)
if (response.data.toUrl) {
this.toRead(response.data)
} else {
this.showFh = true
this.$emit('showDetail', this.showFh)
this.$refs.Fh.show(row)
}
}).finally(() => {
this.$modal.closeLoading()
})

+ 88
- 43
src/views/business/study/comp/tbbdList.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">
@ -35,29 +35,26 @@
<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">
<el-form-item :label="$t('page.business.study.studyFormFill.sfbl')">
<el-select v-model="searchForm.sfbl" :placeholder="$t('form.placeholderSelect')" clearable
>
<el-select v-model="searchForm.sfbl" :placeholder="$t('form.placeholderSelect')" clearable>
<el-option :label="$t('page.business.study.studyFormFill.yes')" value="是" />
<el-option :label="$t('page.business.study.studyFormFill.no')" value="否" />
</el-select>
@ -83,19 +80,27 @@
<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="150">
<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" />
@ -111,8 +116,8 @@
@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" @click="fh(scope.row)"
v-hasPermi="['business:studyFormFill:fh']">{{
<el-button type="text" v-if="scope.row.bdzt === 3 && isMatchSubject && id != scope.row.userId"
@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)"
@ -136,7 +141,7 @@
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)"
<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>
@ -243,7 +248,7 @@ export default {
userMc: '',
templateMc: '',
cjsjjs: '',
sfbl:null,
sfbl: null,
cjsjks: '',
tjsjjs: '',
tjsjks: '',
@ -271,8 +276,12 @@ export default {
ghgsr(row) {
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId }).then(response => {
this.currentRow = row
this.$refs.selectDeptUserDialog.show(null, null)
if (response.data.toUrl) {
this.toRead(response.data)
} else {
this.currentRow = row
this.$refs.selectDeptUserDialog.show(null, null)
}
}).finally(() => {
this.$modal.closeLoading()
})
@ -283,7 +292,11 @@ export default {
jq(row) {
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId }).then(response => {
this.$refs.Jq.show(row)
if (response.data.toUrl) {
this.toRead(response.data)
} else {
this.$refs.Jq.show(row)
}
}).finally(() => {
this.$modal.closeLoading()
})
@ -291,7 +304,11 @@ export default {
qrfz(row) {
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId }).then(response => {
this.$refs.Qrfz.show(row)
if (response.data.toUrl) {
this.toRead(response.data)
} else {
this.$refs.Qrfz.show(row)
}
}).finally(() => {
this.$modal.closeLoading()
})
@ -299,7 +316,11 @@ export default {
gc(row) {
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId }).then(response => {
this.$refs.Gc.show(row)
if (response.data.toUrl) {
this.toRead(response.data)
} else {
this.$refs.Gc.show(row)
}
}).finally(() => {
this.$modal.closeLoading()
})
@ -307,7 +328,11 @@ export default {
fz(row) {
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId }).then(response => {
this.$refs.Fz.show(row)
if (response.data.toUrl) {
this.toRead(response.data)
} else {
this.$refs.Fz.show(row)
}
}).finally(() => {
this.$modal.closeLoading()
})
@ -331,8 +356,8 @@ export default {
this.searchForm.tjsjjs = ''
this.searchForm.tjsjks = ''
this.searchForm.sfbl = null
this.daterange=[]
this.daterangetj=[]
this.daterange = []
this.daterangetj = []
this.search()
},
getList() {
@ -357,18 +382,30 @@ export default {
this.loading = false
})
},
toRead(data) {
this.$alert(data.ffmc, '', {
confirmButtonText: this.$t('page.business.study.studyMethod.qyd'),
callback: action => {
this.$tab.openPage("loading", data.toUrl)
}
});
},
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 => {
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)
if (response.data.toUrl) {
this.toRead(response.data)
} else {
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()
})
@ -379,12 +416,16 @@ export default {
// this.$refs.Bj.edit(row)
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)
if (response.data.toUrl) {
this.toRead(response.data)
} else {
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()
})
@ -422,9 +463,13 @@ export default {
fh(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)
if (response.data.toUrl) {
this.toRead(response.data)
} else {
this.showFh = true
this.$emit('showDetail', this.showFh)
this.$refs.Fh.show(row)
}
}).finally(() => {
this.$modal.closeLoading()
})

+ 60
- 24
src/views/business/study/comp/ytbdList.vue View File

@ -5,15 +5,15 @@
<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-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">
@ -33,15 +33,14 @@
<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-row>
@ -65,12 +64,18 @@
<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 === 7"><span class="status-circle wtg"></span>{{ $t('page.business.form.statusWtg') }}</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 tgb"></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 === 7"><span class="status-circle wtg"></span>{{
$t('page.business.form.statusWtg') }}</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 tgb"></span>{{
$t('page.business.form.statusYgb') }}</span>
</template>
</el-table-column>
@ -94,13 +99,16 @@
<template>
<!-- 有权限审核 -->
<el-button type="text" @click="audit(scope.row)" v-hasPermi="['business:studyFormPre:sh']"
v-if="scope.row.bdzt === 3 && isMatchSubjectt&&id!=scope.row.userId">{{ $t('page.business.form.audit') }}</el-button>
v-if="scope.row.bdzt === 3 && isMatchSubjectt && 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:studyFormPre:sh']"
v-if="scope.row.bdzt === 3 && isMatchSubject&&id!=scope.row.userId">{{ $t('page.business.form.audit') }}</el-button>
v-if="scope.row.bdzt === 3 && isMatchSubject && 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')
@ -356,10 +364,22 @@ export default {
this.$modal.closeLoading()
})
},
toRead(data) {
this.$alert(data.ffmc, '', {
confirmButtonText: this.$t('page.business.study.studyMethod.qyd'),
callback: action => {
this.$tab.openPage("loading", data.toUrl)
}
});
},
showAdd() {
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId, studySubjectId: this.searchForm.studySubjectId }).then(response => {
this.open = true
if (response.data.toUrl) {
this.toRead(response.data)
} else {
this.open = true
}
}).finally(() => {
this.$modal.closeLoading()
})
@ -380,7 +400,7 @@ export default {
this.searchForm.templateMc = ''
this.searchForm.startDate = ''
this.searchForm.endDate = ''
this.daterange=[]
this.daterange = []
this.search()
},
getList() {
@ -413,9 +433,13 @@ export default {
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(_.merge({}, row, { permitForSecectUser: 'business:studyFormPre:sh' }))
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' }))
}
}).finally(() => {
this.$modal.closeLoading()
})
@ -443,7 +467,11 @@ export default {
gb(row) {
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId, studySubjectId: this.searchForm.studySubjectId }).then(response => {
this.$refs.Gb.show(row)
if (response.data.toUrl) {
this.toRead(response.data)
} else {
this.$refs.Gb.show(row)
}
}).finally(() => {
this.$modal.closeLoading()
})
@ -451,7 +479,11 @@ export default {
qrgb(row) {
this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId, studySubjectId: this.searchForm.studySubjectId }).then(response => {
this.$refs.Qrgb.show(row)
if (response.data.toUrl) {
this.toRead(response.data)
} else {
this.$refs.Qrgb.show(row)
}
}).finally(() => {
this.$modal.closeLoading()
})
@ -459,9 +491,13 @@ export default {
audit(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)
if (response.data.toUrl) {
this.toRead(response.data)
} else {
this.showAudit = true
this.$emit('showDetail', this.showAudit)
this.$refs.Sh.show(row)
}
}).finally(() => {
this.$modal.closeLoading()
})

Loading…
Cancel
Save