This commit is contained in:
shenyanpei
2021-12-05 15:52:59 +08:00
parent 5852af38ce
commit 30beabfbbb
@@ -102,7 +102,7 @@
</div> </div>
</div> </div>
<el-collapse accordion> <el-collapse accordion>
<el-collapse-item title="回执说明"> <el-collapse-item title="审批意见">
<div style="margin: 10px 0;"> <div style="margin: 10px 0;">
<el-input <el-input
type="textarea" type="textarea"
@@ -317,7 +317,7 @@ export default {
}, },
/** 议题列表查看按钮 */ /** 议题列表查看按钮 */
meetingFileBtn(val) { meetingFileBtn(val) {
this.themeFileList = val.material this.themeFileList = val.meetingFile
this.meetingFileDialog = true this.meetingFileDialog = true
}, },
handleClose() { handleClose() {
@@ -348,27 +348,31 @@ export default {
// 退回按钮 // 退回按钮
handleSubmitNo() { handleSubmitNo() {
let json = { if (this.commentText === '') {
passFlag: '0', this.$message.warning('请输入审批意见')
commentText: this.commentText, } else {
hh_pageData: this.hh_pageData, let json = {
} passFlag: '0',
this.$refs['hh_pageData'].validate((valid) => { commentText: this.commentText,
if (valid) { hh_pageData: this.hh_pageData,
this.isBack = true
const params = new FormData();
params.set('json', JSON.stringify(json))
params.set('userId', this.$store.getters.userInfo.userId)
params.set('taskId', this.taskIds)
completeTask(params).then(res => {
if (res.success === true) {
this.$message.success('退回成功')
this.$router.push("/processCenter");
}
this.isBack = false
});
} }
}) this.$refs['hh_pageData'].validate((valid) => {
if (valid) {
this.isBack = true
const params = new FormData();
params.set('json', JSON.stringify(json))
params.set('userId', this.$store.getters.userInfo.userId)
params.set('taskId', this.taskIds)
completeTask(params).then(res => {
if (res.success === true) {
this.$message.success('退回成功')
this.$router.push("/processCenter");
}
this.isBack = false
});
}
})
}
}, },
// 提交按钮 // 提交按钮
handleSubmit() { handleSubmit() {