logwire-wms-ui-test
Version:
运匠科技wms-PDA基础组件库
84 lines (83 loc) • 2.45 kB
JavaScript
import { B as l, o as u, a } from "./BlockInfo.47fcca51.mjs";
import { n as s } from "./index.f1359381.mjs";
import "vue";
const c = {
name: "LwOutboundBlockBoxListPage",
components: { BlockInfo: l },
data() {
return {
boxList: [],
boxNo: {
value: "",
focus: !0
},
singleBox: null
};
},
computed: {
boxes() {
return this.boxNo.value && this.singleBox ? [this.singleBox] : this.boxList;
}
},
created() {
this.getAllBox();
},
methods: {
getAllBox() {
u().then((t) => this.boxList = t);
},
scanBoxNo(t) {
!t || a(t).then((o) => this.singleBox = o);
},
toBlock(t) {
this.$router.push({
path: "/outbound/block/execute",
query: { boxNo: t.boxNo }
});
}
}
};
var r = function() {
var o = this, n = o._self._c;
return n("div", [n("lw-nav-bar", { attrs: { title: o.$lwLanguage.get("wms_project.pda.components.page.outbound.block.pvbplmug", "\u8BA2\u5355\u62E6\u622A") } }), n("div", { staticClass: "lw-global-page-box" }, [n("div", { staticClass: "lw-global-model-box" }, [n("lw-input", { attrs: { "get-focus": o.boxNo.focus, title: o.$lwLanguage.get("wms_project.pda.components.page.outbound.block.hzdqancd", "\u6346\u5305\u7BB1\u53F7"), "rule-key": "box", "rule-value-key": "boxNo", placeholder: o.$lwLanguage.get("wms_project.pda.components.page.outbound.block.pzrxrrcx", "\u6346\u5305\u7BB1\u53F7/\u539F\u7BB1\u53F7/\u7269\u6D41\u5355\u53F7/\u5E8F\u5217\u53F7") }, on: { "update:getFocus": function(e) {
return o.$set(o.boxNo, "focus", e);
}, "update:get-focus": function(e) {
return o.$set(o.boxNo, "focus", e);
}, confirm: o.scanBoxNo }, model: { value: o.boxNo.value, callback: function(e) {
o.$set(o.boxNo, "value", e);
}, expression: "boxNo.value" } })], 1), o._l(o.boxes, function(e) {
return [n("block-info", { key: e.boxId, attrs: { box: e }, on: { click: function(g) {
return o.toBlock(e);
} } })];
})], 2)], 1);
}, i = [], b = /* @__PURE__ */ s(
c,
r,
i,
!1,
null,
"4de72f04",
null,
null
);
const x = b.exports, d = {
name: "OutboundBlockBoxListView",
components: { LwOutboundBlockBoxListPage: x }
};
var _ = function() {
var o = this, n = o._self._c;
return n("lw-outbound-block-box-list-page");
}, p = [], f = /* @__PURE__ */ s(
d,
_,
p,
!1,
null,
null,
null,
null
);
const k = f.exports;
export {
k as default
};