index.js 4.6 KB

12
  1. require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["packageA/pages/goods/index"],{144:function(n,e,t){"use strict";(function(n,e){var o=t(4);t(26);o(t(25));var r=o(t(145));n.__webpack_require_UNI_MP_PLUGIN__=t,e(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},145:function(n,e,t){"use strict";t.r(e);var o=t(146),r=t(148);for(var c in r)["default"].indexOf(c)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(c);t(150);var i,u=t(32),a=Object(u["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,"08809c70",null,!1,o["components"],i);a.options.__file="packageA/pages/goods/index.vue",e["default"]=a.exports},146:function(n,e,t){"use strict";t.r(e);var o=t(147);t.d(e,"render",(function(){return o["render"]})),t.d(e,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(e,"components",(function(){return o["components"]}))},147:function(n,e,t){"use strict";var o;t.r(e),t.d(e,"render",(function(){return r})),t.d(e,"staticRenderFns",(function(){return i})),t.d(e,"recyclableRender",(function(){return c})),t.d(e,"components",(function(){return o}));try{o={uniSegmentedControl:function(){return t.e("uni_modules/uni-segmented-control/components/uni-segmented-control/uni-segmented-control").then(t.bind(null,198))},uniSection:function(){return t.e("uni_modules/uni-section/components/uni-section/uni-section").then(t.bind(null,160))},uniCard:function(){return t.e("uni_modules/uni-card/components/uni-card/uni-card").then(t.bind(null,233))},uniTag:function(){return t.e("uni_modules/uni-tag/components/uni-tag/uni-tag").then(t.bind(null,191))}}}catch(u){if(-1===u.message.indexOf("Cannot find module")||-1===u.message.indexOf(".vue"))throw u;console.error(u.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var r=function(){var n=this,e=n.$createElement;n._self._c},c=!1,i=[];r._withStripped=!0},148:function(n,e,t){"use strict";t.r(e);var o=t(149),r=t.n(o);for(var c in o)["default"].indexOf(c)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(c);e["default"]=r.a},149:function(n,e,t){"use strict";(function(n){var o=t(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(t(11)),c=o(t(56));function i(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function u(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?i(Object(t),!0).forEach((function(e){(0,r.default)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var a=function(){Promise.all([t.e("common/vendor"),t.e("packageA/pages/goods/components/CreateBound")]).then(function(){return resolve(t(410))}.bind(null,t)).catch(t.oe)},s={components:{CreateBound:a},computed:{goodsType:function(){return this.tabIdx+1}},data:function(){return{tabIdx:0,tabs:["行业物质","镇办物资"],items:[],goodsCats:n.getStorageSync("goodsCats")||[],keywords:""}},onShow:function(){this.getData(),this.init()},methods:{changeTab:function(n){var e=n.currentIndex;this.tabIdx!==e&&(this.tabIdx=e,this.getData())},init:function(){var e=this;n.getStorageSync("goodsCats")||c.default.getCatByList().then((function(t){n.setStorageSync("goodsCats",t.data),e.goodsCats=t.data}))},getData:function(){var n=this;c.default.counterByCat({goodsType:this.tabIdx+1}).then((function(e){n.items=e.data}))},onInbound:function(){this.$refs.bound.show({type:"in",item:{goodsType:this.tabIdx+1}})},onOutbound:function(n){this.$refs.bound.show({type:"out",item:u(u({},n),{},{goodsType:this.tabIdx+1})})},onBoundSuccess:function(e){n.navigateTo({url:"/packageA/pages/goods/record?type=".concat(e)})},linkToRecord:function(){n.navigateTo({url:"/packageA/pages/goods/record?type=".concat(this.tabIdx+1)})}}};e.default=s}).call(this,t(2)["default"])},150:function(n,e,t){"use strict";t.r(e);var o=t(151),r=t.n(o);for(var c in o)["default"].indexOf(c)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(c);e["default"]=r.a},151:function(n,e,t){}},[[144,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../../.sourcemap/mp-weixin/packageA/pages/goods/index.js.map