Browse Source

feat: [试验管理] 参数修改

master
memorylkf 4 days ago
parent
commit
e5261ce7f3
16 changed files with 83 additions and 191 deletions
  1. +3
    -10
      src/views/business/form/drug/comp/sqbd.vue
  2. +2
    -4
      src/views/business/form/drug/comp/sqbdList.vue
  3. +0
    -66
      src/views/business/form/drug/comp/syff.vue
  4. +3
    -10
      src/views/business/form/drug/comp/tbbd.vue
  5. +2
    -4
      src/views/business/form/drug/comp/tbbdList.vue
  6. +0
    -2
      src/views/business/form/drug/comp/wzlb.vue
  7. +3
    -10
      src/views/business/form/drug/comp/ytbd.vue
  8. +2
    -4
      src/views/business/form/drug/comp/ytbdList.vue
  9. +3
    -11
      src/views/business/form/nonTrial/comp/syff.vue
  10. +3
    -10
      src/views/business/form/nonTrial/comp/tbbd.vue
  11. +2
    -4
      src/views/business/form/nonTrial/comp/tbbdList.vue
  12. +0
    -2
      src/views/business/form/nonTrial/comp/wzlb.vue
  13. +3
    -10
      src/views/business/form/nonTrial/comp/ytbd.vue
  14. +39
    -5
      src/views/business/form/nonTrial/comp/ytbdList.vue
  15. +13
    -8
      src/views/business/study/comp/syxx.vue
  16. +5
    -31
      src/views/business/study/comp/wzlb.vue

+ 3
- 10
src/views/business/form/drug/comp/sqbd.vue View File

