Browse Source

YT-2751盘点详情数据200条的进入页面空白,卡顿YT-2747WMS-盘点PDA方式扫码,在扫描箱标签后,手持只给三秒修改时间,不管修改是否正确,手持都会自动提交,需要取消掉读秒自动提交功能。

intex
张立 3 weeks ago
parent
commit
df8c5f9bad
  1. 4
      src/api/request2.js
  2. 6
      src/mycomponents/qty/countQtyEdit.vue
  3. 83
      src/pages/count/job/countLightDetail.vue

4
src/api/request2.js

@ -386,12 +386,12 @@ export function getBalanceByContainerNumber(params) {
* @param {*} header version
* 获取标签设置信息
*/
export function getLabelByHeader(header, version) {
export async function getLabelByHeader(header, version) {
var params = {
header: header,
version: version,
}
return request({
return await request({
url: baseApi + "/wms/labeltype/getDetailsByHeader",
method: "get",
data: params,

6
src/mycomponents/qty/countQtyEdit.vue

@ -187,7 +187,7 @@
// this.allQty = Number(this.dataContent.qty)
// this.stdCount = Math.ceil(this.allQty / this.dataContent.packQty);
// this.detailList = detailList
this.showConfirmCountdown = false;
this.c = false;
this.mode = 'edit';
setTimeout(res => {
this.$refs.popup.open('bottom')
@ -198,12 +198,12 @@
//
openEditPopupShowSeconds(item, detailList) {
this.initData(item, detailList);
this.showConfirmCountdown = true;
this.showConfirmCountdown = false;
this.mode = 'add';
setTimeout(res => {
this.$refs.popup.open('bottom')
}, 500)
this.startTimer()
clearInterval(this.timer)
},
initData(item, detailList) {

83
src/pages/count/job/countLightDetail.vue

@ -17,28 +17,27 @@
</view>
</view>
<view class="page-main" style="margin-bottom: 100rpx;background-color: #F3F4F5">
<scroll-view scroll-y="true" class="page-main-scroll">
<view class="" style="background-color: #F3F4F5" v-for="(item, index) in dataList" :key="item.id">
<view class="page-main" style="padding-bottom: 100rpx;background-color: #F3F4F5">
<!-- <scroll-view scroll-y="true" class="page-main-scroll" @scrolltolower="scrolltolower"> -->
<view class="" style="background-color: #F3F4F5" v-for="(item, index) in showTableData" :key="item.id">
<uni-swipe-action ref="swipeAction">
<uni-swipe-action-item>
<view class="uni-flex uni-row "
style="align-items: center; margin: 10rpx; border-radius: 10rpx ;">
<comCountDetailcards :ref="'countDetail_'+index" :dataContent="item" :index="index"
@editItem="editItem" :settingParam="jobContent" @remove="updateData"
@summCount="summCount" @currentCount="currentCount" @updateData="updateData">
<view class="uni-flex uni-row " style="align-items: center; margin: 10rpx; border-radius: 10rpx ;">
<comCountDetailcards :ref="'countDetail_'+index" :dataContent="item" :index="index" @editItem="editItem"
:settingParam="jobContent" @remove="updateData" @summCount="summCount" @currentCount="currentCount"
@updateData="updateData">
</comCountDetailcards>
</view>
</uni-swipe-action-item>
</uni-swipe-action>
</view>
</scroll-view>
<!-- </scroll-view> -->
<uni-load-more :status="loadingType" />
</view>
<view class="page-footer">
<view class="uni-flex u-col-center space-between padding_10"
style="background-color:ghostwhite; width: 100%; ">
<view class="uni-flex u-col-center space-between padding_10" style="background-color:ghostwhite; width: 100%; ">
<view class="">
</view>
<view class=" uni-flex uni-row">
@ -49,8 +48,8 @@
<win-scan-button @goScan='openScanPopup'></win-scan-button>
<win-scan-pack-and-location :allowModifyLocation="false" ref="scanPopup" :noShowBalanceMessage="true"
:isHavePackNumber="true"
:pdaCountBalanceQuery="true" :isShowHistory="false" @getCountScanResult='getCountScanResult'>
:isHavePackNumber="true" :pdaCountBalanceQuery="true" :isShowHistory="false"
@getCountScanResult='getCountScanResult'>
</win-scan-pack-and-location>
<detail-info-popup ref="detailInfoPopup"></detail-info-popup>
<count-qty-edit ref="countQtyEdit" @confirm="editConfirm" @close="editClose" :isShowStatus="true"
@ -125,6 +124,7 @@
jobContent: {}, //
subList: [], //subList
detailSource: [], //
showDataList: [],
balance: {}, //
currentEditItem: {},
mainItem: {},
@ -134,14 +134,27 @@
dataList: [],
managementList: [],
isOpen: false,
manageMode: ""
manageMode: "",
pageSize: 10,
currentPage: 1,
timer:null,
loadingType:'loading'
};
},
onLoad(option) {
async onLoad(option) {
this.id = option.id;
if (this.id) {
this.getDetail();
await this.getDetail();
this.timer = setInterval(()=>{
if (this.showDataList.length == this.dataList.length) {
this.loadingType='loadingType'
return
}
console.log(22)
this.currentPage += 1;
},1000)
}
uni.$on('refreshData', (data) => {
//
@ -154,6 +167,11 @@
goHome();
}
},
onUnload(){
if(this.timer){
clearInterval(this.timer)
}
},
//
onBackPress(e) {
//
@ -162,13 +180,29 @@
return true;
}
},
onReachBottom() {
},
mounted() {
},
computed() {},
computed: {
showTableData() {
if (this.dataList.length > this.pageSize) {
const array = this.dataList.slice(
(this.currentPage - 1) * this.pageSize,
this.currentPage * this.pageSize
)
this.showDataList = this.showDataList.concat(array)
return this.showDataList
} else {
clearInterval(this.timer)
return this.dataList
}
}
},
methods: {
filterList(originalList) {
var resultList = []
@ -200,13 +234,13 @@
}
return manageMode
},
getDetail() {
async getDetail() {
var that = this;
uni.showLoading({
title: "加载中....",
mask: true
});
getCountJobDetail(that.id).then(async res => {
await getCountJobDetail(that.id).then(async res => {
uni.hideLoading();
if (res.data == null) {
that.showMessage('未获取到详情');
@ -229,7 +263,16 @@
this.showErrorMessage(error)
})
},
//
// showTableData (){
// },
scrolltolower() {
this.currentPage += 1;
console.log(this.currentPage)
console.log(this.showTableData)
},
refreshData(returnData) {
if (returnData.recordList.length == 0) {
if (this.manageMode == "BY_BATCH") {

Loading…
Cancel
Save