|
|
|
@ -105,7 +105,7 @@ |
|
|
|
<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" |
|
|
|
<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> |
|
|
|
<!-- 复核 --> |
|
|
|
@ -118,22 +118,22 @@ |
|
|
|
$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" |
|
|
|
v-if="(scope.row.bdzt === 1 || scope.row.bdzt === 3 || scope.row.bdzt === 5 || scope.row.bdzt === 7) && checkRole(['bz'])" |
|
|
|
@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" @click="sy(scope.row)" |
|
|
|
<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" @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> |
|
|
|
<!-- 确认废止 --> |
|
|
|
<el-button type="text" v-if="scope.row.bdzt === 9" @click="qrfz(scope.row)" |
|
|
|
<el-button type="text" v-if="scope.row.bdzt === 9 && checkRole(['bz'])" @click="qrfz(scope.row)" |
|
|
|
v-hasPermi="['business:nonTrialFormFill:qrfz']">{{ |
|
|
|
$t('page.business.study.studyFormFill.qrfz') }}</el-button> |
|
|
|
<!-- 观察 --> |
|
|
|
<!-- 观察 todo 观察按钮只在系统模板为细胞复苏记录表才展示) --> |
|
|
|
<el-button type="text" v-if="scope.row.bdzt === 1" @click="gc(scope.row)" |
|
|
|
v-hasPermi="['business:nonTrialFormFill:gc']">{{ |
|
|
|
$t('page.business.study.studyFormFill.gc') }}</el-button> |
|
|
|
@ -169,6 +169,8 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { studySubject_isQa } from "@/api/business/study/studySubject" |
|
|
|
import { checkPermi, checkRole } from "@/utils/permission"; |
|
|
|
import { studyFormFill_list } from '@/api/business/study/studyFormFill' |
|
|
|
import Bj from "@/views/business/study/comp/tbbd/Bj"; |
|
|
|
import Xq from "@/views/business/study/comp/tbbd/Xq"; |
|
|
|
@ -214,6 +216,7 @@ export default { |
|
|
|
components: { Ghgsr, Fh, Fz, Bj, Xq, Qrfz, Sy, Jq, Gc, SelectDeptUser, SelectDeptUserDialog }, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
isQa:false, |
|
|
|
leader: null, |
|
|
|
showFh: false, |
|
|
|
showAudit: false, |
|
|
|
@ -243,8 +246,15 @@ export default { |
|
|
|
currentRow: null |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { }, |
|
|
|
created() { this.getIsQa() }, |
|
|
|
methods: { |
|
|
|
checkPermi, |
|
|
|
checkRole, |
|
|
|
getIsQa() { |
|
|
|
studySubject_isQa().then(response => { |
|
|
|
this.isQa=response.data |
|
|
|
}) |
|
|
|
}, |
|
|
|
ghgsr(row) { |
|
|
|
this.currentRow = row |
|
|
|
this.$refs.selectDeptUserDialog.show(null, null) |
|
|
|
|