|
|
|
@ -18,7 +18,7 @@ |
|
|
|
</div> |
|
|
|
<div class="edit-content"> |
|
|
|
<div class="content-left"> |
|
|
|
<TemplateTable ref="templateTable" :sn="form.templateSn" fillType="actFill" :templateData="form"/> |
|
|
|
<TemplateTable ref="templateTable" :sn="form.templateSn" fillType="qc" :templateData="form" /> |
|
|
|
<div class="content-title"> |
|
|
|
<div class="line"></div> |
|
|
|
<div class="subtitle"> {{ $t('page.business.study.studyFormPlan.qmxx') }}</div> |
|
|
|
@ -109,7 +109,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { studyFormPlan_fhtg, studyFormPlan_fhjj, studyFormPlan_info, studyFormPlan_jcgj, studyFormPlan_qmxx } from "@/api/business/study/studyFormPlan" |
|
|
|
import { studyFormPlan_fhtg, studyFormPlan_fhjj, studyFormPlan_info, studyFormPlan_jcgj, studyFormPlan_qmxx } from "@/api/business/study/studyFormPlan" |
|
|
|
import { mapGetters } from 'vuex' |
|
|
|
import JcgjList from "@/views/business/comps/common/JcgjList"; |
|
|
|
import TemplateTable from '@/views/business/comps/template/TemplateTable'; |
|
|
|
@ -154,13 +154,13 @@ export default { |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
...mapGetters([ |
|
|
|
'nickName','name' |
|
|
|
'nickName', 'name' |
|
|
|
]), |
|
|
|
}, |
|
|
|
created() { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
|
|
|
|
|
|
|
|
getJjcgjList(val) { |
|
|
|
this.$modal.loading() |
|
|
|
studyFormPlan_jcgj(_.merge({}, this.queryParamsJcgj, val)).then(response => { |
|
|
|
@ -201,16 +201,21 @@ export default { |
|
|
|
this.$modal.closeLoading() |
|
|
|
}) |
|
|
|
}, |
|
|
|
showApprove(qmyy) { |
|
|
|
this.openApprove = true |
|
|
|
this.resetApprove() |
|
|
|
this.formApprove.id = this.form.id |
|
|
|
this.formApprove.qmyy = qmyy |
|
|
|
if (qmyy == '复核通过') { |
|
|
|
this.openTitle = 'page.business.study.studyFormPlan.fhtg' |
|
|
|
} else if (qmyy == '复核拒绝') { |
|
|
|
this.openTitle = 'page.business.study.studyFormPlan.fhjj' |
|
|
|
} |
|
|
|
async showApprove(qmyy) { |
|
|
|
let content = await this.$refs.templateTable.getFormData() |
|
|
|
if (content) { |
|
|
|
this.openApprove = true |
|
|
|
this.resetApprove() |
|
|
|
this.formApprove.bdnr = JSON.stringify(content) |
|
|
|
this.formApprove.id = this.form.id |
|
|
|
this.formApprove.qmyy = qmyy |
|
|
|
if (qmyy == '复核通过') { |
|
|
|
this.openTitle = 'page.business.study.studyFormPlan.fhtg' |
|
|
|
} else if (qmyy == '复核拒绝') { |
|
|
|
this.openTitle = 'page.business.study.studyFormPlan.fhjj' |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
resetApprove() { |
|
|
|
this.resetForm("formApprove") |
|
|
|
@ -226,32 +231,27 @@ export default { |
|
|
|
approve() { |
|
|
|
this.$refs["formApprove"].validate(valid => { |
|
|
|
if (valid) { |
|
|
|
this.doapprove() |
|
|
|
this.$modal.loading() |
|
|
|
if (this.formApprove.qmyy == '复核通过') { |
|
|
|
studyFormPlan_fhtg(this.formApprove).then(response => { |
|
|
|
this.openApprove = false |
|
|
|
this.$modal.closeLoading() |
|
|
|
this.$emit('close') |
|
|
|
}).finally(() => { |
|
|
|
this.$modal.closeLoading() |
|
|
|
}) |
|
|
|
} else if (this.formApprove.qmyy == '复核拒绝') { |
|
|
|
this.formApprove.remark = this.formApprove.reason |
|
|
|
studyFormPlan_fhjj(this.formApprove).then(response => { |
|
|
|
this.openApprove = false |
|
|
|
this.$modal.closeLoading() |
|
|
|
this.$emit('close') |
|
|
|
}).finally(() => { |
|
|
|
this.$modal.closeLoading() |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
async doapprove() { |
|
|
|
let content = await this.$refs.templateTable.getFormData() |
|
|
|
this.formApprove.bdnr = JSON.stringify(content) |
|
|
|
this.$modal.loading() |
|
|
|
if (this.formApprove.qmyy == '复核通过') { |
|
|
|
studyFormPlan_fhtg(this.formApprove).then(response => { |
|
|
|
this.openApprove = false |
|
|
|
this.$modal.closeLoading() |
|
|
|
this.$emit('close') |
|
|
|
}).finally(() => { |
|
|
|
this.$modal.closeLoading() |
|
|
|
}) |
|
|
|
} else if (this.formApprove.qmyy == '复核拒绝') { |
|
|
|
this.formApprove.remark=this.formApprove.reason |
|
|
|
studyFormPlan_fhjj(this.formApprove).then(response => { |
|
|
|
this.openApprove = false |
|
|
|
this.$modal.closeLoading() |
|
|
|
this.$emit('close') |
|
|
|
}).finally(() => { |
|
|
|
this.$modal.closeLoading() |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|