12 |
- require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/subPackages/companyHouse/companyHouse"],{402:function(e,n,t){"use strict";(function(e,n){var a=t(4);t(26),t(27);a(t(25));var r=a(t(403));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},403:function(e,n,t){"use strict";t.r(n);var a=t(404),r=t(407);for(var c in r)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(c);t(409);var o,u=t(46),i=Object(u["default"])(r["default"],a["render"],a["staticRenderFns"],!1,null,null,null,!1,a["components"],o);i.options.__file="pages/subPackages/companyHouse/companyHouse.vue",n["default"]=i.exports},404:function(e,n,t){"use strict";t.r(n);var a=t(405);t.d(n,"render",(function(){return a["render"]})),t.d(n,"staticRenderFns",(function(){return a["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return a["recyclableRender"]})),t.d(n,"components",(function(){return a["components"]}))},405:function(e,n,t){"use strict";var a;t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return o})),t.d(n,"recyclableRender",(function(){return c})),t.d(n,"components",(function(){return a}));try{a={uniSearchBar:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar")]).then(t.bind(null,656))},uniDataCheckbox:function(){return t.e("uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox").then(t.bind(null,563))}}}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 e=this,n=e.$createElement,a=(e._self._c,t(406)),r=e.companyList.length,c=0!=r?e.__map(e.companyList,(function(n,a){var r=e.__get_orig(n),c=e.getDicType(n.settleInType),o=t(102);return{$orig:r,m1:c,m2:o}})):null;e.$mp.data=Object.assign({},{$root:{m0:a,g0:r,l0:c}})},c=!1,o=[];r._withStripped=!0},407:function(e,n,t){"use strict";t.r(n);var a=t(408),r=t.n(a);for(var c in a)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return a[e]}))}(c);n["default"]=r.a},408:function(e,n,t){"use strict";(function(e){var a=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(t(29)),c=a(t(32)),o=t(67),u=function(){t.e("common/vendor").then(function(){return resolve(t(532))}.bind(null,t)).catch(t.oe)},i={components:{vanEmpty:u},data:function(){return{entryArray:[],dic_key:["MNP_BUILDING_TYPE","SETTLE_IN_STATUS"],dic_SelectList:{},active:0,form:{entryStatus:[]},statusList:[{label:"全部",value:null},{label:"在园",value:"1"},{label:"挂靠",value:"2"},{label:"异地生产",value:"3"},{label:"飞地",value:"4"}],companyList:[],search:{pageSize:10,pageNum:1}}},onShow:function(){this.getByCodes(),this.getCompanyList()},methods:{getMoreListData:function(){var e=this;return(0,c.default)(r.default.mark((function n(){var t,a;return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e,t.search.pageNum=t.search.pageNum+1,n.next=4,(0,o.listVo)(t.search);case 4:a=n.sent,0==a.rows?t.$showToast("没有更多数据了"):a.rows.forEach((function(e){t.companyList.push(e)}));case 6:case"end":return n.stop()}}),n)})))()},onReachBottom:function(){this.getMoreListData()},onChange:function(e){this.search.settleInType=null==e.detail.name?"":e.detail.name,this.getCompanyList()},getDicType:function(e){if(this.dic_SelectList.MNP_BUILDING_TYPE){var n=this.dic_SelectList.MNP_BUILDING_TYPE,t=n.findIndex((function(n){return n.value==e}));return-1!=t?n[t].label:"暂无"}},getByCodes:function(){var e=this;return(0,c.default)(r.default.mark((function n(){var t;return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.search.pageNum=1,n.next=3,(0,o.getByCodes)(JSON.stringify(e.dic_key));case 3:t=n.sent,e.dic_SelectList=e.$common.handleDicList(t),e.dic_SelectList.SETTLE_IN_STATUS=e.dic_SelectList.SETTLE_IN_STATUS.map((function(e){return{text:e.label,value:e.value}}));case 6:case"end":return n.stop()}}),n)})))()},getCompanyList:function(){var e=this;return(0,c.default)(r.default.mark((function n(){var t;return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.search.entryStatus=e.entryArray.toString(),e.search.pageSize=10,e.search.pageNum=1,n.next=5,(0,o.listVo)(e.search);case 5:t=n.sent,e.companyList=t.rows;case 7:case"end":return n.stop()}}),n)})))()},jumpAddCompanyPage:function(){e.navigateTo({url:"/pages/subPackages/addCompany/addCompany"})},blur:function(e){},focus:function(e){},input:function(e){},cancel:function(e){},change:function(e){},clear:function(e){},confirm:function(e){this.getCompanyList()},jumpPage:function(n){e.navigateTo({url:"/pages/subPackages/companyDetails/companyDetails?id="+n})}}};n.default=i}).call(this,t(2)["default"])},409:function(e,n,t){"use strict";t.r(n);var a=t(410),r=t.n(a);for(var c in a)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return a[e]}))}(c);n["default"]=r.a},410:function(e,n,t){}},[[402,"common/runtime","common/vendor","pages/subPackages/common/vendor"]]]);
- //# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/subPackages/companyHouse/companyHouse.js.map
|