Browse Source

YT-485采购收货扫描任务以外的箱签报错提示,是英文,需要优化报错提示信息

intex_online20241111
zhang_li 1 month ago
parent
commit
ed55383557
  1. 3
      src/pages/issue/record/directIssue.vue
  2. 4
      src/pages/purchaseReceipt/job/receiptDetail.vue

3
src/pages/issue/record/directIssue.vue

@ -192,7 +192,7 @@
await getManagementPrecisions([result.label.itemCode], result.balance.locationCode, res => {
if (res.success) {
this.managementList = res.list;
this.managementType = this.managementList && this.managementList[0] ? this.managementList[0].ManagementPrecision : ''
this.managementType = this.managementList && this.managementList[0] ? this.managementList[0].ManagementPrecision : 'BY_PACKAGING'
if(this.managementType == "BY_BATCH" ||this.managementType == "BY_QUANTITY" ){
this.setDataBatch(result);
}else{
@ -592,7 +592,6 @@
...this.setRecordParams()
}
console.log("提交参数", JSON.stringify(params));
issueRecordSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {

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

@ -324,11 +324,11 @@
try {
var itemCode = result.label.itemCode;
var detail = this.detailSource.find(r => r.itemCode == itemCode);
detail.scaned = true;
if (detail == undefined) {
this.showErrorMessage("物料号【" + itemCode + "】不在列表中")
return;
}
detail.scaned = true;
if (result.label.labelType == "ContainerLabel") {
var containerNumber = result.label.container;
var itemDetail = detail.subList.filter(r => r.containerNumber == containerNumber);
@ -433,11 +433,11 @@
try {
var itemCode = result.label.itemCode;
var detail = this.detailSource.find(r => r.itemCode == itemCode);
detail.scaned = true;
if (detail == undefined) {
this.showErrorMessage("物料号【" + itemCode + "】不在列表中")
return;
}
detail.scaned = true;
if (result.label.labelType == "ContainerLabel") {
var containerNumber = result.label.container;
var itemDetail = detail.subList.filter(r => r.containerNumber == containerNumber);

Loading…
Cancel
Save