|
|
@ -42,7 +42,7 @@ |
|
|
<div class="tbbd-content"> |
|
|
<div class="tbbd-content"> |
|
|
<el-row class="add-box"> |
|
|
<el-row class="add-box"> |
|
|
<el-col> |
|
|
<el-col> |
|
|
<el-button type="primary" icon="el-icon-plus" @click="add()" v-hasPermi="['business:studyFormPlan:xz']">{{ |
|
|
|
|
|
|
|
|
<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> |
|
|
$t('page.business.study.studyFormPlan.xzpzjhb') }}</el-button> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
@ -57,18 +57,17 @@ |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-if="scope.row.bdzt === 1">{{ $t('page.business.study.studyFormPlan.tbz') }}</span> |
|
|
<span v-if="scope.row.bdzt === 1">{{ $t('page.business.study.studyFormPlan.tbz') }}</span> |
|
|
<span v-if="scope.row.bdzt === 3">{{ $t('page.business.study.studyFormPlan.ytj') }}</span> |
|
|
<span v-if="scope.row.bdzt === 3">{{ $t('page.business.study.studyFormPlan.ytj') }}</span> |
|
|
<span v-if="scope.row.bdzt === 7">{{ $t('page.business.study.studyFormPlan.ywc') }}</span> |
|
|
|
|
|
<span v-if="scope.row.bdzt === 5">{{ $t('page.business.study.studyFormPlan.ywcfh') }}</span> |
|
|
<span v-if="scope.row.bdzt === 5">{{ $t('page.business.study.studyFormPlan.ywcfh') }}</span> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column :label="$t('form.operate')" align="left" fixed="right" width="200"> |
|
|
<el-table-column :label="$t('form.operate')" align="left" fixed="right" width="200"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<!-- 表单状态:1:填报中;3:已提交;5:已完成(经复核);7:已完成 --> |
|
|
|
|
|
|
|
|
<!-- 表单状态:1:填报中;3:已提交;5:已完成(经复核); --> |
|
|
<!-- 详情 --> |
|
|
<!-- 详情 --> |
|
|
<el-button type="text" @click="detail(scope.row)" v-hasPermi="['business:studyFormPlan:xq']">{{ |
|
|
<el-button type="text" @click="detail(scope.row)" v-hasPermi="['business:studyFormPlan:xq']">{{ |
|
|
$t('form.detail') }}</el-button> |
|
|
$t('form.detail') }}</el-button> |
|
|
<!-- 编辑 --> |
|
|
<!-- 编辑 --> |
|
|
<el-button type="text" v-if="scope.row.bdzt === 1 || scope.row.bdzt === 5 || scope.row.bdzt === 7" |
|
|
|
|
|
|
|
|
<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']">{{ |
|
|
@click="edit(scope.row)" v-hasPermi="['business:studyFormPlan:bj']">{{ |
|
|
$t('form.edit') }}</el-button> |
|
|
$t('form.edit') }}</el-button> |
|
|
<!-- 复核 --> |
|
|
<!-- 复核 --> |
|
|
@ -77,11 +76,11 @@ |
|
|
$t('page.business.study.studyFormPlan.fh') }}</el-button> |
|
|
$t('page.business.study.studyFormPlan.fh') }}</el-button> |
|
|
<!-- 更换归属人 --> |
|
|
<!-- 更换归属人 --> |
|
|
<el-button type="text" |
|
|
<el-button type="text" |
|
|
v-if="scope.row.bdzt === 1 || scope.row.bdzt === 3 || scope.row.bdzt === 5 || scope.row.bdzt === 7" |
|
|
|
|
|
|
|
|
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']">{{ |
|
|
@click="ghgsr(scope.row)" v-hasPermi="['business:studyFormPlan:ghgsr']">{{ |
|
|
$t('page.business.study.studyFormPlan.ghgsr') }}</el-button> |
|
|
$t('page.business.study.studyFormPlan.ghgsr') }}</el-button> |
|
|
<!-- 审阅 --> |
|
|
<!-- 审阅 --> |
|
|
<el-button type="text" v-if="scope.row.bdzt === 5 || scope.row.bdzt === 7" @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']">{{ |
|
|
v-hasPermi="['business:studyFormPlan:sy']">{{ |
|
|
$t('page.business.study.studyFormPlan.sy') }}</el-button> |
|
|
$t('page.business.study.studyFormPlan.sy') }}</el-button> |
|
|
</template> |
|
|
</template> |
|
|
@ -108,6 +107,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
|
|
|
import { studySubject_isQa } from "@/api/business/study/studySubject" |
|
|
import { studyFormPlan_list } from '@/api/business/study/studyFormPlan' |
|
|
import { studyFormPlan_list } from '@/api/business/study/studyFormPlan' |
|
|
import Bj from "./jhbd/Bj"; |
|
|
import Bj from "./jhbd/Bj"; |
|
|
import Xq from "./jhbd/Xq"; |
|
|
import Xq from "./jhbd/Xq"; |
|
|
@ -149,6 +149,7 @@ export default { |
|
|
components: { Ghgsr, Fh, Bj, Xq, Sy, SelectDeptUser, SelectDeptUserDialog }, |
|
|
components: { Ghgsr, Fh, Bj, Xq, Sy, SelectDeptUser, SelectDeptUserDialog }, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
|
|
|
isQa:false, |
|
|
leader: null, |
|
|
leader: null, |
|
|
showFh: false, |
|
|
showFh: false, |
|
|
showAudit: false, |
|
|
showAudit: false, |
|
|
@ -174,8 +175,13 @@ export default { |
|
|
currentRow: null |
|
|
currentRow: null |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
created() { }, |
|
|
|
|
|
|
|
|
created() {this.getIsQa() }, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
getIsQa() { |
|
|
|
|
|
studySubject_isQa().then(response => { |
|
|
|
|
|
this.isQa=response.data |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
ghgsr(row) { |
|
|
ghgsr(row) { |
|
|
this.currentRow = row |
|
|
this.currentRow = row |
|
|
this.$refs.selectDeptUserDialog.show(null, null) |
|
|
this.$refs.selectDeptUserDialog.show(null, null) |
|
|
|