You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
4.4 KiB
JavaScript

4 weeks ago
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/outBound/superviseLoading"],{"17c0":function(e,t,n){},"34d4":function(e,t,n){"use strict";n.r(t);var r=n("f34b"),o=n("bece");for(var u in o)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(u);n("fa6b");var a=n("f0c5"),c=Object(a["a"])(o["default"],r["b"],r["c"],!1,null,"254267e6",null,!1,r["a"],void 0);t["default"]=c.exports},"425c":function(e,t,n){"use strict";(function(e,t){var r=n("4ea4");n("260f");r(n("66fd"));var o=r(n("34d4"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},bece:function(e,t,n){"use strict";n.r(t);var r=n("f1ce"),o=n.n(r);for(var u in r)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(u);t["default"]=o.a},f1ce:function(e,t,n){"use strict";(function(e){var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("2eee")),u=r(n("9523")),a=r(n("c973")),c=r(n("79eb")),i=r(n("3f96")),s=n("77cf");function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,u.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l={onLoad:function(e){var t=this;e.name&&this.$nextTick((function(){"attachBill"==e.name?t.$refs.uToast.show({type:"success",message:"提交贴单成功"}):t.$refs.uToast.show({type:"success",message:"提交成功"})}))},onShow:function(t){var n=this;(0,s.initScan)(this.scanSuccess),(0,s.startScan)(),e.$on("sendMessage",(function(e){n.$refs.uToast.show({type:"success",message:"提交成功"})}))},onHide:function(){(0,s.stopScan)()},data:function(){return{ruleForm:{warehouseId:c.default.state.userInfo.branchId,orderNo:"",orderNos:[],workType:"8",location:"",number:"",userId:""},rules:{orderNo:{required:!0,message:"请输入订单号/出库编码",trigger:["blur","change"]}}}},methods:{leftClick:function(){e.switchTab({url:"/pages/wMSSystem/index",success:function(t){e.hideTabBar()}})},scanSuccess:function(e){var t=this;return(0,a.default)(o.default.mark((function n(){return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:t.ruleForm.orderNo=e.trim(),t.queryData();case 2:case"end":return n.stop()}}),n)})))()},getSearchData:function(){this.queryData()},getScanData:function(){var t=this;e.scanCode({success:function(e){e.result&&(t.ruleForm.orderNo=e.result.trim(),t.queryData())},fail:function(e){},complete:function(){}})},submitData:function(){this.queryData()},queryData:function(t){var n=this;this.$refs.ruleFormRef.validate().then((function(t){n.ruleForm.isSubmit=!1,i.default.storge.verify(n.ruleForm).then((function(t){var r,o;"0"==(null===t||void 0===t||null===(r=t.data)||void 0===r?void 0:r.outStatus)?e.navigateTo({url:"/pages/outBound/superviseLoadingDetail?data=".concat(JSON.stringify(d(d({},t.data),{},{orderNo:n.ruleForm.orderNo})))}):e.navigateTo({url:"/pages/outBound/superviseLoadingImg?id=".concat(null===t||void 0===t||null===(o=t.data)||void 0===o?void 0:o.outId)})}))}))}}};t.default=l}).call(this,n("543d")["default"])},f34b:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return r}));var r={uNavbar:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-navbar/u-navbar")]).then(n.bind(null,"84d1"))},uForm:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-form/u-form")]).then(n.bind(null,"f0ab"))},uFormItem:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-form-item/u-form-item")]).then(n.bind(null,"baa1"))},uSearch:fu