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
3.9 KiB
JavaScript
1 line
3.9 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/outStock/discharge"],{"0a0e":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:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-search/u-search")]).then(n.bind(null,"b477"))},uToast:function(){return n.e("node-modules/uview-ui/components/u-toast/u-toast").then(n.bind(null,"b7df"))}},o=function(){var e=this.$createElement;this._self._c},u=[]},"2cef":function(e,t,n){"use strict";var r=n("ddf0"),o=n.n(r);o.a},4852:function(e,t,n){"use strict";n.r(t);var r=n("0a0e"),o=n("7ed5");for(var u in o)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(u);n("2cef");var a=n("f0c5"),c=Object(a["a"])(o["default"],r["b"],r["c"],!1,null,"a740c020",null,!1,r["a"],void 0);t["default"]=c.exports},"7ed5":function(e,t,n){"use strict";n.r(t);var r=n("e8d4"),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},aba6:function(e,t,n){"use strict";(function(e,t){var r=n("4ea4");n("260f");r(n("66fd"));var o=r(n("4852"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},ddf0:function(e,t,n){},e8d4: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 d(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 f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,u.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l={onShow:function(){(0,s.initScan)(this.scanSuccess),(0,s.startScan)()},onHide:function(){(0,s.stopScan)()},data:function(){return{ruleForm:{warehouseId:c.default.state.userInfo.branchId,orderNo:"",orderNos:[],workType:"1",location:"",number:"",userId:""},rules:{orderNo:{required:!0,message:"请输入订单号/出库编码",trigger:["blur","change"]}}}},methods:{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(){var t=this;this.$refs.ruleFormRef.validate().then((function(n){i.default.storge.unload(t.ruleForm).then((function(n){var r;null!==n&&void 0!==n&&n.data&&Array.isArray(null===n||void 0===n||null===(r=n.data)||void 0===r?void 0:r.orderNos)?e.navigateTo({url:"/pages/outStock/dischargeDetail?data=".concat(JSON.stringify(f(f({},n.data),{},{orderNo:t.ruleForm.orderNo})))}):(t.ruleForm.orderNo="",e.navigateTo({url:"/pages/outStock/recordingVolume?name=discharge"}))}))}))}}};t.default=l}).call(this,n("543d")["default"])}},[["aba6","common/runtime","common/vendor"]]]); |