diff --git a/common/array.js b/common/array.js index 878a0de8..e87d780f 100644 --- a/common/array.js +++ b/common/array.js @@ -73,14 +73,20 @@ export function getDetailAndHandleOption() { ]; return option_detail; } -//详情、关闭 -export function getDetailAndCloseOption() { +//详情、重新添加、关闭 +export function getDetailAndAddAndCloseOption() { let option_detail = [{ text: '详情', style: { backgroundColor: '#3C9CFF' } }, + { + text: '重新\n添加', + style: { + backgroundColor: '#E6A23C' + } + }, { text: '关闭', style: { @@ -91,7 +97,7 @@ export function getDetailAndCloseOption() { return option_detail; } // 采购退货返回侧滑按钮 详情 、编辑、库位、移除 -export function getPurchaseReceiptOption(allowModifyQty,allowModifyLocation) { +export function getPurchaseReceiptOption(allowModifyQty, allowModifyLocation) { var option = [] option.push(...getDetailOption()) if (allowModifyQty == "TRUE") { @@ -145,6 +151,11 @@ export function getRemoveOption() { export function getAddAgainOption() { let option_detail_remove = [{ + text: '详情', + style: { + backgroundColor: '#3C9CFF' + } + }, { text: '重新\n添加', style: { backgroundColor: '#E6A23C' diff --git a/common/style/new_style.css b/common/style/new_style.css index 3c571912..7ca409f8 100644 --- a/common/style/new_style.css +++ b/common/style/new_style.css @@ -2642,8 +2642,8 @@ button[disabled] { */ .request_status_new { font-size: 28rpx; - background: rgba(95, 203, 148, 0.2); - color: #22AF68; + background: #CFF0BE; + color: #000000; padding: 10rpx 20rpx 10rpx 20rpx; border-radius: 10rpx; } @@ -2653,8 +2653,8 @@ button[disabled] { */ .request_status_reviewing { font-size: 28rpx; - background: rgba(95, 203, 148, 0.2); - color: #22AF68; + background: #ECEE1F; + color: #000000; padding: 10rpx 20rpx 10rpx 20rpx; border-radius: 10rpx; } @@ -2664,8 +2664,8 @@ button[disabled] { */ .request_status_agreed { font-size: 28rpx; - background: rgba(95, 203, 148, 0.2); - color: #22AF68; + background:#82E26E; + color: #000000; padding: 10rpx 20rpx 10rpx 20rpx; border-radius: 10rpx; } @@ -2675,8 +2675,8 @@ button[disabled] { */ .request_status_refused { font-size: 28rpx; - background: rgba(95, 203, 148, 0.2); - color: #22AF68; + background: #F33140; + color: #000000; padding: 10rpx 20rpx 10rpx 20rpx; border-radius: 10rpx; } @@ -2686,8 +2686,8 @@ button[disabled] { */ .request_status_handling { font-size: 28rpx; - background: rgba(95, 203, 148, 0.2); - color: #22AF68; + background: #3C9CFF; + color: #000000; padding: 10rpx 20rpx 10rpx 20rpx; border-radius: 10rpx; } @@ -2697,8 +2697,8 @@ button[disabled] { */ .request_status_partial { font-size: 28rpx; - background: rgba(95, 203, 148, 0.2); - color: #22AF68; + background: #D3FF3C; + color: #000000; padding: 10rpx 20rpx 10rpx 20rpx; border-radius: 10rpx; } @@ -2708,8 +2708,8 @@ button[disabled] { */ .request_status_completed { font-size: 28rpx; - background: rgba(95, 203, 148, 0.2); - color: #22AF68; + background: #D3FF3C; + color: #000000; padding: 10rpx 20rpx 10rpx 20rpx; border-radius: 10rpx; } @@ -2719,8 +2719,8 @@ button[disabled] { */ .request_status_abort { font-size: 28rpx; - background: rgba(95, 203, 148, 0.2); - color: #22AF68; + background: #F33140; + color: #000000; padding: 10rpx 20rpx 10rpx 20rpx; border-radius: 10rpx; } @@ -2730,8 +2730,8 @@ button[disabled] { */ .request_status_cancelled { font-size: 28rpx; - background: rgba(95, 203, 148, 0.2); - color: #22AF68; + background: #F33140; + color: #000000; padding: 10rpx 20rpx 10rpx 20rpx; border-radius: 10rpx; } diff --git a/mycomponents/request/requestFilter.vue b/mycomponents/request/requestFilter.vue index 9e2c35ce..cfdd185a 100644 --- a/mycomponents/request/requestFilter.vue +++ b/mycomponents/request/requestFilter.vue @@ -96,7 +96,7 @@ this.$refs.popup.close() }, switchChangeWait(isOn) { - let status = ""; + let status = "1,2,3,4,5,6"; if (isOn) { status = "6"; } diff --git a/pages/customerReturn/request/customerReturnRequest.vue b/pages/customerReturn/request/customerReturnRequest.vue index 05dbe91b..c85d91e1 100644 --- a/pages/customerReturn/request/customerReturnRequest.vue +++ b/pages/customerReturn/request/customerReturnRequest.vue @@ -49,7 +49,7 @@ getDetailAndApproveOption, getDetailAndApprovePassAndApproveNoOption, getDetailAndHandleOption, - getDetailAndCloseOption, + getDetailAndAddAndCloseOption, getAddAgainOption } from '@/common/array.js'; @@ -67,15 +67,15 @@ 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: [], fromType: "requestType", loadingType: "nomore", @@ -88,7 +88,7 @@ this.detailAndApproveOptions = getDetailAndApproveOption() this.detailAndApprovePassAndApproveNoOption = getDetailAndApprovePassAndApproveNoOption(), this.detailAndHandleOption = getDetailAndHandleOption() - this.detailAndCloseOption = getDetailAndCloseOption() + this.detailAndAddAndCloseOption = getDetailAndAddAndCloseOption() }, onReachBottom() { @@ -142,13 +142,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 + }) var params = { filters: filters, pageNo: this.pageNo, @@ -194,10 +192,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 @@ -215,32 +213,32 @@ if (text == "详情") { this.openRequestInfoPopup(dataContent); } else if (text == "处理") { - this.showQuestionMessage("确定要处理当前申请吗?",res=>{ + this.showQuestionMessage("确定要处理当前申请吗?", res => { this.customerReturnRequestHandle(dataContent.id) }) } else if (text == "提交审批") { - this.showQuestionMessage("确定要审批当前申请吗?",res=>{ + this.showQuestionMessage("确定要审批当前申请吗?", res => { this.customerReturnRequestApprove(dataContent.id) }) - } else if (text=="审批通过") { - this.showQuestionMessage("确定要审批通过当前申请吗?",res=>{ + } else if (text == "审批通过") { + this.showQuestionMessage("确定要审批通过当前申请吗?", res => { this.customerReturnRequestApproveAgree(dataContent.id) }) } else if (text == "审批驳回") { - this.showQuestionMessage("确定要审批驳回当前申请吗?",res=>{ + this.showQuestionMessage("确定要审批驳回当前申请吗?", res => { this.customerReturnRequestApproveRefused(dataContent.id) }) } else if (text == "关闭") { - this.showQuestionMessage("确定要关闭当前申请吗?",res=>{ + this.showQuestionMessage("确定要关闭当前申请吗?", res => { this.customerReturnRequestClose(dataContent.id) }) - }else if(text == "重新添加"){ - this.showQuestionMessage("确定要重新添加当前申请吗?",res=>{ + } else if (text == "重新添加") { + this.showQuestionMessage("确定要重新添加当前申请吗?", res => { this.customerReturnRequestAddAgain(dataContent.id) }) } }, - showQuestionMessage(hint,callBack){ + showQuestionMessage(hint, callBack) { this.$refs.comMessage.showQuestionMessage(hint, res => { if (res) { @@ -307,13 +305,13 @@ } else { this.showMessage("申请提交审批失败") } - + }).catch(error => { this.showMessage(error) }) - + }, - + customerReturnRequestClose(id) { customerReturnRequestClose(id).then(res => { if (res.data) { @@ -324,7 +322,7 @@ } else { this.showMessage("申请关闭失败") } - + }).catch(error => { this.showMessage(error) }) @@ -339,7 +337,7 @@ } else { this.showMessage("申请重新添加失败") } - + }).catch(error => { this.showMessage(error) }) @@ -354,7 +352,7 @@ } else { this.showMessage("申请审批通过失败") } - + }).catch(error => { this.showMessage(error) }) @@ -369,7 +367,7 @@ } else { this.showMessage("申请审批驳回失败") } - + }).catch(error => { this.showMessage(error) }) @@ -384,7 +382,7 @@ } else { this.showMessage("申请处理失败") } - + }).catch(error => { this.showMessage(error) }) diff --git a/pages/customerReturn/request/customerReturnRequestDetail.vue b/pages/customerReturn/request/customerReturnRequestDetail.vue index a35568cd..8698d28b 100644 --- a/pages/customerReturn/request/customerReturnRequestDetail.vue +++ b/pages/customerReturn/request/customerReturnRequestDetail.vue @@ -1,6 +1,14 @@