|
|
@ -120,7 +120,7 @@ |
|
|
|
methods: { |
|
|
|
openRequestDetail(item) { |
|
|
|
uni.navigateTo({ |
|
|
|
url: './returnRequestDetail?id=' + item.id + '&fromType=' + this.fromType |
|
|
|
url: './returnRequestDetail?id=' + item.masterId + '&fromType=' + this.fromType |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
@ -211,27 +211,27 @@ |
|
|
|
this.openRequestInfoPopup(dataContent); |
|
|
|
} else if (text == "处理") { |
|
|
|
this.showQuestionMessage("确定要处理当前申请吗?", res => { |
|
|
|
this.purchaseReturnRequestHandle(dataContent.id) |
|
|
|
this.purchaseReturnRequestHandle(dataContent.masterId) |
|
|
|
}) |
|
|
|
} else if (text == "提交审批") { |
|
|
|
this.showQuestionMessage("确定要审批当前申请吗?", res => { |
|
|
|
this.purchaseReturnRequestApprove(dataContent.id) |
|
|
|
this.purchaseReturnRequestApprove(dataContent.masterId) |
|
|
|
}) |
|
|
|
} else if (text == "审批通过") { |
|
|
|
this.showQuestionMessage("确定要审批通过当前申请吗?", res => { |
|
|
|
this.purchaseReturnRequestApproveAgree(dataContent.id) |
|
|
|
this.purchaseReturnRequestApproveAgree(dataContent.masterId) |
|
|
|
}) |
|
|
|
} else if (text == "审批驳回") { |
|
|
|
this.showQuestionMessage("确定要审批驳回当前申请吗?", res => { |
|
|
|
this.purchaseReturnRequestApproveRefused(dataContent.id) |
|
|
|
this.purchaseReturnRequestApproveRefused(dataContent.masterId) |
|
|
|
}) |
|
|
|
} else if (text == "关闭") { |
|
|
|
this.showQuestionMessage("确定要关闭当前申请吗?", res => { |
|
|
|
this.purchaseReturnRequestClose(dataContent.id) |
|
|
|
this.purchaseReturnRequestClose(dataContent.masterId) |
|
|
|
}) |
|
|
|
} else if (text == "重新添加") { |
|
|
|
this.showQuestionMessage("确定要重新添加当前申请吗?", res => { |
|
|
|
this.purchaseReturnRequestAddAgain(dataContent.id) |
|
|
|
this.purchaseReturnRequestAddAgain(dataContent.masterId) |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|