(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["driverManagement/addDiver/addOilCard"],{"2b5f":function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return u})),e.d(n,"a",(function(){return i}));var i={uniList:function(){return e.e("uni_modules/uni-list/components/uni-list/uni-list").then(e.bind(null,"cd62"))},uniListItem:function(){return e.e("uni_modules/uni-list/components/uni-list-item/uni-list-item").then(e.bind(null,"778c"))},uSwitch:function(){return e.e("uview-ui/components/u-switch/u-switch").then(e.bind(null,"d0ff"))}},o=function(){var t=this,n=t.$createElement;t._self._c},u=[]},"7df9":function(t,n,e){},8725:function(t,n,e){"use strict";e.r(n);var i=e("9010"),o=e.n(i);for(var u in i)"default"!==u&&function(t){e.d(n,t,(function(){return i[t]}))}(u);n["default"]=o.a},9010:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(e("e041"));function o(t){return t&&t.__esModule?t:{default:t}}var u={data:function(){return{enterpriseType:"自营",radiolist1:[{name:"自营",disabled:!1},{name:"外请",disabled:!1}],aboutEnterprise:{customerId:"",customerCode:"",companyId:"",companyNature:1,shareCompanyQuota:0,dayAmountToplimit:"0",orderAmountToplimit:"0",dayVolumeToplimit:"0",orderVolumeToplimit:"0",name:"",nickName:"",plateNumberCompany:null,remark:""},switchOpen:!0,openText:{one:"开启",off:"关闭"}}},onLoad:function(n){var e=this;if(t.$on("company",(function(t){e.aboutEnterprise.companyId=t.id,e.aboutEnterprise.name=t.name,console.log(t)})),n.jsData){var i=JSON.parse(n.jsData);this.aboutEnterprise.customerId=i.customerId,this.aboutEnterprise.customerCode=i.customerCode,this.aboutEnterprise.companyId=i.companyId,this.aboutEnterprise.companyNature=i.companyNature,this.aboutEnterprise.nickName=i.nickName,console.log(e.aboutEnterprise,"-*-*-")}},methods:{sxfn:function(t){},clearFn:function(){var t=this,n=["companyNature","shareCompanyQuota"];Object.keys(this.aboutEnterprise).forEach((function(e){n.includes(e)||(t.aboutEnterprise[e]="")})),this.aboutEnterprise.shareCompanyQuota=1,this.switchOpen=!0},postFn:function(){var n=this;this.aboutEnterprise.shareCompanyQuota=this.switchOpen?1:0,i.default.saveOilCard(this.aboutEnterprise).then((function(e){2e4===e.code&&(t.$emit("updateDriver",n.aboutEnterprise.customerId),t.navigateBack())})),console.log(this.aboutEnterprise)},jump:function(){t.navigateTo({url:"../company/company"})},change:function(t){console.log(this.switchOpen,t)}}};n.default=u}).call(this,e("543d")["default"])},"9b66":function(t,n,e){"use strict";(function(t){e("6e43");i(e("66fd"));var n=i(e("b235"));function i(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=e,t(n.default)}).call(this,e("543d")["createPage"])},a199:function(t,n,e){"use strict";var i=e("7df9"),o=e.n(i);o.a},b235:function(t,n,e){"use strict";e.r(n);var i=e("2b5f"),o=e("8725");for(var u in o)"default"!==u&&function(t){e.d(n,t,(function(){return o[t]}))}(u);e("a199");var a,r=e("f0c5"),s=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);n["default"]=s.exports}},[["9b66","common/runtime","common/vendor"]]]);