|
|
|
@ -105,7 +105,8 @@ |
|
|
|
<el-button type="text" @click="detail(scope.row)" v-hasPermi="['business:drugFormFill:xq']">{{ |
|
|
|
$t('form.detail') }}</el-button> |
|
|
|
<!-- 编辑 --> |
|
|
|
<el-button type="text" v-if="(scope.row.bdzt === 1 || scope.row.bdzt === 5 || scope.row.bdzt === 7) && id==scope.row.userId" |
|
|
|
<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:drugFormFill:bj']">{{ |
|
|
|
$t('form.edit') }}</el-button> |
|
|
|
<!-- 复核 --> |
|
|
|
@ -122,11 +123,12 @@ |
|
|
|
@click="ghgsr(scope.row)" v-hasPermi="['business:drugFormFill:ghgsr']">{{ |
|
|
|
$t('page.business.study.studyFormFill.ghgsr') }}</el-button> |
|
|
|
<!-- 审阅 --> |
|
|
|
<el-button type="text" v-if="(scope.row.bdzt === 5 || scope.row.bdzt === 7) && (isQa || checkRole(['bz']))" @click="sy(scope.row)" |
|
|
|
v-hasPermi="['business:drugFormFill:sy']">{{ |
|
|
|
<el-button type="text" |
|
|
|
v-if="(scope.row.bdzt === 5 || scope.row.bdzt === 7) && (isQa || checkRole(['bz']))" |
|
|
|
@click="sy(scope.row)" v-hasPermi="['business:drugFormFill:sy']">{{ |
|
|
|
$t('page.business.study.studyFormFill.sy') }}</el-button> |
|
|
|
<!-- 废止 --> |
|
|
|
<el-button type="text" v-if="scope.row.bdzt === 1 && id==scope.row.userId" @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:drugFormFill:fz']">{{ |
|
|
|
$t('page.business.study.studyFormFill.fz') }}</el-button> |
|
|
|
<!-- 确认废止 --> |
|
|
|
@ -183,6 +185,7 @@ import Ghgsr from "@/views/business/study/comp/tbbd/Ghgsr"; |
|
|
|
import Gc from "@/views/business/study/comp/tbbd/Gc"; |
|
|
|
import SelectDeptUser from '@/views/business/comps/select/SelectDeptUser'; |
|
|
|
import SelectDeptUserDialog from '@/views/business/comps/select/SelectDeptUserDialog'; |
|
|
|
import { caesarCipher } from "@/utils/index"; |
|
|
|
import { mapGetters } from 'vuex' |
|
|
|
import moment from "moment"; |
|
|
|
export default { |
|
|
|
@ -216,7 +219,7 @@ export default { |
|
|
|
components: { Ghgsr, Fh, Fz, Bj, Xq, Qrfz, Sy, Jq, Gc, SelectDeptUser, SelectDeptUserDialog }, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
isQa:false, |
|
|
|
isQa: false, |
|
|
|
leader: null, |
|
|
|
showFh: false, |
|
|
|
showAudit: false, |
|
|
|
@ -246,13 +249,13 @@ export default { |
|
|
|
currentRow: null |
|
|
|
} |
|
|
|
}, |
|
|
|
created() {this.getIsQa() }, |
|
|
|
created() { this.getIsQa() }, |
|
|
|
methods: { |
|
|
|
checkPermi, |
|
|
|
checkRole, |
|
|
|
getIsQa() { |
|
|
|
studySubject_isQa().then(response => { |
|
|
|
this.isQa=response.data |
|
|
|
this.isQa = response.data |
|
|
|
}) |
|
|
|
}, |
|
|
|
ghgsr(row) { |
|
|
|
@ -313,22 +316,23 @@ export default { |
|
|
|
// this.showEdit = true |
|
|
|
// this.$emit('showDetail', this.showEdit) |
|
|
|
// this.$refs.Bj.edit({ studySn:this.searchForm.studySn, studyMc:this.searchForm.studyMc,studyId: this.searchForm.studyId }) |
|
|
|
let key = 'formFillReturnUrl' + this.searchForm.studyId |
|
|
|
localStorage.setItem(key, JSON.stringify({ |
|
|
|
url: this.$route.fullPath |
|
|
|
let params = caesarCipher(JSON.stringify({ |
|
|
|
url: this.$route.fullPath, |
|
|
|
studyId: this.searchForm.studyId, |
|
|
|
formId: null |
|
|
|
})) |
|
|
|
this.$tab.openPage("新增表单", '/drug/formFillBj/0/0/' + key + '/' + this.searchForm.studyId) |
|
|
|
this.$tab.openPage("新增表单", '/drug/formFillBj/' + params) |
|
|
|
}, |
|
|
|
edit(row) { |
|
|
|
// this.showEdit = true |
|
|
|
// this.$emit('showDetail', this.showEdit) |
|
|
|
// this.$refs.Bj.edit(row) |
|
|
|
|
|
|
|
let key = 'formFillReturnUrl' + this.searchForm.studyId |
|
|
|
localStorage.setItem(key, JSON.stringify({ |
|
|
|
url: this.$route.fullPath |
|
|
|
let params = caesarCipher(JSON.stringify({ |
|
|
|
url: this.$route.fullPath, |
|
|
|
studyId: this.searchForm.studyId, |
|
|
|
formId: row.id |
|
|
|
})) |
|
|
|
this.$tab.openPage(row.bdmc, '/drug/formFillBj/' + row.id + "/0/" + key + '/' + searchForm.studyId) |
|
|
|
this.$tab.openPage(row.bdmc, '/drug/formFillBj/' + params) |
|
|
|
}, |
|
|
|
bjClose() { |
|
|
|
this.showEdit = false |
|
|
|
|