Browse Source

修改盘点功能

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

10
mycomponents/scan/winScanPackAndLocation.vue

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

52
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 (itemEditInfo == undefined) {
// //
that.addExistItemCodeToList(detail, qty, inventoryStatus); 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 { } else {
itemEditInfo.scaned = true; itemEditInfo.scaned = true;
itemEditInfo.handleQty = qty; itemEditInfo.handleQty = qty;
itemEditInfo.inventoryStatus = inventoryStatus;
itemEditInfo.balanceQty = that.balance.qty; itemEditInfo.balanceQty = that.balance.qty;
itemEditInfo.stdPackQty = that.package.stdPackQty; itemEditInfo.stdPackQty = that.package.stdPackQty;
itemEditInfo.stdPackUnit = that.package.stdPackUnit; itemEditInfo.stdPackUnit = that.package.stdPackUnit;
this.$refs.countQtyEdit.openEditPopupShowSeconds(itemEditInfo, detail // this.$refs.countQtyEdit.openEditPopupShowSeconds(itemEditInfo, detail
.subList); // .subList);
that.updateData() that.updateData()
} }
//,
if (mode == 'edit') {
that.currentEditItem.handleQty = 0;
that.currentEditItem.scaned = false;
that.currentEditItem = {};
}
setTimeout(r => { setTimeout(r => {
this.calcHandleQty(); this.calcHandleQty();
this.scanPopupGetFocus(); this.scanPopupGetFocus();
@ -538,7 +568,7 @@
createAddDetailInfo(qty, inventoryStatus) { createAddDetailInfo(qty, inventoryStatus) {
var detail = { var detail = {
id: "0", id: "0", //
scaned: true, scaned: true,
countDetailNumber: "", countDetailNumber: "",
ownerCode: this.balance.ownerCode, ownerCode: this.balance.ownerCode,

2
static/config.json

@ -18,7 +18,7 @@
"request_url": { "request_url": {
"name": "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", "dev2": "http://192.168.0.157:12080/admin-api",
"chefang": "http://192.168.0.176:12080/admin-api", "chefang": "http://192.168.0.176:12080/admin-api",
"chenxinming": "http://192.168.0.230:12080/admin-api", "chenxinming": "http://192.168.0.230:12080/admin-api",

Loading…
Cancel
Save