Commit 930651f6 authored by xioln's avatar xioln

问题记录条目接受节点整改措施功能添加

parent e74dad1b
......@@ -9,6 +9,7 @@ const state = {
{ key: 'DeeFlowDxDocumentEditReplyComments', title: '答复意见' },
// { key: 'DeeFlowExtSendOrderEditFeedBack', title: '答复意见' },
{ key: 'DeeFlowDxDocumentAttrsEditWhetherApplied', title: '封面贴皮' },
{ key: 'DeeFlowExtIssueRecordEditAttrs', title: '整改措施' },
{ key: 'taskHistory', title: '签审历史' }
]
......
<template>
<div class="dee-flowExtIssueRecordEditAttrs">
<dee-form
ref="taskForm"
:form="form"
:form-data="formData"
:rules="rules"
/>
<span class="pc-tips">
请到PC端上传证明资料
</span>
</div>
</template>
<script>
import DeeForm from '@/components/form/form'
export default {
props: {
basicData: {
type: Object,
require: true
},
flowData: {
type: Object,
require: true
}
},
components: {
DeeForm
},
data () {
return {
form: {
correctAction: ''
},
formData: [
{
data: [
{
title: '整改措施',
key: 'correctAction',
component: {
name: 'el-input',
disabled: false,
type: 'textarea'
}
}
]
}
],
rules: {},
modelName: ''
}
},
watch: {
flowData: {
immediate: true,
deep: true,
handler: function (val) {
if (!val || !val.id) {
return
}
this.form.correctAction = val.correctAction
this.modelName = val.subTypeName
}
}
},
created () { },
mounted () { },
methods: {
validate () {
return new Promise((resolve, reject) => {
this.$refs.taskForm.$refs.form.validate().then(() => {
const form = { ...this.flowData, ...this.form, operator: 'MODIFY' }
this.$api
.recursion(this.modelName, form)
.then((res) => {
if (res) {
resolve(true)
}
})
.catch(() => {
resolve(false)
})
}).catch(() => {
resolve(false)
})
})
}
}
}
</script>
<style lang='scss' scoped>
.dee-flowExtIssueRecordEditAttrs {
margin: 0 10px;
/deep/ textarea {
border: 0.5px;
border-radius: 5px;
background-color: rgba(241, 241, 241, 0.5);
padding: 5px;
resize: none;
}
.custom-image .van-empty__image {
width: 90px;
height: 90px;
}
.pc-tips {
color: #999;
font-size: 12px;
margin-top: 10px;
margin-left: 20px;
}
}
</style>
<template>
<div class="taskDetails">
<headerNavBar :title="$route.query.taskType+'详情'" @click-left="onClickLeft" />
<headerNavBar :title="$route.query.taskType||'任务'+'详情'" @click-left="onClickLeft" />
<div class="taskBasicInfo">
<task-basic-info
v-if="basicData && form"
......@@ -301,30 +301,31 @@ export default {
taskVariables: {},
variables: {}
}
completeTask(obj)
.then((res) => {
Notify({
type: 'success',
message: res.message,
onOpened: () => {
// sessionStorage.setItem('finishWork', true)
this.$refs.taskBtnRef.comLoading = false
this.$router.go(-1)
// if (this.todoListTitle.includes('待办')) {
// this.$router.push({
// path: '/todoList?title=待办任务'
// })
// } else if (this.todoListTitle.includes('我发起')) {
// this.$router.push({
// path: '/todoList?title=我发起的任务'
// })
// }
}
})
})
.catch((e) => {
this.$refs.taskBtnRef.comLoading = false
})
console.log('obj', obj)
// completeTask(obj)
// .then((res) => {
// Notify({
// type: 'success',
// message: res.message,
// onOpened: () => {
// // sessionStorage.setItem('finishWork', true)
// this.$refs.taskBtnRef.comLoading = false
// this.$router.go(-1)
// // if (this.todoListTitle.includes('待办')) {
// // this.$router.push({
// // path: '/todoList?title=待办任务'
// // })
// // } else if (this.todoListTitle.includes('我发起')) {
// // this.$router.push({
// // path: '/todoList?title=我发起的任务'
// // })
// // }
// }
// })
// })
// .catch((e) => {
// this.$refs.taskBtnRef.comLoading = false
// })
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment