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 lines
5.7 KiB
1 lines
5.7 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["driverManagement/driverDetails/driverDetails"],{"3f0d":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a}));var a={uniNavBar:function(){return n.e("uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar").then(n.bind(null,"fc76"))},uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,"65b9"))},uSwitch:function(){return n.e("uview-ui/components/u-switch/u-switch").then(n.bind(null,"6316"))}},r=function(){var e=this,t=e.$createElement,n=(e._self._c,e.dirverDetails.customerAccountVo.balance?Number(e.dirverDetails.customerAccountVo.balance).toFixed(2):null);e.$mp.data=Object.assign({},{$root:{g0:n}})},i=[]},7032:function(e,t,n){"use strict";n.r(t);var a=n("c490"),r=n.n(a);for(var i in a)"default"!==i&&function(e){n.d(t,e,(function(){return a[e]}))}(i);t["default"]=r.a},"7cdf":function(e,t,n){"use strict";var a=n("e048"),r=n.n(a);r.a},af6c:function(e,t,n){"use strict";(function(e){n("84da");a(n("66fd"));var t=a(n("e80f"));function a(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=n,e(t.default)}).call(this,n("543d")["createPage"])},c490:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n("1b48")),r=i(n("3415"));function i(e){return e&&e.__esModule?e:{default:e}}var o={data:function(){return{titleIndex:1,jsData:null,swiperOpen:!0,openText:{one:"启用",off:"禁用"},carList:[],dirverAccount:{},switchOpen:"",dirverDetails:null,current:0,dirverIndex:0,xTranslation:0,seleindex:0,currents:0,styles:{},swiperData:{zy:[],wq:[]}}},onLoad:function(t){var n=this;this.styles=e.getMenuButtonBoundingClientRect(),t.jsData&&(this.jsData=JSON.parse(decodeURIComponent(t.jsData)),this.getdirverDetails(this.jsData.id)),e.$on("updateDriver",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.jsData.id;console.log("更新"),n.getdirverDetails(e)})),console.log("onLoad")},onShow:function(){this.jsData.id&&this.getdirverDetails(this.jsData.id),console.log("show")},methods:{dirverIndexFn:function(e){e?(this.dirverIndex=1,this.current=1):(this.dirverIndex=0,this.current=0)},titleIndexFn:function(e){this.titleIndex=e,console.log(e,"------")},getdirverDetails:function(e){var t=this;a.default.getdirverDetails(e).then((function(e){t.dirverDetails=e.data,t.switchOpen=!!t.dirverDetails.customerInfoVo.enableMark,0!=e.data.customerCardVos.length&&(t.swiperData.wq=[],t.swiperData.zy=[],e.data.customerCardVos.forEach((function(e){e.swiperOpen=!0,0==e.companyNature?t.swiperData.wq.push(e):t.swiperData.zy.push(e)})),r.default.numberSetting([t.swiperData.wq,t.swiperData.zy,t.dirverDetails],["zyBalance","wqBalance","balance","rechargeBalance","chargeRechargeBalance","zyBalance","rebateBalance","consumeRebateBalance"],2),t.seleFn(0,1))}))},change:function(t){var n=this;e.showModal({content:t?"确定要启用吗":"确定要禁用吗",success:function(r){r.confirm?(n.dirverDetails.customerInfoVo.enableMark=t?1:0,a.default.updateCustomerEnable({enableMark:n.dirverDetails.customerInfoVo.enableMark,customerId:n.dirverDetails.customerInfoVo.customerId,updateSource:"OMS-MINIAPP"}).then((function(t){n.getdirverDetails(n.dirverDetails.customerInfoVo.customerId),setTimeout((function(){e.showToast({title:"操作成功",icon:"none"})}),500)})),console.log("用户点击确定")):r.cancel&&(n.switchOpen=!t,console.log("用户点击取消"))}})},jump:function(t,n,a){switch(t){case-1:e.navigateBack();break;case 0:e.navigateTo({url:"../accountDetails/accountDetails?jsData="+JSON.stringify(n)});break;case 1:e.navigateTo({url:"InformationModification?jsData="+JSON.stringify(this.dirverDetails.customerInfoVo)});break;case 2:var r={customerId:this.dirverDetails.customerInfoVo.customerId,customerCode:this.dirverDetails.customerInfoVo.userCode,companyId:this.dirverDetails.customerInfoVo.companyId,nickName:this.dirverDetails.customerInfoVo.userName,companyName:this.dirverDetails.customerInfoVo.companyName,companyNature:0};e.navigateTo({url:"../addDiver/addOilCard?jsData="+JSON.stringify(r)});break;case 4:var i={customerId:this.dirverDetails.customerInfoVo.customerId,customerCode:this.dirverDetails.customerInfoVo.userCode,companyId:this.dirverDetails.customerInfoVo.companyId,nickName:this.dirverDetails.customerInfoVo.userName,companyName:this.dirverDetails.customerInfoVo.companyName,companyNature:1};e.navigateTo({url:"../addDiver/addOilCard?jsData="+JSON.stringify(i)});break;case 3:e.navigateTo({url:"./vehicleModification?jsData="+JSON.stringify({plateNumber:this.dirverDetails.customerInfoVo.plateNumber,plateNumberCompany:this.dirverDetails.customerInfoVo.plateNumberCompany,customerId:this.dirverDetails.customerInfoVo.customerId,companyId:this.dirverDetails.customerInfoVo.companyId,companyName:this.dirverDetails.customerInfoVo.companyName})});break;case 5:var o=this;e.navigateTo({url:"../accountDetails/accountDetails?gr="+JSON.stringify(Object.assign(n,{userName:o.dirverDetails.customerInfoVo.userName}))});break}console.log("点击")},titleSeleFn:function(e){},seleFn:function(e,t){this.seleindex=e,this.xTranslation=110*e,console.log(t,this.xTranslation),this.swiperData.wq.forEach((function(e){2!=t?e.accountState==t?e.swiperOpen=!0:e.swiperOpen=!1:e.swiperOpen=!0})),console.log(this.swiperData.wq),this.currents=0}}};t.default=o}).call(this,n("543d")["default"])},e048:function(e,t,n){},e80f:function(e,t,n){"use strict";n.r(t);var a=n("3f0d"),r=n("7032");for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);n("7cdf");var o,s=n("f0c5"),c=Object(s["a"])(r["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],o);t["default"]=c.exports}},[["af6c","common/runtime","common/vendor"]]]); |