hz-zhhq-app/unpackage/dist/build/wit-hz/static/js/pages-washcar-washCarReserv...

1 line
90 KiB
JavaScript
Raw Normal View History

2025-01-22 10:53:47 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-washcar-washCarReservation"],{"06c5":function(t,e,a){"use strict";a("a630"),a("fb6a"),a("d3b7"),a("25f0"),a("3ca3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var i=n(a("6b75"));function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(t){if("string"===typeof t)return(0,i.default)(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?(0,i.default)(t,e):void 0}}},2331:function(t,e,a){"use strict";a.r(e);var i=a("e915"),n=a("424f");for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("97fe");var r,s=a("f0c5"),c=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"8769d7e0",null,!1,i["a"],r);e["default"]=c.exports},2909:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var i=s(a("6005")),n=s(a("db90")),o=s(a("06c5")),r=s(a("3427"));function s(t){return t&&t.__esModule?t:{default:t}}function c(t){return(0,i.default)(t)||(0,n.default)(t)||(0,o.default)(t)||(0,r.default)()}},"2ef5":function(t,e,a){"use strict";var i=a("4ea4");a("99af"),a("d3b7"),a("4d63"),a("ac1f"),a("25f0"),a("5319"),a("1276"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("2909")),o=a("b742"),r=a("37f6"),s=i(a("8e28")),c=i(a("bd50")),u=i(a("2331")),d={components:{loadMore:s.default,contentNone:c.default,inputAutocomplete:u.default},data:function(){return{page:1,pageSize:10,loadingType:0,contentText:{contentdown:"上拉加载更多",contentrefresh:"正在加载...",contentnomore:"没有更多数据了"},userId:(0,o.getStorage)("userInfo").id,currentTabIndex:0,date:(0,o.getDate)(),chooseDateIndex:0,times:[],chooseTimeIndex:null,deptList:[],places:[],placeIndex:0,departmentIndex:0,applyPersonName:(0,o.getStorage)("userInfo").username,applyPersonMobile:(0,o.getStorage)("userInfo").telnumber,carId:"",commentList:[],reservationList:[],formatDate:o.formatDate,licensePlateList:[],licensePlateListIndex:0,moveCarItems:[{value:"1",name:"是"},{value:"0",name:"否"}],moveCarItemIndex:0,moveCarItemCheck:1}},onLoad:function(t){this.currentTabIndex=t.currentTabIndex||0},onShow:function(){this.getCalendar(),this.getDepartment(),0==this.currentTabIndex?this.getPlaceData():(this.page=1,this.loadingType=0,this.getReservationRecord())},watch:{currentTabIndex:function(t,e){1==t?(this.page=1,this.loadingType=0,this.getReservationRecord()):this.initData()}},methods:{getCalendar:function(t){var e=this,a={method:"greenCalendar/getCalendarList",data:{date_name:this.date[0].tiems}};(0,o.callbackRequest)(a).then((function(t){if(1==t.data.returnCode)for(var a=t.data.returnData,i=0;i<e.date.length;i++){for(var n=!0,o=0;o<a.length;o++)a[o].date_name==e.date[i].tiems&&(e.$set(e.date[i],"isholiday",a[o].isholiday),n=!1);n&&e.$set(e.date[i],"isholiday","0")}}))},compareTime:function(t){var e=this.date[this.chooseDateIndex].tiems.replace(/-/g,"/"),a=this.date[0].tiems.replace(/-/g,"/"),i=this.date[0].tiems.replace(/-/g,"/")+" 12:15:00",n=t.split("-")[0],o=this.date[this.chooseDateIndex].tiems.replace(/-/g,"/")+" "+n+":00";if(new Date(e).getTime()>new Date(a).getTime())return!0;if((new Date).getTime()>new Date(i).getTime())return!1;var r=this.date[0].tiems.replace(/-/g,"/")+" 13:00:00";return new Date(o).getTime()>=new Date(r).getTime()},compareTimeForCancle:function(t,e){var a=e.split("-")[0],i=t+" "+a;i=i.replace(/-/g,"/");var n=new Date(i).getTime(),o=(new Date).getTime();return n>o},compareTimeForRecord:function(t,e){var a=e.split("-")[0],i=t+" "+a;i=i.replace(/-/g,"/");var n=new Date(i).getTime(),o=(new Date).getTime();return n<o},loadAutocompleteData:function(t){this.$root;return Promise.resolve(this.licensePlateList)},selectItemD:function(t){console.log("收到数据了:",t)},getPlaceData:function(){var t=this,e={method:r.getPlaceData,data:{userId:this.userId}};(0,o.callbackRequest)(e).then((function(e){if(1==e.data.returnCode){var a=e