Browse Source

修改盘点功能

wms3.0_pda
niexiting 11 months ago
parent
commit
77bc5936a3
  1. 10
      mycomponents/scan/winScanPackAndLocation.vue
  2. 50
      pages/count/job/countDetail.vue
  3. 2
      static/config.json

10
mycomponents/scan/winScanPackAndLocation.vue

@ -225,10 +225,10 @@
} else {
if (result.label != null) {
this.scanResult = result;
uni.showLoading({
title: '查询中...',
mask: true
})
// uni.showLoading({
// title: '...',
// mask: true
// })
getBalanceByManagementPrecision(result.label, this.fromLocationCode, this.fromInventoryStatuses,
res => {
if (res.success) {
@ -239,7 +239,7 @@
this.packGetFocus();
})
}
uni.hideLoading();
// uni.hideLoading();
});
}
}

50
pages/count/job/countDetail.vue

@ -395,27 +395,57 @@
}
})
if (mode == 'edit') {
//
// if (that.currentEditItem.id == '0') {
// let a = detail.subList.find(that.currentEditItem);
// let index = that.currentEditItem.index;
// // detail.subList
// detail.subList.splice(index, 1)
// } else {
//
// that.currentEditItem.handleQty = 0;
// that.currentEditItem.scaned = false;
// that.currentEditItem = {};
// }
}
if (itemEditInfo == undefined) {
//
if (mode == 'edit') {
that.currentEditItem.handleQty = 0;
that.currentEditItem.inventoryStatus = inventoryStatus;
//
// if (that.currentEditItem.id == '0') {
// let a = detail.subList.find(that.currentEditItem);
// let index = that.currentEditItem.index;
// // detail.subList
// detail.subList.splice(index, 1)
// } else {
//
// that.currentEditItem.handleQty = 0;
// that.currentEditItem.scaned = false;
// that.currentEditItem = {};
// }
} else {
that.addExistItemCodeToList(detail, qty, inventoryStatus);
}
} else {
itemEditInfo.scaned = true;
itemEditInfo.handleQty = qty;
itemEditInfo.inventoryStatus = inventoryStatus;
itemEditInfo.balanceQty = that.balance.qty;
itemEditInfo.stdPackQty = that.package.stdPackQty;
itemEditInfo.stdPackUnit = that.package.stdPackUnit;
this.$refs.countQtyEdit.openEditPopupShowSeconds(itemEditInfo, detail
.subList);
// this.$refs.countQtyEdit.openEditPopupShowSeconds(itemEditInfo, detail
// .subList);
that.updateData()
}
//,
if (mode == 'edit') {
that.currentEditItem.handleQty = 0;
that.currentEditItem.scaned = false;
that.currentEditItem = {};
}
setTimeout(r => {
this.calcHandleQty();
this.scanPopupGetFocus();
@ -538,7 +568,7 @@
createAddDetailInfo(qty, inventoryStatus) {
var detail = {
id: "0",
id: "0", //
scaned: true,
countDetailNumber: "",
ownerCode: this.balance.ownerCode,

2
static/config.json

@ -18,7 +18,7 @@
"request_url": {
"name": "request_url",
"value": "http://192.168.0.158:12080/admin-api",
"value": "http://192.168.0.178:12080/admin-api",
"dev2": "http://192.168.0.157:12080/admin-api",
"chefang": "http://192.168.0.176:12080/admin-api",
"chenxinming": "http://192.168.0.230:12080/admin-api",

Loading…
Cancel
Save