|
|
|
@ -42,7 +42,8 @@ |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item :label="$t('page.business.form.bdmb')" prop="templateId"> |
|
|
|
<SelectTemplate v-model="form.templateId" :disabled="form.id && form.id !== ''" :needPre="10" |
|
|
|
:name="form.templateMc" :studyType="studyType" :selectedDeptId="selectedDeptId" :studyFormType="studyFormType" @change="selectTemplateChange" /> |
|
|
|
:name="form.templateMc" :studyType="studyType" :selectedDeptId="selectedDeptId" |
|
|
|
:studyFormType="studyFormType" @change="selectTemplateChange" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
@ -89,8 +90,12 @@ |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item :label="$t('page.business.study.studyFormPre.fzrsh')" prop="fzrsh"> |
|
|
|
<el-radio-group v-model="form.fzrsh"> |
|
|
|
<el-radio :label="$t('page.business.study.studyFormPre.yes')">{{ $t('page.business.study.studyFormPre.yes') }}</el-radio> |
|
|
|
<el-radio :label="$t('page.business.study.studyFormPre.no')">{{ $t('page.business.study.studyFormPre.no') }}</el-radio> |
|
|
|
<el-radio :label="$t('page.business.study.studyFormPre.yes')">{{ |
|
|
|
$t('page.business.study.studyFormPre.yes') |
|
|
|
}}</el-radio> |
|
|
|
<el-radio :label="$t('page.business.study.studyFormPre.no')">{{ |
|
|
|
$t('page.business.study.studyFormPre.no') |
|
|
|
}}</el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
@ -155,7 +160,7 @@ export default { |
|
|
|
open: false, |
|
|
|
openSubmit: false, |
|
|
|
permitForSecectUser: '', |
|
|
|
selectedDeptId:null, |
|
|
|
selectedDeptId: null, |
|
|
|
rulesApprove: { |
|
|
|
qmrmm: [{ |
|
|
|
required: true, |
|
|
|
@ -187,8 +192,8 @@ export default { |
|
|
|
|
|
|
|
}, |
|
|
|
templateData: {}, |
|
|
|
studyType:null, |
|
|
|
studyFormType:null, |
|
|
|
studyType: null, |
|
|
|
studyFormType: null, |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
@ -202,7 +207,7 @@ export default { |
|
|
|
onPreCallback(data) { |
|
|
|
console.log("data:" + JSON.stringify(data)) |
|
|
|
console.log("formdata:" + JSON.stringify(this.$refs.templateTable.getFilledFormData())) |
|
|
|
if (data.type == 'fieldChanged' ) { |
|
|
|
if (data.type == 'fieldChanged') { |
|
|
|
studyFormPre_updateBdnr( |
|
|
|
{ |
|
|
|
id: this.form.id, |
|
|
|
@ -234,8 +239,13 @@ export default { |
|
|
|
}, |
|
|
|
selectTemplateChange(val) { |
|
|
|
this.form.bdnr = val.content |
|
|
|
this.form.templateMc = val.name |
|
|
|
this.form.bdmc = val.name |
|
|
|
if ( this.$i18n.locale === 'zh_CN') { |
|
|
|
this.form.templateMc = val.name |
|
|
|
this.form.bdmc = val.name |
|
|
|
} else { |
|
|
|
this.form.templateMc = val.nameEn |
|
|
|
this.form.bdmc = val.nameEn |
|
|
|
} |
|
|
|
this.form.templateSn = val.sn |
|
|
|
this.templateData = deepClone(this.form) |
|
|
|
}, |
|
|
|
@ -266,9 +276,9 @@ export default { |
|
|
|
edit(row) { |
|
|
|
this.reset() |
|
|
|
this.permitForSecectUser = row.permitForSecectUser |
|
|
|
this.studyType = row.studyType||null |
|
|
|
this.studyFormType = row.studyFormType||null |
|
|
|
this.selectedDeptId=row.selectedDeptId||null |
|
|
|
this.studyType = row.studyType || null |
|
|
|
this.studyFormType = row.studyFormType || null |
|
|
|
this.selectedDeptId = row.selectedDeptId || null |
|
|
|
if (row && row.id) { |
|
|
|
this.showIndex = 2 |
|
|
|
this.$modal.loading() |
|
|
|
@ -288,9 +298,9 @@ export default { |
|
|
|
this.templateData = deepClone(this.form) |
|
|
|
const obj = Object.assign({}, this.$route, { title: this.$t('page.business.study.studyFormFill.xzbd') }) |
|
|
|
this.$tab.updatePage(obj); |
|
|
|
let name=this.studyType==1?'试验':(this.studyType==5?'非试验表单':'麻精药表单') |
|
|
|
let nameEn=this.studyType==1?'Study':(this.studyType==5?'Non-study':'ontrolled Drug') |
|
|
|
this.saveSimpleLog({jcmc:'预填表单新增',jcmcEn:'Preset Create',name:name,nameEn:nameEn}) |
|
|
|
let name = this.studyType == 1 ? '试验' : (this.studyType == 5 ? '非试验表单' : '麻精药表单') |
|
|
|
let nameEn = this.studyType == 1 ? 'Study' : (this.studyType == 5 ? 'Non-study' : 'ontrolled Drug') |
|
|
|
this.saveSimpleLog({ jcmc: '预填表单新增', jcmcEn: 'Preset Create', name: name, nameEn: nameEn }) |
|
|
|
this.open = true |
|
|
|
} |
|
|
|
}, |
|
|
|
|