Browse Source

HL-5674

hella_online_20241107
lijuncheng 3 weeks ago
parent
commit
bfe611aca1
  1. 12
      src/mycomponents/scan/winComScanBalance.vue
  2. 13
      src/mycomponents/scan/winScanPackAndLocation.vue
  3. 2
      src/pages/productionReceipt/job/productionReceiptDetail.vue
  4. 4
      src/pages/purchaseReceipt/job/receiptJob.vue
  5. 2
      src/pages/putaway/job/putawayJob.vue
  6. 2
      src/pages/repleinsh/job/repleinshJob.vue

12
src/mycomponents/scan/winComScanBalance.vue

@ -187,7 +187,11 @@
getBalanceByFilter(params).then(res => {
uni.hideLoading()
if (res.data.list.length > 0) {
if(this.bussinessCode=="Repleinment"){
this.showErrorMessage("此物料已补料");
}else {
this.showErrorMessage("包装在库位【" + res.data.list[0].locationCode + "】已有库存余额");
}
} else {
this.queryBalance(this.resultData);
}
@ -239,7 +243,15 @@
}).catch(error => {
uni.hideLoading()
if(this.bussinessCode=="Repleinment"){
if(error.includes("库存余额不足")){
this.showErrorMessage("没有此物料库存,请核对库存余额与标签是否一致")
}else {
this.showErrorMessage(error)
}
}else {
this.showErrorMessage(error)
}
})
},

13
src/mycomponents/scan/winScanPackAndLocation.vue

@ -120,7 +120,11 @@
balanceFromInventoryStatuses: { //fromInventoryStatuses
type: Boolean,
default: true
}
},
fromType: {
type: String,
default: ""
},
},
data() {
return {
@ -378,9 +382,16 @@
//
mustHavaBalance(datas) {
if (datas.length == 0) {
if(this.fromType=="productionReceipt"){
this.showErrorMessage("没有此物料收料任务,请联系物流进行发料", res => {
this.packGetFocus();
})
}else {
this.showErrorMessage(this.getQueryCondition() + '\n未查找到库存记录', res => {
this.packGetFocus();
})
}
} else if (datas.length == 1) {
let balance = datas[0];
this.packCallBack(balance);

2
src/pages/productionReceipt/job/productionReceiptDetail.vue

@ -40,7 +40,7 @@
</view>
<win-scan-button @goScan='openScanPopup'></win-scan-button>
<win-scan-pack-and-location ref="scanPopup" @getResult='getScanResult'></win-scan-pack-and-location>
<win-scan-pack-and-location ref="scanPopup" @getResult='getScanResult' fromType="productionReceipt" ></win-scan-pack-and-location>
<detail-info-popup ref="detailInfoPopup"></detail-info-popup>
<comMessage ref="comMessage"></comMessage>

4
src/pages/purchaseReceipt/job/receiptJob.vue

@ -273,7 +273,7 @@
getPurchaseReceiptJobList(params).then(res => {
uni.hideLoading();
if (res.data.list.length == 0) {
that.showMessage('未查找到' + '【' + code + '】的收货任务');
that.showMessage('没有此单据' + '【' + code + '】的收货任务,请联系管理员');
} else if (res.data.list.length == 1) {
that.openJobDetail(res.data.list[0]);
} else {
@ -460,7 +460,7 @@
this.selectItem(list[0], result.scanMessage.indexOf('ASN') > -1)
}
} else {
this.showMessage("未查找到任务\n" + "扫描[" + result.scanMessage + "]")
this.showMessage("没有此单据收货任务,请联系管理员\n" + "扫描[" + result.scanMessage + "]")
}
}).catch(error => {
this.showMessage(error + "\n扫描[" + result.scanMessage + "]")

2
src/pages/putaway/job/putawayJob.vue

@ -412,7 +412,7 @@
}
} else {
this.showMessage("未查找到任务\n" + "扫描[" + result.scanMessage + "]")
this.showMessage("没有此物料上架任务,请联系管理员\n" + "扫描[" + result.scanMessage + "]")
}
}).catch(error => {
this.showMessage(error + "\n扫描[" + result.scanMessage + "]")

2
src/pages/repleinsh/job/repleinshJob.vue

@ -524,6 +524,8 @@
})
} catch (e) {
console.log("测试"+e.message)
this.showMessage(e.message)
}
}

Loading…
Cancel
Save