Browse Source

修改申请

wms3.0_pda
lijuncheng 11 months ago
parent
commit
5336a12946
  1. 17
      common/array.js
  2. 36
      common/style/new_style.css
  3. 2
      mycomponents/request/requestFilter.vue
  4. 46
      pages/customerReturn/request/customerReturnRequest.vue
  5. 12
      pages/customerReturn/request/customerReturnRequestDetail.vue
  6. 14
      pages/deliver/request/deliverRequest.vue
  7. 15
      pages/deliver/request/deliverRequestDetail.vue
  8. 14
      pages/inspect/request/inspectRequest.vue
  9. 3
      pages/issue/coms/comIssueRequestDetailCard.vue
  10. 14
      pages/issue/request/issueRequest.vue
  11. 23
      pages/issue/request/issueRequestDetail.vue
  12. 48
      pages/productPutaway/request/putawayRequest.vue
  13. 12
      pages/productPutaway/request/putawayRequestDetail.vue
  14. 60
      pages/productionReturn/coms/comReturnCommonRequest.vue
  15. 2
      pages/productionReturn/coms/comReturnRequestInfo.vue
  16. 18
      pages/productionReturn/request/requestDetail.vue
  17. 48
      pages/purchaseReturn/request/returnRequest.vue
  18. 40
      pages/purchaseReturn/request/returnRequestDetail.vue
  19. 48
      pages/putaway/request/putawayRequest.vue
  20. 11
      pages/putaway/request/putawayRequestDetail.vue
  21. 8
      pages/repleinsh/request/repleinshRequest.vue
  22. 1
      pages/scrap/request/scrapRequestCreate.vue
  23. 12
      pages/scrap/request/scrapRequestDetail.vue
  24. 46
      pages/scrap/request/scrapRrequest.vue
  25. 46
      pages/unPlanned/request/issueRequest.vue
  26. 12
      pages/unPlanned/request/issueRequestDetail.vue
  27. 46
      pages/unPlanned/request/receiptRequest.vue
  28. 38
      pages/unPlanned/request/receiptRequestDetail.vue

17
common/array.js

