Browse Source

fix:[表单管理]bug

lkf
15881625488@163.com 2 months ago
parent
commit
45fc64bf02
4 changed files with 7 additions and 4 deletions
  1. +1
    -1
      src/views/business/study/comp/jhbd/Bj.vue
  2. +1
    -1
      src/views/business/study/comp/sqbd/Bj.vue
  3. +4
    -1
      src/views/business/study/comp/tbbd/Bj.vue
  4. +1
    -1
      src/views/business/study/comp/ytbd/Bj.vue

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

@ -192,7 +192,7 @@ export default {
onPlanCallback(data) { onPlanCallback(data) {
console.log("data:" + JSON.stringify(data)) console.log("data:" + JSON.stringify(data))
console.log("formdata:" + JSON.stringify(this.$refs.templateTable.getFilledFormData())) console.log("formdata:" + JSON.stringify(this.$refs.templateTable.getFilledFormData()))
if (data.type == 'fieldChanged') {
if (data.type == 'fieldChanged'&&data.newRecord&&data.newRecord!='') {
studyFormPlan_updateBdnr( studyFormPlan_updateBdnr(
{ {
id: this.form.id, id: this.form.id,

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

@ -192,7 +192,7 @@ export default {
onApplyCallback(data) { onApplyCallback(data) {
console.log("data:" + JSON.stringify(data)) console.log("data:" + JSON.stringify(data))
console.log("formdata:" + JSON.stringify(this.$refs.templateTable.getFilledFormData())) console.log("formdata:" + JSON.stringify(this.$refs.templateTable.getFilledFormData()))
if (data.type == 'fieldChanged') {
if (data.type == 'fieldChanged'&&data.newRecord&&data.newRecord!='') {
studyFormApply_updateBdnr( studyFormApply_updateBdnr(
{ {
id: this.form.id, id: this.form.id,

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

@ -359,7 +359,7 @@ export default {
onFillCallback(data) { onFillCallback(data) {
console.log("data:" + JSON.stringify(data)) console.log("data:" + JSON.stringify(data))
console.log("formdata:" + JSON.stringify(this.$refs.templateTable.getFilledFormData())) console.log("formdata:" + JSON.stringify(this.$refs.templateTable.getFilledFormData()))
if (data.type == 'fieldChanged') {
if (data.type == 'fieldChanged'&&data.newRecord&&data.newRecord!='') {
studyFormFill_updateBdnr( studyFormFill_updateBdnr(
{ {
id: this.form.id, id: this.form.id,
@ -512,7 +512,10 @@ export default {
this.$modal.loading() this.$modal.loading()
studyFormFill_bcOnly(this.form).then(response => { studyFormFill_bcOnly(this.form).then(response => {
this.form = response.data this.form = response.data
this.templateData = deepClone(this.form)
this.showIndex = 2 this.showIndex = 2
const obj = Object.assign({}, this.$route, { title: this.form.bdmc })
this.$tab.updatePage(obj);
}).finally(() => { }).finally(() => {
this.$modal.closeLoading() this.$modal.closeLoading()
}) })

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

@ -199,7 +199,7 @@ export default {
onPreCallback(data) { onPreCallback(data) {
console.log("data:" + JSON.stringify(data)) console.log("data:" + JSON.stringify(data))
console.log("formdata:" + JSON.stringify(this.$refs.templateTable.getFilledFormData())) console.log("formdata:" + JSON.stringify(this.$refs.templateTable.getFilledFormData()))
if (data.type == 'fieldChanged') {
if (data.type == 'fieldChanged'&&data.newRecord&&data.newRecord!='') {
studyFormPre_updateBdnr( studyFormPre_updateBdnr(
{ {
id: this.form.id, id: this.form.id,

Loading…
Cancel
Save