1 |
- require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/subPackages/secureselftest/index"],{"1d49":function(e,t,n){"use strict";var a=n("3bce"),i=n.n(a);i.a},"3a73":function(e,t,n){"use strict";n.r(t);var a=n("cee8"),i=n("b1d5");for(var c in i)["default"].indexOf(c)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(c);n("1d49");var s=n("828b"),r=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);t["default"]=r.exports},"3bce":function(e,t,n){},"4b74":function(e,t,n){"use strict";(function(e){var a=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n("7eb4")),c=a(n("ee10")),s=n("5ae7"),r={components:{vanEmpty:function(){n.e("common/vendor").then(function(){return resolve(n("fe63"))}.bind(null,n)).catch(n.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"}}},onShow:function(){this.getByCodes()},methods:{getDicType:function(e){if(console.log(this.dic_SelectList.safety_inspection_type),!e)return"未知类型";if(this.dic_SelectList.safety_inspection_type&&0!=this.dic_SelectList.safety_inspection_type.length){var t=this.dic_SelectList.safety_inspection_type,n=t.findIndex((function(t){return t.value==e}));return console.log(n),-1!=n?t[n].label:void 0}},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+"&saveBtnStatus="+!0})},jumpReport:function(){e.navigateTo({url:"/pages/subPackages/secureselftest/report?id=null&saveBtnStatus="+!0})},getMoreListData:function(){var e=this;return(0,c.default)(i.default.mark((function t(){var n,a;return i.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,s.findSafetySelfCheckingManageList)(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(){console.log("getMoreListData"),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,c.default)(i.default.mark((function t(){var n;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,s.getByCodes)(JSON.stringify(e.dic_key));case 2:n=t.sent,e.dic_SelectList=e.$common.handleDicList(n),e.getCompanyList();case 5:case"end":return t.stop()}}),t)})))()},getDate:function(e){var t=new Date,n=t.getFullYear(),a=t.getMonth()+1,i=t.getDate();return"start"===e?n-=60:"end"===e&&(n+=2),a=a>9?a:"0"+a,i=i>9?i:"0"+i,"".concat(n,"-").concat(a,"-").concat(i)},getCompanyList:function(){var e=this;return(0,c.default)(i.default.mark((function t(){var n;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,s.findSafetySelfCheckingManageList)(e.search);case 4:n=t.sent,n.rows.forEach((function(t){t.createdAt=e.$common.transDate(t.createdAt)})),e.companyList=n.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=r}).call(this,n("df3c")["default"])},b1d5:function(e,t,n){"use strict";n.r(t);var a=n("4b74"),i=n.n(a);for(var c in a)["default"].indexOf(c)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(c);t["default"]=i.a},cee8:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){}));var a=function(){var e=this,t=e.$createElement,n=(e._self._c,e.companyList.length),a=e.__map(e.companyList,(function(t,a){var i=e.__get_orig(t),c=0!=n?!t.handlingFeedback||0==t.handlingFeedback.length:null,s=0!=n?!t.handlingFeedback||0==t.handlingFeedback.length:null,r=0!=n?e.getDicType(t.type):null;return{$orig:i,g1:c,g2:s,m0:r}})),i=e.companyList.length;e.$mp.data=Object.assign({},{$root:{g0:n,l0:a,g3:i}})},i=[]},d985:function(e,t,n){"use strict";(function(e,t){var a=n("47a9");n("5e15"),n("3c60");a(n("3240"));var i=a(n("3a73"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])}},[["d985","common/runtime","common/vendor"]]]);
|