Browse Source

fix:[非实验管理]麻精药表单,预填复制

lkf
15881625488@163.com 3 months ago
parent
commit
a2bca60d32
3 changed files with 27 additions and 17 deletions
  1. +13
    -8
      src/views/business/form/drug/comp/ytbdList.vue
  2. +13
    -8
      src/views/business/form/nonTrial/comp/ytbdList.vue
  3. +1
    -1
      src/views/business/study/comp/ytbdList.vue

+ 13
- 8
src/views/business/form/drug/comp/ytbdList.vue View File

@ -159,7 +159,7 @@
<el-col :span="24"> <el-col :span="24">
<el-form-item :label="$t('page.business.study.studyFormPre.fzbd')" prop="formPreId"> <el-form-item :label="$t('page.business.study.studyFormPre.fzbd')" prop="formPreId">
<el-select v-model="formXz.formPreId" :placeholder="$t('form.placeholderSelect')"> <el-select v-model="formXz.formPreId" :placeholder="$t('form.placeholderSelect')">
<el-option :label="item.bdbh" :value="item.id" v-for="(item, index) in formPreList" :key="index" />
<el-option :label="item.bdmc" :value="item.id" v-for="(item, index) in formPreList" :key="index" />
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -178,7 +178,7 @@
<el-dialog :title="$t('page.business.study.studyFormPre.yulan')" :visible.sync="openPreview" width="80%" <el-dialog :title="$t('page.business.study.studyFormPre.yulan')" :visible.sync="openPreview" width="80%"
append-to-body :close-on-click-modal="false"> append-to-body :close-on-click-modal="false">
<TemplateTable ref="templateTable" :sn="formPreview.templateSn" fillType="preFill" />
<TemplateTable ref="templateTable" :sn="formDatePreview.templateSn" v-if="openPreview" :templateData="formDatePreview" fillType="detail" />
</el-dialog> </el-dialog>
<Sign ref="fsySignRef" @callback="doSign" /> <Sign ref="fsySignRef" @callback="doSign" />
@ -236,7 +236,7 @@ export default {
return { return {
formCount: 0, formCount: 0,
formFinishCount: 0, formFinishCount: 0,
formPreview: {
formDatePreview: {
templateSn: null templateSn: null
}, },
openPreview: false, openPreview: false,
@ -303,12 +303,17 @@ export default {
}) })
}, },
previewFzbd() { previewFzbd() {
let that = this
let _index = _.findIndex(this.formPreList, function (item) {
return item.id = that.formXz.formPreId
this.$modal.loading()
studyFormPre_info({ id: this.formXz.formPreId }).then(response => {
this.formDatePreview = _.merge({}, response.data, {
studySn: this.searchForm.studySn,
studyMc: this.searchForm.studyMc,
studyId: this.searchForm.studyId,
})
this.openPreview = true
}).finally(() => {
this.$modal.closeLoading()
}) })
this.formPreview.templateSn = that.formPreList[_index].templateSn
this.openPreview = true
}, },
saveCopy() { saveCopy() {
let that = this let that = this

+ 13
- 8
src/views/business/form/nonTrial/comp/ytbdList.vue View File

@ -160,7 +160,7 @@
<el-col :span="24"> <el-col :span="24">
<el-form-item :label="$t('page.business.study.studyFormPre.fzbd')" prop="formPreId"> <el-form-item :label="$t('page.business.study.studyFormPre.fzbd')" prop="formPreId">
<el-select v-model="formXz.formPreId" :placeholder="$t('form.placeholderSelect')"> <el-select v-model="formXz.formPreId" :placeholder="$t('form.placeholderSelect')">
<el-option :label="item.bdbh" :value="item.id" v-for="(item, index) in formPreList" :key="index" />
<el-option :label="item.bdmc" :value="item.id" v-for="(item, index) in formPreList" :key="index" />
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -179,7 +179,7 @@
<el-dialog :title="$t('page.business.study.studyFormPre.yulan')" :visible.sync="openPreview" width="80%" <el-dialog :title="$t('page.business.study.studyFormPre.yulan')" :visible.sync="openPreview" width="80%"
append-to-body :close-on-click-modal="false"> append-to-body :close-on-click-modal="false">
<TemplateTable ref="templateTable" :sn="formPreview.templateSn" fillType="preFill" />
<TemplateTable ref="templateTable" :sn="formDatePreview.templateSn" v-if="openPreview" :templateData="formDatePreview" fillType="detail" />
</el-dialog> </el-dialog>
<Sign ref="fsySignRef" @callback="doSign" /> <Sign ref="fsySignRef" @callback="doSign" />
@ -237,7 +237,7 @@ export default {
return { return {
formCount: 0, formCount: 0,
formFinishCount: 0, formFinishCount: 0,
formPreview: {
formDatePreview: {
templateSn: null templateSn: null
}, },
openPreview: false, openPreview: false,
@ -304,12 +304,17 @@ export default {
}) })
}, },
previewFzbd() { previewFzbd() {
let that = this
let _index = _.findIndex(this.formPreList, function (item) {
return item.id = that.formXz.formPreId
this.$modal.loading()
studyFormPre_info({ id: this.formXz.formPreId }).then(response => {
this.formDatePreview = _.merge({}, response.data, {
studySn: this.searchForm.studySn,
studyMc: this.searchForm.studyMc,
studyId: this.searchForm.studyId,
})
this.openPreview = true
}).finally(() => {
this.$modal.closeLoading()
}) })
this.formPreview.templateSn = that.formPreList[_index].templateSn
this.openPreview = true
}, },
saveCopy() { saveCopy() {
let that = this let that = this

+ 1
- 1
src/views/business/study/comp/ytbdList.vue View File

@ -160,7 +160,7 @@
<el-col :span="24"> <el-col :span="24">
<el-form-item :label="$t('page.business.study.studyFormPre.fzbd')" prop="formPreId"> <el-form-item :label="$t('page.business.study.studyFormPre.fzbd')" prop="formPreId">
<el-select v-model="formXz.formPreId" :placeholder="$t('form.placeholderSelect')"> <el-select v-model="formXz.formPreId" :placeholder="$t('form.placeholderSelect')">
<el-option :label="item.bdbh" :value="item.id" v-for="(item, index) in formPreList" :key="index" />
<el-option :label="item.bdmc" :value="item.id" v-for="(item, index) in formPreList" :key="index" />
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>

Loading…
Cancel
Save