Commit e2f34f0f authored by 何远江's avatar 何远江

扫描规则修改

parent 82894cc9
...@@ -185,9 +185,10 @@ export default { ...@@ -185,9 +185,10 @@ export default {
}); });
}, },
getPlnr(plnr) { getPlnr(plnr) {
const isBl = plnr.startsWith('B')
let params = { let params = {
ZCODE: plnr.includes("BL") ? plnr : "", ZCODE: isBl ? plnr : "",
plnr: plnr.includes("BL") ? "" : plnr, plnr: !isBl ? "" : plnr,
}; };
this.$u.api.sapApi.sapBlpl(params, 300).then((res) => { this.$u.api.sapApi.sapBlpl(params, 300).then((res) => {
if (res && res.MSG[0].TYPE === "S") { if (res && res.MSG[0].TYPE === "S") {
......
...@@ -268,7 +268,7 @@ export default { ...@@ -268,7 +268,7 @@ export default {
}); });
}, },
getPlnr(plnr) { getPlnr(plnr) {
const isBL = plnr.includes("BL"); const isBL = plnr.startsWith("B");
let params = { let params = {
ZCODE: isBL ? plnr : "", ZCODE: isBL ? plnr : "",
plnr: isBL ? "" : plnr, plnr: isBL ? "" : plnr,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment