修改流程

This commit is contained in:
zyx.net
2022-11-21 10:09:06 +08:00
parent 6201627284
commit 4900de7629
3 changed files with 24 additions and 3 deletions
@@ -97,6 +97,15 @@
v-if="showOver3"
>驳回</el-button>
</el-popover>
<el-button
type="primary"
size="small"
class="common-button-primary"
icon="el-icon-check"
@click="handleReceive"
:loading="submitLoading"
v-if="showReceive"
>接收任务</el-button>
<el-button
type="danger"
size="small"
@@ -215,6 +224,10 @@ export default {
type: Boolean,
default: false
},
showReceive: {
type: Boolean,
default: false
},
visible: {
type: Boolean,
default: false
@@ -383,6 +396,9 @@ export default {
handleSubmit() {
this.$emit('submit')
},
handleReceive() {
this.$emit('receive')
},
handleAccept() {
this.$emit('accept')
},
@@ -695,11 +695,11 @@
v-show="verifySarStandard && !disabledXX"
show-save
show-submit
show-confirm
show-receive
:submitLoading="isSubmit"
:saveLoading="saveLoading"
@save="handleSave"
@accept="handleAccept"
@receive="handleReceive"
@submit="handleSubmit"
>
</ProcessFooter>
@@ -1421,6 +1421,7 @@ export default {
zrIndex: '',
zrIdList: [],
type: '',
taskType:'',
defaultUserProps: {
children: 'children',
label: 'name'
@@ -3059,7 +3060,7 @@ export default {
return arr;
},
// 接受按钮
handleAccept(){
handleReceive(){
this.isSubmit = true
execTask({
todoId: this.todoId // 当前节点ID
@@ -3097,6 +3098,7 @@ export default {
json.zrUserId = this.form.zrUserId
json.jlUserId = this.form.jlUserId
json.commentText = this.commentText
json.type = this.taskType
json.applyUpdUserId = this.form.applyUpdUserId
json.prcCreateUser = this.form.prcCreateUser
json.prcCreateUserName = this.form.prcCreateUserName
@@ -3214,6 +3216,7 @@ export default {
const processForm = JSON.parse(res.mesg)
this.todoId = res.id
this.form.reviseStatus = processForm.reviseStatus
this.taskType = processForm.type
}
}).catch(e => {
})
@@ -1220,7 +1220,9 @@
tips = '添加'
}
let arr = JSON.parse(JSON.stringify(this.addForm))
this.addForm.unitName = arr.unitName
arr.area = arr.area.join(',')
this.addForm = {...this.addForm}
this.$http.post(url, this.addForm, {
_this: this
}, res => {