You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
7.2 KiB

2 years ago
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["driverManagement/accountDetails/accountDetails"],{"653b":function(t,e,n){"use strict";(function(t){n("84da");o(n("66fd"));var e=o(n("9b5a"));function o(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n("543d")["createPage"])},"8b77":function(t,e,n){"use strict";n.r(e);var o=n("a2dc"),i=n.n(o);for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},"9b5a":function(t,e,n){"use strict";n.r(e);var o=n("d43c"),i=n("8b77");for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("e060");var c,u=n("f0c5"),s=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],c);e["default"]=s.exports},a2dc:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(n("b1e4")),i=a(n("3415"));function a(t){return t&&t.__esModule?t:{default:t}}var c=function(){n.e("components/topbar").then(function(){return resolve(n("6fd4"))}.bind(null,n)).catch(n.oe)},u=function(){n.e("components/customPopup").then(function(){return resolve(n("34d2"))}.bind(null,n)).catch(n.oe)},s={components:{topBar:c,popup:u},data:function(){return{butten:{colse:"取消",confirm:"确定",coloseBg:"",coloseColor:"",confirmBg:"",confirmColor:""},oliCarSeting:{orderAmountToplimit:"",dayAmountToplimit:"",dayVolumeToplimit:"",orderVolumeToplimit:"",id:""},baseUrl:this.networkResource.baseUrl,iShow:{seting:!1},openText:{one:"启用",off:"禁用"},switchOpen:"",wqswitchOpen:"",styles:{},jsData:null,listData:[],gr:null,getData:{pageSize:10,currentPage:1,params:{accountId:""},sorted:{}}}},onReachBottom:function(){this.getData.currentPage+=1,this.jsData?this.getList():this.grlist(),console.log("触底了")},onShow:function(){console.log(o.default,this.networkResource.baseUrl),null!==this.jsData&&this.getList(),null!==this.gr&&this.grlist()},onLoad:function(t){var e=this;if(t.jsData){this.jsData=JSON.parse(t.jsData),e.getData.params.accountId=e.jsData.id,this.switchOpen=0!=this.jsData.shareCompanyQuota,this.wqswitchOpen=0!=this.jsData.accountState;var n=this.jsData;e.oliCarSeting.orderAmountToplimit=n.orderAmountToplimit,e.oliCarSeting.dayAmountToplimit=n.dayAmountToplimit,e.oliCarSeting.dayVolumeToplimit=n.dayVolumeToplimit,e.oliCarSeting.orderVolumeToplimit=n.orderVolumeToplimit,e.oliCarSeting.id=n.id,console.log(this.jsData,this.switchOpen,JSON.parse(t.jsData),"*-*-")}else t.gr&&(this.gr=JSON.parse(t.gr))},methods:{grlist:function(){var t=this,e={pageSize:this.getData.pageSize,currentPage:this.getData.currentPage,params:{customerId:this.gr.customerId,receiptResult:"1"}};o.default.oilCustomerAccountRecord(e).then((function(e){e.data.list.forEach((function(t){i.default.numberSetting(t,["currentRechargeBalance","currentBalance","currentChargeRechargeBalance","currentConsumeRebateAmount","currentTotalRebateBalance","currentFrozenBalance"],2)})),1===t.getData.currentPage?(t.listData=e.data.list,console.log(t.listData)):t.listData=t.listData.concat(e.data.list)}))},wqchange:function(e){var n=this;t.showModal({title:"提示",content:e?"确定要启用吗":"确定要禁用吗",success:function(i){i.confirm?(o.default.disableEnable({id:n.jsData.id}).then((function(e){console.log(e),2e4==e.code?(t.showToast({title:"修改成功",icon:"none"}),setTimeout((function(){t.$emit("updateDriver")}),500)):n.wqswitchOpen=0!=n.jsData.accountState})),console.log("用户点击确定")):i.cancel&&(n.wqswitchOpen=!e,console.log("用户点击取消"))}})},recoveryFn:function(){var t=this,e=this.jsData;t.oliCarSeting.orderAmountToplimit=e.orderAmountToplimit,t.oliCarSeting.dayAmountToplimit=e.dayAmountToplimit,t.oliCarSeting.dayVolumeToplimit=e.dayVolumeToplimit,t.oliCarSeting.orderVolumeToplimit=e.orderVolumeToplimit,t.oliCarSeting.id=e.id},inputChange:function(){this.butten.colse="恢复",this.butten.coloseBg="#78797F",this.butten.coloseColor="#FFFFFF"},setUpFn:function(){this.iShow.seting=!0},confirmFn:function(){var e=this;o.default.upOilCard(this.oliC