|
|
|
@ -1,5 +1,5 @@ |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<div class="tbbd-list" v-show="!showDetail && !showEdit && !showAudit"> |
|
|
|
<div class="tbbd-search"> |
|
|
|
<el-form :model="searchForm" ref="searchForm" :inline="true" label-width="100px"> |
|
|
|
@ -80,7 +80,7 @@ |
|
|
|
<el-table-column :label="$t('page.business.form.xtmbmc')" prop="templateMc" /> |
|
|
|
<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"> |
|
|
|
<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">{{ $t('page.business.study.studyFormFill.tbz') }}</span> |
|
|
|
<span v-if="scope.row.bdzt === 3">{{ $t('page.business.study.studyFormFill.ytj') }}</span> |
|
|
|
@ -90,7 +90,8 @@ |
|
|
|
<span v-if="scope.row.bdzt === 11">{{ $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"> |
|
|
|
<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.bdzt === 10">{{ $t('page.business.study.studyFormFill.yes') }}</span> |
|
|
|
<span v-if="scope.row.bdzt === 1">{{ $t('page.business.study.studyFormFill.no') }}</span> |
|
|
|
@ -104,29 +105,38 @@ |
|
|
|
<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" @click="edit(scope.row)" v-hasPermi="['business:studyFormFill:bj']">{{ |
|
|
|
$t('form.edit') }}</el-button> |
|
|
|
<el-button type="text" v-if="scope.row.bdzt === 1 || scope.row.bdzt === 5 || scope.row.bdzt === 7" |
|
|
|
@click="edit(scope.row)" v-hasPermi="['business:studyFormFill:bj']">{{ |
|
|
|
$t('form.edit') }}</el-button> |
|
|
|
<!-- 复核 --> |
|
|
|
<el-button type="text" v-if="scope.row.bdzt === 3" @click="edit(scope.row)" v-hasPermi="['business:studyFormFill:fh']">{{ |
|
|
|
$t('page.business.study.studyFormFill.fh') }}</el-button> |
|
|
|
<el-button type="text" v-if="scope.row.bdzt === 3" @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" @click="edit(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" @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" @click="edit(scope.row)" v-hasPermi="['business:studyFormFill:ghgsr']">{{ |
|
|
|
$t('page.business.study.studyFormFill.ghgsr') }}</el-button> |
|
|
|
<el-button type="text" |
|
|
|
v-if="scope.row.bdzt === 1 || scope.row.bdzt === 3 || scope.row.bdzt === 5 || scope.row.bdzt === 7" |
|
|
|
@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" @click="edit(scope.row)" v-hasPermi="['business:studyFormFill:sy']">{{ |
|
|
|
$t('page.business.study.studyFormFill.sy') }}</el-button> |
|
|
|
<el-button type="text" v-if="scope.row.bdzt === 5 || scope.row.bdzt === 7" @click="sh(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" @click="edit(scope.row)" v-hasPermi="['business:studyFormFill:fz']">{{ |
|
|
|
$t('page.business.study.studyFormFill.fz') }}</el-button> |
|
|
|
<el-button type="text" v-if="scope.row.bdzt === 1" @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" @click="edit(scope.row)" v-hasPermi="['business:studyFormFill:shfz']">{{ |
|
|
|
$t('page.business.study.studyFormFill.shfz') }}</el-button> |
|
|
|
<el-button type="text" v-if="scope.row.bdzt === 9" @click="qrfz(scope.row)" |
|
|
|
v-hasPermi="['business:studyFormFill:qrfz']">{{ |
|
|
|
$t('page.business.study.studyFormFill.qrfz') }}</el-button> |
|
|
|
<!-- 观察 --> |
|
|
|
<el-button type="text" v-if="scope.row.bdzt === 1" @click="edit(scope.row)" v-hasPermi="['business:studyFormFill:gc']">{{ |
|
|
|
$t('page.business.study.studyFormFill.gc') }}</el-button> |
|
|
|
<el-button type="text" v-if="scope.row.bdzt === 1" @click="gc(scope.row)" |
|
|
|
v-hasPermi="['business:studyFormFill:gc']">{{ |
|
|
|
$t('page.business.study.studyFormFill.gc') }}</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
@ -139,8 +149,16 @@ |
|
|
|
<Bj v-show="showEdit" key="Bj" ref="Bj" @close="bjClose" /> |
|
|
|
<!-- 详情 --> |
|
|
|
<Xq v-show="showDetail" key="Xq" ref="Xq" @close="xqClose" /> |
|
|
|
<!-- 审核 --> |
|
|
|
<!-- 审阅 --> |
|
|
|
<Sh v-show="showAudit" key="Sh" ref="Sh" @close="shClose" /> |
|
|
|
<!-- 废止 --> |
|
|
|
<Fz key="Fz" ref="Fz" @callback="search" /> |
|
|
|
<!-- 确认废止 --> |
|
|
|
<Qrfz key="Qrfz" ref="Qrfz" @callback="search" /> |
|
|
|
<!-- 加签 --> |
|
|
|
<FJqz key="Jq" ref="Jq" @callback="search" /> |
|
|
|
<!-- 观察 --> |
|
|
|
<Gc key="Gc" ref="Gc" @callback="search" /> |
|
|
|
</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
@ -152,6 +170,7 @@ import { |
|
|
|
import Bj from "./tbbd/Bj"; |
|
|
|
import Xq from "./tbbd/Xq"; |
|
|
|
import Sh from "./tbbd/Sh"; |
|
|
|
import Fz from "./tbbd/Fz"; |
|
|
|
import SelectDeptUser from '@/views/business/comps/select/SelectDeptUser'; |
|
|
|
import { mapGetters } from 'vuex' |
|
|
|
import moment from "moment"; |
|
|
|
@ -182,7 +201,7 @@ export default { |
|
|
|
deep: true |
|
|
|
} |
|
|
|
}, |
|
|
|
components: { Bj, Xq, Sh, SelectDeptUser }, |
|
|
|
components: { Fz, Bj, Xq, Sh, SelectDeptUser }, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
leader: null, |
|
|
|
@ -195,7 +214,7 @@ export default { |
|
|
|
pageNum: 1, |
|
|
|
pageSize: 10, |
|
|
|
studyId: '', |
|
|
|
studySubjectId:'', |
|
|
|
studySubjectId: '', |
|
|
|
bdbh: '', |
|
|
|
bdmc: '', |
|
|
|
userId: '', |
|
|
|
@ -214,6 +233,18 @@ export default { |
|
|
|
}, |
|
|
|
created() { }, |
|
|
|
methods: { |
|
|
|
jq(row) { |
|
|
|
this.$refs.Jq.show(row) |
|
|
|
}, |
|
|
|
qrfz(row) { |
|
|
|
this.$refs.Qrfz.show(row) |
|
|
|
}, |
|
|
|
gc(row) { |
|
|
|
this.$refs.Gc.show(row) |
|
|
|
}, |
|
|
|
fz(row) { |
|
|
|
this.$refs.Fz.show(row) |
|
|
|
}, |
|
|
|
userChange(val) { |
|
|
|
this.searchForm.userId = val.id |
|
|
|
this.searchForm.userMc = val.name |
|
|
|
@ -224,7 +255,8 @@ export default { |
|
|
|
this.getList() |
|
|
|
}, |
|
|
|
reset() { |
|
|
|
|
|
|
|
this.resetForm("searchForm") |
|
|
|
this.handleQuery() |
|
|
|
}, |
|
|
|
getList() { |
|
|
|
if (this.daterange != null && this.daterange.length > 0) { |
|
|
|
@ -251,7 +283,7 @@ export default { |
|
|
|
add() { |
|
|
|
this.showEdit = true |
|
|
|
this.$emit('showDetail', this.showEdit) |
|
|
|
this.$refs.Bj.edit({ studyId: this.searchForm.studyId,studySubjectId:this.searchForm.studySubjectId }) |
|
|
|
this.$refs.Bj.edit({ studyId: this.searchForm.studyId, studySubjectId: this.searchForm.studySubjectId }) |
|
|
|
}, |
|
|
|
edit(row) { |
|
|
|
this.showEdit = true |
|
|
|
@ -278,7 +310,7 @@ export default { |
|
|
|
this.$emit('showDetail', this.showDetail) |
|
|
|
this.$refs.Xq.show(row) |
|
|
|
}, |
|
|
|
audit(row) { |
|
|
|
sh(row) { |
|
|
|
this.showAudit = true |
|
|
|
this.$emit('showDetail', this.showAudit) |
|
|
|
this.$refs.Sh.show(row) |
|
|
|
|