Browse Source

修改采购上架数据不对

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

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

@ -2,8 +2,6 @@
<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" >
<template #top>
<view class="top_wrap" v-if="itemList.length>0"> <view class="top_wrap" v-if="itemList.length>0">
<view class="top_card"> <view class="top_card">
<view class="uni-flex space-between top_lines_info"> <view class="uni-flex space-between top_lines_info">
@ -28,37 +26,34 @@
</view> </view>
</view> </view>
</template>
<template v-slot:cell="{item,index}">
<view class="" style=" margin-bottom: 150rpx;"> <scroll-view scroll-y="true" class="scroll-Y" @scrolltoupper="upper" @scrolltolower="lower" @scroll="scroll"
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> </view>
</com-collapse-item> </com-collapse-item>
</view> </view>
</uni-collapse> </uni-collapse>
</view> </scroll-view>
</template>
</z-paging>
<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>
@ -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