logwire-wms-ui-test
Version:
运匠科技wms-PDA基础组件库
84 lines (83 loc) • 3.07 kB
JavaScript
import { n as t, A as c, g as o, f as u } from "./index.f1359381.mjs";
import "vue";
const i = {
name: "LwInboundReceiveCaseScanPage",
components: { AsnInfo: c },
data() {
return {
asn: null,
caseNum: {
value: "",
focus: !0
},
asnSku: null
};
},
created() {
const n = this.$route.query.asnNo;
if (!n)
return this.$lwShowErrorMsg(this.$lwLanguage.get("wms_project.pda.components.page.inbound.receive.receive_case.lmjopjwb", "\u672A\u6307\u5B9A\u5230\u8D27\u901A\u77E5\u5355\u53F7"));
this.getAsnByAsnNo(n);
},
methods: {
getAsnByAsnNo(n) {
o(n).then((e) => {
if (e) {
this.asn = e;
return;
}
this.$lwShowErrorMsg(this.$lwLanguage.get("wms_project.pda.components.page.inbound.receive.receive_case.vixiteue", "\u9519\u8BEF\u7684\u5230\u8D27\u901A\u77E5\u5355\u53F7"));
});
},
toReceive() {
!this.asn || (this.caseNum.value ? u(this.asn.id, this.caseNum.value).then((n) => {
n && n.skuList ? this.$router.push({
path: "/inbound/receive/case/execute",
query: { asnId: this.asn.id, asnNo: this.asn.asnNo, caseNum: this.caseNum.value }
}) : (this.$lwShowErrorMsg(this.$lwLanguage.get("wms_project.pda.components.page.inbound.receive.receive_case.qaerzklp", "\u6CA1\u6709\u53EF\u7528\u7684\u5546\u54C1\u4FE1\u606F")), this.caseNum.value = "", this.caseNum.focus = !0);
}).catch(() => {
this.caseNum.value = "", this.caseNum.focus = !0;
}) : (this.caseNum.value = "", this.caseNum.focus = !0));
}
}
};
var r = function() {
var e = this, s = e._self._c;
return s("div", [s("lw-nav-bar", { attrs: { title: e.$lwLanguage.get("wms_project.pda.components.page.inbound.receive.receive_case.fjwojpib", "\u6574\u7BB1\u6536\u8D27") } }), e.asn ? s("div", [s("div", { staticClass: "lw-global-page-box" }, [s("div", [s("asn-info", { attrs: { data: e.asn } })], 1)]), s("div", { staticClass: "lw-global-page-box" }, [s("div", { staticClass: "lw-global-model-box" }, [s("lw-input", { attrs: { title: e.$lwLanguage.get("wms_project.pda.components.page.inbound.receive.receive_case.fsycjztc", "\u7BB1\u53F7"), required: "", "get-focus": e.caseNum.focus }, on: { "update:getFocus": function(a) {
return e.$set(e.caseNum, "focus", a);
}, "update:get-focus": function(a) {
return e.$set(e.caseNum, "focus", a);
}, confirm: e.toReceive }, model: { value: e.caseNum.value, callback: function(a) {
e.$set(e.caseNum, "value", a);
}, expression: "caseNum.value" } })], 1)])]) : s("div", [s("lw-not-data")], 1)], 1);
}, l = [], v = /* @__PURE__ */ t(
i,
r,
l,
!1,
null,
"7333139b",
null,
null
);
const m = v.exports, d = {
name: "InboundReceiveCaseScanView",
components: { LwInboundReceiveCaseScanPage: m }
};
var _ = function() {
var e = this, s = e._self._c;
return s("lw-inbound-receive-case-scan-page");
}, p = [], g = /* @__PURE__ */ t(
d,
_,
p,
!1,
null,
null,
null,
null
);
const w = g.exports;
export {
w as default
};