Browse Source

fix:[试验管理]表单bug

lkf
15881625488@163.com 2 months ago
parent
commit
a0f2d8b0f8
10 changed files with 40 additions and 44 deletions
  1. +1
    -1
      src/views/business/form/drug/comp/sqbdList.vue
  2. +1
    -1
      src/views/business/form/drug/comp/tbbdList.vue
  3. +2
    -2
      src/views/business/form/drug/comp/ytbdList.vue
  4. +1
    -1
      src/views/business/form/nonTrial/comp/tbbdList.vue
  5. +2
    -2
      src/views/business/form/nonTrial/comp/ytbdList.vue
  6. +17
    -19
      src/views/business/study/comp/jhbd/Bj.vue
  7. +1
    -1
      src/views/business/study/comp/jhbdList.vue
  8. +11
    -14
      src/views/business/study/comp/sqbd/Bj.vue
  9. +1
    -1
      src/views/business/study/comp/tbbdList.vue
  10. +3
    -2
      src/views/business/study/comp/ytbdList.vue

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

@ -229,7 +229,7 @@ export default {
searchForm: {
pageNum: 1,
pageSize: 10,
studyId: '',
studyId: -1,
studySn: '',
studyMc: '',
bdbh: '',

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

@ -230,7 +230,7 @@ export default {
searchForm: {
pageNum: 1,
pageSize: 10,
studyId: '',
studyId: -1,
studySn: '',
studyMc: '',
bdbh: '',

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

@ -251,7 +251,7 @@ export default {
searchForm: {
pageNum: 1,
pageSize: 10,
studyId: '',
studyId: -1,
studySn: '',
studyMc: '',
bdbh: '',
@ -349,7 +349,7 @@ export default {
},
studyChange() {
this.$modal.loading()
studyFormPre_studyFormPreList({ studyId: this.formXz.studyId }).then(response => {
studyFormPre_studyFormPreList({ studyId: this.formXz.studyId,bdzt:5 }).then(response => {
this.formXz.formPre = null
this.formPreList = response.data
this.$modal.closeLoading()

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

@ -237,7 +237,7 @@ export default {
searchForm: {
pageNum: 1,
pageSize: 10,
studyId: '',
studyId: -1,
studySn: '',
studyMc: '',
bdbh: '',

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

@ -260,7 +260,7 @@ export default {
searchForm: {
pageNum: 1,
pageSize: 10,
studyId: '',
studyId: -1,
studySn: '',
studyMc: '',
bdbh: '',
@ -358,7 +358,7 @@ export default {
},
studyChange() {
this.$modal.loading()
studyFormPre_studyFormPreList({ studyId: this.formXz.studyId }).then(response => {
studyFormPre_studyFormPreList({ studyId: this.formXz.studyId,bdzt:5 }).then(response => {
this.formXz.formPre = null
this.formPreList = response.data
this.$modal.closeLoading()

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

@ -65,14 +65,15 @@
</el-form>
</div>
<div class="content" v-if="showIndex == 2">
<TemplateTable ref="templateTable" emitName="onPlanCallback" @onPlanCallback="onPlanCallback" :sn="form.templateSn" :templateData="templateData" fillType="actFill" />
<TemplateTable ref="templateTable" emitName="onPlanCallback" @onPlanCallback="onPlanCallback"
:sn="form.templateSn" :templateData="templateData" fillType="actFill" />
</div>
</div>
</div>
<el-dialog :title="$t('page.business.study.studyFormPlan.tjjl')" :visible.sync="openSubmit" width="500px"
append-to-body :close-on-click-modal="false">
<el-form ref="formSubmit" :model="form" :rules="rulesApprove" label-width="120px" v-if="openSubmit">
<div class="sbzdtcma"> <input type="text"> <input type="password" show-password > </div>
<div class="sbzdtcma"> <input type="text"> <input type="password" show-password> </div>
<el-row>
<el-col :span="24">
<el-form-item :label="$t('page.business.study.studyFormPlan.shryId')" prop="fshryId">
@ -111,7 +112,7 @@
<el-row>
<el-col :span="24">
<el-form-item :label="$t('form.password')" prop="qmrmm">
<el-input type="password" show-password v-model="form.qmrmm" maxlength="20"
<el-input type="password" show-password v-model="form.qmrmm" maxlength="20"
:placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>
@ -126,7 +127,7 @@
</template>
<script>
import { studyFormPlan_bc,studyFormPlan_bcOnly, studyFormPlan_tj, studyFormPlan_info,studyFormPlan_updateBdnr,studyFormFill_updateFhyjjl } from "@/api/business/study/studyFormPlan"
import { studyFormPlan_bc, studyFormPlan_bcOnly, studyFormPlan_tj, studyFormPlan_info, studyFormPlan_updateBdnr, studyFormFill_updateFhyjjl } from "@/api/business/study/studyFormPlan"
import { mapGetters } from 'vuex'
import SelectTemplate from "@/views/business/comps/select/SelectTemplate";
import SelectStudyUser from '@/views/business/comps/select/SelectStudyUser';
@ -188,7 +189,7 @@ export default {
created() {
},
methods: {
onPlanCallback(data) {
onPlanCallback(data) {
console.log("data:" + JSON.stringify(data))
console.log("formdata:" + JSON.stringify(this.$refs.templateTable.getFilledFormData()))
if (data.type == 'fieldChanged') {
@ -201,7 +202,7 @@ export default {
}
).then(response => {
})
} else if (data.type == 'reply') {
} else if (data.type == 'reply') {
studyFormFill_updateFhyjjl(
{
id: this.form.id,
@ -272,8 +273,8 @@ export default {
this.templateData = deepClone(this.form)
this.open = true
}).finally(() => {
this.$modal.closeLoading()
})
this.$modal.closeLoading()
})
} else {
this.showIndex = 1
this.form = _.merge({}, this.form, row)
@ -295,17 +296,14 @@ export default {
})
},
async saveNext() {
let content = await this.$refs.templateTable.getFormData()
if (content) {
this.form.bdnr = JSON.stringify(content)
this.$modal.loading()
studyFormPlan_bc(this.form).then(response => {
this.$emit('close')
this.open = false
}).finally(() => {
this.$modal.closeLoading()
})
}
this.form.bdnr = JSON.stringify(this.$refs.templateTable.getFilledFormData())
this.$modal.loading()
studyFormPlan_bc(this.form).then(response => {
this.$emit('close')
this.open = false
}).finally(() => {
this.$modal.closeLoading()
})
},
tj() {
this.$refs["formSubmit"].validate(valid => {

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

@ -164,7 +164,7 @@ export default {
searchForm: {
pageNum: 1,
pageSize: 10,
studyId: '',
studyId: -1,
bdbh: '',
bdmc: '',
studySn: '',

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

@ -83,7 +83,7 @@
<el-dialog :title="$t('page.business.study.studyFormApply.tjjl')" :visible.sync="openSubmit" width="500px"
append-to-body :close-on-click-modal="false">
<el-form ref="formSubmit" :model="form" :rules="rulesApprove" label-width="120px" v-if="openSubmit">
<div class="sbzdtcma"> <input type="text"> <input type="password" show-password > </div>
<div class="sbzdtcma"> <input type="text"> <input type="password" show-password> </div>
<el-row>
<el-col :span="24">
<el-form-item :label="$t('form.qmyy')" prop="qmyy">
@ -112,7 +112,7 @@
<el-row>
<el-col :span="24">
<el-form-item :label="$t('form.password')" prop="qmrmm">
<el-input type="password" show-password v-model="form.qmrmm" maxlength="20"
<el-input type="password" show-password v-model="form.qmrmm" maxlength="20"
:placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>
@ -127,7 +127,7 @@
</template>
<script>
import { studyFormApply_bc,studyFormApply_bcOnly, studyFormApply_tj, studyFormApply_info, studyFormApply_updateBdnr ,studyFormApply_updateFhyjjl } from "@/api/business/study/studyFormApply"
import { studyFormApply_bc, studyFormApply_bcOnly, studyFormApply_tj, studyFormApply_info, studyFormApply_updateBdnr, studyFormApply_updateFhyjjl } from "@/api/business/study/studyFormApply"
import { mapGetters } from 'vuex'
import SelectTemplate from "@/views/business/comps/select/SelectTemplate";
import SelectDeptUser from '@/views/business/comps/select/SelectDeptUser';
@ -305,17 +305,14 @@ export default {
}
},
async saveNext() {
let content = await this.$refs.templateTable.getFormData()
if (content) {
this.form.bdnr = JSON.stringify(content)
this.$modal.loading()
studyFormApply_bc(this.form).then(response => {
this.$emit('close')
this.open = false
}).finally(() => {
this.$modal.closeLoading()
})
}
this.form.bdnr = JSON.stringify(this.$refs.templateTable.getFilledFormData())
this.$modal.loading()
studyFormApply_bc(this.form).then(response => {
this.$emit('close')
this.open = false
}).finally(() => {
this.$modal.closeLoading()
})
},
tj() {
this.$refs["formSubmit"].validate(valid => {

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

@ -238,7 +238,7 @@ export default {
searchForm: {
pageNum: 1,
pageSize: 10,
studyId: '',
studyId: -1,
studySn: '',
studyMc: '',
studySubjectId: '',

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

@ -253,7 +253,7 @@ export default {
searchForm: {
pageNum: 1,
pageSize: 10,
studyId: '',
studyId: -1,
studySn: '',
studyMc: '',
studySubjectId: '',
@ -342,6 +342,7 @@ export default {
templateSn: tmp.templateSn,
bdmc: tmp.bdmc,
bdnr: tmp.bdnr,
studySubjectId: this.searchForm.studySubjectId,
studySn: this.searchForm.studySn,
studyMc: this.searchForm.studyMc,
studyId: this.searchForm.studyId,
@ -356,7 +357,7 @@ export default {
},
studyChange() {
this.$modal.loading()
studyFormPre_studyFormPreList({ studyId: this.formXz.studyId }).then(response => {
studyFormPre_studyFormPreList({ studyId: this.formXz.studyId,bdzt:5 }).then(response => {
this.formXz.formPre = null
this.formPreList = response.data
this.$modal.closeLoading()

Loading…
Cancel
Save