1 |
- require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/subPackages/companyHouse/companyHouse"],{"1f30":function(e,t,n){"use strict";(function(e){var a=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c=a(n("2eee")),u=a(n("c973")),i=n("7982"),r={components:{vanEmpty:function(){n.e("common/vendor").then(function(){return resolve(n("e2cf"))}.bind(null,n)).catch(n.oe)}},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,u.default)(c.default.mark((function t(){var n,a;return c.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e,n.search.pageNum=n.search.pageNum+1,t.next=4,(0,i.listVo)(n.search);case 4:a=t.sent,0==a.rows?n.$showToast("没有更多数据了"):a.rows.forEach((function(e){n.companyList.push(e)}));case 6:case"end":return t.stop()}}),t)})))()},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 t=this.dic_SelectList.MNP_BUILDING_TYPE,n=t.findIndex((function(t){return t.value==e}));return-1!=n?t[n].label:"暂无"}},getByCodes:function(){var e=this;return(0,u.default)(c.default.mark((function t(){var n;return c.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.search.pageNum=1,t.next=3,(0,i.getByCodes)(JSON.stringify(e.dic_key));case 3:n=t.sent,e.dic_SelectList=e.$common.handleDicList(n),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 t.stop()}}),t)})))()},getCompanyList:function(){var e=this;return(0,u.default)(c.default.mark((function t(){var n;return c.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.search.entryStatus=e.entryArray.toString(),e.search.pageSize=10,e.search.pageNum=1,t.next=5,(0,i.listVo)(e.search);case 5:n=t.sent,e.companyList=n.rows;case 7:case"end":return t.stop()}}),t)})))()},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(t){e.navigateTo({url:"/pages/subPackages/companyDetails/companyDetails?id="+t})}}};t.default=r}).call(this,n("543d")["default"])},"23f2":function(e,t,n){},"3e16":function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return a}));var a={uniSearchBar:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar")]).then(n.bind(null,"c12a"))},uniDataCheckbox:function(){return n.e("uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox").then(n.bind(null,"8ea3"))}},c=function(){var e=this,t=e.$createElement,a=(e._self._c,n("1fff")),c=e.companyList.length,u=0!=c?e.__map(e.companyList,(function(t,a){var c=e.__get_orig(t),u=e.getDicType(t.settleInType),i=n("6e4c");return{$orig:c,m1:u,m2:i}})):null;e.$mp.data=Object.assign({},{$root:{m0:a,g0:c,l0:u}})},u=[]},9691:function(e,t,n){"use strict";n.r(t);var a=n("1f30"),c=n.n(a);for(var u in a)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(u);t["default"]=c.a},ba79:function(e,t,n){"use strict";var a=n("23f2"),c=n.n(a);c.a},ef2d:function(e,t,n){"use strict";(function(e,t){var a=n("4ea4");n("1416"),n("4a2a");a(n("66fd"));var c=a(n("eff2"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(c.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},eff2:function(e,t,n){"use strict";n.r(t);var a=n("3e16"),c=n("9691");for(var u in c)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return c[e]}))}(u);n("ba79");var i=n("f0c5"),r=Object(i["a"])(c["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);t["default"]=r.exports}},[["ef2d","common/runtime","common/vendor","pages/subPackages/common/vendor"]]]);
|