|
|
@ -10,8 +10,10 @@ |
|
|
</div> |
|
|
</div> |
|
|
<div class="right-top"> |
|
|
<div class="right-top"> |
|
|
<el-button @click="cancel()">{{ $t('form.cancel') }}</el-button> |
|
|
<el-button @click="cancel()">{{ $t('form.cancel') }}</el-button> |
|
|
<el-button type="primary" v-hasPermi="['business:studyFormPre:tb','business:nonTrialFormPre:tb','business:drugFormPre:tb']" v-if="form.bdzt === 5 && (fromNon || isMatchSubject)" @click="openApprove = true">{{ |
|
|
|
|
|
$t('page.business.study.studyFormPre.tb') }}</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" |
|
|
|
|
|
v-hasPermi="['business:studyFormPre:tb', 'business:nonTrialFormPre:tb', 'business:drugFormPre:tb']" |
|
|
|
|
|
v-if="form.bdzt === 5 && (fromNon || isMatchSubject)" @click="openApprove = true">{{ |
|
|
|
|
|
$t('page.business.study.studyFormPre.tb') }}</el-button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="edit-content "> |
|
|
<div class="edit-content "> |
|
|
@ -55,7 +57,8 @@ |
|
|
append-to-body :close-on-click-modal="false"> |
|
|
append-to-body :close-on-click-modal="false"> |
|
|
<el-form ref="formApprove" :model="formApprove" :rules="rulesApprove" label-width="120px" v-if="openApprove"> |
|
|
<el-form ref="formApprove" :model="formApprove" :rules="rulesApprove" label-width="120px" v-if="openApprove"> |
|
|
<div class="sbzdtcma"> <input type="text"> <input type="password"> </div> |
|
|
<div class="sbzdtcma"> <input type="text"> <input type="password"> </div> |
|
|
<el-alert :title="$t('page.business.study.studyFormPre.ts')" :closable="false" style="margin-bottom: 10px;" type="success"> |
|
|
|
|
|
|
|
|
<el-alert :title="$t('page.business.study.studyFormPre.ts')" :closable="false" style="margin-bottom: 10px;" |
|
|
|
|
|
type="success"> |
|
|
</el-alert> |
|
|
</el-alert> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="24"> |
|
|
<el-col :span="24"> |
|
|
@ -232,8 +235,17 @@ export default { |
|
|
if (valid) { |
|
|
if (valid) { |
|
|
this.$modal.loading() |
|
|
this.$modal.loading() |
|
|
studyFormPre_tb(this.formApprove).then(response => { |
|
|
studyFormPre_tb(this.formApprove).then(response => { |
|
|
|
|
|
let type = '' |
|
|
|
|
|
if (this.$route.fullPath.indexOf('/study/') > -1) { |
|
|
|
|
|
type = '/study' |
|
|
|
|
|
} else if (this.$route.fullPath.indexOf('/nonTrial/') > -1) { |
|
|
|
|
|
type = '/nonTrial' |
|
|
|
|
|
} else { |
|
|
|
|
|
type = '/drug' |
|
|
|
|
|
} |
|
|
let params = caesarCipher(JSON.stringify({ |
|
|
let params = caesarCipher(JSON.stringify({ |
|
|
url: this.$route.fullPath, |
|
|
url: this.$route.fullPath, |
|
|
|
|
|
urlTj: type+'/enter/' + this.form.studyId + '/tbbd', |
|
|
studyId: this.form.studyId, |
|
|
studyId: this.form.studyId, |
|
|
formId: response.data.id, |
|
|
formId: response.data.id, |
|
|
fromYt: true |
|
|
fromYt: true |
|
|
|