|
|
|
@ -106,7 +106,7 @@ |
|
|
|
<el-button type="text" @click="detail(scope.row)" v-hasPermi="['business:drugFormApply:xq']">{{ |
|
|
|
$t('form.detail') }}</el-button> |
|
|
|
<!-- 编辑 --> |
|
|
|
<el-button type="text" v-if="scope.row.bdzt === 1 || scope.row.bdzt === 6 || scope.row.bdzt === 7" |
|
|
|
<el-button type="text" v-if="(scope.row.bdzt === 1 || scope.row.bdzt === 6 || scope.row.bdzt === 7) && id==scope.row.userId" |
|
|
|
@click="edit(scope.row)" v-hasPermi="['business:drugFormApply:bj']">{{ |
|
|
|
$t('form.edit') }}</el-button> |
|
|
|
<!-- 复核 --> |
|
|
|
@ -119,11 +119,11 @@ |
|
|
|
$t('page.business.study.studyFormApply.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 === 6 || scope.row.bdzt === 7) && checkRole(['bz'])" |
|
|
|
@click="ghgsr(scope.row)" v-hasPermi="['business:drugFormApply:ghgsr']">{{ |
|
|
|
$t('page.business.study.studyFormApply.ghgsr') }}</el-button> |
|
|
|
<!-- 审阅 --> |
|
|
|
<el-button type="text" v-if="scope.row.bdzt === 7" @click="sy(scope.row)" |
|
|
|
<el-button type="text" v-if="(scope.row.bdzt === 6 || scope.row.bdzt === 7) && (isQa || checkRole(['bz']))" @click="sy(scope.row)" |
|
|
|
v-hasPermi="['business:drugFormApply:sy']">{{ |
|
|
|
$t('page.business.study.studyFormApply.sy') }}</el-button> |
|
|
|
<!-- 审核 --> |
|
|
|
@ -131,11 +131,11 @@ |
|
|
|
v-hasPermi="['business:drugFormApply:sh']">{{ |
|
|
|
$t('page.business.study.studyFormApply.sh') }}</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:drugFormApply:fz']">{{ |
|
|
|
$t('page.business.study.studyFormApply.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:drugFormApply:qrfz']">{{ |
|
|
|
$t('page.business.study.studyFormApply.qrfz') }}</el-button> |
|
|
|
</template> |
|
|
|
@ -170,6 +170,8 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { studySubject_isQa } from "@/api/business/study/studySubject" |
|
|
|
import { checkPermi, checkRole } from "@/utils/permission"; |
|
|
|
import { studyFormApply_list } from '@/api/business/study/studyFormApply' |
|
|
|
import Bj from "@/views/business/study/comp/sqbd/Bj"; |
|
|
|
import Xq from "@/views/business/study/comp/sqbd/Xq"; |
|
|
|
@ -215,6 +217,7 @@ export default { |
|
|
|
components: { Ghgsr, Fh, Sh,Fz, Bj, Xq, Qrfz, Sy, Jq, SelectDeptUser, SelectDeptUserDialog }, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
isQa:false, |
|
|
|
leader: null, |
|
|
|
showFh: false, |
|
|
|
showSh: false, |
|
|
|
@ -245,8 +248,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) |
|
|
|
|