|
|
@ -50,7 +50,7 @@ |
|
|
|
getDetailAndApproveOption, |
|
|
|
getDetailAndApprovePassAndApproveNoOption, |
|
|
|
getDetailAndHandleOption, |
|
|
|
getDetailAndCloseOption, |
|
|
|
getDetailAndAddAndCloseOption, |
|
|
|
getAddAgainOption |
|
|
|
} from '@/common/array.js'; |
|
|
|
|
|
|
@ -69,19 +69,19 @@ |
|
|
|
requestList: [], |
|
|
|
pageNo: 1, |
|
|
|
pageSize: 10, |
|
|
|
status: "", |
|
|
|
status: "1,2,3,4,5,6", |
|
|
|
totalCount: 0, |
|
|
|
checkedWaitTask: false, |
|
|
|
detailOptions: [], |
|
|
|
detailAndApproveOptions: [], |
|
|
|
detailAndApprovePassAndApproveNoOption: [], |
|
|
|
detailAndHandleOption: [], |
|
|
|
detailAndCloseOption: [], |
|
|
|
addAgainOption:[], |
|
|
|
detailAndAddAndCloseOption: [], |
|
|
|
addAgainOption: [], |
|
|
|
showOptions: [], |
|
|
|
loadingType: "nomore", |
|
|
|
title:"", |
|
|
|
fromType:"" |
|
|
|
title: "", |
|
|
|
fromType: "" |
|
|
|
|
|
|
|
}; |
|
|
|
}, |
|
|
@ -109,8 +109,8 @@ |
|
|
|
this.addAgainOption = getAddAgainOption(); |
|
|
|
this.detailAndApproveOptions = getDetailAndApproveOption() |
|
|
|
this.detailAndApprovePassAndApproveNoOption = getDetailAndApprovePassAndApproveNoOption(), |
|
|
|
this.detailAndHandleOption = getDetailAndHandleOption() |
|
|
|
this.detailAndCloseOption = getDetailAndCloseOption() |
|
|
|
this.detailAndHandleOption = getDetailAndHandleOption() |
|
|
|
this.detailAndAddAndCloseOption = getDetailAndAddAndCloseOption() |
|
|
|
this.updateTitle(); |
|
|
|
this.getList('refresh'); |
|
|
|
|
|
|
@ -120,15 +120,15 @@ |
|
|
|
updateTitle() { |
|
|
|
if (this.businessType == 'ReturnToStore') { |
|
|
|
this.title = "生产合格退料申请" |
|
|
|
this.fromType ="ReturnToStore" |
|
|
|
this.fromType = "ReturnToStore" |
|
|
|
} else if (this.businessType == 'ReturnToHold') { |
|
|
|
this.title = "生产隔离退料申请" |
|
|
|
this.fromType ="ReturnToHold" |
|
|
|
this.fromType = "ReturnToHold" |
|
|
|
} |
|
|
|
updateTitle(this.title) |
|
|
|
}, |
|
|
|
|
|
|
|
onShow(){ |
|
|
|
onShow() { |
|
|
|
this.getList('refresh'); |
|
|
|
}, |
|
|
|
onReachBottom() { |
|
|
@ -163,13 +163,11 @@ |
|
|
|
this.requestList = []; |
|
|
|
} |
|
|
|
var filters = [] |
|
|
|
if (this.checkedWaitTask) { |
|
|
|
filters.push({ |
|
|
|
column: "status", |
|
|
|
action: "==", |
|
|
|
value: this.status |
|
|
|
}) |
|
|
|
} |
|
|
|
filters.push({ |
|
|
|
column: "status", |
|
|
|
action: "in", |
|
|
|
value: this.status |
|
|
|
}) |
|
|
|
filters.push({ |
|
|
|
column: "business_type", |
|
|
|
action: "==", |
|
|
@ -201,7 +199,7 @@ |
|
|
|
this.requestList = type === "refresh" ? list : this.requestList.concat(list); |
|
|
|
|
|
|
|
this.pageNo++; |
|
|
|
updateTitle(this.title+"("+this.totalCount + ")") |
|
|
|
updateTitle(this.title + "(" + this.totalCount + ")") |
|
|
|
|
|
|
|
}).catch(error => { |
|
|
|
if (type === "refresh") { |
|
|
@ -223,10 +221,10 @@ |
|
|
|
} else if (status == "3") { |
|
|
|
this.showOptions = this.detailAndHandleOption; |
|
|
|
} else if (status == "4") { |
|
|
|
this.showOptions = this.detailAndCloseOption; |
|
|
|
} else if(status == "5"){ |
|
|
|
this.showOptions = this.detailAndAddAndCloseOption; |
|
|
|
} else if (status == "5") { |
|
|
|
this.showOptions = this.addAgainOption; |
|
|
|
}else { |
|
|
|
} else { |
|
|
|
this.showOptions = this.detailOptions; |
|
|
|
} |
|
|
|
return this.showOptions |
|
|
@ -237,7 +235,7 @@ |
|
|
|
url: "./returnRequestCreate?fromType=" + this.fromType |
|
|
|
}) |
|
|
|
}, |
|
|
|
openFilter(){ |
|
|
|
openFilter() { |
|
|
|
this.$refs.filter.openFilter(); |
|
|
|
}, |
|
|
|
|
|
|
@ -246,33 +244,33 @@ |
|
|
|
if (e.content.text == "详情") { |
|
|
|
this.openRequestInfoPopup(dataContent); |
|
|
|
} else if (e.content.text == "处理") { |
|
|
|
this.showQuestionMessage("确定要处理当前申请吗?",res=>{ |
|
|
|
this.showQuestionMessage("确定要处理当前申请吗?", res => { |
|
|
|
this.productionReturnRequestHandle(dataContent.id) |
|
|
|
}) |
|
|
|
} else if (e.content.text == "审批") { |
|
|
|
this.showQuestionMessage("确定要审批当前申请吗?",res=>{ |
|
|
|
this.showQuestionMessage("确定要审批当前申请吗?", res => { |
|
|
|
this.productionReturnRequestSubmitApprove(dataContent.id) |
|
|
|
}) |
|
|
|
} else if (e.content.text == "审批通过") { |
|
|
|
this.showQuestionMessage("确定要审批通过当前申请吗?",res=>{ |
|
|
|
this.showQuestionMessage("确定要审批通过当前申请吗?", res => { |
|
|
|
this.productionReturnRequestSubmitApproveAgree(dataContent.id) |
|
|
|
}) |
|
|
|
} else if (e.content.text == "审批驳回") { |
|
|
|
this.showQuestionMessage("确定要审批驳回当前申请吗?",res=>{ |
|
|
|
this.showQuestionMessage("确定要审批驳回当前申请吗?", res => { |
|
|
|
this.productionReturnRequestSubmitApproveRefused(dataContent.id) |
|
|
|
}) |
|
|
|
} else if (e.content.text == "关闭") { |
|
|
|
this.showQuestionMessage("确定要关闭当前申请吗?",res=>{ |
|
|
|
this.showQuestionMessage("确定要关闭当前申请吗?", res => { |
|
|
|
this.productionReturnRequestClose(dataContent.id) |
|
|
|
}) |
|
|
|
}else if(text == "重新添加"){ |
|
|
|
this.showQuestionMessage("确定要重新添加当前申请吗?",res=>{ |
|
|
|
} else if (text == "重新添加") { |
|
|
|
this.showQuestionMessage("确定要重新添加当前申请吗?", res => { |
|
|
|
this.productionReturnRequestAddAgain(dataContent.id) |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
showQuestionMessage(hint,callBack){ |
|
|
|
showQuestionMessage(hint, callBack) { |
|
|
|
this.$refs.comMessage.showQuestionMessage(hint, |
|
|
|
res => { |
|
|
|
if (res) { |
|
|
|