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

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

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

Loading…
Cancel
Save