Browse Source

fix:[填报表单]优化

lkf
15881625488@163.com 2 months ago
parent
commit
b15ad7d001
4 changed files with 41 additions and 1 deletions
  1. +10
    -0
      src/views/business/form/drug/comp/tbbdList.vue
  2. +10
    -0
      src/views/business/form/nonTrial/comp/tbbdList.vue
  3. +10
    -1
      src/views/business/study/comp/tbbd/Bj.vue
  4. +11
    -0
      src/views/business/study/comp/tbbdList.vue

+ 10
- 0
src/views/business/form/drug/comp/tbbdList.vue View File

@ -188,6 +188,7 @@ import SelectDeptUserDialog from '@/views/business/comps/select/SelectDeptUserDi
import { caesarCipher } from "@/utils/index";
import { mapGetters } from 'vuex'
import moment from "moment";
import { EventBus } from "@/utils/eventBus";
export default {
name: 'YtbdList',
props: {
@ -251,6 +252,15 @@ export default {
}
},
created() { this.getIsQa() },
mounted() {
EventBus.$on('onRefreshDrugTbbdList',(data) => {
this.getList()
});
},
beforeDestroy() {
//
EventBus.$off('onRefreshDrugTbbdList');
},
methods: {
checkPermi,
checkRole,

+ 10
- 0
src/views/business/form/nonTrial/comp/tbbdList.vue View File

@ -195,6 +195,7 @@ import SelectDeptUserDialog from '@/views/business/comps/select/SelectDeptUserDi
import { caesarCipher } from "@/utils/index";
import { mapGetters } from 'vuex'
import moment from "moment";
import { EventBus } from "@/utils/eventBus";
export default {
name: 'YtbdList',
props: {
@ -259,6 +260,15 @@ export default {
}
},
created() { this.getIsQa() },
mounted() {
EventBus.$on('onRefreshNonTrialTbbdList',(data) => {
this.getList()
});
},
beforeDestroy() {
//
EventBus.$off('onRefreshNonTrialTbbdList');
},
methods: {
checkPermi,
checkRole,

+ 10
- 1
src/views/business/study/comp/tbbd/Bj.vue View File

@ -173,7 +173,7 @@
<el-form-item>
<div>{{ $t('page.business.study.studyFormFill.yltj') }}</div>
<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 }}
<el-input type="number" v-model="item.syl" maxlength="50" style="width:150px;">
<template slot="append">
@ -378,6 +378,7 @@ import SelectDeptUser from '@/views/business/comps/select/SelectDeptUser';
import TemplateTable from '@/views/business/comps/template/TemplateTable';
import BusinessSelect from '@/views/business/comps/select/BusinessSelect';
import { deepClone, caesarDecipher } from "@/utils/index";
import { EventBus } from "@/utils/eventBus";
export default {
name: "Bj",
@ -772,6 +773,14 @@ export default {
},
cancelSave() {
try {
// 1510
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 data = JSON.parse(key)
if (data && data != undefined && data != '') {

+ 11
- 0
src/views/business/study/comp/tbbdList.vue View File

@ -193,6 +193,8 @@ import SelectDeptUserDialog from '@/views/business/comps/select/SelectDeptUserDi
import { caesarCipher } from "@/utils/index";
import { mapGetters } from 'vuex'
import moment from "moment";
import { EventBus } from "@/utils/eventBus";
export default {
name: 'YtbdList',
props: {
@ -223,6 +225,15 @@ export default {
deep: true
}
},
mounted() {
EventBus.$on('onRefreshStudyTbbdList',(data) => {
this.getList()
});
},
beforeDestroy() {
//
EventBus.$off('onRefreshStudyTbbdList');
},
components: { Ghgsr, Fh, Fz, Bj, Xq, Qrfz, Sy, Jq, Gc, SelectDeptUser, SelectDeptUserDialog },
data() {
return {

Loading…
Cancel
Save