Browse Source

YT-565发料任务,打印库存标签,扫描提示带包装HPQ;V1.0;UKG;E;L;O;Sdefault;LB017020;B20241029;A;Q5.000000;IQPLP1-20200-00;PPN20241029-0000000002;

intex_online20241111
zhang_li 4 weeks ago
parent
commit
1d37a83b02
  1. 25
      src/pages/issue/coms/comScanIssuePack.vue
  2. 7
      src/pages/issue/job/issueDetail.vue

25
src/pages/issue/coms/comScanIssuePack.vue

@ -55,7 +55,7 @@
<view class="">
<view class="">
<win-com-scan ref="comscan" placeholder="箱标签" @getResult="onScan" :clearResult="true"
headerType="HPQ,HMQ" :isShowHistory="false">
headerType="HPQ,HMQ" :isShowHistory="false" :locationCode='locationCode'>
</win-com-scan>
<view style="width: 100%;">
@ -152,6 +152,10 @@
type: String,
default: ''
},
locationCode:{
type: String,
default: ''
}
},
data() {
return {
@ -179,7 +183,7 @@
fontSize: "100rpx"
},
bussinessCode: 'Issue',
toLocationAreaTypeList: []
toLocationAreaTypeList: [],
}
},
created() {
@ -270,7 +274,7 @@
}
},
queryBalance(result) {
queryBalance(result , managementType ) {
try {
let that = this;
// if (that.fromLocationCode == '') {
@ -281,7 +285,12 @@
// }
let packageInfo = result.package;
let itemCode = result.label.itemCode;
let packingCode = result.label.packingNumber;
let packingCode = '';
if(managementType == 'BY_BATCH' || managementType == 'BY_QUANTITY'){
packingCode = ''
} else{
packingCode = result.label.packingNumber;
}
let lot = result.label.batch;
let item = that.toLocation.Items.find(r => r.itemCode == itemCode);
if (item == undefined) {
@ -401,7 +410,7 @@
},
onScan(result) {
onScan(result, managementType) {
if (!result.package) {
this.showErrorMessage('扫描数据错误[' + result.label.code + "]",
res => {
@ -427,12 +436,12 @@
this.getToLocationBalance(result)
}
}else{
this.queryBalance(result)
this.queryBalance(result, managementType)
}
},
//
getToLocationBalance(result) {
getToLocationBalance(result, managementType) {
uni.showLoading({
title: '查询中',
mask: true
@ -470,7 +479,7 @@
// value: this.toLocationAreaTypeList.join(',')
// })
this.queryBalance(result);
this.queryBalance(result, managementType);
// var params = {
// filters: filters,
// pageNo: 1,

7
src/pages/issue/job/issueDetail.vue

@ -46,7 +46,7 @@
<win-scan-button @goScan='openScanDetailPopup'></win-scan-button>
<com-scan-issue-pack ref="comScanIssuePack" @closeScan='closeScan' @updateData='updateData'
@afterScan='afterScan'>
@afterScan='afterScan' :locationCode='fromLocationCode'>
</com-scan-issue-pack>
<balance-select ref="balanceSelect" @onSelectItem='selectBalanceItem'></balance-select>
<comMessage ref="comMessage"></comMessage>
@ -115,7 +115,8 @@
jobStatus: "",
scanMessage: '',
managementList: [],
managementType: ""
managementType: "",
fromLocationCode:''
};
},
@ -300,7 +301,7 @@
this.showErrorMessage("请扫描您需要提交的发料任务")
return
}
console.log("提交参数", JSON.stringify(params));
console.log("提交参数", params);
issueJobSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {

Loading…
Cancel
Save