hz-zhhq-app/unpackage/dist/build/web/static/js/pages-cars-management-sl-ca...

1 line
41 KiB
JavaScript
Raw Normal View History

2025-01-22 10:53:47 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-cars-management-sl-cars-management-sl"],{"012a":function(t,e,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("c223"),i("aa9c"),i("5ef2");var n=a(i("b7c7")),o=i("8251"),c=i("779a"),r=a(i("56cd")),d=a(i("80c8")),s=a(i("ff38")),l=a(i("1d1b")),u={data:function(){return{page:1,page1:1,page2:1,pageSize:10,loadingType:0,loadingType1:0,loadingType2:0,contentText:{contentdown:"上拉加载更多",contentrefresh:"正在加载...",contentnomore:"没有更多数据了"},userId:(0,o.getStorage)("userInfo").id,currentTabIndex:0,deptList:[],departmentIndex:0,commentList:[],commentList1:[],commentList2:[],formatDate:o.formatDate,finalList:[],showList:!0,driverList:[],driverId:"",driverName:"",item:{}}},components:{loadMore:r.default,contentNone:d.default,UniPopup:s.default,xflSelect:l.default},onLoad:function(t){this.currentTabIndex=t.currentTabIndex||0,0==this.currentTabIndex?(this.page=1,this.loadingType=0,this.getUsecarApplyList(0)):1==this.currentTabIndex?(this.page1=1,this.loadingType1=0,this.getUsecarApplyList(1)):2==this.currentTabIndex&&(this.page2=1,this.loadingType2=0,this.getUsecarApplyList(2)),this.getDriverList()},watch:{currentTabIndex:function(t,e){1==t?(this.page1=1,this.loadingType1=0,this.getUsecarApplyList(1)):0==t?(this.page=1,this.loadingType=0,this.getUsecarApplyList(0)):2==t&&(this.page2=1,this.loadingType2=0,this.getUsecarApplyList(2))}},methods:{getUsecarApplyList:function(t){var e=this,i={method:c.getUsecarApplyList,data:{userid:this.userId,pageSize:this.pageSize,page:0==t?this.page:1==t?this.page1:this.page2,status:t,approvalStatus:1}};(0,o.callbackRequest)(i).then((function(i){1==i.data.returnCode&&(0==t?1==e.page?e.commentList=i.data.returnData:i.data.returnData.length>0?(e.commentList=[].concat((0,n.default)(e.commentList),(0,n.default)(i.data.returnData)),e.loadingType=0):e.loadingType=2:1==t?1==e.page?e.commentList1=i.data.returnData:i.data.returnData.length>0?(e.commentList1=[].concat((0,n.default)(e.commentList1),(0,n.default)(i.data.returnData)),e.loadingType1=0):e.loadingType1=2:2==t&&(1==e.page?e.commentList2=i.data.returnData:i.data.returnData.length>0?(e.commentList2=[].concat((0,n.default)(e.commentList2),(0,n.default)(i.data.returnData)),e.loadingType2=0):e.loadingType2=2))}))},getDriverList:function(){var t=this,e={method:c.getDriverList,data:{userId:this.userId}};(0,o.callbackRequest)(e).then((function(e){var i;i=e.data.returnData;for(var a=[],n=0;n<i.length;n++){var o=i[n],c={};c.value=o.real_name+"/"+o.mobile,c.id=o.id,a.push(c)}t.driverList=a,t.finalList=a}))},acceptUseCarApply:function(t){var e=this;this.item=t;var i={method:c.acceptUseCarApply,data:{id:this.item.id,assignId:this.driverId,assignName:this.driverName}};(0,o.callbackRequest)(i).then((function(t){1==t.data.returnCode?((0,o.alertTip)("已成功安排受理"),setTimeout((function(t){e.currentTabIndex=1}),2e3)):(0,o.alertTip)(t.data.returnMsg)}))},finishUseCar:function(t,e){var i=this,a={method:c.finishUseCar,data:{id:t,userId:e}};(0,o.callbackRequest)(a).then((function(t){1==t.data.returnCode?((0,o.alertTip)("用车完毕"),setTimeout((function(t){i.currentTabIndex=2}),1e3)):(0,o.alertTip)(t.data.returnMsg)}))},inputSel:function(t){if(this.circulationId="",""==t.detail.value)return this.finalList=this.driverList,void(this.showList=!0);for(var e=[],i=0;i<this.driverList.length;i++){var a=this.driverList[i].value;-1!==a.indexOf(t.detail.value)&&(e=e.concat(a))}this.finalList=e,this.showList=!0},changeSel:function(t){this.driverId=t.orignItem.id,this.driverName=t.orignItem.value},clearSel:function(){this.driverId="",this.finalList=this.driverList,this.showList=!0},openPopup:function(t){this.item=t,this.$refs.popup.open()},closePopup:function(){this.$refs.popup.close()}},onReachBottom:function(){}};e.default=u},"10c8":function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("64aa");var a={data:function(){return{}},props:{title:{type:String,default:"<EFBFBD>