Browse Source

修改采购上架数据不对

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

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

@ -2,8 +2,6 @@
<page-meta root-font-size="18px"></page-meta>
<view class="">
<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_card">
<view class="uni-flex space-between top_lines_info">
@ -28,38 +26,35 @@
</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">
<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"
:scanCount="item.scanQty" style="font-size: 20px; ">
<view v-for="(label, index) in item.labelList" :key="item.id" style="margin-top: 2rpx;">
<com-collapse-item :open="true" :title="item.itemCode" :item="item" :scanCount="item.scanQty"
style="font-size: 20px; ">
<view v-for="(label, index) in item.labelList" :key="item.id">
<uni-swipe-action>
<uni-swipe-action-item :right-options="options" :auto-close="false"
@click="swipeClick($event,item,index)" style='background-color: #ffffff;'>
<com-base-item :dataContent="label" style='margin-left: 10px;'>
</com-base-item>
<view class="choose_marked_count"
style="background-color: #5FCB94; opacity: 0.15">
<view class=""
style="background-color: #5FCB94; width: 200rpx;height: 300rpx;">
<com-base-item :dataContent="label" style='margin-left: 10px;'></com-base-item>
<!-- <view class="choose_marked">
<image src="@/static/image_marked.svg"></image>
</view> -->
<view class="choose_marked_count" style="background-color: #5FCB94; opacity: 0.15">
<view class="" style="background-color: #5FCB94; width: 200rpx;height: 300rpx;">
</view>
</view>
</uni-swipe-action-item>
</uni-swipe-action>
</view>
</com-collapse-item>
</view>
</uni-collapse>
</view>
</template>
</z-paging>
<div class="new_bot_box" v-show="itemList.length>0" >
</scroll-view>
<div class="new_bot_box" v-show="itemList.length>0">
<win-collapse-location ref='comCollapseLocation' @getLocationCode='getToLocation' @clear='clear'>
</win-collapse-location>
<view class="new_btn_bot bot_pos uni-flex">
@ -427,9 +422,6 @@
addLabel(item, label) {
item.labelList.unshift(label);
item.scanQty += label.qty;
if (this.$refs.paging != undefined) {
this.$refs.paging.setLocalPaging(this.itemList)
}
},
async selectedBalanceItem(balanceItem) {
@ -522,10 +514,8 @@
item.details.push(r);
})
})
item.supplierCode = item.details[0].supplierCode
item.asnNumber = item.details[0].asnNumber
let params = JSON.stringify(item);
purchasePutaway(params)
.then(res => {
@ -611,17 +601,6 @@
scanPopupLoseFocus(message) {
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>

Loading…
Cancel
Save