Browse Source

fix:[填报表单]致命bug

lkf
15881625488@163.com 2 months ago
parent
commit
e1385fe37f
8 changed files with 29 additions and 14 deletions
  1. +2
    -2
      src/views/business/comps/select/SelectTemplate.vue
  2. +1
    -1
      src/views/business/comps/select/SelectTemplateDialog.vue
  3. +1
    -1
      src/views/business/study/comp/jhbd/Bj.vue
  4. +1
    -1
      src/views/business/study/comp/sqbd/Bj.vue
  5. +3
    -3
      src/views/business/study/comp/tbbd/Bj.vue
  6. +9
    -1
      src/views/business/study/comp/tbbdList.vue
  7. +3
    -3
      src/views/business/study/comp/ytbd/Bj.vue
  8. +9
    -2
      src/views/business/study/comp/ytbdList.vue

+ 2
- 2
src/views/business/comps/select/SelectTemplate.vue View File

@ -37,7 +37,7 @@ export default {
type: Number, type: Number,
default: null default: null
}, },
studySubjectId: {
selectedDeptId: {
type: Number, type: Number,
default: null default: null
}, },
@ -69,7 +69,7 @@ export default {
methods: { methods: {
showSelectTemplate(){ showSelectTemplate(){
if(!this.disabled){ if(!this.disabled){
this.$refs.selectTemplateDialog.show({needPre:this.needPre,studyType:this.studyType,studyFormType:this.studyFormType,studySubjectId:this.studySubjectId})
this.$refs.selectTemplateDialog.show({needPre:this.needPre,studyType:this.studyType,studyFormType:this.studyFormType,selectedDeptId:this.selectedDeptId})
} }
}, },
handleChange(obj) { handleChange(obj) {

+ 1
- 1
src/views/business/comps/select/SelectTemplateDialog.vue View File

@ -81,7 +81,7 @@ export default {
this.selectedId = row.id this.selectedId = row.id
}, },
show(val) { show(val) {
this.searchForm.deptId=val.studySubjectId
this.searchForm.deptId=val.selectedDeptId
this.searchForm = _.merge({}, this.searchForm, val) this.searchForm = _.merge({}, this.searchForm, val)
this.selectedId = null this.selectedId = null
this.search() this.search()

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

@ -42,7 +42,7 @@
<el-col :span="24"> <el-col :span="24">
<el-form-item :label="$t('page.business.form.bdmb')" prop="templateId"> <el-form-item :label="$t('page.business.form.bdmb')" prop="templateId">
<SelectTemplate v-model="form.templateId" :studyType="studyType" :studyFormType="studyFormType" :needPre="1" :name="form.templateMc" <SelectTemplate v-model="form.templateId" :studyType="studyType" :studyFormType="studyFormType" :needPre="1" :name="form.templateMc"
@change="selectTemplateChange" :studySubjectId="-1"/>
@change="selectTemplateChange" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>

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

@ -42,7 +42,7 @@
<el-col :span="24"> <el-col :span="24">
<el-form-item :label="$t('page.business.form.bdmb')" prop="templateId"> <el-form-item :label="$t('page.business.form.bdmb')" prop="templateId">
<SelectTemplate v-model="form.templateId" :studyType="studyType" :studyFormType="studyFormType" :name="form.templateMc" <SelectTemplate v-model="form.templateId" :studyType="studyType" :studyFormType="studyFormType" :name="form.templateMc"
@change="selectTemplateChange" :studySubjectId="-1"/>
@change="selectTemplateChange" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>

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

@ -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" :studySubjectId="studySubjectId"/>
@change="selectTemplateChange" :needPre="1" :selectedDeptId="selectedDeptId"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -479,7 +479,7 @@ export default {
studyType: null, studyType: null,
studyFormType: null, studyFormType: null,
ccwzlist: [], ccwzlist: [],
studySubjectId:null,
selectedDeptId:null,
} }
}, },
computed: { computed: {
@ -577,7 +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.studySubjectId = params.studySubjectId || null
this.selectedDeptId = params.selectedDeptId || null
} catch (e) { } catch (e) {
console.log('参数错误') console.log('参数错误')
} }

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

@ -203,7 +203,13 @@ export default {
default: () => { default: () => {
return {} return {}
} }
}
},
selectedDeptId:{
type:[Number,String],
default:()=>{
return null
}
},
}, },
computed: { computed: {
...mapGetters([ ...mapGetters([
@ -426,6 +432,7 @@ export default {
studyId: this.searchForm.studyId, studyId: this.searchForm.studyId,
studyType: 1, studyType: 1,
studyFormType:5, studyFormType:5,
selectedDeptId:this.selectedDeptId,
id: null id: null
})) }))
this.$tab.openPage(this.$t('page.business.study.studyFormFill.xzbd'), '/study/formFillBj/' + params) this.$tab.openPage(this.$t('page.business.study.studyFormFill.xzbd'), '/study/formFillBj/' + params)
@ -448,6 +455,7 @@ export default {
studyId: this.searchForm.studyId, studyId: this.searchForm.studyId,
studyType: 1, studyType: 1,
studyFormType:5, studyFormType:5,
selectedDeptId:this.selectedDeptId,
formId: row.id formId: row.id
})) }))
this.$tab.openPage(row.bdmc, '/study/formFillBj/' + params) this.$tab.openPage(row.bdmc, '/study/formFillBj/' + params)

