|
|
@ -181,40 +181,48 @@ export default { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '只能选择一条记录进行编辑' }) |
|
|
|
return |
|
|
|
} |
|
|
|
this.viewState = 3 |
|
|
|
const row = this.multipleSelection[0] |
|
|
|
this.$refs['divadd'].showEdit(row) |
|
|
|
this.multipleSelection.forEach(row => { |
|
|
|
if(row.nodeState == '' || (row.nodeState!=''&&row.nodeState=='外采申请')){ |
|
|
|
this.viewState = 3 |
|
|
|
const row = this.multipleSelection[0] |
|
|
|
this.$refs['divadd'].showEdit(row) |
|
|
|
}else{ |
|
|
|
alert('已经发起的审批业务数据不能进行编辑。'); |
|
|
|
return false; |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
edit(row) { |
|
|
|
this.viewState = 3 |
|
|
|
this.$refs['divadd'].showEdit(row) |
|
|
|
}, |
|
|
|
doSubmit() { |
|
|
|
/* if (this.multipleSelection.length === 0) { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行编辑' }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.multipleSelection.length > 1) { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '只能选择一条记录进行编辑' }) |
|
|
|
return |
|
|
|
} |
|
|
|
const row = this.multipleSelection[0] |
|
|
|
const sids = [] |
|
|
|
this.multipleSelection.forEach(row => { |
|
|
|
if(row.nodeState==''||(row.nodeState!=''&&row.nodeState=='外采申请')){ |
|
|
|
sids.push(row.sid) |
|
|
|
}else{ |
|
|
|
alert('已经发起的审批业务数据不能进行删除。'); |
|
|
|
sids = []; |
|
|
|
} |
|
|
|
}) |
|
|
|
req |
|
|
|
.doSubmitBySid(row.sid,this.queryParams.params.userSid) |
|
|
|
.then( resp => { |
|
|
|
if(resp.success){ |
|
|
|
alert(123); |
|
|
|
} |
|
|
|
}); |
|
|
|
// 提交的代码 |
|
|
|
/* this.submitdisabled = true |
|
|
|
this.formobj.userSid = window.sessionStorage.getItem('userSid'); |
|
|
|
this.formobj.orgSid = this.$store.getters.orgSid; |
|
|
|
req |
|
|
|
.doSubmit(this.formobj) |
|
|
|
.then(resp => { |
|
|
|
this.submitdisabled = false |
|
|
|
if (resp.success) { |
|
|
|
// 加提交后的逻辑 |
|
|
|
} else { |
|
|
|
// 根据resp.code进行异常情况处理 |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.submitdisabled = false |
|
|
|
})*/ |
|
|
|
});*/ |
|
|
|
}, |
|
|
|
doDel(row) { |
|
|
|
|
|
|
|