(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/invoice/invoiceEndit"],{502:function(n,e,o){"use strict";(function(n){o(5);t(o(3));var e=t(o(503));function t(n){return n&&n.__esModule?n:{default:n}}wx.__webpack_require_UNI_MP_PLUGIN__=o,n(e.default)}).call(this,o(1)["createPage"])},503:function(n,e,o){"use strict";o.r(e);var t=o(504),u=o(506);for(var i in u)"default"!==i&&function(n){o.d(e,n,(function(){return u[n]}))}(i);o(508);var r,c=o(11),s=Object(c["default"])(u["default"],t["render"],t["staticRenderFns"],!1,null,null,null,!1,t["components"],r);s.options.__file="pages/invoice/invoiceEndit.vue",e["default"]=s.exports},504:function(n,e,o){"use strict";o.r(e);var t=o(505);o.d(e,"render",(function(){return t["render"]})),o.d(e,"staticRenderFns",(function(){return t["staticRenderFns"]})),o.d(e,"recyclableRender",(function(){return t["recyclableRender"]})),o.d(e,"components",(function(){return t["components"]}))},505:function(n,e,o){"use strict";var t;o.r(e),o.d(e,"render",(function(){return u})),o.d(e,"staticRenderFns",(function(){return r})),o.d(e,"recyclableRender",(function(){return i})),o.d(e,"components",(function(){return t}));try{t={"u-Form":function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u--form/u--form")]).then(o.bind(null,590))},uFormItem:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u-form-item/u-form-item")]).then(o.bind(null,596))},"u-Input":function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u--input/u--input")]).then(o.bind(null,604))},"u-Textarea":function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u--textarea/u--textarea")]).then(o.bind(null,610))},uIcon:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(o.bind(null,581))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范，文档：https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范，需手动引入，并在 components 中注册该组件")}var u=function(){var n=this,e=n.$createElement;n._self._c;n._isMounted||(n.e0=function(e){n.model1.userInfo.type=2},n.e1=function(e){n.model1.userInfo.type=1})},i=!1,r=[];u._withStripped=!0},506:function(n,e,o){"use strict";o.r(e);var t=o(507),u=o.n(t);for(var i in t)"default"!==i&&function(n){o.d(e,n,(function(){return t[n]}))}(i);e["default"]=u.a},507:function(n,e,o){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={data:function(){return{state:0,showSex:!1,model1:{userInfo:{name:"",tax_no:"",address:"",phone:"",bank_name:"",bank_no:"",type:2,memo:""}},index:1}},onLoad:function(n){this.state=n.state;var e=JSON.parse(n.info);"个人"==e.type?e.type=1:"企业"==e.type&&(e.type=2),this.model1.userInfo=e},methods:{editsubmit:function(){var e=this.model1.userInfo;console.log(e,"<=================修改"),n.$u.http.post("/api/invoice/edit",e,{custom:{auth:!0}}).then((function(e){console.log(e),n.showToast({icon:"success",title:"修改成功"}),setTimeout((function(){n.navigateBack({delta:1})}),1500)})).catch((function(n){console.log(n)}))},submit:function(){var e=this.model1.userInfo;console.log(e),n.$u.http.post("/api/invoice/add",e,{custom:{auth:!0}}).then((function(e){console.log(e),n.showToast({icon:"success",title:"添加成功"}),setTimeout((function(){n.navigateBack({delta:1})}),1500)})).catch((function(n){console.log(n)}))}}};e.default=o}).call(this,o(1)["default"])},508:function(n,e,o){"use strict";o.r(e);var t=o(509),u=o.n(t);for(var i in t)"default"!==i&&function(n){o.d(e,n,(function(){return t[n]}))}(i);e["default"]=u.a},509:function(n,e,o){}},[[502,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/invoice/invoiceEndit.js.map