Browse Source

修改采购上架数据不对

dev_pda
李俊城 2 years ago
parent
commit
71438834a8
  1. 117
      fe/PDA/pages/putaway/purchasePutaway.vue

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

@ -2,64 +2,59 @@
<page-meta root-font-size="18px"></page-meta> <page-meta root-font-size="18px"></page-meta>
<view class=""> <view class="">
<win-blank-view @goScan='openScanPopup' v-if="itemList.length==0"></win-blank-view> <win-blank-view @goScan='openScanPopup' v-if="itemList.length==0"></win-blank-view>
<z-paging v-if="itemList.length>0" ref="paging" use-virtual-list @query="queryList" > <view class="top_wrap" v-if="itemList.length>0">
<template #top> <view class="top_card">
<view class="top_wrap" v-if="itemList.length>0"> <view class="uni-flex space-between top_lines_info">
<view class="top_card"> <view class="font_sm">
<view class="uni-flex space-between top_lines_info"> 指定ERP储位:
<view class="font_sm"> <text class="text_bold">{{recommendErpLocationCode}}</text>
指定ERP储位:
<text class="text_bold">{{recommendErpLocationCode}}</text>
</view>
</view>
</view> </view>
<view class="uni-flex space-between u-col-center" </view>
style="font-size: 33rpx;align-items: center;margin-top: 5rpx;margin-bottom: 5rpx;"> </view>
<view class=""> <view class="uni-flex space-between u-col-center"
<text>采购订单 : {{poNumber}}</text> style="font-size: 33rpx;align-items: center;margin-top: 5rpx;margin-bottom: 5rpx;">
</view> <view class="">
<view @click="showPopListPopup" class="" <text>采购订单 : {{poNumber}}</text>
style="font-size: 33rpx;background-color: #3399FF; padding:10rpx ;border-radius:10rpx;color: #FFFFFF;"> </view>
查看箱码 <view @click="showPopListPopup" class=""
</view> style="font-size: 33rpx;background-color: #3399FF; padding:10rpx ;border-radius:10rpx;color: #FFFFFF;">
查看箱码
</view>
</view> </view>
<view class="" style="background-color: black; width: 100%; height: 1rpx;"> <view class="" style="background-color: black; width: 100%; height: 1rpx;">
</view> </view>
</view> </view>
</template>
<template v-slot:cell="{item,index}"> <scroll-view scroll-y="true" class="scroll-Y" @scrolltoupper="upper" @scrolltolower="lower" @scroll="scroll"
<view class="" style=" margin-bottom: 150rpx;"> style="padding-bottom:150px">
<uni-collapse v-if="itemList.length>0"> <uni-collapse v-if="itemList.length>0">
<view class="pop_list list_info semi_col" v-for="(item, index) in itemList" :key="item.id"> <view class="pop_list list_info semi_col" v-for="(item, index) in itemList" :key="item.id">
<com-collapse-item :open="true" :title="item.itemCode" :item="item" <com-collapse-item :open="true" :title="item.itemCode" :item="item" :scanCount="item.scanQty"
:scanCount="item.scanQty" style="font-size: 20px; "> style="font-size: 20px; ">
<view v-for="(label, index) in item.labelList" :key="item.id" style="margin-top: 2rpx;"> <view v-for="(label, index) in item.labelList" :key="item.id">
<uni-swipe-action> <uni-swipe-action>
<uni-swipe-action-item :right-options="options" :auto-close="false" <uni-swipe-action-item :right-options="options" :auto-close="false"
@click="swipeClick($event,item,index)" style='background-color: #ffffff;'> @click="swipeClick($event,item,index)" style='background-color: #ffffff;'>
<com-base-item :dataContent="label" style='margin-left: 10px;'> <com-base-item :dataContent="label" style='margin-left: 10px;'></com-base-item>
</com-base-item> <!-- <view class="choose_marked">
<view class="choose_marked_count" <image src="@/static/image_marked.svg"></image>
style="background-color: #5FCB94; opacity: 0.15"> </view> -->
<view class="" <view class="choose_marked_count" style="background-color: #5FCB94; opacity: 0.15">
style="background-color: #5FCB94; width: 200rpx;height: 300rpx;"> <view class="" style="background-color: #5FCB94; width: 200rpx;height: 300rpx;">
</view>
</view> </view>
</view> </uni-swipe-action-item>
</uni-swipe-action-item> </uni-swipe-action>
</uni-swipe-action>
</view>
</com-collapse-item>
</view> </view>
</uni-collapse> </com-collapse-item>
</view> </view>
</template> </uni-collapse>
</z-paging> </scroll-view>
<div class="new_bot_box" v-show="itemList.length>0" >
<div class="new_bot_box" v-show="itemList.length>0">
<win-collapse-location ref='comCollapseLocation' @getLocationCode='getToLocation' @clear='clear'> <win-collapse-location ref='comCollapseLocation' @getLocationCode='getToLocation' @clear='clear'>
</win-collapse-location> </win-collapse-location>
<view class="new_btn_bot bot_pos uni-flex"> <view class="new_btn_bot bot_pos uni-flex">
@ -427,9 +422,6 @@
addLabel(item, label) { addLabel(item, label) {
item.labelList.unshift(label); item.labelList.unshift(label);
item.scanQty += label.qty; item.scanQty += label.qty;
if (this.$refs.paging != undefined) {
this.$refs.paging.setLocalPaging(this.itemList)
}
}, },
async selectedBalanceItem(balanceItem) { async selectedBalanceItem(balanceItem) {
@ -522,10 +514,8 @@
item.details.push(r); item.details.push(r);
}) })
}) })
item.supplierCode = item.details[0].supplierCode item.supplierCode = item.details[0].supplierCode
item.asnNumber = item.details[0].asnNumber item.asnNumber = item.details[0].asnNumber
let params = JSON.stringify(item); let params = JSON.stringify(item);
purchasePutaway(params) purchasePutaway(params)
.then(res => { .then(res => {
@ -611,17 +601,6 @@
scanPopupLoseFocus(message) { scanPopupLoseFocus(message) {
this.$refs.scanPopup.losefocus(); this.$refs.scanPopup.losefocus();
}, },
queryList(pageNo, pageSize) {
console.log("加载", pageNo)
// var list = []
// this.currentPage = pageNo
// list = this.getDataPage(pageNo, pageSize)
// this.$refs.paging.complete(list)
if (this.itemList.length > 0) {
this.$refs.paging.setLocalPaging(this.itemList)
}
}
} }
}; };
</script> </script>

Loading…
Cancel
Save