Browse Source

feat: [试验管理] SD再次点击学科设置,RS再次点击邀请,若不涉及变动,点确认是没有人员变更的,故而不触发签名

lkf
memorylkf 2 months ago
parent
commit
c610420dcf
5 changed files with 97 additions and 38 deletions
  1. +3
    -3
      src/views/business/archive/drugConfig/list.vue
  2. +3
    -3
      src/views/business/archive/nonTrial/list.vue
  3. +3
    -3
      src/views/business/archive/trial/list.vue
  4. +1
    -1
      src/views/business/stepGroup/list.vue
  5. +87
    -28
      src/views/business/study/comp/suject.vue

+ 3
- 3
src/views/business/archive/drugConfig/list.vue View File

@ -163,7 +163,7 @@ export default {
},
gd(row,status) {
this.operate = 'gd'
this.operateRow = _.clone(row)
this.operateRow = _.cloneDeep(row)
this.operateRow.status = status
this.$refs.signRef.show(
status==9?this.$t('page.business.study.drug.tygd'):this.$t('page.business.study.drug.jjgd'),
@ -190,7 +190,7 @@ export default {
},
jd(row,status) {
this.operate = 'jd'
this.operateRow = _.clone(row)
this.operateRow = _.cloneDeep(row)
this.operateRow.status = status
this.$refs.signRef.show(
status==5?this.$t('page.business.study.drug.tyjd'):this.$t('page.business.study.drug.jjjd'),
@ -218,7 +218,7 @@ export default {
jy(row,status) {
this.operate = 'jy'
this.operateRow = _.clone(row)
this.operateRow = _.cloneDeep(row)
this.operateRow.borrowStatus = status
this.$refs.signRef.show(
status==10?this.$t('page.business.study.drug.tyjy'):this.$t('page.business.study.drug.jjjy'),

+ 3
- 3
src/views/business/archive/nonTrial/list.vue View File

@ -163,7 +163,7 @@ export default {
},
gd(row,status) {
this.operate = 'gd'
this.operateRow = _.clone(row)
this.operateRow = _.cloneDeep(row)
this.operateRow.status = status
this.$refs.signRef.show(
status==9?this.$t('page.business.study.nonTrial.tygd'):this.$t('page.business.study.nonTrial.jjgd'),
@ -190,7 +190,7 @@ export default {
},
jd(row,status) {
this.operate = 'jd'
this.operateRow = _.clone(row)
this.operateRow = _.cloneDeep(row)
this.operateRow.status = status
this.$refs.signRef.show(
status==5?this.$t('page.business.study.nonTrial.tyjd'):this.$t('page.business.study.nonTrial.jjjd'),
@ -218,7 +218,7 @@ export default {
jy(row,status) {
this.operate = 'jy'
this.operateRow = _.clone(row)
this.operateRow = _.cloneDeep(row)
this.operateRow.borrowStatus = status
this.$refs.signRef.show(
status==10?this.$t('page.business.study.nonTrial.tyjy'):this.$t('page.business.study.nonTrial.jjjy'),

+ 3
- 3
src/views/business/archive/trial/list.vue View File

@ -163,7 +163,7 @@ export default {
},
gd(row,status) {
this.operate = 'gd'
this.operateRow = _.clone(row)
this.operateRow = _.cloneDeep(row)
this.operateRow.status = status
this.$refs.signRef.show(
status==9?this.$t('page.business.study.study.tygd'):this.$t('page.business.study.study.jjgd'),
@ -190,7 +190,7 @@ export default {
},
jd(row,status) {
this.operate = 'jd'
this.operateRow = _.clone(row)
this.operateRow = _.cloneDeep(row)
this.operateRow.status = status
this.$refs.signRef.show(
status==5?this.$t('page.business.study.study.tyjd'):this.$t('page.business.study.study.jjjd'),
@ -218,7 +218,7 @@ export default {
jy(row,status) {
this.operate = 'jy'
this.operateRow = _.clone(row)
this.operateRow = _.cloneDeep(row)
this.operateRow.borrowStatus = status
this.$refs.signRef.show(
status==10?this.$t('page.business.study.study.tyjy'):this.$t('page.business.study.study.jjjy'),

+ 1
- 1
src/views/business/stepGroup/list.vue View File

@ -189,7 +189,7 @@ export default {
selectStep(row){
this.stepDialog.visible = true
this.stepDialog.data = _.clone(row)
this.stepDialog.data = _.cloneDeep(row)
this.stepDialog.loading = true
step_list({ pageNum: 1, pageSize:9999}).then(response => {
this.stepDialog.stepList = response.rows

+ 87
- 28
src/views/business/study/comp/suject.vue View File

@ -113,13 +113,15 @@ export default {
leaderNameEn:'',
},
saveList:[]
saveList:[],
oldList:[]//
},
memberSubject:{},
signType:'',
memberList:[]
memberList:[],
memberOldList:[]//
}
},
created() {},
@ -156,6 +158,8 @@ export default {
studySubject_getAllListByStudyId({studyId:this.study.id}).then(response => {
this.infoDialog.list = response.data;
this.infoDialog.visible = true;
this.infoDialog.oldList = _.cloneDeep(_.filter(this.infoDialog.list, (o)=> { return o.select }))
}).finally(()=>{
this.infoDialog.loading = false;
});
@ -171,21 +175,48 @@ export default {
}
}
}
this.infoDialog.saveList = postList
//
let isModify = false
if(postList.length===this.infoDialog.oldList.length){
if(postList.length>0){
for(let i=0;i<postList.length;i++){
let item = postList[i]
let find = false
this.$modal.loading()
studySubject_save({
studyId:this.study.id,
subjectList:this.infoDialog.saveList,
sign:{}
}).then(() => {
this.signType = 'save'
this.$refs.subjectSignRef.show(this.$t('page.business.study.study.rybg'),this.$t('page.business.study.study.rybg'))
}).catch(() => {
}).finally(() => {
this.$modal.closeLoading()
})
for(let j=0;j<this.infoDialog.oldList.length;j++){
let old = this.infoDialog.oldList[j]
if(old.deptId==item.deptId && old.deptName==item.deptName && old.leader==item.leader && old.leaderName==item.leaderName){
find = true
break
}
}
if(!find){
isModify = true
break
}
}
}
}else{
isModify = true
}
if(!isModify){
this.infoDialog.visible = false
}else{
this.infoDialog.saveList = postList
this.$modal.loading()
studySubject_save({
studyId:this.study.id,
subjectList:this.infoDialog.saveList,
sign:{}
}).then(() => {
this.signType = 'save'
this.$refs.subjectSignRef.show(this.$t('page.business.study.study.rybg'),this.$t('page.business.study.study.rybg'))
}).catch(() => {
}).finally(() => {
this.$modal.closeLoading()
})
}
},
doSign(val){
if(this.signType==='save'){
@ -237,6 +268,7 @@ export default {
nameEn:response.data[i].userNameEn,
})
}
this.memberOldList = _.cloneDeep(memberList)
this.$refs.selectSubjectDeptUserMultipleDialog.show(memberList)
}).finally(()=>{
});
@ -253,19 +285,46 @@ export default {
})
}
}
this.memberList = postList
studySubjectUser_save({
studySubjectId:this.memberSubject.id,
subjectUserList:this.memberList,
sign:{}
}).then(() => {
//
let isModify = false
if(postList.length===this.memberOldList.length){
if(postList.length>0){
for(let i=0;i<postList.length;i++){
let item = postList[i]
let find = false
for(let j=0;j<this.memberOldList.length;j++){
let old = this.memberOldList[j]
if(old.id==item.userId && old.name==item.userName){
find = true
break
}
}
if(!find){
isModify = true
break
}
}
}
}else{
isModify = true
}
if(!isModify){
this.$refs.selectSubjectDeptUserMultipleDialog.close()
this.signType = 'member'
this.$refs.subjectSignRef.show(this.$t('page.business.study.study.rybg'),this.$t('page.business.study.study.rybg'))
}).catch((e) => {
}).finally(() => {
})
}else{
this.memberList = postList
studySubjectUser_save({
studySubjectId:this.memberSubject.id,
subjectUserList:this.memberList,
sign:{}
}).then(() => {
this.$refs.selectSubjectDeptUserMultipleDialog.close()
this.signType = 'member'
this.$refs.subjectSignRef.show(this.$t('page.business.study.study.rybg'),this.$t('page.business.study.study.rybg'))
}).catch((e) => {
}).finally(() => {
})
}
},
doChangeMember(sign){

Loading…
Cancel
Save