+ 3
- 3
src/views/business/study/comp/ytbd/Bj.vue View File

@ -42,7 +42,7 @@
<el-col :span="24"> <el-col :span="24">
<el-form-item :label="$t('page.business.form.bdmb')" prop="templateId"> <el-form-item :label="$t('page.business.form.bdmb')" prop="templateId">
<SelectTemplate v-model="form.templateId" :disabled="form.id && form.id !== ''" :needPre="10" <SelectTemplate v-model="form.templateId" :disabled="form.id && form.id !== ''" :needPre="10"
:name="form.templateMc" :studyType="studyType" :studySubjectId="studySubjectId" :studyFormType="studyFormType" @change="selectTemplateChange" />
:name="form.templateMc" :studyType="studyType" :selectedDeptId="selectedDeptId" :studyFormType="studyFormType" @change="selectTemplateChange" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -155,7 +155,7 @@ export default {
open: false, open: false,
openSubmit: false, openSubmit: false,
permitForSecectUser: '', permitForSecectUser: '',
studySubjectId:null,
selectedDeptId:null,
rulesApprove: { rulesApprove: {
qmrmm: [{ qmrmm: [{
required: true, required: true,
@ -268,7 +268,7 @@ export default {
this.permitForSecectUser = row.permitForSecectUser this.permitForSecectUser = row.permitForSecectUser
this.studyType = row.studyType||null this.studyType = row.studyType||null
this.studyFormType = row.studyFormType||null this.studyFormType = row.studyFormType||null
this.studySubjectId=row.studySubjectId||null
this.selectedDeptId=row.selectedDeptId||null
if (row && row.id) { if (row && row.id) {
this.showIndex = 2 this.showIndex = 2
this.$modal.loading() this.$modal.loading()

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

@ -215,7 +215,13 @@ export default {
default: () => { default: () => {
return {} return {}
} }
}
},
selectedDeptId:{
type:[Number,String],
default:()=>{
return null
}
},
}, },
computed: { computed: {
...mapGetters([ ...mapGetters([
@ -439,6 +445,7 @@ export default {
studySn: this.searchForm.studySn, studySn: this.searchForm.studySn,
studyMc: this.searchForm.studyMc, studyMc: this.searchForm.studyMc,
studyId: this.searchForm.studyId, studyId: this.searchForm.studyId,
selectedDeptId:this.selectedDeptId,
studyType: 1, studyType: 1,
studySubjectId: this.searchForm.studySubjectId, studySubjectId: this.searchForm.studySubjectId,
permitForSecectUser: 'business:studyFormPre:sh' permitForSecectUser: 'business:studyFormPre:sh'
@ -446,7 +453,7 @@ export default {
}, },
edit(row) { edit(row) {
this.$modal.loading() this.$modal.loading()
studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId, studySubjectId: this.searchForm.studySubjectId }).then(response => {
studyMethod_getReadAllMethodStatus({ selectedDeptId:this.selectedDeptId,userId: this.id, studyId: this.searchForm.studyId, studySubjectId: this.searchForm.studySubjectId }).then(response => {
if (response.data.toUrl) { if (response.data.toUrl) {
this.toRead(response.data) this.toRead(response.data)
} else { } else {

Loading…
Cancel
Save