|
|
@ -66,6 +66,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
outboundLogic = function (req) { |
|
|
outboundLogic = function (req) { |
|
|
|
|
|
let loading2 = layer.open({ type: 3, shade: [0.25, '#000'], icon: 2, speed: 0}); |
|
|
layui.$.ajax({ |
|
|
layui.$.ajax({ |
|
|
url: "/material/qywxScanCodeOut", |
|
|
url: "/material/qywxScanCodeOut", |
|
|
type: "post", |
|
|
type: "post", |
|
|
@ -77,6 +78,7 @@ |
|
|
// 获取标准 |
|
|
// 获取标准 |
|
|
var flag = data.flag; |
|
|
var flag = data.flag; |
|
|
if (flag === 0) { |
|
|
if (flag === 0) { |
|
|
|
|
|
layer.close(loading2); |
|
|
// 如果是无效码 |
|
|
// 如果是无效码 |
|
|
layer.confirm("扫描失败,是否重新扫描", { |
|
|
layer.confirm("扫描失败,是否重新扫描", { |
|
|
btn: ["确定", "取消"] |
|
|
btn: ["确定", "取消"] |
|
|
@ -99,17 +101,20 @@ |
|
|
parent.layer.close(index); |
|
|
parent.layer.close(index); |
|
|
}) |
|
|
}) |
|
|
} else if (flag === 1) { |
|
|
} else if (flag === 1) { |
|
|
|
|
|
layer.close(loading2); |
|
|
// 如果是物料 |
|
|
// 如果是物料 |
|
|
material = data.material; |
|
|
material = data.material; |
|
|
window.location.href = "/toShowInventory?id="+material.id+"&type=m"; |
|
|
window.location.href = "/toShowInventory?id="+material.id+"&type=m"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else if (flag === 2) { |
|
|
} else if (flag === 2) { |
|
|
|
|
|
layer.close(loading2); |
|
|
// 如果扫描的为库位 |
|
|
// 如果扫描的为库位 |
|
|
place = data.place;// 将扫描结果保存到vue中 |
|
|
place = data.place;// 将扫描结果保存到vue中 |
|
|
window.location.href = "/toShowInventory?id="+place.id+"&type=p"; |
|
|
window.location.href = "/toShowInventory?id="+place.id+"&type=p"; |
|
|
|
|
|
|
|
|
} else if (flag === 3) { |
|
|
} else if (flag === 3) { |
|
|
|
|
|
layer.close(loading2); |
|
|
depository = data.depository;// 将扫描结果保存到vue中 |
|
|
depository = data.depository;// 将扫描结果保存到vue中 |
|
|
window.location.href = "/toShowInventory?id="+depository.id+"&type=d"; |
|
|
window.location.href = "/toShowInventory?id="+depository.id+"&type=d"; |
|
|
|
|
|
|
|
|
|