Browse Source

修改客户退货

pda_nev
李俊城 11 months ago
parent
commit
cd817ad0e1
  1. 17
      fe/PDA/pages/putaway/purchasePutaway.vue
  2. 52
      fe/PDA/pages/record/productionReturn.vue
  3. 8
      fe/PDA/pages/task/assembleIssueJobDetailByQty.vue
  4. 2
      fe/PDA/pages/task/coatingIssuleJob.vue
  5. 8
      fe/PDA/pages/task/coatingIssuleJobDetailByQty.vue
  6. 8
      fe/PDA/pages/task/injectionIssueJobDetailByQty.vue
  7. 8
      fe/PDA/pages/task/kittingIssueJobDetailByQty.vue
  8. 8
      fe/PDA/pages/task/sparePartIssueJobDetailByQty.vue
  9. 6
      fe/PDA/pages/task/thirdLocationDetail.vue

17
fe/PDA/pages/putaway/purchasePutaway.vue

@ -246,18 +246,21 @@
let infoList = await getPurchaseDetailAsyncNew(balanceItem let infoList = await getPurchaseDetailAsyncNew(balanceItem
.packingCode) .packingCode)
if (infoList) { if (infoList) {
var fromTopPackingCode="" var fromTopPackingCode = ""
for (var i = 0; i < infoList.length; i++) { for (var i = 0; i < infoList.length; i++) {
if(infoList[i].fromPackingCode==balanceItem.packingCode){ if (infoList[i].toPackingCode == balanceItem.packingCode) {
fromTopPackingCode=infoList[i].fromTopPackingCode fromTopPackingCode = infoList[i].fromTopPackingCode
break break
} }
} }
this.poNumber = infoList[0].purchaseInfo_PoNumber this.poNumber = infoList[0].purchaseInfo_PoNumber
this.showPopList=[] this.showPopList = []
infoList.forEach(res=>{ infoList.forEach(res => {
this.showPopList.push(res.fromTopPackingCode) if (res.oprType == 0) {
this.showPopList.push(res.fromTopPackingCode)
}
}) })
} }

52
fe/PDA/pages/record/productionReturn.vue

