1 |
- require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/subPackages/secureselftest2/index"],{1173:function(e,t,a){"use strict";(function(e){var n=a("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(a("2eee")),r=n(a("c973")),c=a("2679"),u={components:{vanEmpty:function(){a.e("common/vendor").then(function(){return resolve(a("67c2"))}.bind(null,a)).catch(a.oe)}},data:function(){return{dic_key:["safety_inspection_type"],dic_SelectList:{},active:0,form:{attributiveYear:"2024"},statusList:[{label:"全部",value:null},{label:"电梯自检",value:"1"},{label:"消防自检",value:"2"},{label:"电柜检查",value:"3"},{label:"电器线路",value:"4"}],companyList:[],search:{pageSize:10,pageNum:1,attributiveYear:"2024",type:1}}},onShow:function(){this.getByCodes()},methods:{getDicType:function(e){if(!e)return"未知类型";var t=this.dic_SelectList.safety_inspection_type,a=t.findIndex((function(t){return t.value==e}));return t[a].label},bindDateChange:function(e){this.search.attributiveYear=e.detail.value,this.getCompanyList(),this.$forceUpdate()},junmpMyMechantsDetails:function(t){e.navigateTo({url:"/pages/subPackages/secureselftest/report?id="+t})},jumpReport:function(){e.navigateTo({url:"/pages/subPackages/secureselftest/report?id=null"})},getMoreListData:function(){var e=this;return(0,r.default)(i.default.mark((function t(){var a,n;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e,a.search.pageNum=a.search.pageNum+1,t.next=4,(0,c.findSafetySelfCheckingManageList)(a.search);case 4:n=t.sent,0==n.rows?a.$showToast("没有更多数据了"):n.rows.forEach((function(e){a.companyList.push(e)}));case 6:case"end":return t.stop()}}),t)})))()},onReachBottom:function(){this.getMoreListData()},onChange:function(e){this.search.type=null==e.detail.name?"":e.detail.name,this.getCompanyList()},endDate:function(){return this.getDate("end")},startDate:function(){return this.getDate("start")},getByCodes:function(){var e=this;return(0,r.default)(i.default.mark((function t(){var a;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,c.getByCodes)(JSON.stringify(e.dic_key));case 2:a=t.sent,e.dic_SelectList=e.$common.handleDicList(a),e.getCompanyList();case 5:case"end":return t.stop()}}),t)})))()},getDate:function(e){var t=new Date,a=t.getFullYear(),n=t.getMonth()+1,i=t.getDate();return"start"===e?a-=60:"end"===e&&(a+=2),n=n>9?n:"0"+n,i=i>9?i:"0"+i,"".concat(a,"-").concat(n,"-").concat(i)},getCompanyList:function(){var e=this;return(0,r.default)(i.default.mark((function t(){var a;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.search.pageSize=10,e.search.pageNum=1,t.next=4,(0,c.findSafetySelfCheckingManageList)(e.search);case 4:a=t.sent,a.rows.forEach((function(t){t.createdAt=e.$common.transDate(t.createdAt)})),e.companyList=a.rows;case 7:case"end":return t.stop()}}),t)})))()},jumpAddCompanyPage:function(){e.navigateTo({url:"/pages/subPackages/addCompany/addCompany"})},jumpPage:function(t){e.navigateTo({url:"/pages/subPackages/companyDetails/companyDetails?id="+t})}}};t.default=u}).call(this,a("543d")["default"])},"3bac":function(e,t,a){"use strict";(function(e,t){var n=a("4ea4");a("eaf5"),a("4a2a");n(a("66fd"));var i=n(a("67ff"));e.__webpack_require_UNI_MP_PLUGIN__=a,t(i.default)}).call(this,a("bc2e")["default"],a("543d")["createPage"])},"67ff":function(e,t,a){"use strict";a.r(t);var n=a("75f6"),i=a("e83b");for(var r in i)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(r);a("a60a");var c=a("f0c5"),u=Object(c["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);t["default"]=u.exports},"75f6":function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return i})),a.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,n=(e._self._c,e.companyList.length),i=0!=n?a("d15c"):null,r=e.__map(e.companyList,(function(t,a){var i=e.__get_orig(t),r=0!=n?e.getDicType(t.type):null;return{$orig:i,m0:r}})),c=e.companyList.length;e.$mp.data=Object.assign({},{$root:{g0:n,m1:i,l0:r,g1:c}})},i=[]},8928:function(e,t,a){},a60a:function(e,t,a){"use strict";var n=a("8928"),i=a.n(n);i.a},e83b:function(e,t,a){"use strict";a.r(t);var n=a("1173"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(r);t["default"]=i.a}},[["3bac","common/runtime","common/vendor"]]]);
|