Browse Source

非生产领退料添加筛选

pda_nev
李俊城 7 months ago
parent
commit
850378c9e8
  1. 7
      fe/PDA/api/index.js
  2. 16
      fe/PDA/common/basic.js
  3. 4
      fe/PDA/mycomponents/comjob/comJobUnScanDetail.vue
  4. 6
      fe/PDA/mycomponents/coms/task/comUnProduce.vue
  5. 11
      fe/PDA/mycomponents/popup/balanceList.vue
  6. 9
      fe/PDA/mycomponents/popup/recommendList.vue
  7. 4
      fe/PDA/pages/index/index.vue
  8. 48
      fe/PDA/pages/task/unProducePick.vue
  9. 30
      fe/PDA/pages/task/unProducePickWip.vue
  10. 29
      fe/PDA/pages/task/unProduceReturn.vue
  11. 31
      fe/PDA/pages/task/unProduceReturnWip.vue

7
fe/PDA/api/index.js

@ -1116,6 +1116,13 @@ export const rawDeliver = (params) => request(
data: params, data: params,
method: "post" method: "post"
}); });
//原料直发 校验物品价格
export const rawDeliverCheckPrice = (params) => request(
devUrl + "/api/pda/SalePriceSheet/get-list-by-itemcode-and-customercoder", { //
data: params,
method: "post"
});
//调拨发货 //调拨发货

16
fe/PDA/common/basic.js

@ -218,8 +218,8 @@ export function getJobType(val) {
else if (val == 23) return 'SparePartIssueJob' //备品发料 else if (val == 23) return 'SparePartIssueJob' //备品发料
else if (val == 96) return 'unProducePick' //非生产领料 原料 else if (val == 96) return 'unProducePick' //非生产领料 原料
else if (val == 97) return 'unProducePickWip' //非生产领料 线边 else if (val == 97) return 'unProducePickWip' //非生产领料 线边
else if (val == 98) return 'unProduceReturn' //非生产退料 原料 else if (val == 98) return 'unProduceReturnWip' //非生产退料 线边
else if (val == 99) return 'unProduceReturnWip' //非生产退料 线边 else if (val == 99) return 'unProduceReturn' //非生产退料 原料
else return 'Other' else return 'Other'
} }
@ -496,4 +496,16 @@ const S4 = function() {
export function guid() { export function guid() {
return (S4() + S4() +'-' +S4() +'-' +S4() +'-' +S4() +'-' +S4() +S4() +S4() return (S4() + S4() +'-' +S4() +'-' +S4() +'-' +S4() +'-' +S4() +S4() +S4()
); );
}
export function debounceSetting(fn, wait) {
let timeout = null;
wait = wait || 600;
return function () {
let that = this;
if(timeout !== null) clearTimeout(timeout);
timeout = setTimeout(() => {
fn.apply(that);
}, wait);
}
} }

4
fe/PDA/mycomponents/comjob/comJobUnScanDetail.vue

@ -8,6 +8,10 @@
</text> </text>
<text class="tit_ljh">{{ jobContent.number }}</text> <text class="tit_ljh">{{ jobContent.number }}</text>
</view> --> </view> -->
<view class="label_order">
<text >OA单号</text>
<text style="font-weight: bold; color:black" >{{jobContent.oaNumber}}</text>
</view>
<view class="label_order"> <view class="label_order">
<text >ERP储位</text> <text >ERP储位</text>
<text style="font-weight: bold; color:black" >{{jobContent.fromErpLocationCode}}</text> <text style="font-weight: bold; color:black" >{{jobContent.fromErpLocationCode}}</text>

6
fe/PDA/mycomponents/coms/task/comUnProduce.vue

@ -8,6 +8,11 @@
</image> </image>
</view> </view>
<view class="margin_xs_bottom" style="clear: both;"> <view class="margin_xs_bottom" style="clear: both;">
<view class="label_order">
<!-- <image class="icon_normal" src="@/static/icons_ui/icon_apply_num.svg"></image> -->
<text>OA单号</text>
<text style="font-weight: bold; color:black" >{{dataContent.oaNumber}}</text>
</view>
<view class="label_order"> <view class="label_order">
<!-- <image class="icon_normal" src="@/static/icons_ui/icon_apply_num.svg"></image> --> <!-- <image class="icon_normal" src="@/static/icons_ui/icon_apply_num.svg"></image> -->
<text>单号</text> <text>单号</text>
@ -15,6 +20,7 @@
<!-- <text>申请单{{dataContent.materialRequestNumber}}</text> --> <!-- <text>申请单{{dataContent.materialRequestNumber}}</text> -->
<text style="font-weight: bold; color:black" v-else>{{dataContent.unplannedReceiptRequestNumber}}</text> <text style="font-weight: bold; color:black" v-else>{{dataContent.unplannedReceiptRequestNumber}}</text>
</view> </view>
<view class="" > <view class="" >
<view class="label_order"> <view class="label_order">
<text >ERP储位</text> <text >ERP储位</text>

11
fe/PDA/mycomponents/popup/balanceList.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="container"> <view class="container">
<uni-popup ref="popup" :maskClick="true"> <u-popup ref="popup" v-model="showPopup" border-radius="15" style="width: 100%;" mode="center">
<view class="" style="align-items: center;background-color: #fff; border-radius: 15rpx; margin: 20rpx;"> <view class="" style="align-items: center;background-color: #fff; border-radius: 15rpx; margin: 20rpx;">
<view class="uni-center popup-content" <view class="uni-center popup-content"
style="font-weight: bold; font-size: 40rpx;padding-top: 20rpx; padding-bottom: 20rpx;"> style="font-weight: bold; font-size: 40rpx;padding-top: 20rpx; padding-bottom: 20rpx;">
@ -9,7 +9,7 @@
<view class="" style="background-color: black; height: 1rpx; "> <view class="" style="background-color: black; height: 1rpx; ">
</view> </view>
<scroll-view scroll-y="" <scroll-view scroll-y
style="background-color: #fff; align-items: center; border-radius: 10rpx; height: 600rpx; width: 100%"> style="background-color: #fff; align-items: center; border-radius: 10rpx; height: 600rpx; width: 100%">
<view class="uni-flex " style="flex-direction: column; " v-for="(item,index) in dataList" :key="index"> <view class="uni-flex " style="flex-direction: column; " v-for="(item,index) in dataList" :key="index">
<view class="uni-flex " style="font-size: 38rpx; padding: 25rpx; flex-direction: row;" > <view class="uni-flex " style="font-size: 38rpx; padding: 25rpx; flex-direction: row;" >
@ -64,7 +64,7 @@
</view> </view>
</uni-popup> </u-popup>
</view> </view>
</template> </template>
@ -80,6 +80,7 @@
data() { data() {
return { return {
dataList: [], dataList: [],
showPopup:false
} }
}, },
@ -88,10 +89,10 @@
methods: { methods: {
openScanPopup(list) { openScanPopup(list) {
this.dataList = list; this.dataList = list;
this.$refs.popup.open('center') this.showPopup=true
}, },
closeScanPopup() { closeScanPopup() {
this.$refs.popup.close() this.showPopup=false
}, },
select(item) { select(item) {
this.closeScanPopup(); this.closeScanPopup();

9
fe/PDA/mycomponents/popup/recommendList.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="container"> <view class="container">
<uni-popup ref="popup" :maskClick="true"> <u-popup ref="popup" v-model="showPopup" border-radius="15" style="width: 100%;" mode="center">
<view class="" style="align-items: center;background-color: #fff; border-radius: 15rpx; margin: 20rpx;"> <view class="" style="align-items: center;background-color: #fff; border-radius: 15rpx; margin: 20rpx;">
<view class="uni-center popup-content" <view class="uni-center popup-content"
style="font-weight: bold; font-size: 40rpx;padding-top: 20rpx; padding-bottom: 20rpx;"> style="font-weight: bold; font-size: 40rpx;padding-top: 20rpx; padding-bottom: 20rpx;">
@ -64,7 +64,7 @@
</view> </view>
</uni-popup> </u-popup>
</view> </view>
</template> </template>
@ -80,6 +80,7 @@
data() { data() {
return { return {
dataList: [], dataList: [],
showPopup:false
} }
}, },
@ -88,10 +89,10 @@
methods: { methods: {
openScanPopup(list) { openScanPopup(list) {
this.dataList = list; this.dataList = list;
this.$refs.popup.open('center') this.showPopup=true
}, },
closeScanPopup() { closeScanPopup() {
this.$refs.popup.close() this.showPopup=false
}, },
select(item) { select(item) {
this.closeScanPopup(); this.closeScanPopup();

4
fe/PDA/pages/index/index.vue

@ -161,6 +161,10 @@
} }
}, },
onShow() { onShow() {
localStorage.setItem("pick_oaNumber","")
localStorage.setItem("pickWip_oaNumber","")
localStorage.setItem("return_oaNumber","")
localStorage.setItem("returnWip_oaNumber","")
let that = this; let that = this;
if (that.timer != null) if (that.timer != null)
return; return;

48
fe/PDA/pages/task/unProducePick.vue

@ -1,7 +1,11 @@
<template> <template>
<page-meta root-font-size="18px"></page-meta> <page-meta root-font-size="18px"></page-meta>
<view class=""> <view class="">
<view class="" style=" padding: 20rpx; font-weight: bold;">
<uni-easyinput v-model="oaNumber" :styles="styles" :placeholderStyle="placeholderStyle" placeholder="请输入OA单号"
@input="changeValue"></uni-easyinput>
</view>
<win-empty-view v-if="dataList.length==0"></win-empty-view> <win-empty-view v-if="dataList.length==0"></win-empty-view>
<view hover-class="uni-list-cell-hover" v-for="(item, index) in dataList" :key="item.id" <view hover-class="uni-list-cell-hover" v-for="(item, index) in dataList" :key="item.id"
@click="openDetail(item)"> @click="openDetail(item)">
@ -23,8 +27,10 @@
} from '@/api/index.js'; } from '@/api/index.js';
import { import {
goHome goHome,
debounceSetting
} from '@/common/basic.js'; } from '@/common/basic.js';
import winEmptyView from '@/mycomponents/wincom/winEmptyView.vue' import winEmptyView from '@/mycomponents/wincom/winEmptyView.vue'
import comUnProduce from '@/mycomponents/coms/task/comUnProduce.vue'; import comUnProduce from '@/mycomponents/coms/task/comUnProduce.vue';
@ -60,21 +66,29 @@
isIssueTimeChange: false, isIssueTimeChange: false,
isToday: false, isToday: false,
titleArray: ['任务编号'], titleArray: ['任务编号'],
loadingType: "nomore" loadingType: "nomore",
styles: {
color: '#2979FF',
borderColor: '#2979FF',
padding:"20"
},
placeholderStyle: "color:#2979FF;font-size:14px;font-weight: bold;",
oaNumber:""
}; };
}, },
onShow() { onShow() {
this.oaNumber =localStorage.getItem("pick_oaNumber")
this.getList('refresh'); this.getList('refresh');
}, },
mounted() { mounted() {
}, },
// //
onNavigationBarButtonTap(e) { onNavigationBarButtonTap(e) {
if (e.index === 0) { if (e.index === 0) {
goHome(); goHome();
}else if(e.index === 1){ } else if (e.index === 1) {
window.location.reload(); window.location.reload();
} }
}, },
@ -111,7 +125,8 @@
pageIndex: that.pageIndex, pageIndex: that.pageIndex,
isCreationTimeSorting: that.isIssueTimeChange, isCreationTimeSorting: that.isIssueTimeChange,
isToday: that.isToday, isToday: that.isToday,
ishaspag:1 ishaspag: 1,
OaNumber: localStorage.getItem("pick_oaNumber")? localStorage.getItem("pick_oaNumber"):""
}; };
getUnProducePickList(params) getUnProducePickList(params)
.then(res => { .then(res => {
@ -133,6 +148,7 @@
.catch(err => { .catch(err => {
this.showMessage(err.message); this.showMessage(err.message);
uni.hideLoading(); uni.hideLoading();
uni.stopPullDownRefresh();
}); });
}, },
@ -155,7 +171,7 @@
showMessage(message) { showMessage(message) {
this.$refs.comMessage.showMessage(message); this.$refs.comMessage.showMessage(message);
}, },
onPull() { onPullDownRefresh() {
this.getList('refresh'); this.getList('refresh');
}, },
onReachBottom() { onReachBottom() {
@ -170,9 +186,21 @@
}, },
selectedItem(item) { selectedItem(item) {
this.openDetail(item); this.openDetail(item);
} },
changeValue: debounceSetting(function() {
localStorage.setItem("pick_oaNumber",this.oaNumber)
this.getList('refresh');
}, 500),
// changeValue(e){
// console.log(e)
// debounceSetting(this.test(e), 500)
// } ,
// test:function(e){
// console.log("1"+e)
// }
} }
}; };
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
</style> </style>

30
fe/PDA/pages/task/unProducePickWip.vue

@ -1,7 +1,10 @@
<template> <template>
<page-meta root-font-size="18px"></page-meta> <page-meta root-font-size="18px"></page-meta>
<view class=""> <view class="">
<view class="" style=" padding: 20rpx; font-weight: bold;">
<uni-easyinput v-model="oaNumber" :styles="styles" :placeholderStyle="placeholderStyle" placeholder="请输入OA单号"
@input="changeValue"></uni-easyinput>
</view>
<win-empty-view v-if="dataList.length==0"></win-empty-view> <win-empty-view v-if="dataList.length==0"></win-empty-view>
<view hover-class="uni-list-cell-hover" v-for="(item, index) in dataList" :key="item.id" <view hover-class="uni-list-cell-hover" v-for="(item, index) in dataList" :key="item.id"
@click="openDetail(item)"> @click="openDetail(item)">
@ -23,7 +26,8 @@
} from '@/api/index.js'; } from '@/api/index.js';
import { import {
goHome goHome,
debounceSetting
} from '@/common/basic.js'; } from '@/common/basic.js';
import winEmptyView from '@/mycomponents/wincom/winEmptyView.vue' import winEmptyView from '@/mycomponents/wincom/winEmptyView.vue'
@ -60,10 +64,18 @@
isIssueTimeChange: false, isIssueTimeChange: false,
isToday: false, isToday: false,
titleArray: ['任务编号'], titleArray: ['任务编号'],
loadingType: "nomore" loadingType: "nomore",
styles: {
color: '#2979FF',
borderColor: '#2979FF',
padding:"20"
},
placeholderStyle: "color:#2979FF;font-size:14px;font-weight: bold;",
oaNumber:""
}; };
}, },
onShow() { onShow() {
this.oaNumber =localStorage.getItem("pickWip_oaNumber")
this.getList('refresh'); this.getList('refresh');
}, },
@ -111,7 +123,8 @@
pageIndex: that.pageIndex, pageIndex: that.pageIndex,
isCreationTimeSorting: that.isIssueTimeChange, isCreationTimeSorting: that.isIssueTimeChange,
isToday: that.isToday, isToday: that.isToday,
ishaspag:0 ishaspag:0,
OaNumber: localStorage.getItem("pickWip_oaNumber")? localStorage.getItem("pickWip_oaNumber"):""
}; };
getUnProducePickList(params) getUnProducePickList(params)
.then(res => { .then(res => {
@ -133,6 +146,7 @@
.catch(err => { .catch(err => {
this.showMessage(err.message); this.showMessage(err.message);
uni.hideLoading(); uni.hideLoading();
uni.stopPullDownRefresh();
}); });
}, },
@ -155,7 +169,7 @@
showMessage(message) { showMessage(message) {
this.$refs.comMessage.showMessage(message); this.$refs.comMessage.showMessage(message);
}, },
onPull() { onPullDownRefresh() {
this.getList('refresh'); this.getList('refresh');
}, },
onReachBottom() { onReachBottom() {
@ -170,7 +184,11 @@
}, },
selectedItem(item) { selectedItem(item) {
this.openDetail(item); this.openDetail(item);
} },
changeValue: debounceSetting(function() {
localStorage.setItem("pickWip_oaNumber",this.oaNumber)
this.getList('refresh');
}, 500),
} }
}; };
</script> </script>

