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

1 line
37 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"],{"28ef":function(t,e,a){"use strict";a.r(e);var i=a("d537"),n=a("f929");for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("7061");var r,s=a("f0c5"),c=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"debfdc22",null,!1,i["a"],r);e["default"]=c.exports},"474f":function(t,e,a){"use strict";a.r(e);var i=a("9b68"),n=a("cd59");for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("7265");var r,s=a("f0c5"),c=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"16a0a3a8",null,!1,i["a"],r);e["default"]=c.exports},"4fc6":function(t,e,a){"use strict";a("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"load-more",props:{loadingType:{type:Number,default:0},showImage:{type:Boolean,default:!0},color:{type:String,default:"#777777"},contentText:{type:Object,default:function(){return{contentdown:"上拉显示更多",contentrefresh:"正在加载...",contentnomore:"没有更多数据了"}}}},data:function(){return{}}};e.default=i},"65de":function(t,e,a){"use strict";var i=a("4ea4");a("99af"),a("c975"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("2909")),o=a("fb8c"),r=a("d24f"),s=i(a("474f")),c=i(a("28ef")),d=i(a("4729")),l=i(a("b539")),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:s.default,contentNone:c.default,UniPopup:d.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,a={method:r.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)(a).then((function(a){1==a.data.returnCode&&(0==t?1==e.page?e.commentList=a.data.returnData:a.data.returnData.length>0?(e.commentList=[].concat((0,n.default)(e.commentList),(0,n.default)(a.data.returnData)),e.loadingType=0):e.loadingType=2:1==t?1==e.page?e.commentList1=a.data.returnData:a.data.returnData.length>0?(e.commentList1=[].concat((0,n.default)(e.commentList1),(0,n.default)(a.data.returnData)),e.loadingType1=0):e.loadingType1=2:2==t&&(1==e.page?e.commentList2=a.data.returnData:a.data.returnData.length>0?(e.commentList2=[].concat((0,n.default)(e.commentList2),(0,n.default)(a.data.returnData)),e.loadingType2=0):e.loadingType2=2))}))},getDriverList:function(){var t=this,e={method:r.getDriverList,data:{userId:this.userId}};(0,o.callbackRequest)(e).then((function(e){var a=[];a=e.data.returnData;for(var i=[],n=0;n<a.length;n++){var o=a[n],r={};r.value=o.real_name+"/"+o.mobile,r.id=o.id,i.push(r)}t.driverList=i,t.finalList=i}))},acceptUseCarApply:function(t){var e=this;this.item=t;var a={method:r.acceptUseCarApply,data:{id:this.item.id,assignId:this.driverId,assignName:this.driverName}};(0,o.callbackRequest)(a).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 a=this,i={method:r.finishUseCar,data:{id: