1 line
29 KiB
JavaScript
1 line
29 KiB
JavaScript
|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-cars-management-cars-approval"],{4386:function(t,e,i){"use strict";(function(t){var a=i("4ea4");i("99af"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("2909")),o=(a(i("3403")),i("d24f")),c=i("fb8c"),s=a(i("474f")),r=(a(i("bb31")),a(i("28ef"))),l=a(i("4729")),f={data:function(){return{userId:(0,c.getStorage)("userInfo").userId,deptId:(0,c.getStorage)("userInfo").deptId,currentTabIndex:0,page0:1,pageSize0:10,page1:1,pageSize1:10,list:[],list0:[],list1:[],stateList:["待审核","已通过","已拒绝"],loadingType0:2,contentText0:{contentdown:"上拉加载更多",contentrefresh:"正在加载...",contentnomore:"没有更多数据了"},loadingType1:2,contentText1:{contentdown:"上拉加载更多",contentrefresh:"正在加载...",contentnomore:"没有更多数据了"},items:[{value:"0",name:"全选",checked:!1},{value:"1",name:"取消选择",checked:!1}],objList:[],paramsDataList:[],checkedListId:[],ids:"",approvalReason:""}},components:{loadMore:s.default,contentNone:r.default,UniPopup:l.default},watch:{currentTabIndex:function(t,e){this.currentTabIndex=t,0==this.currentTabIndex?(this.page0=1,this.loadingType0=0,this.getApprovalList()):1==this.currentTabIndex&&(this.page1=1,this.loadingType1=0,this.getApprovalList())}},onLoad:function(t){this.currentTabIndex=t.currentTabIndex||0,this.getApprovalList()},methods:{getApprovalList:function(){var t=this,e={};e=0==this.currentTabIndex?{method:o.getUsecarApplyList,data:{userid:this.userId,deptid:this.deptId,pageSize:this.pageSize0,page:this.page0,approvalStatus:"0"}}:{method:o.getUsecarApplyList,data:{userid:this.userId,deptid:this.deptId,pageSize:this.pageSize0,page:this.page0,approvalStatus:"3"}},(0,c.callbackRequest)(e).then((function(e){if(1==e.data.returnCode){for(var i=e.data.returnData||[],a=0;a<i.length;a++)i[a].checkValue=!1;0==t.currentTabIndex?1==t.page0?t.list0=i:i.length>0?(t.list0=[].concat((0,n.default)(t.list0),(0,n.default)(i)),t.loadingType0=0):t.loadingType0=2:1==t.currentTabIndex&&(1==t.page1?t.list1=i:i.length>0?(t.list1=[].concat((0,n.default)(t.list1),(0,n.default)(i)),t.loadingType1=0):t.loadingType1=2)}}))},checkBox:function(t,e){var i=this,a=(e.checkValue=!e.checkValue,[]);if(e.checkValue)i.checkedListId.push(e);else{for(var n=0;n<i.checkedListId.length;n++)e.id!=i.checkedListId[n].id&&a.push(i.checkedListId[n]);i.checkedListId=a}},checkRadio:function(t,e){e.checked=!e.checked},getCheckBoxList:function(){for(var t=0;t<this.checkedListId.length;t++)this.ids+=0==t?this.checkedListId[t].id:","+this.checkedListId[t].id},submit:function(t){this.getCheckBoxList();var e={method:o.approvalUseCarApply,data:{ids:this.ids,approvalStatus:t,approvalReason:this.approvalReason,userId:this.userId}},i="是否确认拒绝";1==t&&(i="是否确认同意"),uni.showModal({title:"提示",content:i,success:function(t){t.confirm&&(0,c.callbackRequest)(e).then((function(t){var e="/pages/cars-management/cars-approval?currentTabIndex=0";(0,c.alertTip)(t.data.returnMsg),setTimeout((function(){uni.redirectTo({url:e})}),2e3)}))}})},checkRadioChange:function(t){var e=this,i=t.detail.value;if(0==i)for(var a=0;a<e.list0.length;a++)e.list0[a].checkValue=!0;else for(a=0;a<e.list0.length;a++)e.list0[a].checkValue=!1;var n=[];for(a=0;a<e.list0.length;a++)e.list0[a].checkValue&&n.push(e.list0[a]);e.checkedListId=n},circulation:function(){this.$refs.popup.open()},closeCirculation:function(){this.$refs.popup.close()},bindTextAreaBlur:function(e){t.log(e.detail.value)}},onReachBottom:function(){if(0==this.currentTabIndex){if(0!==this.loadingType0)return;this.loadingType0=1,this.page0=this.page0+1,this.getApprovalList()}else{if(0!==this.loadingType1)return;this.loadingType1=1,this.page1=this.page1+1,this.getApprovalList()}}};e.default=f}).call(this,i("5a52")["default"])},"5b3c":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */@font-face{font-fami
|