|
|
@ -16,7 +16,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
<div class="edit-content"> |
|
|
<div class="edit-content"> |
|
|
<div class="content-left"> |
|
|
<div class="content-left"> |
|
|
<TemplateTable ref="templateTable" :sn="form.templateSn" fillType="actFill" :templateData="form"/> |
|
|
|
|
|
|
|
|
<TemplateTable ref="templateTable" :sn="form.templateSn" fillType="actFill" :templateData="form" /> |
|
|
<div class="content-title"> |
|
|
<div class="content-title"> |
|
|
<div class="line"></div> |
|
|
<div class="line"></div> |
|
|
<div class="subtitle"> {{ $t('page.business.study.studyFormPlan.qmxx') }}</div> |
|
|
<div class="subtitle"> {{ $t('page.business.study.studyFormPlan.qmxx') }}</div> |
|
|
@ -43,7 +43,7 @@ |
|
|
<div class="line"></div> |
|
|
<div class="line"></div> |
|
|
<div class="subtitle"> {{ $t('page.business.study.studyFormPlan.jcgj') }}</div> |
|
|
<div class="subtitle"> {{ $t('page.business.study.studyFormPlan.jcgj') }}</div> |
|
|
</div> |
|
|
</div> |
|
|
<JcgjList ref="jcgjList" @handleQuery="getJjcgjList" :showXg="true"/> |
|
|
|
|
|
|
|
|
<JcgjList ref="jcgjList" @handleQuery="getJjcgjList" :showXg="true" /> |
|
|
|
|
|
|
|
|
<pagination v-show="jcgjTotal > 0" small layout="prev, pager, next" :total="jcgjTotal" |
|
|
<pagination v-show="jcgjTotal > 0" small layout="prev, pager, next" :total="jcgjTotal" |
|
|
@pagination="getJjcgjList" /> |
|
|
@pagination="getJjcgjList" /> |
|
|
@ -142,7 +142,7 @@ export default { |
|
|
created() { |
|
|
created() { |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getJjcgjList(val) { |
|
|
getJjcgjList(val) { |
|
|
this.$modal.loading() |
|
|
this.$modal.loading() |
|
|
studyFormPlan_jcgj(_.merge({}, this.queryParamsJcgj, val)).then(response => { |
|
|
studyFormPlan_jcgj(_.merge({}, this.queryParamsJcgj, val)).then(response => { |
|
|
@ -183,10 +183,13 @@ export default { |
|
|
this.$modal.closeLoading() |
|
|
this.$modal.closeLoading() |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
showApprove() { |
|
|
|
|
|
this.resetApprove() |
|
|
|
|
|
this.formApprove.id = this.form.id |
|
|
|
|
|
this.openApprove = true |
|
|
|
|
|
|
|
|
async showApprove() { |
|
|
|
|
|
let content = await this.$refs.templateTable.getFormData() |
|
|
|
|
|
if (content) { |
|
|
|
|
|
this.resetApprove() |
|
|
|
|
|
this.formApprove.id = this.form.id |
|
|
|
|
|
this.openApprove = true |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
resetApprove() { |
|
|
resetApprove() { |
|
|
this.formApprove = { |
|
|
this.formApprove = { |
|
|
@ -200,16 +203,21 @@ export default { |
|
|
approve() { |
|
|
approve() { |
|
|
this.$refs["formApprove"].validate(valid => { |
|
|
this.$refs["formApprove"].validate(valid => { |
|
|
if (valid) { |
|
|
if (valid) { |
|
|
this.$modal.loading() |
|
|
|
|
|
studyFormPlan_sy(this.formApprove).then(response => { |
|
|
|
|
|
this.openApprove = false |
|
|
|
|
|
this.$modal.closeLoading() |
|
|
|
|
|
this.$emit('close') |
|
|
|
|
|
}).finally(() => { |
|
|
|
|
|
this.$modal.closeLoading() |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
this.doapprove() |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
async doapprove() { |
|
|
|
|
|
let content = await this.$refs.templateTable.getFormData() |
|
|
|
|
|
this.formApprove.bdnr = JSON.stringify(content) |
|
|
|
|
|
this.$modal.loading() |
|
|
|
|
|
studyFormPlan_sy(this.formApprove).then(response => { |
|
|
|
|
|
this.$emit('close') |
|
|
|
|
|
this.openSubmit = false |
|
|
|
|
|
this.$modal.closeLoading() |
|
|
|
|
|
}).finally(() => { |
|
|
|
|
|
this.$modal.closeLoading() |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|