|
|
@ -29,7 +29,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
<template v-else> |
|
|
<template v-else> |
|
|
<el-button @click="saveNext">{{ $t('page.business.study.studyFormPlan.save') }}</el-button> |
|
|
<el-button @click="saveNext">{{ $t('page.business.study.studyFormPlan.save') }}</el-button> |
|
|
<el-button type="primary" @click="openSubmit = true">{{ $t('page.business.study.studyFormPlan.submit') |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="showtijiao">{{ $t('page.business.study.studyFormPlan.submit') |
|
|
}}</el-button> |
|
|
}}</el-button> |
|
|
<el-button type="primary" @click="pre">{{ $t('page.business.study.studyFormPlan.pre') }}</el-button> |
|
|
<el-button type="primary" @click="pre">{{ $t('page.business.study.studyFormPlan.pre') }}</el-button> |
|
|
</template> |
|
|
</template> |
|
|
@ -71,9 +71,16 @@ |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog :title="$t('page.business.study.studyFormApply.tjjl')" :visible.sync="openSubmit" width="500px" |
|
|
|
|
|
|
|
|
<el-dialog :title="$t('page.business.study.studyFormPlan.tjjl')" :visible.sync="openSubmit" width="500px" |
|
|
append-to-body :close-on-click-modal="false"> |
|
|
append-to-body :close-on-click-modal="false"> |
|
|
<el-form ref="formSubmit" :model="form" :rules="rulesApprove" label-width="120px"> |
|
|
<el-form ref="formSubmit" :model="form" :rules="rulesApprove" label-width="120px"> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<el-col :span="24"> |
|
|
|
|
|
<el-form-item :label="$t('page.business.study.studyFormPlan.shryId')" prop="fshryId"> |
|
|
|
|
|
<SelectDeptUser v-model="form.fshryId" :name="form.fhryMc" key="shryId" @change="selectDeptUserChange" /> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="24"> |
|
|
<el-col :span="24"> |
|
|
<el-form-item :label="$t('form.qmyy')" prop="qmyy"> |
|
|
<el-form-item :label="$t('form.qmyy')" prop="qmyy"> |
|
|
@ -209,16 +216,16 @@ export default { |
|
|
this.resetForm("form") |
|
|
this.resetForm("form") |
|
|
}, |
|
|
}, |
|
|
selectDeptUserChange(val) { |
|
|
selectDeptUserChange(val) { |
|
|
this.form.shryMc = val.name |
|
|
|
|
|
|
|
|
this.form.fhryMc = val.name |
|
|
}, |
|
|
}, |
|
|
edit(row) { |
|
|
edit(row) { |
|
|
this.reset() |
|
|
this.reset() |
|
|
|
|
|
this.form.qmyy = '制作提交预制表单' |
|
|
if (row && row.id) { |
|
|
if (row && row.id) { |
|
|
this.showIndex = 2 |
|
|
this.showIndex = 2 |
|
|
this.$modal.loading() |
|
|
this.$modal.loading() |
|
|
studyFormPlan_info({ id: row.id }).then(response => { |
|
|
studyFormPlan_info({ id: row.id }).then(response => { |
|
|
this.form = response.data |
|
|
this.form = response.data |
|
|
this.form.qmyy = '制作提交预制表单' |
|
|
|
|
|
this.open = true |
|
|
this.open = true |
|
|
this.$modal.closeLoading() |
|
|
this.$modal.closeLoading() |
|
|
}) |
|
|
}) |
|
|
@ -259,6 +266,12 @@ export default { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
async showtijiao() { |
|
|
|
|
|
let content = await this.$refs.templateTable.getFormData() |
|
|
|
|
|
if (content) { |
|
|
|
|
|
this.openSubmit = true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
async dotj() { |
|
|
async dotj() { |
|
|
let content = await this.$refs.templateTable.getFormData() |
|
|
let content = await this.$refs.templateTable.getFormData() |
|
|
this.form.bdnr = JSON.stringify(content) |
|
|
this.form.bdnr = JSON.stringify(content) |
|
|
|