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;
}
//详情、关闭
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'

36
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;
}

2
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";
}

46
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) {

12
pages/customerReturn/request/customerReturnRequestDetail.vue

@ -1,6 +1,14 @@
<template>
<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">
<scroll-view scroll-y="true" class="page-main-scroll">
<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 requestDetailInfoPopup from '@/pages/customerReturn/coms/requestDetailInfoPopup.vue'
import comMessage from '@/mycomponents/common/comMessage.vue'
import requestTop from "@/mycomponents/request/requestTop.vue"
export default {
components: {
comRequestDetailCard,
requestDetailInfoPopup,
comMessage,
requestTop
},
data() {
return {

14
pages/deliver/request/deliverRequest.vue

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

15
pages/deliver/request/deliverRequestDetail.vue

@ -1,5 +1,14 @@
<template>
<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">
<scroll-view scroll-y="true" class="page-main-scroll">
<view class="page-header">
@ -41,13 +50,15 @@
import requestDetailInfoPopup from '@/pages/deliver/coms/requestDetailInfoPopup.vue'
import comMessage from '@/mycomponents/common/comMessage.vue'
import itemQty from '@/mycomponents/item/itemQty.vue'
import requestTop from "@/mycomponents/request/requestTop.vue"
export default {
components: {
comRequestDetailCard,
requestDetailInfoPopup,
comMessage,
itemQty
itemQty,
requestTop
},
data() {
return {
@ -89,7 +100,7 @@
that.showMessage('未获取到详情');
} else {
that.detailSource = res.data
that.requestContent = res.data;
// if (res.data.subList.length > 0) {
// that.requestContent = res.data;
// that.subList = res.data.subList;

14
pages/inspect/request/inspectRequest.vue

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

3
pages/issue/coms/comIssueRequestDetailCard.vue

@ -3,8 +3,7 @@
<view class="uni-flex uni-column">
<!-- <com-issue-request-info :workShopCode="dataContent.workshopCode" :dataContent="requestItem">
</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">
<view v-for="(item, index) in dataContent.subList" :key="index">

14
pages/issue/request/issueRequest.vue

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

23
pages/issue/request/issueRequestDetail.vue

@ -1,5 +1,17 @@
<template>
<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">
<scroll-view scroll-y="true" class="page-main-scroll">
<view class="detail-list">
@ -35,22 +47,25 @@
getDataSource,
} from '@/common/detail.js';
import comIssueRequestDetailCard from "@/pages/issue/coms/comIssueRequestDetailCard.vue"
import comMessage from '@/mycomponents/common/comMessage.vue'
import requestTop from "@/mycomponents/request/requestTop.vue"
import workStation from '@/mycomponents/workStation/workStation.vue'
export default {
components: {
comIssueRequestDetailCard,
comMessage,
requestTop,
workStation
},
data() {
return {
id: '',
requestContent: {}, //
subList: [], //
type: 'query' //add, query
type: 'query', //add, query
titleInfo: {}
};
},
onLoad(option) {
@ -88,7 +103,9 @@
} else {
if (res.data.subList.length > 0) {
that.requestContent = res.data;
that.requestContent.subList = res.data.subList;
that.titleInfo = that.requestContent.subList[0]
that.subList = res.data.subList;
// that.subList.forEach(res => {
// res.fromLocationCode = res.toLocationCode

48
pages/productPutaway/request/putawayRequest.vue

@ -51,7 +51,7 @@
getDetailAndApproveOption,
getDetailAndApprovePassAndApproveNoOption,
getDetailAndHandleOption,
getDetailAndCloseOption,
getDetailAndAddAndCloseOption,
getAddAgainOption
} from '@/common/array.js';
@ -69,15 +69,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: [],
loadingType: "nomore",
@ -88,8 +88,8 @@
this.addAgainOption = getAddAgainOption();
this.detailAndApproveOptions = getDetailAndApproveOption()
this.detailAndApprovePassAndApproveNoOption = getDetailAndApprovePassAndApproveNoOption(),
this.detailAndHandleOption = getDetailAndHandleOption()
this.detailAndCloseOption = getDetailAndCloseOption()
this.detailAndHandleOption = getDetailAndHandleOption()
this.detailAndAddAndCloseOption = getDetailAndAddAndCloseOption()
},
onReachBottom() {
@ -147,13 +147,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,
@ -200,10 +198,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
@ -221,32 +219,32 @@
if (text == "详情") {
this.openRequestInfoPopup(dataContent);
} else if (text == "处理") {
this.showQuestionMessage("确定要处理当前申请吗?",res=>{
this.showQuestionMessage("确定要处理当前申请吗?", res => {
this.productPutawayRequestHandle(dataContent.id)
})
} else if (text == "提交审批") {
this.showQuestionMessage("确定要审批当前申请吗?",res=>{
this.showQuestionMessage("确定要审批当前申请吗?", res => {
this.productPutawayRequestApprove(dataContent.id)
})
} else if (text=="审批通过") {
this.showQuestionMessage("确定要审批通过当前申请吗?",res=>{
} else if (text == "审批通过") {
this.showQuestionMessage("确定要审批通过当前申请吗?", res => {
this.productPutawayRequestApproveAgree(dataContent.id)
})
} else if (text == "审批驳回") {
this.showQuestionMessage("确定要审批驳回当前申请吗?",res=>{
this.showQuestionMessage("确定要审批驳回当前申请吗?", res => {
this.productPutawayRequestApproveRefused(dataContent.id)
})
} else if (text == "关闭") {
this.showQuestionMessage("确定要关闭当前申请吗?",res=>{
this.showQuestionMessage("确定要关闭当前申请吗?", res => {
this.productPutawayRequestClose(dataContent.id)
})
}else if(text == "重新添加"){
this.showQuestionMessage("确定要重新添加当前申请吗?",res=>{
} else if (text == "重新添加") {
this.showQuestionMessage("确定要重新添加当前申请吗?", res => {
this.productPutawayRequestAddAgain(dataContent.id)
})
}
},
showQuestionMessage(hint,callBack){
showQuestionMessage(hint, callBack) {
this.$refs.comMessage.showQuestionMessage(hint,
res => {
if (res) {

12
pages/productPutaway/request/putawayRequestDetail.vue

@ -1,6 +1,14 @@
<template>
<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">
<scroll-view scroll-y="true" class="page-main-scroll">
<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 requestDetailInfoPopup from '@/pages/productPutaway/coms/requestDetailInfoPopup.vue'
import comMessage from '@/mycomponents/common/comMessage.vue'
import requestTop from "@/mycomponents/request/requestTop.vue"
export default {
components: {
comRequestDetailCard,
requestDetailInfoPopup,
comMessage,
requestTop
},
data() {
return {

60
pages/productionReturn/coms/comReturnCommonRequest.vue

@ -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) {

2
pages/productionReturn/coms/comReturnRequestInfo.vue

@ -1,5 +1,5 @@
<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_info">
<view class="text_lightblue">车间</view>

18
pages/productionReturn/request/requestDetail.vue

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

48
pages/purchaseReturn/request/returnRequest.vue

@ -49,7 +49,7 @@
getDetailAndApproveOption,
getDetailAndApprovePassAndApproveNoOption,
getDetailAndHandleOption,
getDetailAndCloseOption,
getDetailAndAddAndCloseOption,
getAddAgainOption
} from '@/common/array.js';
@ -68,15 +68,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,8 +88,8 @@
this.addAgainOption = getAddAgainOption();
this.detailAndApproveOptions = getDetailAndApproveOption()
this.detailAndApprovePassAndApproveNoOption = getDetailAndApprovePassAndApproveNoOption(),
this.detailAndHandleOption = getDetailAndHandleOption()
this.detailAndCloseOption = getDetailAndCloseOption()
this.detailAndHandleOption = getDetailAndHandleOption()
this.detailAndAddAndCloseOption = getDetailAndAddAndCloseOption()
},
onReachBottom() {
@ -141,13 +141,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,
@ -193,10 +191,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
@ -213,32 +211,32 @@
if (text == "详情") {
this.openRequestInfoPopup(dataContent);
} else if (text == "处理") {
this.showQuestionMessage("确定要处理当前申请吗?",res=>{
this.showQuestionMessage("确定要处理当前申请吗?", res => {
this.purchaseReturnRequestHandle(dataContent.id)
})
} else if (text == "提交审批") {
this.showQuestionMessage("确定要审批当前申请吗?",res=>{
this.showQuestionMessage("确定要审批当前申请吗?", res => {
this.purchaseReturnRequestApprove(dataContent.id)
})
} else if (text=="审批通过") {
this.showQuestionMessage("确定要审批通过当前申请吗?",res=>{
} else if (text == "审批通过") {
this.showQuestionMessage("确定要审批通过当前申请吗?", res => {
this.purchaseReturnRequestApproveAgree(dataContent.id)
})
} else if (text == "审批驳回") {
this.showQuestionMessage("确定要审批驳回当前申请吗?",res=>{
this.showQuestionMessage("确定要审批驳回当前申请吗?", res => {
this.purchaseReturnRequestApproveRefused(dataContent.id)
})
} else if (text == "关闭") {
this.showQuestionMessage("确定要关闭当前申请吗?",res=>{
this.showQuestionMessage("确定要关闭当前申请吗?", res => {
this.purchaseReturnRequestClose(dataContent.id)
})
}else if(text == "重新添加"){
this.showQuestionMessage("确定要重新添加当前申请吗?",res=>{
} else if (text == "重新添加") {
this.showQuestionMessage("确定要重新添加当前申请吗?", res => {
this.purchaseReturnRequestAddAgain(dataContent.id)
})
}
},
showQuestionMessage(hint,callBack){
showQuestionMessage(hint, callBack) {
this.$refs.comMessage.showQuestionMessage(hint,
res => {
if (res) {

40
pages/purchaseReturn/request/returnRequestDetail.vue

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

48
pages/putaway/request/putawayRequest.vue

@ -50,7 +50,7 @@
getDetailAndApproveOption,
getDetailAndApprovePassAndApproveNoOption,
getDetailAndHandleOption,
getDetailAndCloseOption,
getDetailAndAddAndCloseOption,
getAddAgainOption
} from '@/common/array.js';
@ -69,15 +69,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,8 +88,8 @@
this.addAgainOption = getAddAgainOption();
this.detailAndApproveOptions = getDetailAndApproveOption()
this.detailAndApprovePassAndApproveNoOption = getDetailAndApprovePassAndApproveNoOption(),
this.detailAndHandleOption = getDetailAndHandleOption()
this.detailAndCloseOption = getDetailAndCloseOption()
this.detailAndHandleOption = getDetailAndHandleOption()
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
@ -219,32 +217,32 @@
if (text == "详情") {
this.openRequestInfoPopup(dataContent);
} else if (text == "处理") {
this.showQuestionMessage("确定要处理当前申请吗?",res=>{
this.showQuestionMessage("确定要处理当前申请吗?", res => {
this.putawayRequestHandle(dataContent.id)
})
} else if (text == "提交审批") {
this.showQuestionMessage("确定要审批当前申请吗?",res=>{
this.showQuestionMessage("确定要审批当前申请吗?", res => {
this.putawayRequestApprove(dataContent.id)
})
} else if (text=="审批通过") {
this.showQuestionMessage("确定要审批通过当前申请吗?",res=>{
} else if (text == "审批通过") {
this.showQuestionMessage("确定要审批通过当前申请吗?", res => {
this.putawayRequestApproveAgree(dataContent.id)
})
} else if (text == "审批驳回") {
this.showQuestionMessage("确定要审批驳回当前申请吗?",res=>{
this.showQuestionMessage("确定要审批驳回当前申请吗?", res => {
this.putawayRequestApproveRefused(dataContent.id)
})
} else if (text == "关闭") {
this.showQuestionMessage("确定要关闭当前申请吗?",res=>{
this.showQuestionMessage("确定要关闭当前申请吗?", res => {
this.putawayRequestClose(dataContent.id)
})
}else if(text == "重新添加"){
this.showQuestionMessage("确定要重新添加当前申请吗?",res=>{
} else if (text == "重新添加") {
this.showQuestionMessage("确定要重新添加当前申请吗?", res => {
this.putawayRequestAddAgain(dataContent.id)
})
}
},
showQuestionMessage(hint,callBack){
showQuestionMessage(hint, callBack) {
this.$refs.comMessage.showQuestionMessage(hint,
res => {
if (res) {

11
pages/putaway/request/putawayRequestDetail.vue

@ -1,5 +1,14 @@
<template>
<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">
<scroll-view scroll-y="true" class="page-main-scroll">
@ -35,12 +44,14 @@
import comRequestDetailCard from "@/mycomponents/detail/comRequestDetailCard.vue"
import requestDetailInfoPopup from '@/pages/putaway/coms/requestDetailInfoPopup.vue'
import comMessage from '@/mycomponents/common/comMessage.vue'
import requestTop from "@/mycomponents/request/requestTop.vue"
export default {
components: {
comRequestDetailCard,
requestDetailInfoPopup,
comMessage,
requestTop
},
data() {
return {

8
pages/repleinsh/request/repleinshRequest.vue

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

1
pages/scrap/request/scrapRequestCreate.vue

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

12
pages/scrap/request/scrapRequestDetail.vue

@ -1,6 +1,14 @@
<template>
<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">
<scroll-view scroll-y="true" class="page-main-scroll">
<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 requestDetailInfoPopup from '@/pages/scrap/coms/requestDetailInfoPopup.vue'
import comMessage from '@/mycomponents/common/comMessage.vue'
import requestTop from "@/mycomponents/request/requestTop.vue"
export default {
components: {
comRequestDetailCard,
requestDetailInfoPopup,
comMessage,
requestTop
},
data() {
return {

46
pages/scrap/request/scrapRrequest.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",
@ -87,8 +87,8 @@
this.addAgainOption = getAddAgainOption();
this.detailAndApproveOptions = getDetailAndApproveOption()
this.detailAndApprovePassAndApproveNoOption = getDetailAndApprovePassAndApproveNoOption(),
this.detailAndHandleOption = getDetailAndHandleOption()
this.detailAndCloseOption = getDetailAndCloseOption()
this.detailAndHandleOption = getDetailAndHandleOption()
this.detailAndAddAndCloseOption = getDetailAndAddAndCloseOption()
},
onReachBottom() {
@ -140,13 +140,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,
@ -192,10 +190,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
@ -212,32 +210,32 @@
if (text == "详情") {
this.openRequestInfoPopup(dataContent);
} else if (text == "处理") {
this.showQuestionMessage("确定要处理当前申请吗?",res=>{
this.showQuestionMessage("确定要处理当前申请吗?", res => {
this.scrapRequestHandle(dataContent.id)
})
} else if (text == "提交审批") {
this.showQuestionMessage("确定要审批当前申请吗?",res=>{
this.showQuestionMessage("确定要审批当前申请吗?", res => {
this.scrapRequestApprove(dataContent.id)
})
} else if (text == "审批通过") {
this.showQuestionMessage("确定要审批通过当前申请吗?",res=>{
this.showQuestionMessage("确定要审批通过当前申请吗?", res => {
this.scrapRequestApproveAgree(dataContent.id)
})
} else if (text == "审批驳回") {
this.showQuestionMessage("确定要审批驳回当前申请吗?",res=>{
this.showQuestionMessage("确定要审批驳回当前申请吗?", res => {
this.scrapRequestApproveRefused(dataContent.id)
})
} else if (text == "关闭") {
this.showQuestionMessage("确定要关闭当前申请吗?",res=>{
this.showQuestionMessage("确定要关闭当前申请吗?", res => {
this.scrapRequestClose(dataContent.id)
})
}else if(text == "重新添加"){
this.showQuestionMessage("确定要重新添加当前申请吗?",res=>{
} else if (text == "重新添加") {
this.showQuestionMessage("确定要重新添加当前申请吗?", res => {
this.scrapRequestAddAgain(dataContent.id)
})
}
},
showQuestionMessage(hint,callBack){
showQuestionMessage(hint, callBack) {
this.$refs.comMessage.showQuestionMessage(hint,
res => {
if (res) {

46
pages/unPlanned/request/issueRequest.vue

@ -51,7 +51,7 @@
getDetailAndApproveOption,
getDetailAndApprovePassAndApproveNoOption,
getDetailAndHandleOption,
getDetailAndCloseOption,
getDetailAndAddAndCloseOption,
getAddAgainOption
} from '@/common/array.js';
@ -70,15 +70,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",
@ -90,8 +90,8 @@
this.addAgainOption = getAddAgainOption();
this.detailAndApproveOptions = getDetailAndApproveOption()
this.detailAndApprovePassAndApproveNoOption = getDetailAndApprovePassAndApproveNoOption(),
this.detailAndHandleOption = getDetailAndHandleOption()
this.detailAndCloseOption = getDetailAndCloseOption()
this.detailAndHandleOption = getDetailAndHandleOption()
this.detailAndAddAndCloseOption = getDetailAndAddAndCloseOption()
},
onReachBottom() {
@ -144,13 +144,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,
@ -198,10 +196,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
@ -218,32 +216,32 @@
if (text == "详情") {
this.openRequestInfoPopup(dataContent);
} else if (text == "处理") {
this.showQuestionMessage("确定要处理当前申请吗?",res=>{
this.showQuestionMessage("确定要处理当前申请吗?", res => {
this.unPlannedIssueRequestHandle(dataContent.id)
})
} else if (text == "提交审批") {
this.showQuestionMessage("确定要审批当前申请吗?",res=>{
this.showQuestionMessage("确定要审批当前申请吗?", res => {
this.unPlannedIssueRequestApprove(dataContent.id)
})
} else if (text == "审批通过") {
this.showQuestionMessage("确定要审批通过当前申请吗?",res=>{
this.showQuestionMessage("确定要审批通过当前申请吗?", res => {
this.unPlannedIssueRequestApproveAgree(dataContent.id)
})
} else if (text == "审批驳回") {
this.showQuestionMessage("确定要审批驳回当前申请吗?",res=>{
this.showQuestionMessage("确定要审批驳回当前申请吗?", res => {
this.unPlannedIssueRequestApproveRefused(dataContent.id)
})
} else if (text == "关闭") {
this.showQuestionMessage("确定要关闭当前申请吗?",res=>{
this.showQuestionMessage("确定要关闭当前申请吗?", res => {
this.unPlannedIssueRequestClose(dataContent.id)
})
}else if(text == "重新添加"){
this.showQuestionMessage("确定要重新添加当前申请吗?",res=>{
} else if (text == "重新添加") {
this.showQuestionMessage("确定要重新添加当前申请吗?", res => {
this.unPlannedIssueRequestAddAgain(dataContent.id)
})
}
},
showQuestionMessage(hint,callBack){
showQuestionMessage(hint, callBack) {
this.$refs.comMessage.showQuestionMessage(hint,
res => {
if (res) {

12
pages/unPlanned/request/issueRequestDetail.vue

@ -1,6 +1,14 @@
<template>
<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">
<scroll-view scroll-y="true" class="page-main-scroll">
<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 requestIssDetailInfoPopup from '@/pages/unPlanned/coms/requestIssDetailInfoPopup.vue'
import comMessage from '@/mycomponents/common/comMessage.vue'
import requestTop from "@/mycomponents/request/requestTop.vue"
export default {
components: {
comRequestDetailCard,
requestIssDetailInfoPopup,
comMessage,
requestTop
},
data() {
return {

46
pages/unPlanned/request/receiptRequest.vue

@ -50,7 +50,7 @@
getDetailAndApproveOption,
getDetailAndApprovePassAndApproveNoOption,
getDetailAndHandleOption,
getDetailAndCloseOption,
getDetailAndAddAndCloseOption,
getAddAgainOption
} from '@/common/array.js';
@ -69,15 +69,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",
@ -89,8 +89,8 @@
this.addAgainOption = getAddAgainOption();
this.detailAndApproveOptions = getDetailAndApproveOption()
this.detailAndApprovePassAndApproveNoOption = getDetailAndApprovePassAndApproveNoOption(),
this.detailAndHandleOption = getDetailAndHandleOption()
this.detailAndCloseOption = getDetailAndCloseOption()
this.detailAndHandleOption = getDetailAndHandleOption()
this.detailAndAddAndCloseOption = getDetailAndAddAndCloseOption()
},
onReachBottom() {
@ -143,13 +143,11 @@
this.requestList = [];
}
var filters = []
if (this.checkedWaitTask) {
filters.push({
column: "status",
action: "==",
value: this.status
})
}
filters.push({
column: "status",
action: "==",
value: this.status
})
var params = {
filters: filters,
pageNo: this.pageNo,
@ -195,10 +193,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.unPlannedReceiptRequestHandle(dataContent.id)
})
} else if (text == "提交审批") {
this.showQuestionMessage("确定要审批当前申请吗?",res=>{
this.showQuestionMessage("确定要审批当前申请吗?", res => {
this.unPlannedReceiptRequestApprove(dataContent.id)
})
} else if (text == "审批通过") {
this.showQuestionMessage("确定要审批通过当前申请吗?",res=>{
this.showQuestionMessage("确定要审批通过当前申请吗?", res => {
this.unPlannedReceiptRequestApproveAgree(dataContent.id)
})
} else if (text == "审批驳回") {
this.showQuestionMessage("确定要审批驳回当前申请吗?",res=>{
this.showQuestionMessage("确定要审批驳回当前申请吗?", res => {
this.unPlannedReceiptRequestApproveRefused(dataContent.id)
})
} else if (text == "关闭") {
this.showQuestionMessage("确定要关闭当前申请吗?",res=>{
this.showQuestionMessage("确定要关闭当前申请吗?", res => {
this.unPlannedReceiptRequestClose(dataContent.id)
})
}else if(text == "重新添加"){
this.showQuestionMessage("确定要重新添加当前申请吗?",res=>{
} else if (text == "重新添加") {
this.showQuestionMessage("确定要重新添加当前申请吗?", res => {
this.unPlannedReceiptRequestAddAgain(dataContent.id)
})
}
},
showQuestionMessage(hint,callBack){
showQuestionMessage(hint, callBack) {
this.$refs.comMessage.showQuestionMessage(hint,
res => {
if (res) {

38
pages/unPlanned/request/receiptRequestDetail.vue

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

Loading…
Cancel
Save