Browse Source

客户退货去除来源库位

pda_nev
李俊城 11 months ago
parent
commit
bd942a944e
  1. 56
      fe/PDA/pages/record/productionReturnPack.vue

56
fe/PDA/pages/record/productionReturnPack.vue

@ -22,10 +22,6 @@
<uni-td align="center">批次</uni-td>
<uni-td>{{item.lot}}</uni-td>
</uni-tr>
<uni-tr>
<uni-td align="center">库位</uni-td>
<uni-td>{{item.recommendLocationCode}}</uni-td>
</uni-tr>
<uni-tr>
<uni-td align="center">单位</uni-td>
<uni-td>{{item.uom}}</uni-td>
@ -192,41 +188,25 @@
this.showMessage("箱码【" + filterItem[0].packingCode + "】已经扫描")
return;
}
locations(resultData.recommendLocationCode).then(res => {
if (res) {
//
if (res.type == 1 || res.type == 6 || res.type == 13) {
that.showMessage("来源库位不可以是待检、隔离、在途库位类型");
} else {
var item = {
packingCode: resultData.code,
itemCode: resultData.itemCode,
itemName: resultData.itemName,
itemDesc1: resultData.itemDesc1,
stdPackQty: resultData.stdPackQty,
lot:resultData.lot,
recommendLocationCode:resultData.recommendLocationCode,
uom: resultData.uom,
qty: resultData.qty
}
this.allDataList.unshift(item)
this.allCount = this.allDataList.length;
uni.setNavigationBarTitle({
title: "客户退货箱码" + "(" + this.allCount + ")"
})
this.$forceUpdate();
}
} else {
this.showMessage('来源库位【' + resultData.recommendLocationCode + '】不存在');
}
}).catch(err => {
this.showMessage(err.message);
var item = {
packingCode: resultData.code,
itemCode: resultData.itemCode,
itemName: resultData.itemName,
itemDesc1: resultData.itemDesc1,
stdPackQty: resultData.stdPackQty,
lot:resultData.lot,
uom: resultData.uom,
qty: resultData.qty
}
this.allDataList.unshift(item)
this.allCount = this.allDataList.length;
uni.setNavigationBarTitle({
title: "客户退货箱码" + "(" + this.allCount + ")"
})
this.$forceUpdate();
},

Loading…
Cancel
Save