dataOrder.js 3.7 KB

12
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/dataOrder/dataOrder"],{767:function(e,n,t){"use strict";(function(e,n){var r=t(4);t(26);r(t(25));var o=r(t(768));e.__webpack_require_UNI_MP_PLUGIN__=t,n(o.default)}).call(this,t(1)["default"],t(2)["createPage"])},768:function(e,n,t){"use strict";t.r(n);var r=t(769),o=t(771);for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(i);var a,c=t(32),s=Object(c["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],a);s.options.__file="pages/dataOrder/dataOrder.vue",n["default"]=s.exports},769:function(e,n,t){"use strict";t.r(n);var r=t(770);t.d(n,"render",(function(){return r["render"]})),t.d(n,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(n,"components",(function(){return r["components"]}))},770:function(e,n,t){"use strict";var r;t.r(n),t.d(n,"render",(function(){return o})),t.d(n,"staticRenderFns",(function(){return a})),t.d(n,"recyclableRender",(function(){return i})),t.d(n,"components",(function(){return r}));try{r={mescrollBody:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/mescroll-uni/components/mescroll-body/mescroll-body")]).then(t.bind(null,401))},uniIcons:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(t.bind(null,412))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var e=this,n=e.$createElement,t=(e._self._c,{}),r=e.__map(e.list,(function(n,t){var r=e.__get_orig(n),o=3!==e.type&&1===e.type?e.$field.findTypeName("serviceWorkWay",n.workWay):null,i=3!==e.type&&1!==e.type?e.$field.findTypeName("clearWorkWay",n.workWay):null;return{$orig:r,g0:o,g1:i}}));e.$mp.data=Object.assign({},{$root:{a0:t,l0:r}})},i=!1,a=[];o._withStripped=!0},771:function(e,n,t){"use strict";t.r(n);var r=t(772),o=t.n(r);for(var i in r)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(i);n["default"]=o.a},772:function(e,n,t){"use strict";(function(e){var r=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=t(248),i=r(t(56)),a={mixins:[i.default],data:function(){return{list:[],type:"",menu:{}}},onLoad:function(n){var t=this;this.type=parseInt(n.type),this.menu=this.title(),e.setNavigationBarTitle({title:this.menu.title}),e.$on("reloadOrder",(function(){t.mescroll.resetUpScroll(!1)}))},methods:{title:function(){var e={title:"",iconClass:"icon-weixiugongdan"};switch(this.type){case 1:e={title:"维修工单",iconClass:"icon-weixiugongdan"};break;case 2:e={title:"保洁工单",iconClass:"icon-jinribaojie"};break;case 3:e={title:"运维工单",iconClass:"icon-yunwei-jiancebaogao"};break;default:break}return e},upCallback:function(e){var n=this;(0,o.getOrderPageListByQuery)({currPage:e.num,pageSize:10,organizationId:this.$store.getters.organization.id,projectId:this.$store.getters.project.id,type:this.type}).then((function(t){if(200===t.code){n.mescroll.endBySize(t.data.dataList.length,t.data.totalCount),1==e.num&&(n.list=[]);var r=t.data.dataList;n.list=n.list.concat(r)}else n.mescroll.endErr()})).catch((function(){n.mescroll.endErr()}))}}};n.default=a}).call(this,t(2)["default"])}},[[767,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/dataOrder/dataOrder.js.map