Browse Source

拆箱bug处理

ag_report_nev
安虹睿 11 months ago
parent
commit
68def79591
  1. 3
      fe/PC/src/api/wms-core.js
  2. 8
      fe/PC/src/views/labelManage/PartiallyPreparedProducts/splitLabels.vue
  3. 5
      fe/PC/src/views/padManage/isPadForKittingPack.vue

3
fe/PC/src/api/wms-core.js

@ -40,7 +40,8 @@ export async function postInventoryLabelCode_count(params,data) {
// 拆箱 | 标签管理-拆分箱标签 // 拆箱 | 标签管理-拆分箱标签
export function postSplitPacking(data) { export function postSplitPacking(data) {
return request({ return request({
url: baseURL + 'wms/store/transfer-note/split-packing-inspect', // url: baseURL + 'wms/store/transfer-note/split-packing-inspect',
url: baseURL + 'wms/store/transfer-note/split-packing',
method: 'post', method: 'post',
data data
}) })

8
fe/PC/src/views/labelManage/PartiallyPreparedProducts/splitLabels.vue

@ -334,6 +334,10 @@ export default {
// }, // },
// //
postSplitPackingHandle(newCode,resolve,reject){ postSplitPackingHandle(newCode,resolve,reject){
if(!this.InventoryInfo || JSON.stringify(this.InventoryInfo) == '{}'){
this.pageLoading = false;
return this.$errorMsg("该箱码无库存,不可拆箱!")
}
let _data = { let _data = {
useOnTheWayLocation: false, useOnTheWayLocation: false,
requestNumber: null, requestNumber: null,
@ -346,13 +350,13 @@ export default {
confirmTime: new Date(), confirmTime: new Date(),
details: [{ details: [{
fromLocationCode: this.InventoryInfo ? this.InventoryInfo.locationCode : null, fromLocationCode: this.InventoryInfo ? this.InventoryInfo.locationCode : null,
toLocationCode: this.InventoryInfo ? this.InventoryInfo.locationCode : null,
fromLocationErpCode: this.selectItemInfo.locationErpCode || (this.InventoryInfo ? this.InventoryInfo.locationErpCode : null), fromLocationErpCode: this.selectItemInfo.locationErpCode || (this.InventoryInfo ? this.InventoryInfo.locationErpCode : null),
fromLot: this.selectItemInfo.lot, fromLot: this.selectItemInfo.lot,
fromPackingCode: this.selectItemInfo.code, fromPackingCode: this.selectItemInfo.code,
fromWarehouseCode: this.InventoryInfo ? this.InventoryInfo.warehouseCode : null, fromWarehouseCode: this.InventoryInfo ? this.InventoryInfo.warehouseCode : localStorage.getItem('warehouseCode'),
itemCode: this.selectItemInfo.itemCode, itemCode: this.selectItemInfo.itemCode,
itemName: this.selectItemInfo.itemName, itemName: this.selectItemInfo.itemName,
toLocationCode: this.InventoryInfo ? this.InventoryInfo.locationCode : null,
toLocationErpCode: this.selectItemInfo.locationErpCode || (this.InventoryInfo ? this.InventoryInfo.locationErpCode : null), toLocationErpCode: this.selectItemInfo.locationErpCode || (this.InventoryInfo ? this.InventoryInfo.locationErpCode : null),
toLot: this.selectItemInfo.lot, toLot: this.selectItemInfo.lot,
toPackingCode: newCode, toPackingCode: newCode,

5
fe/PC/src/views/padManage/isPadForKittingPack.vue

@ -22,7 +22,7 @@
<div class="lockShadow" v-if="isLock">{{lockTip}}</div> <div class="lockShadow" v-if="isLock">{{lockTip}}</div>
<!-- 中间底盘号 --> <!-- 中间底盘号 -->
<div class="centerChassisContain"> <div class="centerChassisContain">
<div class="title" @click="LogoutUserHandle">底盘号</div> <div class="title">底盘号</div>
<ul class="chassisList" v-if="centerChassisList.length > 0"> <ul class="chassisList" v-if="centerChassisList.length > 0">
<li <li
v-for="(item,index) of centerChassisList" v-for="(item,index) of centerChassisList"
@ -167,6 +167,7 @@ export default {
this.initData() this.initData()
clearInterval(this.intervalId) clearInterval(this.intervalId)
// //
window.LogoutPadUserHandle = this.LogoutUserHandle
this.intervalId = setInterval(() => { this.intervalId = setInterval(() => {
this.initData() this.initData()
}, localStorage.getItem('padKittingPackUpdate') || 180000) }, localStorage.getItem('padKittingPackUpdate') || 180000)
@ -245,7 +246,7 @@ export default {
}) })
.catch(err=>{}) .catch(err=>{})
}, },
// 退: // 退:
async LogoutUserHandle(){ async LogoutUserHandle(){
let _filter = [{ let _filter = [{
logic: "And", logic: "And",

Loading…
Cancel
Save