1 line
31 KiB
JavaScript
1 line
31 KiB
JavaScript
|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-cars-management-cars-approval"],{"06c5":function(t,e,i){"use strict";i("a630"),i("fb6a"),i("d3b7"),i("25f0"),i("3ca3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var n=a(i("6b75"));function a(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(t){if("string"===typeof t)return(0,n.default)(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?(0,n.default)(t,e):void 0}}},2909:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var n=r(i("6005")),a=r(i("db90")),o=r(i("06c5")),c=r(i("3427"));function r(t){return t&&t.__esModule?t:{default:t}}function s(t){return(0,n.default)(t)||(0,a.default)(t)||(0,o.default)(t)||(0,c.default)()}},3427:function(t,e,i){"use strict";function n(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n},4386:function(t,e,i){"use strict";var n=i("4ea4");i("99af"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("2909")),o=(n(i("3403")),i("d24f")),c=i("fb8c"),r=n(i("474f")),s=(n(i("bb31")),n(i("28ef"))),l=n(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:r.default,contentNone:s.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||[],n=0;n<i.length;n++)i[n].checkValue=!1;0==t.currentTabIndex?1==t.page0?t.list0=i:i.length>0?(t.list0=[].concat((0,a.default)(t.list0),(0,a.default)(i)),t.loadingType0=0):t.loadingType0=2:1==t.currentTabIndex&&(1==t.page1?t.list1=i:i.length>0?(t.list1=[].concat((0,a.default)(t.list1),(0,a.default)(i)),t.loadingType1=0):t.loadingType1=2)}}))},checkBox:function(t,e){var i=this,n=(e.checkValue=!e.checkValue,[]);if(e.checkValue)i.checkedListId.push(e);else{for(var a=0;a<i.checkedListId.length;a++)e.id!=i.checkedListId[a].id&&n.push(i.checkedListId[a]);i.checkedListId=n}},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?currentT
|