|
|
@ -46,7 +46,7 @@ |
|
|
<el-form-item :label="bdmbTitle" prop="templateId"> |
|
|
<el-form-item :label="bdmbTitle" prop="templateId"> |
|
|
<SelectTemplate v-model="form.templateId" :disabled="form.id && form.id !== ''" |
|
|
<SelectTemplate v-model="form.templateId" :disabled="form.id && form.id !== ''" |
|
|
:name="form.templateMc" :studyType="studyType" :studyFormType="studyFormType" |
|
|
:name="form.templateMc" :studyType="studyType" :studyFormType="studyFormType" |
|
|
@change="selectTemplateChange" :needPre="1" /> |
|
|
|
|
|
|
|
|
@change="selectTemplateChange" :needPre="1" :selectedDeptId="selectedDeptId"/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
@ -139,16 +139,18 @@ |
|
|
<div style="display: flex;justify-content: space-between;"> |
|
|
<div style="display: flex;justify-content: space-between;"> |
|
|
<div style="display: flex;"> |
|
|
<div style="display: flex;"> |
|
|
<div style="display: flex;"> |
|
|
<div style="display: flex;"> |
|
|
<div> 存储条件:</div> |
|
|
|
|
|
|
|
|
<div> 存储位置:</div> |
|
|
<div> |
|
|
<div> |
|
|
<BusinessSelect v-model="citem.cctj" dictType="business_cctj" style="width: 200px;"> |
|
|
|
|
|
</BusinessSelect> |
|
|
|
|
|
|
|
|
<el-select v-model="citem.ccwz" :placeholder="$t('form.placeholderSelect')" |
|
|
|
|
|
@change="ccwzChange(cindex)" filterable> |
|
|
|
|
|
<el-option v-for="item in ccwzlist" :key="item.id" :label="item.bh" :value="item.id" /> |
|
|
|
|
|
</el-select> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div style="display: flex; margin-left: 10px;"> |
|
|
<div style="display: flex; margin-left: 10px;"> |
|
|
<div> 存储位置:</div> |
|
|
|
|
|
|
|
|
<div> 存储条件:</div> |
|
|
<div> |
|
|
<div> |
|
|
<BusinessSelect v-model="citem.ccwz" dictType="business_ccwz" style="width: 200px;"> |
|
|
|
|
|
|
|
|
<BusinessSelect v-model="citem.cctj" dictType="business_cctj" style="width: 200px;"> |
|
|
</BusinessSelect> |
|
|
</BusinessSelect> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
@ -171,7 +173,7 @@ |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<div>{{ $t('page.business.study.studyFormFill.yltj') }}</div> |
|
|
<div>{{ $t('page.business.study.studyFormFill.yltj') }}</div> |
|
|
<div style=" display: flex; flex-wrap: wrap; gap: 16px;"> |
|
|
<div style=" display: flex; flex-wrap: wrap; gap: 16px;"> |
|
|
<div v-for="(item, index) in resource" :key="'r' + index" style=" flex: 0 0 calc(33.333% - 11px);"> |
|
|
|
|
|
|
|
|
<div v-for="(item, index) in resource" :key="'r' + index" style=" flex: 0 0 calc(50% - 11px);"> |
|
|
{{ item.bh }} |
|
|
{{ item.bh }} |
|
|
<el-input type="number" v-model="item.syl" maxlength="50" style="width:150px;"> |
|
|
<el-input type="number" v-model="item.syl" maxlength="50" style="width:150px;"> |
|
|
<template slot="append"> |
|
|
<template slot="append"> |
|
|
@ -248,8 +250,10 @@ |
|
|
<div style="display: flex;"> |
|
|
<div style="display: flex;"> |
|
|
<div> 存储位置:</div> |
|
|
<div> 存储位置:</div> |
|
|
<div> |
|
|
<div> |
|
|
<BusinessSelect v-model="citem.ccwz" dictType="business_ccwz" style="width: 200px;"> |
|
|
|
|
|
</BusinessSelect> |
|
|
|
|
|
|
|
|
<el-select v-model="citem.ccwz" :placeholder="$t('form.placeholderSelect')" |
|
|
|
|
|
@change="ccwzYjChange(cindex)" filterable> |
|
|
|
|
|
<el-option v-for="item in ccwzlist" :key="item.id" :label="item.bh" :value="item.id" /> |
|
|
|
|
|
</el-select> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div style="display: flex; margin-left: 10px;"> |
|
|
<div style="display: flex; margin-left: 10px;"> |
|
|
@ -365,6 +369,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
|
|
|
import { listData } from "@/api/system/dict/data" |
|
|
import { studyFormFill_bc, studyFormFill_yjccFilter, studyFormFill_yjcc, studyFormFill_bcOnly, studyFormFill_updateBdnr, studyFormFill_tj, studyFormFill_info, studyFormFill_updateFhyjjl } from "@/api/business/study/studyFormFill" |
|
|
import { studyFormFill_bc, studyFormFill_yjccFilter, studyFormFill_yjcc, studyFormFill_bcOnly, studyFormFill_updateBdnr, studyFormFill_tj, studyFormFill_info, studyFormFill_updateFhyjjl } from "@/api/business/study/studyFormFill" |
|
|
import { study_info } from "@/api/business/study/study" |
|
|
import { study_info } from "@/api/business/study/study" |
|
|
import { mapGetters } from 'vuex' |
|
|
import { mapGetters } from 'vuex' |
|
|
@ -373,6 +378,7 @@ import SelectDeptUser from '@/views/business/comps/select/SelectDeptUser'; |
|
|
import TemplateTable from '@/views/business/comps/template/TemplateTable'; |
|
|
import TemplateTable from '@/views/business/comps/template/TemplateTable'; |
|
|
import BusinessSelect from '@/views/business/comps/select/BusinessSelect'; |
|
|
import BusinessSelect from '@/views/business/comps/select/BusinessSelect'; |
|
|
import { deepClone, caesarDecipher } from "@/utils/index"; |
|
|
import { deepClone, caesarDecipher } from "@/utils/index"; |
|
|
|
|
|
import { EventBus } from "@/utils/eventBus"; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: "Bj", |
|
|
name: "Bj", |
|
|
@ -417,7 +423,7 @@ export default { |
|
|
bdnr: '', |
|
|
bdnr: '', |
|
|
resource: '', |
|
|
resource: '', |
|
|
yqResource: '', |
|
|
yqResource: '', |
|
|
jcbList:'', |
|
|
|
|
|
|
|
|
jcbList: '', |
|
|
qmrmm: '', |
|
|
qmrmm: '', |
|
|
sfcz: false, |
|
|
sfcz: false, |
|
|
czfs: '', |
|
|
czfs: '', |
|
|
@ -446,7 +452,7 @@ export default { |
|
|
resourceYj: [], |
|
|
resourceYj: [], |
|
|
resource: [], |
|
|
resource: [], |
|
|
yqResource: [], |
|
|
yqResource: [], |
|
|
jcbList:[], |
|
|
|
|
|
|
|
|
jcbList: [], |
|
|
bdmbTitle: this.$t('page.business.form.bdmb'), |
|
|
bdmbTitle: this.$t('page.business.form.bdmb'), |
|
|
rulesApprove: { |
|
|
rulesApprove: { |
|
|
qmrmm: [{ |
|
|
qmrmm: [{ |
|
|
@ -471,7 +477,9 @@ export default { |
|
|
}, |
|
|
}, |
|
|
templateData: {}, |
|
|
templateData: {}, |
|
|
studyType: null, |
|
|
studyType: null, |
|
|
studyFormType: null |
|
|
|
|
|
|
|
|
studyFormType: null, |
|
|
|
|
|
ccwzlist: [], |
|
|
|
|
|
selectedDeptId:null, |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
|
@ -481,11 +489,32 @@ export default { |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
this.getInfo() |
|
|
this.getInfo() |
|
|
|
|
|
this.getCcwz() |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
yjccCcwzChange(cindex,val){ |
|
|
|
|
|
debugger |
|
|
|
|
|
this.cclistYj[cindex].cctj=val.wc |
|
|
|
|
|
|
|
|
getCcwz() { |
|
|
|
|
|
listData({ |
|
|
|
|
|
pageNum: 1, |
|
|
|
|
|
pageSize: 999999, |
|
|
|
|
|
dictType: 'business_ccwz', |
|
|
|
|
|
status: 0 |
|
|
|
|
|
}).then(response => { |
|
|
|
|
|
this.ccwzlist = response.rows |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
ccwzChange(cindex) { |
|
|
|
|
|
let that = this |
|
|
|
|
|
let _index = _.findIndex(this.ccwzlist, function (item) { |
|
|
|
|
|
return item.id == that.cclist[cindex].ccwz |
|
|
|
|
|
}) |
|
|
|
|
|
that.cclist[cindex].cctj = that.ccwzlist[_index].wc |
|
|
|
|
|
}, |
|
|
|
|
|
ccwzYjChange(cindex) { |
|
|
|
|
|
let that = this |
|
|
|
|
|
let _index = _.findIndex(this.ccwzlist, function (item) { |
|
|
|
|
|
return item.id == that.cclistYj[cindex].ccwz |
|
|
|
|
|
}) |
|
|
|
|
|
that.cclistYj[cindex].cctj = that.ccwzlist[_index].wc |
|
|
}, |
|
|
}, |
|
|
onFillCallback(data) { |
|
|
onFillCallback(data) { |
|
|
console.log("data:" + JSON.stringify(data)) |
|
|
console.log("data:" + JSON.stringify(data)) |
|
|
@ -548,6 +577,7 @@ export default { |
|
|
params = JSON.parse(caesarDecipher(this.$route.params.key)) |
|
|
params = JSON.parse(caesarDecipher(this.$route.params.key)) |
|
|
this.studyType = params.studyType || null |
|
|
this.studyType = params.studyType || null |
|
|
this.studyFormType = params.studyFormType || null |
|
|
this.studyFormType = params.studyFormType || null |
|
|
|
|
|
this.selectedDeptId = params.selectedDeptId || null |
|
|
} catch (e) { |
|
|
} catch (e) { |
|
|
console.log('参数错误') |
|
|
console.log('参数错误') |
|
|
} |
|
|
} |
|
|
@ -745,6 +775,14 @@ export default { |
|
|
}, |
|
|
}, |
|
|
cancelSave() { |
|
|
cancelSave() { |
|
|
try { |
|
|
try { |
|
|
|
|
|
// 类型1试验,5非试验表单,10麻精药表单 |
|
|
|
|
|
if (this.form.studyType == 1) { |
|
|
|
|
|
EventBus.$emit('onRefreshStudyTbbdList', {}); |
|
|
|
|
|
} else if (this.form.studyType == 5) { |
|
|
|
|
|
EventBus.$emit('onRefreshNonTrialTbbdList', {}); |
|
|
|
|
|
} else if (this.form.studyType == 10) { |
|
|
|
|
|
EventBus.$emit('onRefreshDrugTbbdList', {}); |
|
|
|
|
|
} |
|
|
let key = caesarDecipher(this.$route.params.key) |
|
|
let key = caesarDecipher(this.$route.params.key) |
|
|
let data = JSON.parse(key) |
|
|
let data = JSON.parse(key) |
|
|
if (data && data != undefined && data != '') { |
|
|
if (data && data != undefined && data != '') { |
|
|
|