|
|
@ -77,7 +77,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
<div class="content" v-if="showIndex == 2"> |
|
|
<div class="content" v-if="showIndex == 2"> |
|
|
<TemplateTable emitName="onFillCallback" @onFillCallback="onFillCallback" ref="templateTable" |
|
|
<TemplateTable emitName="onFillCallback" @onFillCallback="onFillCallback" ref="templateTable" |
|
|
:sn="form.templateSn" :templateData="form" fillType="actFill" /> |
|
|
|
|
|
|
|
|
:sn="form.templateSn" :templateData="templateData" fillType="actFill" /> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
@ -231,6 +231,7 @@ import SelectTemplate from "@/views/business/comps/select/SelectTemplate"; |
|
|
import SelectDeptUser from '@/views/business/comps/select/SelectDeptUser'; |
|
|
import SelectDeptUser from '@/views/business/comps/select/SelectDeptUser'; |
|
|
import TemplateTable from '@/views/business/comps/template/TemplateTable'; |
|
|
import TemplateTable from '@/views/business/comps/template/TemplateTable'; |
|
|
import BusinessSelect from '@/views/business/comps/select/BusinessSelect'; |
|
|
import BusinessSelect from '@/views/business/comps/select/BusinessSelect'; |
|
|
|
|
|
import { deepClone } from "@/utils/index"; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: "Bj", |
|
|
name: "Bj", |
|
|
@ -286,6 +287,7 @@ export default { |
|
|
trigger: 'blur' |
|
|
trigger: 'blur' |
|
|
}] |
|
|
}] |
|
|
}, |
|
|
}, |
|
|
|
|
|
templateData: {} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
|
@ -304,10 +306,10 @@ export default { |
|
|
if (data.type == 'fieldChanged') { |
|
|
if (data.type == 'fieldChanged') { |
|
|
studyFormFill_updateBdnr( |
|
|
studyFormFill_updateBdnr( |
|
|
{ |
|
|
{ |
|
|
id:this.form.id, |
|
|
|
|
|
bdnr:JSON.stringify(this.$refs.templateTable.getFilledFormData()), |
|
|
|
|
|
zdxgjl:JSON.stringify(data.resourceList), |
|
|
|
|
|
filedValue:JSON.stringify(data.newRecord) |
|
|
|
|
|
|
|
|
id: this.form.id, |
|
|
|
|
|
bdnr: JSON.stringify(this.$refs.templateTable.getFilledFormData()), |
|
|
|
|
|
zdxgjl: JSON.stringify(data.resourceList), |
|
|
|
|
|
filedValue: JSON.stringify(data.newRecord) |
|
|
} |
|
|
} |
|
|
).then(response => { |
|
|
).then(response => { |
|
|
}) |
|
|
}) |
|
|
@ -348,6 +350,7 @@ export default { |
|
|
studyFormFill_info({ id: formId }).then(response => { |
|
|
studyFormFill_info({ id: formId }).then(response => { |
|
|
this.form = response.data |
|
|
this.form = response.data |
|
|
this.form.qmyy = this.$t('page.business.study.studyFormFill.zztjyzbd') |
|
|
this.form.qmyy = this.$t('page.business.study.studyFormFill.zztjyzbd') |
|
|
|
|
|
this.templateData = deepClone(this.form) |
|
|
this.$modal.closeLoading() |
|
|
this.$modal.closeLoading() |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
@ -355,6 +358,7 @@ export default { |
|
|
this.$modal.loading() |
|
|
this.$modal.loading() |
|
|
study_info({ id: studyId }).then(response => { |
|
|
study_info({ id: studyId }).then(response => { |
|
|
this.form = _.merge({}, this.form, { stydyId: studyId, resourceStudy: response.data.resource, sftb: 1 }) |
|
|
this.form = _.merge({}, this.form, { stydyId: studyId, resourceStudy: response.data.resource, sftb: 1 }) |
|
|
|
|
|
this.templateData = deepClone(this.form) |
|
|
this.$modal.closeLoading() |
|
|
this.$modal.closeLoading() |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
@ -432,7 +436,7 @@ export default { |
|
|
this.showIndex = 2 |
|
|
this.showIndex = 2 |
|
|
this.$modal.loading() |
|
|
this.$modal.loading() |
|
|
studyFormFill_bc(this.form).then(response => { |
|
|
studyFormFill_bc(this.form).then(response => { |
|
|
this.form=response.data |
|
|
|
|
|
|
|
|
this.form = response.data |
|
|
this.showIndex = 2 |
|
|
this.showIndex = 2 |
|
|
}).finally(() => { |
|
|
}).finally(() => { |
|
|
this.$modal.closeLoading() |
|
|
this.$modal.closeLoading() |
|
|
|