@ -3,7 +3,7 @@
<view class=""> <view class="">
<win-blank-view @goScan='openScanPopup' v-if="allDataList.length==0"></win-blank-view> <win-blank-view @goScan='openScanPopup' v-if="allDataList.length==0"></win-blank-view>
<scroll-view scroll-y class="scroll-detail" style="margin-top: 10rpx;padding-bottom:100px" > <scroll-view scroll-y class="scroll-detail" style="margin-top: 10rpx;padding-bottom:100px" >
<view class="detail-list " v-for="(item, index) in showList" :key="index"> <view class="detail-list " v-for="(item, index) in allDataList" :key="index">
<view class="detail-content"> <view class="detail-content">
<view class="" style=""> <view class="" style="">
<view class="uni-flex uni-row u-col-center"> <view class="uni-flex uni-row u-col-center">
@ -53,8 +53,7 @@
</view> </view>
</scroll-view> </scroll-view>
<uni-load-more :status="loadingType" v-if="showList.length>0" /> <div class="new_bot_box" v-show="allDataList.length>0">
<div class="new_bot_box" v-show="showList.length>0">
<win-collapse-location scanTitle='扫描目标库位' ref='comCollapseLocation' @getLocationCode='getDefaultToLocation' <win-collapse-location scanTitle='扫描目标库位' ref='comCollapseLocation' @getLocationCode='getDefaultToLocation'
@clear='clearDefaultLocation'> @clear='clearDefaultLocation'>
</win-collapse-location> </win-collapse-location>
@ -63,7 +62,7 @@
<button class="new_save_btn btn_double" @click="submit()">提交</button> <button class="new_save_btn btn_double" @click="submit()">提交</button>
</view> </view>
</div> </div>
<win-scan-button @goScan='openScanPopup' v-if="showList.length>0"></win-scan-button> <win-scan-button @goScan='openScanPopup' v-if="allDataList.length>0"></win-scan-button>
<winScanByProductCode ref="scanPackPopup" title="单件码" @getScanResult='getScanResult'></winScanByProductCode> <winScanByProductCode ref="scanPackPopup" title="单件码" @getScanResult='getScanResult'></winScanByProductCode>
<com-message ref="comMessage" @afterCloseScanMessage='closeScanMessage' @afterRescanMessage='afterRescan' <com-message ref="comMessage" @afterCloseScanMessage='closeScanMessage' @afterRescanMessage='afterRescan'
@afterCloseCommitMessage='closeCommitMessage'> @afterCloseCommitMessage='closeCommitMessage'>
@ -120,14 +119,11 @@
return { return {
options: [], options: [],
currentItem: {}, currentItem: {},
showList: [],
toLocationInfo:{}, toLocationInfo:{},
toLocationCode: "", toLocationCode: "",
allCount: 0, allCount: 0,
allDataList: [], allDataList: [],
loadingType: "", loadingType: "",
pageNo: 0,
pageSize: 5,
scrollTop: 60, scrollTop: 60,
old: { old: {
scrollTop: 0 scrollTop: 0
@ -143,29 +139,8 @@
}) })
}, },
onPullDownRefresh() { onPullDownRefresh() {
this.pageNo = 1;
this.showList=[]
this.loadingType = "";
this.showList = this.getDataPage(this.pageNo, this.pageSize)
uni.stopPullDownRefresh() uni.stopPullDownRefresh()
}, },
onReachBottom() {
console.log("底部")
if (this.loadingType == 'nomore') {
console.log("没有更多了")
return;
}
this.pageNo++;
var list = this.getDataPage(this.pageNo, this.pageSize)
if (list.length > 0) {
console.log("加载更多了")
// this.showList=list
this.showList = this.showList.concat(list)
} else {
//
this.loadingType = "nomore";
}
},
onNavigationBarButtonTap(e) { onNavigationBarButtonTap(e) {
@ -181,15 +156,6 @@
methods: { methods: {
getDataPage(pageNo, pageSize) {
//
var totalPages = Math.ceil(this.allCount / pageSize);
//
const start = (pageNo - 1) * pageSize;
const end = start + pageSize; //
return this.allDataList.slice(start, end)
},
qtyChanged(value, item, index) { qtyChanged(value, item, index) {
if (value <= 0) { if (value <= 0) {
this.showMessage('退货数量必须大于0') this.showMessage('退货数量必须大于0')
@ -202,8 +168,9 @@
if (res) { if (res) {
this.allDataList.splice(index, 1); this.allDataList.splice(index, 1);
this.allCount = this.allDataList.length; this.allCount = this.allDataList.length;
var title =this.allCount>0?"客户退货"+"("+this.allCount+")":"客户退货"
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: "客户退货"+"("+this.allCount+")" title: title
}) })
this.$forceUpdate() this.$forceUpdate()
} }
@ -232,10 +199,6 @@
} }
this.allDataList.unshift(item) this.allDataList.unshift(item)
this.allCount = this.allDataList.length; this.allCount = this.allDataList.length;
this.pageNo = 1;
this.showList = []
this.loadingType = "";
this.showList = this.getDataPage(this.pageNo, this.pageSize)
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: "客户退货"+"("+this.allCount+")" title: "客户退货"+"("+this.allCount+")"
}) })
@ -356,7 +319,7 @@
details: [] details: []
} }
that.showList.forEach(i => { that.allDataList.forEach(i => {
let balanceItem = i.balanceItem; let balanceItem = i.balanceItem;
i.labelList.forEach(l => { i.labelList.forEach(l => {
let detail = {}; let detail = {};
@ -441,15 +404,14 @@
clearInfo() { clearInfo() {
this.allDataList = []; this.allDataList = [];
this.showList = [];
this.toLocationInfo={} this.toLocationInfo={}
this.toLocationCode = ""; this.toLocationCode = "";
this.allCount = 0; this.allCount = 0;
this.loadingType = "" this.loadingType = ""
this.pageNo = 0
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: "客户退货" title: "客户退货"
}) })
this.$refs.comCollapseLocation.clearLocation();
}, },
openScanPopup() { openScanPopup() {

8
fe/PDA/pages/task/assembleIssueJobDetailByQty.vue

@ -389,10 +389,10 @@
uni.hideLoading() uni.hideLoading()
if (res.length > 0) { if (res.length > 0) {
var list = []; var list = [];
list = res.Result; list = res;
list.forEach(res => { list.forEach(item => {
res.label = res.PLAN_NO; item.label = item.PLAN_NO;
res.value = res.SHIFT_CODE item.value = item.SHIFT_CODE
}) })
this.$refs.selectPopup.openScanPopup(list) this.$refs.selectPopup.openScanPopup(list)
} }

2
fe/PDA/pages/task/coatingIssuleJob.vue

@ -91,7 +91,7 @@
value: false value: false
} }
}, },
mounted() { onShow() {
this.getList('refresh'); this.getList('refresh');
}, },
methods: { methods: {

8
fe/PDA/pages/task/coatingIssuleJobDetailByQty.vue

@ -423,10 +423,10 @@
uni.hideLoading() uni.hideLoading()
if (res.length > 0) { if (res.length > 0) {
var list = []; var list = [];
list = res.Result; list = res;
list.forEach(res => { list.forEach(item => {
res.label = res.PLAN_NO; item.label = item.PLAN_NO;
res.value = res.SHIFT_CODE item.value = item.SHIFT_CODE
}) })
this.$refs.selectPopup.openScanPopup(list) this.$refs.selectPopup.openScanPopup(list)
} }

8
fe/PDA/pages/task/injectionIssueJobDetailByQty.vue

@ -385,10 +385,10 @@
uni.hideLoading() uni.hideLoading()
if (res.length > 0) { if (res.length > 0) {
var list = []; var list = [];
list = res.Result; list = res;
list.forEach(res => { list.forEach(item => {
res.label = res.PLAN_NO; item.label = item.PLAN_NO;
res.value = res.SHIFT_CODE item.value = item.SHIFT_CODE
}) })
this.$refs.selectPopup.openScanPopup(list) this.$refs.selectPopup.openScanPopup(list)
} }

8
fe/PDA/pages/task/kittingIssueJobDetailByQty.vue

@ -385,10 +385,10 @@
uni.hideLoading() uni.hideLoading()
if (res.length > 0) { if (res.length > 0) {
var list = []; var list = [];
list = res.Result; list = res;
list.forEach(res => { list.forEach(item => {
res.label = res.PLAN_NO; item.label = item.PLAN_NO;
res.value = res.SHIFT_CODE item.value = item.SHIFT_CODE
}) })
this.$refs.selectPopup.openScanPopup(list) this.$refs.selectPopup.openScanPopup(list)
} }

8
fe/PDA/pages/task/sparePartIssueJobDetailByQty.vue

@ -385,10 +385,10 @@
uni.hideLoading() uni.hideLoading()
if (res.length > 0) { if (res.length > 0) {
var list = []; var list = [];
list = res.Result; list = res;
list.forEach(res => { list.forEach(item => {
res.label = res.PLAN_NO; item.label = item.PLAN_NO;
res.value = res.SHIFT_CODE item.value = item.SHIFT_CODE
}) })
this.$refs.selectPopup.openScanPopup(list) this.$refs.selectPopup.openScanPopup(list)
} }

6
fe/PDA/pages/task/thirdLocationDetail.vue

@ -11,7 +11,7 @@
<scroll-view scroll-y="true" @scrolltoupper="upper" @scrolltolower="lower" @scroll="scroll" <scroll-view scroll-y="true" @scrolltoupper="upper" @scrolltolower="lower" @scroll="scroll"
class="scroll-detail"> class="scroll-detail">
<view class="" v-for="(item, index) in details" :key="index"> <view class="" v-for="(item, index) in details" :key="index">
<view class="detail-list margin_top"> <view class="detail-list margin_top" style="margin-bottom: 150rpx;" >
<!-- 单选卡片 --> <!-- 单选卡片 -->
<view class="detail-content"> <view class="detail-content">
<view class="choose_main"> <view class="choose_main">
@ -256,12 +256,12 @@
}, },
qtyChanged(value, item, index) { qtyChanged(value, item, index) {
if (value <= 0) { if (value <= 0) {
this.showMessage('收货数量必须大于0') this.showMessage('收货数量必须大于0')
item.qty = item.handledQty item.qty = item.handledQty
this.$refs['comNumberBox_' + index][0].setValue(item.qty); this.$refs['comNumberBox_' + index][0].setValue(item.qty);
} else { } else {
if (value > item.recommendQty) { if (value > item.recommendQty) {
this.showMessage("收货数量[" + value + "]不能大于申请数量[" + item.recommendQty + "]"); this.showMessage("收货数量[" + value + "]不能大于申请数量[" + item.recommendQty + "]");
item.handledQty = item.recommendQty item.handledQty = item.recommendQty
this.$refs['comNumberBox_' + index][0].setValue(item.handledQty); this.$refs['comNumberBox_' + index][0].setValue(item.handledQty);
} }

Loading…
Cancel
Save