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) {
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',
data
})

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

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

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

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

Loading…
Cancel
Save