Browse Source

修改扫描功能

wms3.0_pda
niexiting 10 months ago
parent
commit
30831cb114
  1. 11
      mycomponents/scan/winComScan.vue
  2. 29
      pages/count/job/countDetail.vue

11
mycomponents/scan/winComScan.vue

@ -135,10 +135,10 @@
},
handelScanMsg() {
//
uni.showLoading({
title: '解析中...',
mask: true
})
// uni.showLoading({
// title: '...',
// mask: true
// })
let that = this;
let index = that.scanMsg.indexOf('\n');
if (index > 0) {
@ -154,9 +154,8 @@
if (that.isShowHistory) {
that.scanList.unshift(content);
}
getLabelInfo(content, this.headerType, callback => {
uni.hideLoading();
// uni.hideLoading();
let scanResult = callback;
if (scanResult.success) {
that.clear();

29
pages/count/job/countDetail.vue

@ -462,7 +462,7 @@
if (itemEditInfo == undefined) {
//
this.addExistItemCodeToList(detail, result);
this.addExistItemCodeToList(detail);
} else {
//
@ -509,13 +509,12 @@
},
addExistItemCodeToList(detail) {
addExistItemCodeToList(detail, qty, inventoryStatus) {
this.$refs.comMessage.showQuestionMessage("盘点明细不在列表中,是否添加到列表?",
res => {
if (res) {
detail.qty = calc.add(detail.qty, detail.qty)
//this.balance, this.package,
let newDetail = this.createAddDetailInfo(); //
detail.qty = calc.add(qty, qty)
let newDetail = this.createAddDetailInfo(qty, inventoryStatus); //
detail.subList.push(newDetail);
this.updateData()
@ -537,31 +536,31 @@
return item;
},
createAddDetailInfo() {
createAddDetailInfo(qty, inventoryStatus) {
var detail = {
id: "0",
scaned: true,
countDetailNumber: "",
ownerCode: this.balance.ownerCode,
packingNumber: pack.number,
packingNumber: this.package.number,
containerNumber: this.balance.containerNumber,
batch: pack.batch,
inventoryStatus:this. balance.inventoryStatus,
batch: this.package.batch,
inventoryStatus: inventoryStatus,
itemCode: this.package.itemCode,
itemName: this.package.itemName,
itemDesc1: this.package.itemDesc1,
itemDesc2: this.package.itemDesc2,
stdPackQty: this.package.stdPackQty,
stdPackUnit: this.package.stdPackUnit,
projectCode: "",
qty: 0,
handleQty: this.balance.qty,
uom: balance.uom,
handleQty: qty,
uom: this.package.uom,
number: this.jobContent.number,
remark: "",
countQty: this.balance.qty,
balanceQty:this. balance.qty,
countQty: qty,
balanceQty: this.balance.qty,
fromLocationCode: this.balance.locationCode,
stdPackQty: this.package.stdPackQty,
stdPackUnit: this.package.stdPackUnit,
creator: this.$store.state.user.id
}
return detail;

Loading…
Cancel
Save