UNPKG

logwire-wms-ui-test

Version:

运匠科技wms-PDA基础组件库

124 lines (123 loc) 5.51 kB
import { S as s, o as n } from "./index.4dcaf2be.mjs"; import { n as u } from "./index.f1359381.mjs"; import "vue"; const r = { name: "LwOutboundStockoutListPage", components: { StockoutInfo: s }, data() { return { query: { pageNum: 1, pageSize: 10, total: 0, planTime: null, roadLine: null, customerCode: null, soNo: null }, param: { planTime: null, roadLine: { value: null, focus: !1 }, customerCode: { value: null, focus: !1 }, soNo: { value: null, focus: !1 } }, stocks: [], showTitle: !1, showEmpty: !1 }; }, methods: { queryData() { if (!this.param.planTime) return this.$lwShowErrorMsg(this.$lwLanguage.get("wms_project.pda.components.page.outbound.stockout.ydatntnr", "\u8BA1\u5212\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A")); this.showTitle = !0, this.showEmpty = !1, this.stocks = [], this.query.planTime = this.param.planTime, this.query.roadLine = this.param.roadLine.value, this.query.customerCode = this.param.customerCode.value, this.query.soNo = this.param.soNo.value, this.loadPage(1); }, loadPage(a) { const t = { ...this.query, pageNum: a || 1 }; n(t).then((o) => { this.query.total = o.total, this.query.pageNum = o.pageNum, this.query.pageSize = o.pageSize, this.stocks = o.datas, o.total === 0 && (this.showEmpty = !0); }); }, toExecute(a) { this.$router.push({ path: "/outbound/stockout/execute", query: { planTime: a.planTime, customerCode: a.customerCode } }); } } }; var l = function() { var t = this, o = t._self._c; return o("div", [o("lw-nav-bar", { attrs: { title: t.$lwLanguage.get("wms_project.pda.components.page.outbound.stockout.dvnzidln", "\u786E\u8BA4\u7F3A\u8D27") } }), o("div", { staticClass: "lw-global-page-box" }, [o("div", { staticClass: "lw-global-model-box" }, [o("lw-cell-popup-date", { attrs: { title: t.$lwLanguage.get("wms_project.pda.components.page.outbound.stockout.evmnjeuy", "\u8BA1\u5212\u65E5\u671F"), required: "" }, on: { confirm: function(e) { t.param.roadLine.focus = !0; } }, model: { value: t.param.planTime, callback: function(e) { t.$set(t.param, "planTime", e); }, expression: "param.planTime" } }), o("lw-input", { attrs: { title: t.$lwLanguage.get("wms_project.pda.components.page.outbound.stockout.gwzoziot", "\u7EBF\u8DEF\u7F16\u7801"), "get-focus": t.param.roadLine.focus }, on: { "update:getFocus": function(e) { return t.$set(t.param.roadLine, "focus", e); }, "update:get-focus": function(e) { return t.$set(t.param.roadLine, "focus", e); }, confirm: function(e) { t.param.customerCode.focus = !0; } }, model: { value: t.param.roadLine.value, callback: function(e) { t.$set(t.param.roadLine, "value", e); }, expression: "param.roadLine.value" } }), o("lw-input", { attrs: { title: t.$lwLanguage.get("wms_project.pda.components.page.outbound.stockout.gxrqcbup", "\u5BA2\u6237\u7F16\u7801"), "get-focus": t.param.customerCode.focus }, on: { "update:getFocus": function(e) { return t.$set(t.param.customerCode, "focus", e); }, "update:get-focus": function(e) { return t.$set(t.param.customerCode, "focus", e); }, confirm: function(e) { t.param.soNo.focus = !0; } }, model: { value: t.param.customerCode.value, callback: function(e) { t.$set(t.param.customerCode, "value", e); }, expression: "param.customerCode.value" } }), o("lw-input", { attrs: { title: t.$lwLanguage.get("wms_project.pda.components.page.outbound.stockout.wtqpmcwj", "\u51FA\u5E93\u5355\u53F7"), "get-focus": t.param.soNo.focus }, on: { "update:getFocus": function(e) { return t.$set(t.param.soNo, "focus", e); }, "update:get-focus": function(e) { return t.$set(t.param.soNo, "focus", e); }, confirm: t.queryData }, model: { value: t.param.soNo.value, callback: function(e) { t.$set(t.param.soNo, "value", e); }, expression: "param.soNo.value" } }), o("lw-button", { attrs: { block: "" }, on: { click: t.queryData } }, [t._v(t._s(t.$lwLanguage.get("wms_project.pda.components.page.outbound.stockout.pwjfkfgt", "\u67E5\u8BE2")))])], 1), t.showTitle ? o("div", { staticClass: "lw-global-model-box", staticStyle: { "margin-bottom": "10px", "text-align": "center" } }, [t._v(t._s(t.$lwLanguage.get("wms_project.pda.components.page.outbound.stockout.wgevfeql", "\u5B58\u5728\u7F3A\u8D27\u7684\u5BA2\u6237\u5217\u8868")))]) : t._e(), t.showEmpty ? o("div", [o("lw-not-data")], 1) : o("div", [t._l(t.stocks, function(e) { return o("stockout-info", { key: e.customerCode, attrs: { data: e }, on: { click: function(_) { return t.toExecute(e); } } }); }), o("lw-pages", { attrs: { "page-size": t.query.pageSize, "page-total": t.query.total }, on: { change: t.loadPage }, model: { value: t.query.pageNum, callback: function(e) { t.$set(t.query, "pageNum", e); }, expression: "query.pageNum" } })], 2)])], 1); }, c = [], p = /* @__PURE__ */ u( r, l, c, !1, null, "6dd0e785", null, null ); const i = p.exports, m = { name: "LwOutboundStockoutListView", components: { LwOutboundStockoutListPage: i } }; var d = function() { var t = this, o = t._self._c; return o("lw-outbound-stockout-list-page"); }, g = [], f = /* @__PURE__ */ u( m, d, g, !1, null, null, null, null ); const b = f.exports; export { b as default };