29
fe/PDA/pages/task/unProduceReturn.vue

@ -1,7 +1,10 @@
<template> <template>
<page-meta root-font-size="18px"></page-meta> <page-meta root-font-size="18px"></page-meta>
<view class=""> <view class="">
<view class="" style=" padding: 20rpx; font-weight: bold;">
<uni-easyinput v-model="oaNumber" :styles="styles" :placeholderStyle="placeholderStyle" placeholder="请输入OA单号"
@input="changeValue"></uni-easyinput>
</view>
<win-empty-view v-if="dataList.length==0"></win-empty-view> <win-empty-view v-if="dataList.length==0"></win-empty-view>
<view hover-class="uni-list-cell-hover" v-for="(item, index) in dataList" :key="item.id" <view hover-class="uni-list-cell-hover" v-for="(item, index) in dataList" :key="item.id"
@click="openDetail(item)"> @click="openDetail(item)">
@ -23,7 +26,8 @@
} from '@/api/index.js'; } from '@/api/index.js';
import { import {
goHome goHome,
debounceSetting
} from '@/common/basic.js'; } from '@/common/basic.js';
import winEmptyView from '@/mycomponents/wincom/winEmptyView.vue' import winEmptyView from '@/mycomponents/wincom/winEmptyView.vue'
@ -60,10 +64,18 @@
isIssueTimeChange: false, isIssueTimeChange: false,
isToday: false, isToday: false,
titleArray: ['任务编号'], titleArray: ['任务编号'],
loadingType: "nomore" loadingType: "nomore",
styles: {
color: '#2979FF',
borderColor: '#2979FF',
padding:"20"
},
placeholderStyle: "color:#2979FF;font-size:14px;font-weight: bold;",
oaNumber:""
}; };
}, },
onShow() { onShow() {
this.oaNumber =localStorage.getItem("return_oaNumber")
this.getList('refresh'); this.getList('refresh');
}, },
@ -115,7 +127,8 @@
pageIndex: that.pageIndex, pageIndex: that.pageIndex,
isCreationTimeSorting: that.isIssueTimeChange, isCreationTimeSorting: that.isIssueTimeChange,
isToday: that.isToday, isToday: that.isToday,
ishaspag:1 ishaspag:1,
OaNumber: localStorage.getItem("return_oaNumber")? localStorage.getItem("return_oaNumber"):""
}; };
getUnProduceReturnList(params) getUnProduceReturnList(params)
.then(res => { .then(res => {
@ -136,6 +149,7 @@
.catch(err => { .catch(err => {
this.showMessage(err.message); this.showMessage(err.message);
uni.hideLoading(); uni.hideLoading();
uni.stopPullDownRefresh();
}); });
}, },
@ -173,7 +187,12 @@
}, },
selectedItem(item) { selectedItem(item) {
this.openDetail(item); this.openDetail(item);
} },
changeValue: debounceSetting(function() {
localStorage.setItem("return_oaNumber",this.oaNumber)
this.getList('refresh');
}, 500),
} }
}; };

31
fe/PDA/pages/task/unProduceReturnWip.vue

@ -1,7 +1,10 @@
<template> <template>
<page-meta root-font-size="18px"></page-meta> <page-meta root-font-size="18px"></page-meta>
<view class=""> <view class="">
<view class="" style=" padding: 20rpx; font-weight: bold;">
<uni-easyinput v-model="oaNumber" :styles="styles" :placeholderStyle="placeholderStyle" placeholder="请输入OA单号"
@input="changeValue"></uni-easyinput>
</view>
<win-empty-view v-if="dataList.length==0"></win-empty-view> <win-empty-view v-if="dataList.length==0"></win-empty-view>
<view hover-class="uni-list-cell-hover" v-for="(item, index) in dataList" :key="item.id" <view hover-class="uni-list-cell-hover" v-for="(item, index) in dataList" :key="item.id"
@click="openDetail(item)"> @click="openDetail(item)">
@ -23,7 +26,8 @@
} from '@/api/index.js'; } from '@/api/index.js';
import { import {
goHome goHome,
debounceSetting
} from '@/common/basic.js'; } from '@/common/basic.js';
import winEmptyView from '@/mycomponents/wincom/winEmptyView.vue' import winEmptyView from '@/mycomponents/wincom/winEmptyView.vue'
@ -60,10 +64,18 @@
isIssueTimeChange: false, isIssueTimeChange: false,
isToday: false, isToday: false,
titleArray: ['任务编号'], titleArray: ['任务编号'],
loadingType: "nomore" loadingType: "nomore",
styles: {
color: '#2979FF',
borderColor: '#2979FF',
padding:"20"
},
placeholderStyle: "color:#2979FF;font-size:14px;font-weight: bold;",
oaNumber:""
}; };
}, },
onShow() { onShow() {
this.oaNumber =localStorage.getItem("returnWip_oaNumber")
this.getList('refresh'); this.getList('refresh');
}, },
@ -111,7 +123,8 @@
pageIndex: that.pageIndex, pageIndex: that.pageIndex,
isCreationTimeSorting: that.isIssueTimeChange, isCreationTimeSorting: that.isIssueTimeChange,
isToday: that.isToday, isToday: that.isToday,
ishaspag:0 ishaspag:0,
OaNumber: localStorage.getItem("returnWip_oaNumber")? localStorage.getItem("returnWip_oaNumber"):""
}; };
getUnProduceReturnList(params) getUnProduceReturnList(params)
.then(res => { .then(res => {
@ -132,6 +145,7 @@
.catch(err => { .catch(err => {
this.showMessage(err.message); this.showMessage(err.message);
uni.hideLoading(); uni.hideLoading();
uni.stopPullDownRefresh();
}); });
}, },
@ -144,7 +158,6 @@
}, },
openDetail(item) { openDetail(item) {
uni.navigateTo({ uni.navigateTo({
url: './unProduceReturnWipDetail?id=' + item.id+ '&jobStatus=' + item.jobStatus url: './unProduceReturnWipDetail?id=' + item.id+ '&jobStatus=' + item.jobStatus
@ -154,7 +167,7 @@
showMessage(message) { showMessage(message) {
this.$refs.comMessage.showMessage(message); this.$refs.comMessage.showMessage(message);
}, },
onPull() { onPullDownRefresh() {
this.getList('refresh'); this.getList('refresh');
}, },
onReachBottom() { onReachBottom() {
@ -169,7 +182,11 @@
}, },
selectedItem(item) { selectedItem(item) {
this.openDetail(item); this.openDetail(item);
} },
changeValue: debounceSetting(function() {
localStorage.setItem("returnWip_oaNumber",this.oaNumber)
this.getList('refresh');
}, 500),
} }
}; };

Loading…
Cancel
Save