@ -21,12 +21,9 @@ export default {
watch:{
study: {
immediate: true,
deep:true,
handler(v) {
this.studyInfo = {
studyId:v.id,
studyLeader:v.leader,
studySubjectId:''
}
this.studyInfo = v
}
},
},
@ -35,11 +32,7 @@ export default {
filters: {},
data() {
return {
studyInfo:{
studyId:this.study.id,
studyLeader:this.study.leader,
studySubjectId:''
}
studyInfo:{}
}
},
created() {},

+ 2
- 4
src/views/business/form/drug/comp/sqbdList.vue View File

@ -204,8 +204,7 @@ export default {
handler(newVal) {
this.searchForm.studySn = newVal.sn
this.searchForm.studyMc = newVal.name
this.searchForm.studyId = newVal.studyId
this.searchForm.studySubjectId = newVal.studySubjectId
this.searchForm.studyId = newVal.id
this.leader = newVal.leader
this.search()
},
@ -230,7 +229,6 @@ export default {
studyId: '',
studySn: '',
studyMc: '',
studySubjectId: '',
bdbh: '',
bdmc: '',
userId: '',
@ -303,7 +301,7 @@ export default {
add() {
this.showEdit = true
this.$emit('showDetail', this.showEdit)
this.$refs.Bj.edit({studySn:this.searchForm.studySn, studyMc:this.searchForm.studyMc, studyId: this.searchForm.studyId, studySubjectId: this.searchForm.studySubjectId })
this.$refs.Bj.edit({studySn:this.searchForm.studySn, studyMc:this.searchForm.studyMc, studyId: this.searchForm.studyId })
},
edit(row) {
this.showEdit = true

+ 0
- 66
src/views/business/form/drug/comp/syff.vue View File

@ -1,66 +0,0 @@
<template>
<div class="study-tbbd">
<div class="tbbd-right">
配置方法列表
</div>
</div>
</template>
<script>
export default {
name: 'StudySyff',
props: {
study:{
type:Object,
default:()=>{
return {}
}
}
},
watch:{
study: {
immediate: true,
handler(v) {
this.studyInfo = {
studyId:v.id,
studyLeader:v.leader,
studySubjectId:''
}
},
deep: true,
},
},
components: {},
computed: {},
filters: {},
data() {
return {
studyInfo:{
studyId:this.study.id,
studyLeader:this.study.leader,
studySubjectId:''
}
}
},
created() {},
methods: {
}
}
</script>
<style lang="scss" scoped>
.study-tbbd {
display: flex;
flex-direction: row;
.tbbd-left {
background: #fff;
padding: 20px;
margin-right: 10px;
flex-shrink: 0;
width: 350px;
}
.tbbd-right{
flex-grow: 1;
overflow: hidden;
}
}
</style>

+ 3
- 10
src/views/business/form/drug/comp/tbbd.vue View File

@ -21,12 +21,9 @@ export default {
watch:{
study: {
immediate: true,
deep:true,
handler(v) {
this.studyInfo = {
studyId:v.id,
studyLeader:v.leader,
studySubjectId:''
}
this.studyInfo = v
}
},
},
@ -37,11 +34,7 @@ export default {
filters: {},
data() {
return {
studyInfo:{
studyId:this.study.id,
studyLeader:this.study.leader,
studySubjectId:''
}
studyInfo:{}
}
},
created() {},

+ 2
- 4
src/views/business/form/drug/comp/tbbdList.vue View File

@ -203,8 +203,7 @@ export default {
handler(newVal) {
this.searchForm.studySn = newVal.sn
this.searchForm.studyMc = newVal.name
this.searchForm.studyId = newVal.studyId
this.searchForm.studySubjectId = newVal.studySubjectId
this.searchForm.studyId = newVal.id
this.leader = newVal.leader
this.search()
},
@ -228,7 +227,6 @@ export default {
studyId: '',
studySn: '',
studyMc: '',
studySubjectId: '',
bdbh: '',
bdmc: '',
userId: '',
@ -304,7 +302,7 @@ export default {
add() {
this.showEdit = true
this.$emit('showDetail', this.showEdit)
this.$refs.Bj.edit({ studySn:this.searchForm.studySn, studyMc:this.searchForm.studyMc,studyId: this.searchForm.studyId, studySubjectId: this.searchForm.studySubjectId })
this.$refs.Bj.edit({ studySn:this.searchForm.studySn, studyMc:this.searchForm.studyMc,studyId: this.searchForm.studyId })
},
edit(row) {
this.showEdit = true

+ 0
- 2
src/views/business/form/drug/comp/wzlb.vue View File

@ -19,8 +19,6 @@ export default {
study: {
immediate: true,
handler(v) {
this.id = v.id
// this.getStudyInfo()
}
},
},

+ 3
- 10
src/views/business/form/drug/comp/ytbd.vue View File

@ -21,12 +21,9 @@ export default {
watch:{
study: {
immediate: true,
deep:true,
handler(v) {
this.studyInfo = {
studyId:v.id,
studyLeader:v.leader,
studySubjectId:''
}
this.studyInfo = v
}
},
},
@ -37,11 +34,7 @@ export default {
filters: {},
data() {
return {
studyInfo:{
studyId:this.study.id,
studyLeader:this.study.leader,
studySubjectId:''
}
studyInfo:{}
}
},
created() {},

+ 2
- 4
src/views/business/form/drug/comp/ytbdList.vue View File

@ -197,8 +197,7 @@ export default {
handler(newVal) {
this.searchForm.studySn = newVal.sn
this.searchForm.studyMc = newVal.name
this.searchForm.studyId = newVal.studyId
this.searchForm.studySubjectId = newVal.studySubjectId
this.searchForm.studyId = newVal.id
this.leader = newVal.leader
this.search()
},
@ -226,7 +225,6 @@ export default {
studyId: '',
studySn: '',
studyMc: '',
studySubjectId: '',
bdbh: '',
bdmc: '',
userId: '',
@ -346,7 +344,7 @@ export default {
this.open = false
this.showEdit = true
this.$emit('showDetail', this.showEdit)
this.$refs.Bj.edit({ studySn:this.searchForm.studySn, studyMc:this.searchForm.studyMc,studyId: this.searchForm.studyId, studySubjectId: this.searchForm.studySubjectId })
this.$refs.Bj.edit({ studySn:this.searchForm.studySn, studyMc:this.searchForm.studyMc,studyId: this.searchForm.studyId })
},
edit(row) {
this.showEdit = true

+ 3
- 11
src/views/business/form/nonTrial/comp/syff.vue View File

@ -20,14 +20,10 @@ export default {
watch:{
study: {
immediate: true,
deep: true,
handler(v) {
this.studyInfo = {
studyId:v.id,
studyLeader:v.leader,
studySubjectId:''
}
this.studyInfo = v
},
deep: true,
},
},
components: {},
@ -35,11 +31,7 @@ export default {
filters: {},
data() {
return {
studyInfo:{
studyId:this.study.id,
studyLeader:this.study.leader,
studySubjectId:''
}
studyInfo:{}
}
},
created() {},

+ 3
- 10
src/views/business/form/nonTrial/comp/tbbd.vue View File

@ -21,12 +21,9 @@ export default {
watch:{
study: {
immediate: true,
deep:true,
handler(v) {
this.studyInfo = {
studyId:v.id,
studyLeader:v.leader,
studySubjectId:''
}
this.studyInfo = v
}
},
},
@ -37,11 +34,7 @@ export default {
filters: {},
data() {
return {
studyInfo:{
studyId:this.study.id,
studyLeader:this.study.leader,
studySubjectId:''
}
studyInfo:{}
}
},
created() {},

+ 2
- 4
src/views/business/form/nonTrial/comp/tbbdList.vue View File

@ -203,8 +203,7 @@ export default {
handler(newVal) {
this.searchForm.studySn = newVal.sn
this.searchForm.studyMc = newVal.name
this.searchForm.studyId = newVal.studyId
this.searchForm.studySubjectId = newVal.studySubjectId
this.searchForm.studyId = newVal.id
this.leader = newVal.leader
this.search()
},
@ -228,7 +227,6 @@ export default {
studyId: '',
studySn: '',
studyMc: '',
studySubjectId: '',
bdbh: '',
bdmc: '',
userId: '',
@ -304,7 +302,7 @@ export default {
add() {
this.showEdit = true
this.$emit('showDetail', this.showEdit)
this.$refs.Bj.edit({ studySn:this.searchForm.studySn, studyMc:this.searchForm.studyMc,studyId: this.searchForm.studyId, studySubjectId: this.searchForm.studySubjectId })
this.$refs.Bj.edit({ studySn:this.searchForm.studySn, studyMc:this.searchForm.studyMc,studyId: this.searchForm.studyId })
},
edit(row) {
this.showEdit = true

+ 0
- 2
src/views/business/form/nonTrial/comp/wzlb.vue View File

@ -19,8 +19,6 @@ export default {
study: {
immediate: true,
handler(v) {
this.id = v.id
// this.getStudyInfo()
}
},
},

+ 3
- 10
src/views/business/form/nonTrial/comp/ytbd.vue View File

@ -21,12 +21,9 @@ export default {
watch:{
study: {
immediate: true,
deep:true,
handler(v) {
this.studyInfo = {
studyId:v.id,
studyLeader:v.leader,
studySubjectId:''
}
this.studyInfo = v
}
},
},
@ -37,11 +34,7 @@ export default {
filters: {},
data() {
return {
studyInfo:{
studyId:this.study.id,
studyLeader:this.study.leader,
studySubjectId:''
}
studyInfo:{}
}
},
created() {},

+ 39
- 5
src/views/business/form/nonTrial/comp/ytbdList.vue View File

@ -53,6 +53,8 @@
<el-button type="primary" icon="el-icon-plus" @click="showAdd()"
v-hasPermi="['business:nonTrialFormPre:xz']">{{
$t('page.business.study.studyFormPre.xzbd') }}</el-button>
<el-button type="primary" @click="sdsy" v-hasPermi="['business:form:nonTrial:sd']" v-if="(leader==id || checkRole(['bz'])) && studyStatus!=5">{{ $t('page.business.study.nonTrial.sdsy') }}</el-button>
</el-col>
</el-row>
@ -163,11 +165,15 @@
append-to-body :close-on-click-modal="false">
<TemplateTable ref="templateTable" :sn="formPreview.templateSn" fillType="preFill" />
</el-dialog>
<Sign ref="fsySignRef" @callback="doSign" />
</div>
</template>
<script>
import { checkPermi, checkRole } from "@/utils/permission";
import { nonTrial_checkSd,nonTrial_sd } from "@/api/business/form/nonTrial"
import { studyFormPre_list, studyFormPre_info } from '@/api/business/study/studyFormPre'
import { public_studyList, public_studyFormPreList } from '@/api/business/public/public'
import TemplateTable from '@/views/business/comps/template/TemplateTable';
@ -175,6 +181,7 @@ import Bj from "@/views/business/study/comp/ytbd/Bj";
import Xq from "@/views/business/study/comp/ytbd/Xq";
import Sh from "@/views/business/study/comp/ytbd/Sh";
import SelectDeptUser from '@/views/business/comps/select/SelectDeptUser';
import Sign from './sign.vue'
import moment from "moment";
import { mapGetters } from 'vuex'
export default {
@ -197,16 +204,16 @@ export default {
handler(newVal) {
this.searchForm.studySn = newVal.sn
this.searchForm.studyMc = newVal.name
this.searchForm.studyId = newVal.studyId
this.searchForm.studySubjectId = newVal.studySubjectId
this.searchForm.studyId = newVal.id
this.leader = newVal.leader
this.studyStatus = newVal.status
this.search()
},
immediate: true,
deep: true
}
},
components: { Bj, Xq, Sh, SelectDeptUser, TemplateTable },
components: { Bj, Xq, Sh, SelectDeptUser, TemplateTable,Sign },
data() {
return {
formPreview: {
@ -216,6 +223,7 @@ export default {
openXz: false,
open: false,
leader: null,
studyStatus: null,
showAudit: false,
showEdit: false,
showDetail: false,
@ -226,7 +234,6 @@ export default {
studyId: '',
studySn: '',
studyMc: '',
studySubjectId: '',
bdbh: '',
bdmc: '',
userId: '',
@ -260,6 +267,8 @@ export default {
},
created() { },
methods: {
checkPermi,
checkRole,
copy() {
this.$modal.loading()
public_studyList().then(response => {
@ -346,7 +355,7 @@ export default {
this.open = false
this.showEdit = true
this.$emit('showDetail', this.showEdit)
this.$refs.Bj.edit({ studySn:this.searchForm.studySn, studyMc:this.searchForm.studyMc,studyId: this.searchForm.studyId, studySubjectId: this.searchForm.studySubjectId })
this.$refs.Bj.edit({ studySn:this.searchForm.studySn, studyMc:this.searchForm.studyMc,studyId: this.searchForm.studyId})
},
edit(row) {
this.showEdit = true
@ -378,6 +387,31 @@ export default {
this.$emit('showDetail', this.showAudit)
this.$refs.Sh.show(row)
},
sdsy() {
this.$modal.loading()
nonTrial_checkSd({
study:{id:this.study.id},
}).then(() => {
this.$refs.fsySignRef.show(this.$t('page.business.study.nonTrial.sdsy'),this.$t('page.business.study.nonTrial.sdsy'))
}).finally(() => {
this.$modal.closeLoading()
})
},
doSign(val){
this.doSd(val)
},
doSd(sign){
this.$modal.loading()
nonTrial_sd({
study:{id:this.study.id},
sign:sign
}).then(() => {
this.$refs.fsySignRef.cancel()
this.getStudyInfo()
}).finally(() => {
this.$modal.closeLoading()
})
},
}
}
</script>

+ 13
- 8
src/views/business/study/comp/syxx.vue View File

@ -35,7 +35,7 @@
</el-form-item>
</el-col>
<el-col>
<el-button type="primary" @click="sdsy" v-hasPermi="['business:study:sd']" v-if="(studyInfo.leader==userId || checkRole(['TFM'])) && studyInfo.status!=5">{{ $t('page.business.study.studyFormPlan.sdsy') }}</el-button>
<el-button type="primary" @click="sdsy" v-hasPermi="['business:study:sd']" v-if="(studyInfo.leader==id || checkRole(['TFM'])) && studyInfo.status!=5">{{ $t('page.business.study.studyFormPlan.sdsy') }}</el-button>
</el-col>
</el-row>
</el-form>
@ -63,6 +63,7 @@ import Sign from './sign.vue'
import jhbdList from './jhbdList.vue'
import { study_info,study_checkSd,study_sd } from "@/api/business/study/study"
import { studySubject_listByStudyId } from '@/api/business/study/studySubject'
import { mapGetters } from 'vuex'
export default {
name: 'StudyTbbd',
props: {
@ -78,17 +79,21 @@ export default {
immediate: true,
deep:true,
handler(v) {
this.id = v.id
this.studyId = v.id
this.getStudyInfo()
}
},
},
components: { jhbdList,Sign },
computed: {
...mapGetters([
'id'
]),
},
data() {
return {
userId:this.$store.getters.id,
showDetail: false,
id: {},
studyId: '',
studyInfo:{},
subjectList: []
}
@ -99,7 +104,7 @@ export default {
checkPermi,
checkRole,
getstudySubject() {
studySubject_listByStudyId({ studyId: this.id }).then(response => {
studySubject_listByStudyId({ studyId: this.studyId }).then(response => {
this.subjectList = response.data;
}).finally(() => {
this.$modal.closeLoading()
@ -107,7 +112,7 @@ export default {
},
getStudyInfo() {
this.$modal.loading()
study_info({ id: this.id }).then(response => {
study_info({ id: this.studyId }).then(response => {
this.studyInfo = response.data
this.getstudySubject()
}).finally(() => {
@ -117,7 +122,7 @@ export default {
sdsy() {
this.$modal.loading()
study_checkSd({
study:{id:this.study.id},
study:{id:this.studyId},
}).then(() => {
this.$refs.syxxSignRef.show(this.$t('page.business.study.study.sdsy'),this.$t('page.business.study.study.sdsy'))
}).finally(() => {
@ -130,7 +135,7 @@ export default {
doSd(sign){
this.$modal.loading()
study_sd({
study:{id:this.study.id},
study:{id:this.studyId},
sign:sign
}).then(() => {
this.$refs.syxxSignRef.cancel()

+ 5
- 31
src/views/business/study/comp/wzlb.vue View File

@ -39,7 +39,7 @@
<script>
import { checkPermi, checkRole } from "@/utils/permission";
import { study_info,study_checkSd,study_sd } from "@/api/business/study/study"
import { study_info } from "@/api/business/study/study"
import { studySubject_listByStudyId } from '@/api/business/study/studySubject'
export default {
name: 'StudyWzlb',
@ -55,7 +55,7 @@ export default {
study: {
immediate: true,
handler(v) {
this.id = v.id
this.studyId = v.id
this.getStudyInfo()
}
},
@ -63,9 +63,8 @@ export default {
components: { },
data() {
return {
userId:this.$store.getters.id,
showDetail: false,
id: {},
studyId: '',
studyInfo:{},
subjectList: []
}
@ -76,7 +75,7 @@ export default {
checkPermi,
checkRole,
getstudySubject() {
studySubject_listByStudyId({ studyId: this.id }).then(response => {
studySubject_listByStudyId({ studyId: this.studyId }).then(response => {
this.subjectList = response.data;
}).finally(() => {
this.$modal.closeLoading()
@ -84,38 +83,13 @@ export default {
},
getStudyInfo() {
this.$modal.loading()
study_info({ id: this.id }).then(response => {
study_info({ id: this.studyId }).then(response => {
this.studyInfo = response.data
this.getstudySubject()
}).finally(() => {
this.$modal.closeLoading()
})
},
sdsy() {
this.$modal.loading()
study_checkSd({
study:{id:this.study.id},
}).then(() => {
this.$refs.syxxSignRef.show(this.$t('page.business.study.study.sdsy'),this.$t('page.business.study.study.sdsy'))
}).finally(() => {
this.$modal.closeLoading()
})
},
doSign(val){
this.doSd(val)
},
doSd(sign){
this.$modal.loading()
study_sd({
study:{id:this.study.id},
sign:sign
}).then(() => {
this.$refs.syxxSignRef.cancel()
this.getStudyInfo()
}).finally(() => {
this.$modal.closeLoading()
})
},
showDetailCallback(val) {
this.showDetail = val
this.$emit('showDetail', val)

Loading…
Cancel
Save