@ -73,14 +73,20 @@ export function getDetailAndHandleOption() {
]; ];
return option_detail; return option_detail;
} }
//详情、关闭 //详情、重新添加、关闭
export function getDetailAndCloseOption() { export function getDetailAndAddAndCloseOption() {
let option_detail = [{ let option_detail = [{
text: '详情', text: '详情',
style: { style: {
backgroundColor: '#3C9CFF' backgroundColor: '#3C9CFF'
} }
}, },
{
text: '重新\n添加',
style: {
backgroundColor: '#E6A23C'
}
},
{ {
text: '关闭', text: '关闭',
style: { style: {
@ -91,7 +97,7 @@ export function getDetailAndCloseOption() {
return option_detail; return option_detail;
} }
// 采购退货返回侧滑按钮 详情 、编辑、库位、移除 // 采购退货返回侧滑按钮 详情 、编辑、库位、移除
export function getPurchaseReceiptOption(allowModifyQty,allowModifyLocation) { export function getPurchaseReceiptOption(allowModifyQty, allowModifyLocation) {
var option = [] var option = []
option.push(...getDetailOption()) option.push(...getDetailOption())
if (allowModifyQty == "TRUE") { if (allowModifyQty == "TRUE") {
@ -145,6 +151,11 @@ export function getRemoveOption() {
export function getAddAgainOption() { export function getAddAgainOption() {
let option_detail_remove = [{ let option_detail_remove = [{
text: '详情',
style: {
backgroundColor: '#3C9CFF'
}
}, {
text: '重新\n添加', text: '重新\n添加',
style: { style: {
backgroundColor: '#E6A23C' backgroundColor: '#E6A23C'

36
common/style/new_style.css

@ -2642,8 +2642,8 @@ button[disabled] {
*/ */
.request_status_new { .request_status_new {
font-size: 28rpx; font-size: 28rpx;
background: rgba(95, 203, 148, 0.2); background: #CFF0BE;
color: #22AF68; color: #000000;
padding: 10rpx 20rpx 10rpx 20rpx; padding: 10rpx 20rpx 10rpx 20rpx;
border-radius: 10rpx; border-radius: 10rpx;
} }
@ -2653,8 +2653,8 @@ button[disabled] {
*/ */
.request_status_reviewing { .request_status_reviewing {
font-size: 28rpx; font-size: 28rpx;
background: rgba(95, 203, 148, 0.2); background: #ECEE1F;
color: #22AF68; color: #000000;
padding: 10rpx 20rpx 10rpx 20rpx; padding: 10rpx 20rpx 10rpx 20rpx;
border-radius: 10rpx; border-radius: 10rpx;
} }
@ -2664,8 +2664,8 @@ button[disabled] {
*/ */
.request_status_agreed { .request_status_agreed {
font-size: 28rpx; font-size: 28rpx;
background: rgba(95, 203, 148, 0.2); background:#82E26E;
color: #22AF68; color: #000000;
padding: 10rpx 20rpx 10rpx 20rpx; padding: 10rpx 20rpx 10rpx 20rpx;
border-radius: 10rpx; border-radius: 10rpx;
} }
@ -2675,8 +2675,8 @@ button[disabled] {
*/ */
.request_status_refused { .request_status_refused {
font-size: 28rpx; font-size: 28rpx;
background: rgba(95, 203, 148, 0.2); background: #F33140;
color: #22AF68; color: #000000;
padding: 10rpx 20rpx 10rpx 20rpx; padding: 10rpx 20rpx 10rpx 20rpx;
border-radius: 10rpx; border-radius: 10rpx;
} }
@ -2686,8 +2686,8 @@ button[disabled] {
*/ */
.request_status_handling { .request_status_handling {
font-size: 28rpx; font-size: 28rpx;
background: rgba(95, 203, 148, 0.2); background: #3C9CFF;
color: #22AF68; color: #000000;
padding: 10rpx 20rpx 10rpx 20rpx; padding: 10rpx 20rpx 10rpx 20rpx;
border-radius: 10rpx; border-radius: 10rpx;
} }
@ -2697,8 +2697,8 @@ button[disabled] {
*/ */
.request_status_partial { .request_status_partial {
font-size: 28rpx; font-size: 28rpx;
background: rgba(95, 203, 148, 0.2); background: #D3FF3C;
color: #22AF68; color: #000000;
padding: 10rpx 20rpx 10rpx 20rpx; padding: 10rpx 20rpx 10rpx 20rpx;
border-radius: 10rpx; border-radius: 10rpx;
} }
@ -2708,8 +2708,8 @@ button[disabled] {
*/ */
.request_status_completed { .request_status_completed {
font-size: 28rpx; font-size: 28rpx;
background: rgba(95, 203, 148, 0.2); background: #D3FF3C;
color: #22AF68; color: #000000;
padding: 10rpx 20rpx 10rpx 20rpx; padding: 10rpx 20rpx 10rpx 20rpx;
border-radius: 10rpx; border-radius: 10rpx;
} }
@ -2719,8 +2719,8 @@ button[disabled] {
*/ */
.request_status_abort { .request_status_abort {
font-size: 28rpx; font-size: 28rpx;
background: rgba(95, 203, 148, 0.2); background: #F33140;
color: #22AF68; color: #000000;
padding: 10rpx 20rpx 10rpx 20rpx; padding: 10rpx 20rpx 10rpx 20rpx;
border-radius: 10rpx; border-radius: 10rpx;
} }
@ -2730,8 +2730,8 @@ button[disabled] {
*/ */
.request_status_cancelled { .request_status_cancelled {
font-size: 28rpx; font-size: 28rpx;
background: rgba(95, 203, 148, 0.2); background: #F33140;
color: #22AF68; color: #000000;
padding: 10rpx 20rpx 10rpx 20rpx; padding: 10rpx 20rpx 10rpx 20rpx;
border-radius: 10rpx; border-radius: 10rpx;
} }

2
mycomponents/request/requestFilter.vue

@ -96,7 +96,7 @@
this.$refs.popup.close() this.$refs.popup.close()
}, },
switchChangeWait(isOn) { switchChangeWait(isOn) {
let status = ""; let status = "1,2,3,4,5,6";
if (isOn) { if (isOn) {
status = "6"; status = "6";
} }

46
pages/customerReturn/request/customerReturnRequest.vue

@ -49,7 +49,7 @@
getDetailAndApproveOption, getDetailAndApproveOption,
getDetailAndApprovePassAndApproveNoOption, getDetailAndApprovePassAndApproveNoOption,
getDetailAndHandleOption, getDetailAndHandleOption,
getDetailAndCloseOption, getDetailAndAddAndCloseOption,
getAddAgainOption getAddAgainOption
} from '@/common/array.js'; } from '@/common/array.js';
@ -67,15 +67,15 @@
requestList: [], requestList: [],
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
status: "", status: "1,2,3,4,5,6",
totalCount: 0, totalCount: 0,
checkedWaitTask: false, checkedWaitTask: false,
detailOptions: [], detailOptions: [],
detailAndApproveOptions: [], detailAndApproveOptions: [],
detailAndApprovePassAndApproveNoOption: [], detailAndApprovePassAndApproveNoOption: [],
detailAndHandleOption: [], detailAndHandleOption: [],
detailAndCloseOption: [], detailAndAddAndCloseOption: [],
addAgainOption:[], addAgainOption: [],
showOptions: [], showOptions: [],
fromType: "requestType", fromType: "requestType",
loadingType: "nomore", loadingType: "nomore",
@ -88,7 +88,7 @@
this.detailAndApproveOptions = getDetailAndApproveOption() this.detailAndApproveOptions = getDetailAndApproveOption()
this.detailAndApprovePassAndApproveNoOption = getDetailAndApprovePassAndApproveNoOption(), this.detailAndApprovePassAndApproveNoOption = getDetailAndApprovePassAndApproveNoOption(),
this.detailAndHandleOption = getDetailAndHandleOption() this.detailAndHandleOption = getDetailAndHandleOption()
this.detailAndCloseOption = getDetailAndCloseOption() this.detailAndAddAndCloseOption = getDetailAndAddAndCloseOption()
}, },
onReachBottom() { onReachBottom() {
@ -142,13 +142,11 @@
this.requestList = []; this.requestList = [];
} }
var filters = [] var filters = []
if (this.checkedWaitTask) { filters.push({
filters.push({ column: "status",
column: "status", action: "in",
action: "==", value: this.status
value: this.status })
})
}
var params = { var params = {
filters: filters, filters: filters,
pageNo: this.pageNo, pageNo: this.pageNo,
@ -194,10 +192,10 @@
} else if (status == "3") { } else if (status == "3") {
this.showOptions = this.detailAndHandleOption; this.showOptions = this.detailAndHandleOption;
} else if (status == "4") { } else if (status == "4") {
this.showOptions = this.detailAndCloseOption; this.showOptions = this.detailAndAddAndCloseOption;
} else if(status == "5"){ } else if (status == "5") {
this.showOptions = this.addAgainOption; this.showOptions = this.addAgainOption;
}else { } else {
this.showOptions = this.detailOptions; this.showOptions = this.detailOptions;
} }
return this.showOptions return this.showOptions
@ -215,32 +213,32 @@
if (text == "详情") { if (text == "详情") {
this.openRequestInfoPopup(dataContent); this.openRequestInfoPopup(dataContent);
} else if (text == "处理") { } else if (text == "处理") {
this.showQuestionMessage("确定要处理当前申请吗?",res=>{ this.showQuestionMessage("确定要处理当前申请吗?", res => {
this.customerReturnRequestHandle(dataContent.id) this.customerReturnRequestHandle(dataContent.id)
}) })
} else if (text == "提交审批") { } else if (text == "提交审批") {
this.showQuestionMessage("确定要审批当前申请吗?",res=>{ this.showQuestionMessage("确定要审批当前申请吗?", res => {
this.customerReturnRequestApprove(dataContent.id) this.customerReturnRequestApprove(dataContent.id)
}) })
} else if (text=="审批通过") { } else if (text == "审批通过") {
this.showQuestionMessage("确定要审批通过当前申请吗?",res=>{ this.showQuestionMessage("确定要审批通过当前申请吗?", res => {
this.customerReturnRequestApproveAgree(dataContent.id) this.customerReturnRequestApproveAgree(dataContent.id)
}) })
} else if (text == "审批驳回") { } else if (text == "审批驳回") {
this.showQuestionMessage("确定要审批驳回当前申请吗?",res=>{ this.showQuestionMessage("确定要审批驳回当前申请吗?", res => {
this.customerReturnRequestApproveRefused(dataContent.id) this.customerReturnRequestApproveRefused(dataContent.id)
}) })
} else if (text == "关闭") { } else if (text == "关闭") {
this.showQuestionMessage("确定要关闭当前申请吗?",res=>{ this.showQuestionMessage("确定要关闭当前申请吗?", res => {
this.customerReturnRequestClose(dataContent.id) this.customerReturnRequestClose(dataContent.id)
}) })
}else if(text == "重新添加"){ } else if (text == "重新添加") {
this.showQuestionMessage("确定要重新添加当前申请吗?",res=>{ this.showQuestionMessage("确定要重新添加当前申请吗?", res => {
this.customerReturnRequestAddAgain(dataContent.id) this.customerReturnRequestAddAgain(dataContent.id)
}) })
} }
}, },
showQuestionMessage(hint,callBack){ showQuestionMessage(hint, callBack) {
this.$refs.comMessage.showQuestionMessage(hint, this.$refs.comMessage.showQuestionMessage(hint,
res => { res => {
if (res) { if (res) {

12
pages/customerReturn/request/customerReturnRequestDetail.vue

@ -1,6 +1,14 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<view class="page-header">
<view class="header_job_top">
<request-top :dataContent="requestContent"></request-top>
</view>
<view class="header_item">
客户代码 : {{requestContent.customerCode}}
</view>
<u-line color="#D8D8D8" />
</view>
<view class="page-main"> <view class="page-main">
<scroll-view scroll-y="true" class="page-main-scroll"> <scroll-view scroll-y="true" class="page-main-scroll">
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id"> <view class="detail-list" v-for="(item, index) in detailSource" :key="item.id">
@ -35,12 +43,14 @@
import comRequestDetailCard from "@/mycomponents/detail/comRequestDetailCard.vue" import comRequestDetailCard from "@/mycomponents/detail/comRequestDetailCard.vue"
import requestDetailInfoPopup from '@/pages/customerReturn/coms/requestDetailInfoPopup.vue' import requestDetailInfoPopup from '@/pages/customerReturn/coms/requestDetailInfoPopup.vue'
import comMessage from '@/mycomponents/common/comMessage.vue' import comMessage from '@/mycomponents/common/comMessage.vue'
import requestTop from "@/mycomponents/request/requestTop.vue"
export default { export default {
components: { components: {
comRequestDetailCard, comRequestDetailCard,
requestDetailInfoPopup, requestDetailInfoPopup,
comMessage, comMessage,
requestTop
}, },
data() { data() {
return { return {

14
pages/deliver/request/deliverRequest.vue

@ -47,7 +47,7 @@
getDetailAndApproveOption, getDetailAndApproveOption,
getDetailAndApprovePassAndApproveNoOption, getDetailAndApprovePassAndApproveNoOption,
getDetailAndHandleOption, getDetailAndHandleOption,
getDetailAndCloseOption, getDetailAndAddAndCloseOption,
getAddAgainOption getAddAgainOption
} from '@/common/array.js'; } from '@/common/array.js';
@ -66,14 +66,14 @@
requestList: [], requestList: [],
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
status: "", status: "1,2,3,4,5,6",
totalCount: 0, totalCount: 0,
checkedWaitTask: false, checkedWaitTask: false,
detailOptions: [], detailOptions: [],
detailAndApproveOptions: [], detailAndApproveOptions: [],
detailAndApprovePassAndApproveNoOption: [], detailAndApprovePassAndApproveNoOption: [],
detailAndHandleOption: [], detailAndHandleOption: [],
detailAndCloseOption: [], detailAndAddAndCloseOption: [],
addAgainOption: [], addAgainOption: [],
showOptions: [], showOptions: [],
fromType: "requestType", fromType: "requestType",
@ -87,7 +87,7 @@
this.detailAndApproveOptions = getDetailAndApproveOption() this.detailAndApproveOptions = getDetailAndApproveOption()
this.detailAndApprovePassAndApproveNoOption = getDetailAndApprovePassAndApproveNoOption(), this.detailAndApprovePassAndApproveNoOption = getDetailAndApprovePassAndApproveNoOption(),
this.detailAndHandleOption = getDetailAndHandleOption() this.detailAndHandleOption = getDetailAndHandleOption()
this.detailAndCloseOption = getDetailAndCloseOption() this.detailAndAddAndCloseOption = getDetailAndAddAndCloseOption()
}, },
onReachBottom() { onReachBottom() {
@ -142,13 +142,11 @@
this.requestList = []; this.requestList = [];
} }
var filters = [] var filters = []
if (this.checkedWaitTask) {
filters.push({ filters.push({
column: "status", column: "status",
action: "==", action: "in",
value: this.status value: this.status
}) })
}
var params = { var params = {
filters: filters, filters: filters,
pageNo: this.pageNo, pageNo: this.pageNo,
@ -190,7 +188,7 @@
} else if (status == "3") { } else if (status == "3") {
this.showOptions = this.detailAndHandleOption; this.showOptions = this.detailAndHandleOption;
} else if (status == "4") { } else if (status == "4") {
this.showOptions = this.detailAndCloseOption; this.showOptions = this.detailAndAddAndCloseOption;
} else if(status == "5"){ } else if(status == "5"){
this.showOptions = this.addAgainOption; this.showOptions = this.addAgainOption;
}else { }else {

15
pages/deliver/request/deliverRequestDetail.vue

@ -1,5 +1,14 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<view class="page-header">
<view class="header_job_top">
<request-top :dataContent="requestContent"></request-top>
</view>
<view class="header_item">
客户代码 : {{requestContent.customerCode}}
</view>
<u-line color="#D8D8D8" />
</view>
<view class="page-main"> <view class="page-main">
<scroll-view scroll-y="true" class="page-main-scroll"> <scroll-view scroll-y="true" class="page-main-scroll">
<view class="page-header"> <view class="page-header">
@ -41,13 +50,15 @@
import requestDetailInfoPopup from '@/pages/deliver/coms/requestDetailInfoPopup.vue' import requestDetailInfoPopup from '@/pages/deliver/coms/requestDetailInfoPopup.vue'
import comMessage from '@/mycomponents/common/comMessage.vue' import comMessage from '@/mycomponents/common/comMessage.vue'
import itemQty from '@/mycomponents/item/itemQty.vue' import itemQty from '@/mycomponents/item/itemQty.vue'
import requestTop from "@/mycomponents/request/requestTop.vue"
export default { export default {
components: { components: {
comRequestDetailCard, comRequestDetailCard,
requestDetailInfoPopup, requestDetailInfoPopup,
comMessage, comMessage,
itemQty itemQty,
requestTop
}, },
data() { data() {
return { return {
@ -89,7 +100,7 @@
that.showMessage('未获取到详情'); that.showMessage('未获取到详情');
} else { } else {
that.detailSource = res.data that.detailSource = res.data
that.requestContent = res.data;
// if (res.data.subList.length > 0) { // if (res.data.subList.length > 0) {
// that.requestContent = res.data; // that.requestContent = res.data;
// that.subList = res.data.subList; // that.subList = res.data.subList;

14
pages/inspect/request/inspectRequest.vue

@ -46,7 +46,7 @@
getDetailAndApproveOption, getDetailAndApproveOption,
getDetailAndApprovePassAndApproveNoOption, getDetailAndApprovePassAndApproveNoOption,
getDetailAndHandleOption, getDetailAndHandleOption,
getDetailAndCloseOption, getDetailAndAddAndCloseOption,
getAddAgainOption getAddAgainOption
} from '@/common/array.js'; } from '@/common/array.js';
@ -64,14 +64,14 @@
requestList: [], requestList: [],
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
status: "", status: "1,2,3,4,5,6",
totalCount: 0, totalCount: 0,
checkedWaitTask: false, checkedWaitTask: false,
detailOptions: [], detailOptions: [],
detailAndApproveOptions: [], detailAndApproveOptions: [],
detailAndApprovePassAndApproveNoOption: [], detailAndApprovePassAndApproveNoOption: [],
detailAndHandleOption: [], detailAndHandleOption: [],
detailAndCloseOption: [], detailAndAddAndCloseOption: [],
addAgainOption:[], addAgainOption:[],
showOptions: [], showOptions: [],
fromType: "requestType", fromType: "requestType",
@ -85,7 +85,7 @@
this.detailAndApproveOptions = getDetailAndApproveOption() this.detailAndApproveOptions = getDetailAndApproveOption()
this.detailAndApprovePassAndApproveNoOption = getDetailAndApprovePassAndApproveNoOption(), this.detailAndApprovePassAndApproveNoOption = getDetailAndApprovePassAndApproveNoOption(),
this.detailAndHandleOption = getDetailAndHandleOption() this.detailAndHandleOption = getDetailAndHandleOption()
this.detailAndCloseOption = getDetailAndCloseOption() this.detailAndAddAndCloseOption = getDetailAndAddAndCloseOption()
}, },
onReachBottom() { onReachBottom() {
@ -133,7 +133,7 @@
} else if (status == "3") { } else if (status == "3") {
this.showOptions = this.detailAndHandleOption; this.showOptions = this.detailAndHandleOption;
} else if (status == "4") { } else if (status == "4") {
this.showOptions = this.detailAndCloseOption; this.showOptions = this.detailAndAddAndCloseOption;
} else if(status == "5"){ } else if(status == "5"){
this.showOptions = this.addAgainOption; this.showOptions = this.addAgainOption;
}else { }else {
@ -153,13 +153,11 @@
this.requestList = []; this.requestList = [];
} }
var filters = [] var filters = []
if (this.checkedWaitTask) {
filters.push({ filters.push({
column: "status", column: "status",
action: "==", action: "in",
value: this.status value: this.status
}) })
}
var params = { var params = {
filters: filters, filters: filters,
pageNo: this.pageNo, pageNo: this.pageNo,

3
pages/issue/coms/comIssueRequestDetailCard.vue

@ -3,8 +3,7 @@
<view class="uni-flex uni-column"> <view class="uni-flex uni-column">
<!-- <com-issue-request-info :workShopCode="dataContent.workshopCode" :dataContent="requestItem"> <!-- <com-issue-request-info :workShopCode="dataContent.workshopCode" :dataContent="requestItem">
</com-issue-request-info> --> </com-issue-request-info> -->
<work-station :workshopCode="dataContent.workShopCode" :productionLineCode="requestItem.productionLineCode"
:workStationCode="requestItem.workStationCode" :rawLocationCode="requestItem.toLocationCode"></work-station>
<uni-swipe-action ref="swipeAction"> <uni-swipe-action ref="swipeAction">
<view v-for="(item, index) in dataContent.subList" :key="index"> <view v-for="(item, index) in dataContent.subList" :key="index">

14
pages/issue/request/issueRequest.vue

@ -50,7 +50,7 @@
getDetailAndApproveOption, getDetailAndApproveOption,
getDetailAndApprovePassAndApproveNoOption, getDetailAndApprovePassAndApproveNoOption,
getDetailAndHandleOption, getDetailAndHandleOption,
getDetailAndCloseOption, getDetailAndAddAndCloseOption,
getAddAgainOption getAddAgainOption
} from '@/common/array.js'; } from '@/common/array.js';
@ -69,14 +69,14 @@
requestList: [], requestList: [],
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
status: "", status: "1,2,3,4,5,6",
totalCount: 0, totalCount: 0,
checkedWaitTask: false, checkedWaitTask: false,
detailOptions: [], detailOptions: [],
detailAndApproveOptions: [], detailAndApproveOptions: [],
detailAndApprovePassAndApproveNoOption: [], detailAndApprovePassAndApproveNoOption: [],
detailAndHandleOption: [], detailAndHandleOption: [],
detailAndCloseOption: [], detailAndAddAndCloseOption: [],
addAgainOption:[], addAgainOption:[],
showOptions: [], showOptions: [],
fromType: "requestType", fromType: "requestType",
@ -89,7 +89,7 @@
this.detailAndApproveOptions = getDetailAndApproveOption() this.detailAndApproveOptions = getDetailAndApproveOption()
this.detailAndApprovePassAndApproveNoOption = getDetailAndApprovePassAndApproveNoOption(); this.detailAndApprovePassAndApproveNoOption = getDetailAndApprovePassAndApproveNoOption();
this.detailAndHandleOption = getDetailAndHandleOption() this.detailAndHandleOption = getDetailAndHandleOption()
this.detailAndCloseOption = getDetailAndCloseOption() this.detailAndAddAndCloseOption = getDetailAndAddAndCloseOption()
}, },
onReachBottom() { onReachBottom() {
@ -141,13 +141,11 @@
this.requestList = []; this.requestList = [];
} }
var filters = [] var filters = []
if (this.checkedWaitTask) {
filters.push({ filters.push({
column: "status", column: "status",
action: "==", action: "in",
value: this.status value: this.status
}) })
}
var params = { var params = {
filters: filters, filters: filters,
pageNo: this.pageNo, pageNo: this.pageNo,
@ -192,7 +190,7 @@
} else if (status == "3") { } else if (status == "3") {
this.showOptions = this.detailAndHandleOption; this.showOptions = this.detailAndHandleOption;
} else if (status == "4") { } else if (status == "4") {
this.showOptions = this.detailAndCloseOption; this.showOptions = this.detailAndAddAndCloseOption;
} else if(status == "5"){ } else if(status == "5"){
this.showOptions = this.addAgainOption; this.showOptions = this.addAgainOption;
}else { }else {

23
pages/issue/request/issueRequestDetail.vue

@ -1,5 +1,17 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<view class="page-header">
<view class="header_job_top">
<request-top :dataContent="requestContent"></request-top>
</view>
<view class="header_item">
<work-station :workshopCode="requestContent.workshopCode"
:productionLineCode="titleInfo.productionLineCode" :workStationCode="titleInfo.workStationCode"
:rawLocationCode="titleInfo.toLocationCode"></work-station>
</view>
</view>
<u-line color="#D8D8D8" />
<view class="page-main"> <view class="page-main">
<scroll-view scroll-y="true" class="page-main-scroll"> <scroll-view scroll-y="true" class="page-main-scroll">
<view class="detail-list"> <view class="detail-list">
@ -35,22 +47,25 @@
getDataSource, getDataSource,
} from '@/common/detail.js'; } from '@/common/detail.js';
import comIssueRequestDetailCard from "@/pages/issue/coms/comIssueRequestDetailCard.vue" import comIssueRequestDetailCard from "@/pages/issue/coms/comIssueRequestDetailCard.vue"
import comMessage from '@/mycomponents/common/comMessage.vue' import comMessage from '@/mycomponents/common/comMessage.vue'
import requestTop from "@/mycomponents/request/requestTop.vue"
import workStation from '@/mycomponents/workStation/workStation.vue'
export default { export default {
components: { components: {
comIssueRequestDetailCard, comIssueRequestDetailCard,
comMessage, comMessage,
requestTop,
workStation
}, },
data() { data() {
return { return {
id: '', id: '',
requestContent: {}, // requestContent: {}, //
subList: [], // subList: [], //
type: 'query' //add, query type: 'query', //add, query
titleInfo: {}
}; };
}, },
onLoad(option) { onLoad(option) {
@ -88,7 +103,9 @@
} else { } else {
if (res.data.subList.length > 0) { if (res.data.subList.length > 0) {
that.requestContent = res.data; that.requestContent = res.data;
that.requestContent.subList = res.data.subList; that.requestContent.subList = res.data.subList;
that.titleInfo = that.requestContent.subList[0]
that.subList = res.data.subList; that.subList = res.data.subList;
// that.subList.forEach(res => { // that.subList.forEach(res => {
// res.fromLocationCode = res.toLocationCode // res.fromLocationCode = res.toLocationCode

48
pages/productPutaway/request/putawayRequest.vue

@ -51,7 +51,7 @@
getDetailAndApproveOption, getDetailAndApproveOption,
getDetailAndApprovePassAndApproveNoOption, getDetailAndApprovePassAndApproveNoOption,
getDetailAndHandleOption, getDetailAndHandleOption,
getDetailAndCloseOption, getDetailAndAddAndCloseOption,
getAddAgainOption getAddAgainOption
} from '@/common/array.js'; } from '@/common/array.js';
@ -69,15 +69,15 @@
requestList: [], requestList: [],
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
status: "", status: "1,2,3,4,5,6",
totalCount: 0, totalCount: 0,
checkedWaitTask: false, checkedWaitTask: false,
detailOptions: [], detailOptions: [],
detailAndApproveOptions: [], detailAndApproveOptions: [],
detailAndApprovePassAndApproveNoOption: [], detailAndApprovePassAndApproveNoOption: [],
detailAndHandleOption: [], detailAndHandleOption: [],
detailAndCloseOption: [], detailAndAddAndCloseOption: [],
addAgainOption:[], addAgainOption: [],
showOptions: [], showOptions: [],
loadingType: "nomore", loadingType: "nomore",
@ -88,8 +88,8 @@
this.addAgainOption = getAddAgainOption(); this.addAgainOption = getAddAgainOption();
this.detailAndApproveOptions = getDetailAndApproveOption() this.detailAndApproveOptions = getDetailAndApproveOption()
this.detailAndApprovePassAndApproveNoOption = getDetailAndApprovePassAndApproveNoOption(), this.detailAndApprovePassAndApproveNoOption = getDetailAndApprovePassAndApproveNoOption(),
this.detailAndHandleOption = getDetailAndHandleOption() this.detailAndHandleOption = getDetailAndHandleOption()
this.detailAndCloseOption = getDetailAndCloseOption() this.detailAndAddAndCloseOption = getDetailAndAddAndCloseOption()
}, },
onReachBottom() { onReachBottom() {
@ -147,13 +147,11 @@
this.requestList = []; this.requestList = [];
} }
var filters = [] var filters = []
if (this.checkedWaitTask) { filters.push({
filters.push({ column: "status",
column: "status", action: "in",
action: "==", value: this.status
value: this.status })
})
}
var params = { var params = {
filters: filters, filters: filters,
pageNo: this.pageNo, pageNo: this.pageNo,
@ -200,10 +198,10 @@
} else if (status == "3") { } else if (status == "3") {
this.showOptions = this.detailAndHandleOption; this.showOptions = this.detailAndHandleOption;
} else if (status == "4") { } else if (status == "4") {
this.showOptions = this.detailAndCloseOption; this.showOptions = this.detailAndAddAndCloseOption;
} else if(status == "5"){ } else if (status == "5") {
this.showOptions = this.addAgainOption; this.showOptions = this.addAgainOption;
}else{ } else {
this.showOptions = this.detailOptions; this.showOptions = this.detailOptions;
} }
return this.showOptions return this.showOptions
@ -221,32 +219,32 @@
if (text == "详情") { if (text == "详情") {
this.openRequestInfoPopup(dataContent); this.openRequestInfoPopup(dataContent);
} else if (text == "处理") { } else if (text == "处理") {
this.showQuestionMessage("确定要处理当前申请吗?",res=>{ this.showQuestionMessage("确定要处理当前申请吗?", res => {
this.productPutawayRequestHandle(dataContent.id) this.productPutawayRequestHandle(dataContent.id)
}) })
} else if (text == "提交审批") { } else if (text == "提交审批") {
this.showQuestionMessage("确定要审批当前申请吗?",res=>{ this.showQuestionMessage("确定要审批当前申请吗?", res => {
this.productPutawayRequestApprove(dataContent.id) this.productPutawayRequestApprove(dataContent.id)
}) })
} else if (text=="审批通过") { } else if (text == "审批通过") {
this.showQuestionMessage("确定要审批通过当前申请吗?",res=>{ this.showQuestionMessage("确定要审批通过当前申请吗?", res => {
this.productPutawayRequestApproveAgree(dataContent.id) this.productPutawayRequestApproveAgree(dataContent.id)
}) })
} else if (text == "审批驳回") { } else if (text == "审批驳回") {
this.showQuestionMessage("确定要审批驳回当前申请吗?",res=>{ this.showQuestionMessage("确定要审批驳回当前申请吗?", res => {
this.productPutawayRequestApproveRefused(dataContent.id) this.productPutawayRequestApproveRefused(dataContent.id)
}) })
} else if (text == "关闭") { } else if (text == "关闭") {
this.showQuestionMessage("确定要关闭当前申请吗?",res=>{ this.showQuestionMessage("确定要关闭当前申请吗?", res => {
this.productPutawayRequestClose(dataContent.id) this.productPutawayRequestClose(dataContent.id)
}) })
}else if(text == "重新添加"){ } else if (text == "重新添加") {
this.showQuestionMessage("确定要重新添加当前申请吗?",res=>{ this.showQuestionMessage("确定要重新添加当前申请吗?", res => {
this.productPutawayRequestAddAgain(dataContent.id) this.productPutawayRequestAddAgain(dataContent.id)
}) })
} }
}, },
showQuestionMessage(hint,callBack){ showQuestionMessage(hint, callBack) {
this.$refs.comMessage.showQuestionMessage(hint, this.$refs.comMessage.showQuestionMessage(hint,
res => { res => {
if (res) { if (res) {

12
pages/productPutaway/request/putawayRequestDetail.vue

@ -1,6 +1,14 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<view class="page-header">
<view class="header_job_top">
<request-top :dataContent="requestContent"></request-top>
</view>
<view class="header_item">
供应商 : {{requestContent.supplierCode}}
</view>
<u-line color="#D8D8D8" />
</view>
<view class="page-main"> <view class="page-main">
<scroll-view scroll-y="true" class="page-main-scroll"> <scroll-view scroll-y="true" class="page-main-scroll">
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id"> <view class="detail-list" v-for="(item, index) in detailSource" :key="item.id">
@ -34,12 +42,14 @@
import comRequestDetailCard from "@/mycomponents/detail/comRequestDetailCard.vue" import comRequestDetailCard from "@/mycomponents/detail/comRequestDetailCard.vue"
import requestDetailInfoPopup from '@/pages/productPutaway/coms/requestDetailInfoPopup.vue' import requestDetailInfoPopup from '@/pages/productPutaway/coms/requestDetailInfoPopup.vue'
import comMessage from '@/mycomponents/common/comMessage.vue' import comMessage from '@/mycomponents/common/comMessage.vue'
import requestTop from "@/mycomponents/request/requestTop.vue"
export default { export default {
components: { components: {
comRequestDetailCard, comRequestDetailCard,
requestDetailInfoPopup, requestDetailInfoPopup,
comMessage, comMessage,
requestTop
}, },
data() { data() {
return { return {

60
pages/productionReturn/coms/comReturnCommonRequest.vue

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

2
pages/productionReturn/coms/comReturnRequestInfo.vue

@ -1,5 +1,5 @@
<template> <template>
<view class="cen_card" style="padding: 20rpx;"> <view class="cen_card" style="padding: 0rpx;">
<view class="cell_box uni-flex uni-row"> <view class="cell_box uni-flex uni-row">
<view class="cell_info"> <view class="cell_info">
<view class="text_lightblue">车间</view> <view class="text_lightblue">车间</view>

18
pages/productionReturn/request/requestDetail.vue

@ -1,8 +1,15 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<view class="page-header"> <view class="page-header">
<comReturnRequestInfo :workShopCode="requestContent.workshopCode" :dataContent="requestContent"> <view class="header_job_top">
</comReturnRequestInfo> <request-top :dataContent="requestContent"></request-top>
</view>
<view class="header_item">
<comReturnRequestInfo :workShopCode="requestContent.workshopCode" :dataContent="requestContent">
</comReturnRequestInfo>
</view>
</view> </view>
<view class="page-main"> <view class="page-main">
<scroll-view scroll-y="true" class="page-main-scroll"> <scroll-view scroll-y="true" class="page-main-scroll">
@ -39,14 +46,15 @@
import requestDetailInfoPopup from '@/pages/productionReturn/coms/requestDetailInfoPopup.vue' import requestDetailInfoPopup from '@/pages/productionReturn/coms/requestDetailInfoPopup.vue'
import comMessage from '@/mycomponents/common/comMessage.vue' import comMessage from '@/mycomponents/common/comMessage.vue'
import comReturnRequestInfo from '@/pages/productionReturn/coms/comReturnRequestInfo.vue' import comReturnRequestInfo from '@/pages/productionReturn/coms/comReturnRequestInfo.vue'
import requestTop from "@/mycomponents/request/requestTop.vue"
export default { export default {
components: { components: {
comRequestDetailCard, comRequestDetailCard,
requestDetailInfoPopup, requestDetailInfoPopup,
comMessage, comMessage,
comReturnRequestInfo comReturnRequestInfo,
requestTop
}, },
data() { data() {
return { return {
@ -59,7 +67,7 @@
onLoad(option) { onLoad(option) {
this.id = option.id; this.id = option.id;
var businessType = option.businessType; var businessType = option.businessType;
var title="生产退料申请详情" var title = "生产退料申请详情"
if (businessType == 'ReturnToStore') { if (businessType == 'ReturnToStore') {
title = "生产合格退料申请详情" title = "生产合格退料申请详情"
} else if (this.businessType == 'ReturnToHold') { } else if (this.businessType == 'ReturnToHold') {

48
pages/purchaseReturn/request/returnRequest.vue

@ -49,7 +49,7 @@
getDetailAndApproveOption, getDetailAndApproveOption,
getDetailAndApprovePassAndApproveNoOption, getDetailAndApprovePassAndApproveNoOption,
getDetailAndHandleOption, getDetailAndHandleOption,
getDetailAndCloseOption, getDetailAndAddAndCloseOption,
getAddAgainOption getAddAgainOption
} from '@/common/array.js'; } from '@/common/array.js';
@ -68,15 +68,15 @@
requestList: [], requestList: [],
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
status: "", status: "1,2,3,4,5,6",
totalCount: 0, totalCount: 0,
checkedWaitTask: false, checkedWaitTask: false,
detailOptions: [], detailOptions: [],
detailAndApproveOptions: [], detailAndApproveOptions: [],
detailAndApprovePassAndApproveNoOption: [], detailAndApprovePassAndApproveNoOption: [],
detailAndHandleOption: [], detailAndHandleOption: [],
detailAndCloseOption: [], detailAndAddAndCloseOption: [],
addAgainOption:[], addAgainOption: [],
showOptions: [], showOptions: [],
fromType: "requestType", fromType: "requestType",
loadingType: "nomore", loadingType: "nomore",
@ -88,8 +88,8 @@
this.addAgainOption = getAddAgainOption(); this.addAgainOption = getAddAgainOption();
this.detailAndApproveOptions = getDetailAndApproveOption() this.detailAndApproveOptions = getDetailAndApproveOption()
this.detailAndApprovePassAndApproveNoOption = getDetailAndApprovePassAndApproveNoOption(), this.detailAndApprovePassAndApproveNoOption = getDetailAndApprovePassAndApproveNoOption(),
this.detailAndHandleOption = getDetailAndHandleOption() this.detailAndHandleOption = getDetailAndHandleOption()
this.detailAndCloseOption = getDetailAndCloseOption() this.detailAndAddAndCloseOption = getDetailAndAddAndCloseOption()
}, },
onReachBottom() { onReachBottom() {
@ -141,13 +141,11 @@
this.requestList = []; this.requestList = [];
} }
var filters = [] var filters = []
if (this.checkedWaitTask) { filters.push({
filters.push({ column: "status",
column: "status", action: "in",
action: "==", value: this.status
value: this.status })
})
}
var params = { var params = {
filters: filters, filters: filters,
pageNo: this.pageNo, pageNo: this.pageNo,
@ -193,10 +191,10 @@
} else if (status == "3") { } else if (status == "3") {
this.showOptions = this.detailAndHandleOption; this.showOptions = this.detailAndHandleOption;
} else if (status == "4") { } else if (status == "4") {
this.showOptions = this.detailAndCloseOption; this.showOptions = this.detailAndAddAndCloseOption;
} else if(status == "5"){ } else if (status == "5") {
this.showOptions = this.addAgainOption; this.showOptions = this.addAgainOption;
}else { } else {
this.showOptions = this.detailOptions; this.showOptions = this.detailOptions;
} }
return this.showOptions return this.showOptions
@ -213,32 +211,32 @@
if (text == "详情") { if (text == "详情") {
this.openRequestInfoPopup(dataContent); this.openRequestInfoPopup(dataContent);
} else if (text == "处理") { } else if (text == "处理") {
this.showQuestionMessage("确定要处理当前申请吗?",res=>{ this.showQuestionMessage("确定要处理当前申请吗?", res => {
this.purchaseReturnRequestHandle(dataContent.id) this.purchaseReturnRequestHandle(dataContent.id)
}) })
} else if (text == "提交审批") { } else if (text == "提交审批") {
this.showQuestionMessage("确定要审批当前申请吗?",res=>{ this.showQuestionMessage("确定要审批当前申请吗?", res => {
this.purchaseReturnRequestApprove(dataContent.id) this.purchaseReturnRequestApprove(dataContent.id)
}) })
} else if (text=="审批通过") { } else if (text == "审批通过") {
this.showQuestionMessage("确定要审批通过当前申请吗?",res=>{ this.showQuestionMessage("确定要审批通过当前申请吗?", res => {
this.purchaseReturnRequestApproveAgree(dataContent.id) this.purchaseReturnRequestApproveAgree(dataContent.id)
}) })
} else if (text == "审批驳回") { } else if (text == "审批驳回") {
this.showQuestionMessage("确定要审批驳回当前申请吗?",res=>{ this.showQuestionMessage("确定要审批驳回当前申请吗?", res => {
this.purchaseReturnRequestApproveRefused(dataContent.id) this.purchaseReturnRequestApproveRefused(dataContent.id)
}) })
} else if (text == "关闭") { } else if (text == "关闭") {
this.showQuestionMessage("确定要关闭当前申请吗?",res=>{ this.showQuestionMessage("确定要关闭当前申请吗?", res => {
this.purchaseReturnRequestClose(dataContent.id) this.purchaseReturnRequestClose(dataContent.id)
}) })
}else if(text == "重新添加"){ } else if (text == "重新添加") {
this.showQuestionMessage("确定要重新添加当前申请吗?",res=>{ this.showQuestionMessage("确定要重新添加当前申请吗?", res => {
this.purchaseReturnRequestAddAgain(dataContent.id) this.purchaseReturnRequestAddAgain(dataContent.id)
}) })
} }
}, },
showQuestionMessage(hint,callBack){ showQuestionMessage(hint, callBack) {
this.$refs.comMessage.showQuestionMessage(hint, this.$refs.comMessage.showQuestionMessage(hint,
res => { res => {
if (res) { if (res) {

40
pages/purchaseReturn/request/returnRequestDetail.vue

@ -1,11 +1,19 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<view class="page-header">
<view class="header_job_top">
<request-top :dataContent="requestContent"></request-top>
</view>
<view class="header_item">
供应商 : {{requestContent.supplierCode}}
</view>
<u-line color="#D8D8D8" />
</view>
<view class="page-main"> <view class="page-main">
<scroll-view scroll-y="true" class="page-main-scroll"> <scroll-view scroll-y="true" class="page-main-scroll">
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id"> <view class="detail-list" v-for="(item, index) in detailSource" :key="item.id">
<view class=""> <view class="">
<com-request-detail-card :dataContent="item" <com-request-detail-card :dataContent="item" @openDetail="openDetail">
@openDetail="openDetail">
</com-request-detail-card> </com-request-detail-card>
</view> </view>
</view> </view>
@ -34,12 +42,15 @@
import comRequestDetailCard from "@/mycomponents/detail/comRequestDetailCard.vue" import comRequestDetailCard from "@/mycomponents/detail/comRequestDetailCard.vue"
import requestDetailInfoPopup from '@/pages/purchaseReturn/coms/requestDetailInfoPopup.vue' import requestDetailInfoPopup from '@/pages/purchaseReturn/coms/requestDetailInfoPopup.vue'
import comMessage from '@/mycomponents/common/comMessage.vue' import comMessage from '@/mycomponents/common/comMessage.vue'
import requestTop from "@/mycomponents/request/requestTop.vue"
export default { export default {
components: { components: {
comRequestDetailCard, comRequestDetailCard,
requestDetailInfoPopup, requestDetailInfoPopup,
comMessage, comMessage,
requestTop
}, },
data() { data() {
return { return {
@ -81,17 +92,17 @@
if (res.data == null) { if (res.data == null) {
that.showMessage('未获取到详情'); that.showMessage('未获取到详情');
} else { } else {
if (res.data.subList.length > 0) { if (res.data.subList.length > 0) {
that.requestContent = res.data; that.requestContent = res.data;
that.subList = res.data.subList; that.subList = res.data.subList;
that.subList.forEach(res=>{ that.subList.forEach(res => {
// res.fromLocationCode = res.toLocationCode // res.fromLocationCode = res.toLocationCode
res.locationCode = res.fromLocationCode res.locationCode = res.fromLocationCode
}) })
that.detailSource = getDataSource(that.subList); that.detailSource = getDataSource(that.subList);
} else { } else {
that.showMessage('列表数据为0'); that.showMessage('列表数据为0');
} }
} }
}).catch(error => { }).catch(error => {
uni.hideLoading() uni.hideLoading()
@ -101,8 +112,7 @@
showMessage(message) { showMessage(message) {
this.$refs.comMessage.showMessage(message, res => { this.$refs.comMessage.showMessage(message, res => {
if (res) { if (res) {}
}
}); });
}, },

48
pages/putaway/request/putawayRequest.vue

@ -50,7 +50,7 @@
getDetailAndApproveOption, getDetailAndApproveOption,
getDetailAndApprovePassAndApproveNoOption, getDetailAndApprovePassAndApproveNoOption,
getDetailAndHandleOption, getDetailAndHandleOption,
getDetailAndCloseOption, getDetailAndAddAndCloseOption,
getAddAgainOption getAddAgainOption
} from '@/common/array.js'; } from '@/common/array.js';
@ -69,15 +69,15 @@
requestList: [], requestList: [],
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
status: "", status: "1,2,3,4,5,6",
totalCount: 0, totalCount: 0,
checkedWaitTask: false, checkedWaitTask: false,
detailOptions: [], detailOptions: [],
detailAndApproveOptions: [], detailAndApproveOptions: [],
detailAndApprovePassAndApproveNoOption: [], detailAndApprovePassAndApproveNoOption: [],
detailAndHandleOption: [], detailAndHandleOption: [],
detailAndCloseOption: [], detailAndAddAndCloseOption: [],
addAgainOption:[], addAgainOption: [],
showOptions: [], showOptions: [],
fromType: "requestType", fromType: "requestType",
loadingType: "nomore", loadingType: "nomore",
@ -88,8 +88,8 @@
this.addAgainOption = getAddAgainOption(); this.addAgainOption = getAddAgainOption();
this.detailAndApproveOptions = getDetailAndApproveOption() this.detailAndApproveOptions = getDetailAndApproveOption()
this.detailAndApprovePassAndApproveNoOption = getDetailAndApprovePassAndApproveNoOption(), this.detailAndApprovePassAndApproveNoOption = getDetailAndApprovePassAndApproveNoOption(),
this.detailAndHandleOption = getDetailAndHandleOption() this.detailAndHandleOption = getDetailAndHandleOption()
this.detailAndCloseOption = getDetailAndCloseOption() this.detailAndAddAndCloseOption = getDetailAndAddAndCloseOption()
}, },
onReachBottom() { onReachBottom() {
@ -142,13 +142,11 @@
this.requestList = []; this.requestList = [];
} }
var filters = [] var filters = []
if (this.checkedWaitTask) { filters.push({
filters.push({ column: "status",
column: "status", action: "in",
action: "==", value: this.status
value: this.status })
})
}
var params = { var params = {
filters: filters, filters: filters,
pageNo: this.pageNo, pageNo: this.pageNo,
@ -194,10 +192,10 @@
} else if (status == "3") { } else if (status == "3") {
this.showOptions = this.detailAndHandleOption; this.showOptions = this.detailAndHandleOption;
} else if (status == "4") { } else if (status == "4") {
this.showOptions = this.detailAndCloseOption; this.showOptions = this.detailAndAddAndCloseOption;
} else if(status == "5"){ } else if (status == "5") {
this.showOptions = this.addAgainOption; this.showOptions = this.addAgainOption;
}else { } else {
this.showOptions = this.detailOptions; this.showOptions = this.detailOptions;
} }
return this.showOptions return this.showOptions
@ -219,32 +217,32 @@
if (text == "详情") { if (text == "详情") {
this.openRequestInfoPopup(dataContent); this.openRequestInfoPopup(dataContent);
} else if (text == "处理") { } else if (text == "处理") {
this.showQuestionMessage("确定要处理当前申请吗?",res=>{ this.showQuestionMessage("确定要处理当前申请吗?", res => {
this.putawayRequestHandle(dataContent.id) this.putawayRequestHandle(dataContent.id)
}) })
} else if (text == "提交审批") { } else if (text == "提交审批") {
this.showQuestionMessage("确定要审批当前申请吗?",res=>{ this.showQuestionMessage("确定要审批当前申请吗?", res => {
this.putawayRequestApprove(dataContent.id) this.putawayRequestApprove(dataContent.id)
}) })
} else if (text=="审批通过") { } else if (text == "审批通过") {
this.showQuestionMessage("确定要审批通过当前申请吗?",res=>{ this.showQuestionMessage("确定要审批通过当前申请吗?", res => {
this.putawayRequestApproveAgree(dataContent.id) this.putawayRequestApproveAgree(dataContent.id)
}) })
} else if (text == "审批驳回") { } else if (text == "审批驳回") {
this.showQuestionMessage("确定要审批驳回当前申请吗?",res=>{ this.showQuestionMessage("确定要审批驳回当前申请吗?", res => {
this.putawayRequestApproveRefused(dataContent.id) this.putawayRequestApproveRefused(dataContent.id)
}) })
} else if (text == "关闭") { } else if (text == "关闭") {
this.showQuestionMessage("确定要关闭当前申请吗?",res=>{ this.showQuestionMessage("确定要关闭当前申请吗?", res => {
this.putawayRequestClose(dataContent.id) this.putawayRequestClose(dataContent.id)
}) })
}else if(text == "重新添加"){ } else if (text == "重新添加") {
this.showQuestionMessage("确定要重新添加当前申请吗?",res=>{ this.showQuestionMessage("确定要重新添加当前申请吗?", res => {
this.putawayRequestAddAgain(dataContent.id) this.putawayRequestAddAgain(dataContent.id)
}) })
} }
}, },
showQuestionMessage(hint,callBack){ showQuestionMessage(hint, callBack) {
this.$refs.comMessage.showQuestionMessage(hint, this.$refs.comMessage.showQuestionMessage(hint,
res => { res => {
if (res) { if (res) {

11
pages/putaway/request/putawayRequestDetail.vue

@ -1,5 +1,14 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<view class="page-header">
<view class="header_job_top">
<request-top :dataContent="requestContent"></request-top>
</view>
<view class="header_item">
供应商 : {{requestContent.supplierCode}}
</view>
<u-line color="#D8D8D8" />
</view>
<view class="page-main"> <view class="page-main">
<scroll-view scroll-y="true" class="page-main-scroll"> <scroll-view scroll-y="true" class="page-main-scroll">
@ -35,12 +44,14 @@
import comRequestDetailCard from "@/mycomponents/detail/comRequestDetailCard.vue" import comRequestDetailCard from "@/mycomponents/detail/comRequestDetailCard.vue"
import requestDetailInfoPopup from '@/pages/putaway/coms/requestDetailInfoPopup.vue' import requestDetailInfoPopup from '@/pages/putaway/coms/requestDetailInfoPopup.vue'
import comMessage from '@/mycomponents/common/comMessage.vue' import comMessage from '@/mycomponents/common/comMessage.vue'
import requestTop from "@/mycomponents/request/requestTop.vue"
export default { export default {
components: { components: {
comRequestDetailCard, comRequestDetailCard,
requestDetailInfoPopup, requestDetailInfoPopup,
comMessage, comMessage,
requestTop
}, },
data() { data() {
return { return {

8
pages/repleinsh/request/repleinshRequest.vue

@ -42,7 +42,7 @@
getDetailAndApproveOption, getDetailAndApproveOption,
getDetailAndApprovePassAndApproveNoOption, getDetailAndApprovePassAndApproveNoOption,
getDetailAndHandleOption, getDetailAndHandleOption,
getDetailAndCloseOption getDetailAndAddAndCloseOption
} from '@/common/array.js'; } from '@/common/array.js';
export default { export default {
@ -70,7 +70,7 @@
detailAndApproveOptions: [], detailAndApproveOptions: [],
detailAndApprovePassAndApproveNoOption: [], detailAndApprovePassAndApproveNoOption: [],
detailAndHandleOption: [], detailAndHandleOption: [],
detailAndCloseOption: [], detailAndAddAndCloseOption: [],
showOptions: [], showOptions: [],
fromType: "requestType", fromType: "requestType",
loadingType: "nomore", loadingType: "nomore",
@ -81,7 +81,7 @@
this.detailAndApproveOptions = getDetailAndApproveOption() this.detailAndApproveOptions = getDetailAndApproveOption()
this.detailAndApprovePassAndApproveNoOption = getDetailAndApprovePassAndApproveNoOption(), this.detailAndApprovePassAndApproveNoOption = getDetailAndApprovePassAndApproveNoOption(),
this.detailAndHandleOption = getDetailAndHandleOption() this.detailAndHandleOption = getDetailAndHandleOption()
this.detailAndCloseOption = getDetailAndCloseOption() this.detailAndAddAndCloseOption = getDetailAndAddAndCloseOption()
}, },
onReachBottom() { onReachBottom() {
@ -179,7 +179,7 @@
} else if (status == "3") { } else if (status == "3") {
this.showOptions = this.detailAndHandleOption; this.showOptions = this.detailAndHandleOption;
} else if (status == "4") { } else if (status == "4") {
this.showOptions = this.detailAndCloseOption; this.showOptions = this.detailAndAddAndCloseOption;
} else { } else {
this.showOptions = this.detailOptions; this.showOptions = this.detailOptions;
} }

1
pages/scrap/request/scrapRequestCreate.vue

@ -81,6 +81,7 @@
import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue" import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue"
import recordComDetailCard from '@/mycomponents/record/recordComDetailCard.vue' import recordComDetailCard from '@/mycomponents/record/recordComDetailCard.vue'
export default { export default {
components: { components: {
winScanButton, winScanButton,

12
pages/scrap/request/scrapRequestDetail.vue

@ -1,6 +1,14 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<view class="page-header">
<view class="header_job_top">
<request-top :dataContent="requestContent"></request-top>
</view>
<view class="header_item">
从仓库代码 : {{requestContent.fromWarehouseCode}}
</view>
<u-line color="#D8D8D8" />
</view>
<view class="page-main"> <view class="page-main">
<scroll-view scroll-y="true" class="page-main-scroll"> <scroll-view scroll-y="true" class="page-main-scroll">
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id"> <view class="detail-list" v-for="(item, index) in detailSource" :key="item.id">
@ -34,12 +42,14 @@
import comRequestDetailCard from "@/mycomponents/detail/comRequestDetailCard.vue" import comRequestDetailCard from "@/mycomponents/detail/comRequestDetailCard.vue"
import requestDetailInfoPopup from '@/pages/scrap/coms/requestDetailInfoPopup.vue' import requestDetailInfoPopup from '@/pages/scrap/coms/requestDetailInfoPopup.vue'
import comMessage from '@/mycomponents/common/comMessage.vue' import comMessage from '@/mycomponents/common/comMessage.vue'
import requestTop from "@/mycomponents/request/requestTop.vue"
export default { export default {
components: { components: {
comRequestDetailCard, comRequestDetailCard,
requestDetailInfoPopup, requestDetailInfoPopup,
comMessage, comMessage,
requestTop
}, },
data() { data() {
return { return {

46
pages/scrap/request/scrapRrequest.vue

@ -49,7 +49,7 @@
getDetailAndApproveOption, getDetailAndApproveOption,
getDetailAndApprovePassAndApproveNoOption, getDetailAndApprovePassAndApproveNoOption,
getDetailAndHandleOption, getDetailAndHandleOption,
getDetailAndCloseOption, getDetailAndAddAndCloseOption,
getAddAgainOption getAddAgainOption
} from '@/common/array.js'; } from '@/common/array.js';
@ -67,15 +67,15 @@
requestList: [], requestList: [],
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
status: "", status: "1,2,3,4,5,6",
totalCount: 0, totalCount: 0,
checkedWaitTask: false, checkedWaitTask: false,
detailOptions: [], detailOptions: [],
detailAndApproveOptions: [], detailAndApproveOptions: [],
detailAndApprovePassAndApproveNoOption: [], detailAndApprovePassAndApproveNoOption: [],
detailAndHandleOption: [], detailAndHandleOption: [],
detailAndCloseOption: [], detailAndAddAndCloseOption: [],
addAgainOption:[], addAgainOption: [],
showOptions: [], showOptions: [],
fromType: "requestType", fromType: "requestType",
loadingType: "nomore", loadingType: "nomore",
@ -87,8 +87,8 @@
this.addAgainOption = getAddAgainOption(); this.addAgainOption = getAddAgainOption();
this.detailAndApproveOptions = getDetailAndApproveOption() this.detailAndApproveOptions = getDetailAndApproveOption()
this.detailAndApprovePassAndApproveNoOption = getDetailAndApprovePassAndApproveNoOption(), this.detailAndApprovePassAndApproveNoOption = getDetailAndApprovePassAndApproveNoOption(),
this.detailAndHandleOption = getDetailAndHandleOption() this.detailAndHandleOption = getDetailAndHandleOption()
this.detailAndCloseOption = getDetailAndCloseOption() this.detailAndAddAndCloseOption = getDetailAndAddAndCloseOption()
}, },
onReachBottom() { onReachBottom() {
@ -140,13 +140,11 @@
this.requestList = []; this.requestList = [];
} }
var filters = [] var filters = []
if (this.checkedWaitTask) { filters.push({
filters.push({ column: "status",
column: "status", action: "in",
action: "==", value: this.status
value: this.status })
})
}
var params = { var params = {
filters: filters, filters: filters,
pageNo: this.pageNo, pageNo: this.pageNo,
@ -192,10 +190,10 @@
} else if (status == "3") { } else if (status == "3") {
this.showOptions = this.detailAndHandleOption; this.showOptions = this.detailAndHandleOption;
} else if (status == "4") { } else if (status == "4") {
this.showOptions = this.detailAndCloseOption; this.showOptions = this.detailAndAddAndCloseOption;
} else if(status == "5"){ } else if (status == "5") {
this.showOptions = this.addAgainOption; this.showOptions = this.addAgainOption;
}else { } else {
this.showOptions = this.detailOptions; this.showOptions = this.detailOptions;
} }
return this.showOptions return this.showOptions
@ -212,32 +210,32 @@
if (text == "详情") { if (text == "详情") {
this.openRequestInfoPopup(dataContent); this.openRequestInfoPopup(dataContent);
} else if (text == "处理") { } else if (text == "处理") {
this.showQuestionMessage("确定要处理当前申请吗?",res=>{ this.showQuestionMessage("确定要处理当前申请吗?", res => {
this.scrapRequestHandle(dataContent.id) this.scrapRequestHandle(dataContent.id)
}) })
} else if (text == "提交审批") { } else if (text == "提交审批") {
this.showQuestionMessage("确定要审批当前申请吗?",res=>{ this.showQuestionMessage("确定要审批当前申请吗?", res => {
this.scrapRequestApprove(dataContent.id) this.scrapRequestApprove(dataContent.id)
}) })
} else if (text == "审批通过") { } else if (text == "审批通过") {
this.showQuestionMessage("确定要审批通过当前申请吗?",res=>{ this.showQuestionMessage("确定要审批通过当前申请吗?", res => {
this.scrapRequestApproveAgree(dataContent.id) this.scrapRequestApproveAgree(dataContent.id)
}) })
} else if (text == "审批驳回") { } else if (text == "审批驳回") {
this.showQuestionMessage("确定要审批驳回当前申请吗?",res=>{ this.showQuestionMessage("确定要审批驳回当前申请吗?", res => {
this.scrapRequestApproveRefused(dataContent.id) this.scrapRequestApproveRefused(dataContent.id)
}) })
} else if (text == "关闭") { } else if (text == "关闭") {
this.showQuestionMessage("确定要关闭当前申请吗?",res=>{ this.showQuestionMessage("确定要关闭当前申请吗?", res => {
this.scrapRequestClose(dataContent.id) this.scrapRequestClose(dataContent.id)
}) })
}else if(text == "重新添加"){ } else if (text == "重新添加") {
this.showQuestionMessage("确定要重新添加当前申请吗?",res=>{ this.showQuestionMessage("确定要重新添加当前申请吗?", res => {
this.scrapRequestAddAgain(dataContent.id) this.scrapRequestAddAgain(dataContent.id)
}) })
} }
}, },
showQuestionMessage(hint,callBack){ showQuestionMessage(hint, callBack) {
this.$refs.comMessage.showQuestionMessage(hint, this.$refs.comMessage.showQuestionMessage(hint,
res => { res => {
if (res) { if (res) {

46
pages/unPlanned/request/issueRequest.vue

@ -51,7 +51,7 @@
getDetailAndApproveOption, getDetailAndApproveOption,
getDetailAndApprovePassAndApproveNoOption, getDetailAndApprovePassAndApproveNoOption,
getDetailAndHandleOption, getDetailAndHandleOption,
getDetailAndCloseOption, getDetailAndAddAndCloseOption,
getAddAgainOption getAddAgainOption
} from '@/common/array.js'; } from '@/common/array.js';
@ -70,15 +70,15 @@
requestList: [], requestList: [],
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
status: "", status: "1,2,3,4,5,6",
totalCount: 0, totalCount: 0,
checkedWaitTask: false, checkedWaitTask: false,
detailOptions: [], detailOptions: [],
detailAndApproveOptions: [], detailAndApproveOptions: [],
detailAndApprovePassAndApproveNoOption: [], detailAndApprovePassAndApproveNoOption: [],
detailAndHandleOption: [], detailAndHandleOption: [],
detailAndCloseOption: [], detailAndAddAndCloseOption: [],
addAgainOption:[], addAgainOption: [],
showOptions: [], showOptions: [],
fromType: "requestType", fromType: "requestType",
loadingType: "nomore", loadingType: "nomore",
@ -90,8 +90,8 @@
this.addAgainOption = getAddAgainOption(); this.addAgainOption = getAddAgainOption();
this.detailAndApproveOptions = getDetailAndApproveOption() this.detailAndApproveOptions = getDetailAndApproveOption()
this.detailAndApprovePassAndApproveNoOption = getDetailAndApprovePassAndApproveNoOption(), this.detailAndApprovePassAndApproveNoOption = getDetailAndApprovePassAndApproveNoOption(),
this.detailAndHandleOption = getDetailAndHandleOption() this.detailAndHandleOption = getDetailAndHandleOption()
this.detailAndCloseOption = getDetailAndCloseOption() this.detailAndAddAndCloseOption = getDetailAndAddAndCloseOption()
}, },
onReachBottom() { onReachBottom() {
@ -144,13 +144,11 @@
this.requestList = []; this.requestList = [];
} }
var filters = [] var filters = []
if (this.checkedWaitTask) { filters.push({
filters.push({ column: "status",
column: "status", action: "in",
action: "==", value: this.status
value: this.status })
})
}
var params = { var params = {
filters: filters, filters: filters,
pageNo: this.pageNo, pageNo: this.pageNo,
@ -198,10 +196,10 @@
} else if (status == "3") { } else if (status == "3") {
this.showOptions = this.detailAndHandleOption; this.showOptions = this.detailAndHandleOption;
} else if (status == "4") { } else if (status == "4") {
this.showOptions = this.detailAndCloseOption; this.showOptions = this.detailAndAddAndCloseOption;
} else if(status == "5"){ } else if (status == "5") {
this.showOptions = this.addAgainOption; this.showOptions = this.addAgainOption;
}else { } else {
this.showOptions = this.detailOptions; this.showOptions = this.detailOptions;
} }
return this.showOptions return this.showOptions
@ -218,32 +216,32 @@
if (text == "详情") { if (text == "详情") {
this.openRequestInfoPopup(dataContent); this.openRequestInfoPopup(dataContent);
} else if (text == "处理") { } else if (text == "处理") {
this.showQuestionMessage("确定要处理当前申请吗?",res=>{ this.showQuestionMessage("确定要处理当前申请吗?", res => {
this.unPlannedIssueRequestHandle(dataContent.id) this.unPlannedIssueRequestHandle(dataContent.id)
}) })
} else if (text == "提交审批") { } else if (text == "提交审批") {
this.showQuestionMessage("确定要审批当前申请吗?",res=>{ this.showQuestionMessage("确定要审批当前申请吗?", res => {
this.unPlannedIssueRequestApprove(dataContent.id) this.unPlannedIssueRequestApprove(dataContent.id)
}) })
} else if (text == "审批通过") { } else if (text == "审批通过") {
this.showQuestionMessage("确定要审批通过当前申请吗?",res=>{ this.showQuestionMessage("确定要审批通过当前申请吗?", res => {
this.unPlannedIssueRequestApproveAgree(dataContent.id) this.unPlannedIssueRequestApproveAgree(dataContent.id)
}) })
} else if (text == "审批驳回") { } else if (text == "审批驳回") {
this.showQuestionMessage("确定要审批驳回当前申请吗?",res=>{ this.showQuestionMessage("确定要审批驳回当前申请吗?", res => {
this.unPlannedIssueRequestApproveRefused(dataContent.id) this.unPlannedIssueRequestApproveRefused(dataContent.id)
}) })
} else if (text == "关闭") { } else if (text == "关闭") {
this.showQuestionMessage("确定要关闭当前申请吗?",res=>{ this.showQuestionMessage("确定要关闭当前申请吗?", res => {
this.unPlannedIssueRequestClose(dataContent.id) this.unPlannedIssueRequestClose(dataContent.id)
}) })
}else if(text == "重新添加"){ } else if (text == "重新添加") {
this.showQuestionMessage("确定要重新添加当前申请吗?",res=>{ this.showQuestionMessage("确定要重新添加当前申请吗?", res => {
this.unPlannedIssueRequestAddAgain(dataContent.id) this.unPlannedIssueRequestAddAgain(dataContent.id)
}) })
} }
}, },
showQuestionMessage(hint,callBack){ showQuestionMessage(hint, callBack) {
this.$refs.comMessage.showQuestionMessage(hint, this.$refs.comMessage.showQuestionMessage(hint,
res => { res => {
if (res) { if (res) {

12
pages/unPlanned/request/issueRequestDetail.vue

@ -1,6 +1,14 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<view class="page-header">
<view class="header_job_top">
<request-top :dataContent="requestContent"></request-top>
</view>
<view class="header_item">
从仓库代码 : {{requestContent.fromWarehouseCode}}
</view>
<u-line color="#D8D8D8" />
</view>
<view class="page-main"> <view class="page-main">
<scroll-view scroll-y="true" class="page-main-scroll"> <scroll-view scroll-y="true" class="page-main-scroll">
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id"> <view class="detail-list" v-for="(item, index) in detailSource" :key="item.id">
@ -34,12 +42,14 @@
import comRequestDetailCard from "@/mycomponents/detail/comRequestDetailCard.vue" import comRequestDetailCard from "@/mycomponents/detail/comRequestDetailCard.vue"
import requestIssDetailInfoPopup from '@/pages/unPlanned/coms/requestIssDetailInfoPopup.vue' import requestIssDetailInfoPopup from '@/pages/unPlanned/coms/requestIssDetailInfoPopup.vue'
import comMessage from '@/mycomponents/common/comMessage.vue' import comMessage from '@/mycomponents/common/comMessage.vue'
import requestTop from "@/mycomponents/request/requestTop.vue"
export default { export default {
components: { components: {
comRequestDetailCard, comRequestDetailCard,
requestIssDetailInfoPopup, requestIssDetailInfoPopup,
comMessage, comMessage,
requestTop
}, },
data() { data() {
return { return {

46
pages/unPlanned/request/receiptRequest.vue

@ -50,7 +50,7 @@
getDetailAndApproveOption, getDetailAndApproveOption,
getDetailAndApprovePassAndApproveNoOption, getDetailAndApprovePassAndApproveNoOption,
getDetailAndHandleOption, getDetailAndHandleOption,
getDetailAndCloseOption, getDetailAndAddAndCloseOption,
getAddAgainOption getAddAgainOption
} from '@/common/array.js'; } from '@/common/array.js';
@ -69,15 +69,15 @@
requestList: [], requestList: [],
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
status: "", status: "1,2,3,4,5,6",
totalCount: 0, totalCount: 0,
checkedWaitTask: false, checkedWaitTask: false,
detailOptions: [], detailOptions: [],
detailAndApproveOptions: [], detailAndApproveOptions: [],
detailAndApprovePassAndApproveNoOption: [], detailAndApprovePassAndApproveNoOption: [],
detailAndHandleOption: [], detailAndHandleOption: [],
detailAndCloseOption: [], detailAndAddAndCloseOption: [],
addAgainOption:[], addAgainOption: [],
showOptions: [], showOptions: [],
fromType: "requestType", fromType: "requestType",
loadingType: "nomore", loadingType: "nomore",
@ -89,8 +89,8 @@
this.addAgainOption = getAddAgainOption(); this.addAgainOption = getAddAgainOption();
this.detailAndApproveOptions = getDetailAndApproveOption() this.detailAndApproveOptions = getDetailAndApproveOption()
this.detailAndApprovePassAndApproveNoOption = getDetailAndApprovePassAndApproveNoOption(), this.detailAndApprovePassAndApproveNoOption = getDetailAndApprovePassAndApproveNoOption(),
this.detailAndHandleOption = getDetailAndHandleOption() this.detailAndHandleOption = getDetailAndHandleOption()
this.detailAndCloseOption = getDetailAndCloseOption() this.detailAndAddAndCloseOption = getDetailAndAddAndCloseOption()
}, },
onReachBottom() { onReachBottom() {
@ -143,13 +143,11 @@
this.requestList = []; this.requestList = [];
} }
var filters = [] var filters = []
if (this.checkedWaitTask) { filters.push({
filters.push({ column: "status",
column: "status", action: "==",
action: "==", value: this.status
value: this.status })
})
}
var params = { var params = {
filters: filters, filters: filters,
pageNo: this.pageNo, pageNo: this.pageNo,
@ -195,10 +193,10 @@
} else if (status == "3") { } else if (status == "3") {
this.showOptions = this.detailAndHandleOption; this.showOptions = this.detailAndHandleOption;
} else if (status == "4") { } else if (status == "4") {
this.showOptions = this.detailAndCloseOption; this.showOptions = this.detailAndAddAndCloseOption;
} else if(status == "5"){ } else if (status == "5") {
this.showOptions = this.addAgainOption; this.showOptions = this.addAgainOption;
}else { } else {
this.showOptions = this.detailOptions; this.showOptions = this.detailOptions;
} }
return this.showOptions return this.showOptions
@ -215,32 +213,32 @@
if (text == "详情") { if (text == "详情") {
this.openRequestInfoPopup(dataContent); this.openRequestInfoPopup(dataContent);
} else if (text == "处理") { } else if (text == "处理") {
this.showQuestionMessage("确定要处理当前申请吗?",res=>{ this.showQuestionMessage("确定要处理当前申请吗?", res => {
this.unPlannedReceiptRequestHandle(dataContent.id) this.unPlannedReceiptRequestHandle(dataContent.id)
}) })
} else if (text == "提交审批") { } else if (text == "提交审批") {
this.showQuestionMessage("确定要审批当前申请吗?",res=>{ this.showQuestionMessage("确定要审批当前申请吗?", res => {
this.unPlannedReceiptRequestApprove(dataContent.id) this.unPlannedReceiptRequestApprove(dataContent.id)
}) })
} else if (text == "审批通过") { } else if (text == "审批通过") {
this.showQuestionMessage("确定要审批通过当前申请吗?",res=>{ this.showQuestionMessage("确定要审批通过当前申请吗?", res => {
this.unPlannedReceiptRequestApproveAgree(dataContent.id) this.unPlannedReceiptRequestApproveAgree(dataContent.id)
}) })
} else if (text == "审批驳回") { } else if (text == "审批驳回") {
this.showQuestionMessage("确定要审批驳回当前申请吗?",res=>{ this.showQuestionMessage("确定要审批驳回当前申请吗?", res => {
this.unPlannedReceiptRequestApproveRefused(dataContent.id) this.unPlannedReceiptRequestApproveRefused(dataContent.id)
}) })
} else if (text == "关闭") { } else if (text == "关闭") {
this.showQuestionMessage("确定要关闭当前申请吗?",res=>{ this.showQuestionMessage("确定要关闭当前申请吗?", res => {
this.unPlannedReceiptRequestClose(dataContent.id) this.unPlannedReceiptRequestClose(dataContent.id)
}) })
}else if(text == "重新添加"){ } else if (text == "重新添加") {
this.showQuestionMessage("确定要重新添加当前申请吗?",res=>{ this.showQuestionMessage("确定要重新添加当前申请吗?", res => {
this.unPlannedReceiptRequestAddAgain(dataContent.id) this.unPlannedReceiptRequestAddAgain(dataContent.id)
}) })
} }
}, },
showQuestionMessage(hint,callBack){ showQuestionMessage(hint, callBack) {
this.$refs.comMessage.showQuestionMessage(hint, this.$refs.comMessage.showQuestionMessage(hint,
res => { res => {
if (res) { if (res) {

38
pages/unPlanned/request/receiptRequestDetail.vue

@ -1,12 +1,19 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<view class="page-header">
<view class="header_job_top">
<request-top :dataContent="requestContent"></request-top>
</view>
<view class="header_item">
到仓库代码 : {{requestContent.toWarehouseCode}}
</view>
<u-line color="#D8D8D8" />
</view>
<view class="page-main"> <view class="page-main">
<scroll-view scroll-y="true" class="page-main-scroll"> <scroll-view scroll-y="true" class="page-main-scroll">
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id"> <view class="detail-list" v-for="(item, index) in detailSource" :key="item.id">
<view class=""> <view class="">
<comRequestDetailCard :dataContent="item" <comRequestDetailCard :dataContent="item" @openDetail="openDetail">
@openDetail="openDetail">
</comRequestDetailCard> </comRequestDetailCard>
</view> </view>
</view> </view>
@ -35,12 +42,14 @@
import comRequestDetailCard from "@/mycomponents/detail/comRequestDetailCard.vue" import comRequestDetailCard from "@/mycomponents/detail/comRequestDetailCard.vue"
import requestRecDetailInfoPopup from '@/pages/unPlanned/coms/requestRecDetailInfoPopup.vue' import requestRecDetailInfoPopup from '@/pages/unPlanned/coms/requestRecDetailInfoPopup.vue'
import comMessage from '@/mycomponents/common/comMessage.vue' import comMessage from '@/mycomponents/common/comMessage.vue'
import requestTop from "@/mycomponents/request/requestTop.vue"
export default { export default {
components: { components: {
comRequestDetailCard, comRequestDetailCard,
requestRecDetailInfoPopup, requestRecDetailInfoPopup,
comMessage, comMessage,
requestTop
}, },
data() { data() {
return { return {
@ -82,16 +91,16 @@
if (res.data == null) { if (res.data == null) {
that.showMessage('未获取到详情'); that.showMessage('未获取到详情');
} else { } else {
if (res.data.subList.length > 0) { if (res.data.subList.length > 0) {
that.requestContent = res.data; that.requestContent = res.data;
that.subList = res.data.subList; that.subList = res.data.subList;
that.subList.forEach(res=>{ that.subList.forEach(res => {
res.fromLocationCode = res.toLocationCode res.fromLocationCode = res.toLocationCode
}) })
that.detailSource = getDataSource(that.subList); that.detailSource = getDataSource(that.subList);
} else { } else {
that.showMessage('列表数据为0'); that.showMessage('列表数据为0');
} }
} }
}).catch(error => { }).catch(error => {
uni.hideLoading() uni.hideLoading()
@ -101,8 +110,7 @@
showMessage(message) { showMessage(message) {
this.$refs.comMessage.showMessage(message, res => { this.$refs.comMessage.showMessage(message, res => {
if (res) { if (res) {}
}
}); });
}, },

Loading…
Cancel
Save