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
3.1 KiB

2 years ago
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["driverManagement/addDiver/addOilCard"],{6362: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,"0500"))},uniListItem:function(){return e.e("uni_modules/uni-list/components/uni-list-item/uni-list-item").then(e.bind(null,"6d48"))},uSwitch:function(){return e.e("uview-ui/components/u-switch/u-switch").then(e.bind(null,"6316"))}},o=function(){var t=this,n=t.$createElement;t._self._c},u=[]},"9f46":function(t,n,e){"use strict";(function(t){e("84da");i(e("66fd"));var n=i(e("b346"));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"])},b346:function(t,n,e){"use strict";e.r(n);var i=e("6362"),o=e("c261");for(var u in o)"default"!==u&&function(t){e.d(n,t,(function(){return o[t]}))}(u);e("d185");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},b5e3:function(t,n,e){},c261:function(t,n,e){"use strict";e.r(n);var i=e("e92d"),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},d185:function(t,n,e){"use strict";var i=e("b5e3"),o=e.n(i);o.a},e92d:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(e("87ef"));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"])}},[["9f46","common/runtime","common/vendor"]]]);