Browse Source

fix:[表单管理]bug

zhangteng
15881625488@163.com 4 days ago
parent
commit
01983c59ed
2 changed files with 10 additions and 17 deletions
  1. +3
    -1
      src/views/business/study/comp/enter.vue
  2. +7
    -16
      src/views/business/study/comp/tbbd/Blxjsh.vue

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

@ -98,7 +98,9 @@ export default {
showDetailCallback(val) {
this.showDetail = val
if(!this.showDetail){
this.$tab.refreshPage();
// this.$tab.refreshPage();
const obj = Object.assign({}, this.$route, { title: this.study.name+'('+this.study.sn+')' })
this.$tab.updatePage(obj);
}
},
changeTab(item) {

+ 7
- 16
src/views/business/study/comp/tbbd/Blxjsh.vue View File

@ -110,7 +110,7 @@
</template>
<script>
import { studyFormFill_blxjshtg, studyFormFill_blxjshjj, studyFormFill_updateZdgxjl, studyFormFill_updateFhyjjl, studyFormFill_info, studyFormFill_jcgj, studyFormFill_qmxx } from "@/api/business/study/studyFormFill"
import { studyFormFill_blxjshtg, studyFormFill_blxjshjj, studyFormFill_updateZdgxjl, studyFormFill_updateFhyjjl,studyFormFill_updateBdnr, studyFormFill_info, studyFormFill_jcgj, studyFormFill_qmxx } from "@/api/business/study/studyFormFill"
import { mapGetters } from 'vuex'
import JcgjList from "@/views/business/comps/common/JcgjList";
import TemplateTable from '@/views/business/comps/template/TemplateTable';
@ -165,23 +165,14 @@ export default {
onFillFhCallback(data) {
console.log("data:" + JSON.stringify(data))
console.log("formdata:" + JSON.stringify(this.$refs.templateTable.getFilledFormData()))
if (data.type == 'checkbox') {
// {"type":"checkbox","fieldCheckObj":"{\"_methodCode\":{\"checked\":false}}"}
studyFormFill_updateZdgxjl(
if (data.type == 'fieldChanged') {
studyFormFill_updateBdnr(
{
id: this.form.id,
zdgxjl: data.fieldCheckObj
}
).then(response => {
})
}
else if (data.type == 'content') {
// {"type":"content","newRecord":{"userNameCn":"","userNameEn":"tf","key":"_versionNum","field":"-","title":"","time":"2026-01-14 20:23:30","content":"qweqe"},"resourceList":[{"userNameCn":"","userNameEn":"tf","key":"_versionNum","field":"-","title":"","time":"2026-01-14 20:23:30","content":"qweqe"},{"userNameCn":"","userNameEn":"tf","key":"_methodCode","field":"-","title":"","time":"2026-01-14 20:23:28","content":"qweqw"}]}
studyFormFill_updateFhyjjl(
{
id: this.form.id,
content: JSON.stringify(data.newRecord),
fhyjjl: JSON.stringify(data.resourceList)
bdnr: JSON.stringify(this.$refs.templateTable.getFilledFormData()),
zdxgjl: data.resourceList ? JSON.stringify(data.resourceList) : '',
filedValue: data.newRecord ? JSON.stringify(data.newRecord) : '',
submittedCodes: data.submittedCodes ? JSON.stringify(data.submittedCodes) : ''
}
).then(response => {
})

Loading…
Cancel
Save