require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["shop/pages/Invoice-request/Invoice-request"],{522:function(e,n,o){"use strict";(function(e,n){var t=o(4);o(30);t(o(25));var i=t(o(523));e.__webpack_require_UNI_MP_PLUGIN__=o,n(i.default)}).call(this,o(1)["default"],o(2)["createPage"])},523:function(e,n,o){"use strict";o.r(n);var t=o(524),i=o(526);for(var c in i)["default"].indexOf(c)<0&&function(e){o.d(n,e,(function(){return i[e]}))}(c);o(528);var r,a=o(41),s=Object(a["default"])(i["default"],t["render"],t["staticRenderFns"],!1,null,"bf72f50e",null,!1,t["components"],r);s.options.__file="shop/pages/Invoice-request/Invoice-request.vue",n["default"]=s.exports},524:function(e,n,o){"use strict";o.r(n);var t=o(525);o.d(n,"render",(function(){return t["render"]})),o.d(n,"staticRenderFns",(function(){return t["staticRenderFns"]})),o.d(n,"recyclableRender",(function(){return t["recyclableRender"]})),o.d(n,"components",(function(){return t["components"]}))},525:function(e,n,o){"use strict";var t;o.r(n),o.d(n,"render",(function(){return i})),o.d(n,"staticRenderFns",(function(){return r})),o.d(n,"recyclableRender",(function(){return c})),o.d(n,"components",(function(){return t}));try{t={uIcon:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(o.bind(null,561))},uPopup:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u-popup/u-popup")]).then(o.bind(null,570))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var e=this,n=e.$createElement;e._self._c;e._isMounted||(e.e0=function(n,o){var t=arguments[arguments.length-1].currentTarget.dataset,i=t.eventParams||t["event-params"];o=i.item;e.tempInvoiceType=o.value})},c=!1,r=[];i._withStripped=!0},526:function(e,n,o){"use strict";o.r(n);var t=o(527),i=o.n(t);for(var c in t)["default"].indexOf(c)<0&&function(e){o.d(n,e,(function(){return t[e]}))}(c);n["default"]=i.a},527:function(e,n,o){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o={data:function(){return{orderId:"",orderNo:"",amount:"",invoiceType:"normal",tempInvoiceType:"normal",showInvoiceTypePopup:!1,titleType:"personal",selectedTitle:"",detailChecked:!0,invoiceTypeOptions:[{label:"电子普通发票",value:"normal",desc:"主要用于日常消费凭证,不能抵扣进项税,仅作为交易凭证与记账依据。"},{label:"电子专用发票",value:"special",desc:"企业对公业务专属,需完整企业开票资料,可认证抵扣进项税,供一般纳税人企业税务抵税使用。"}],form:{taxId:"",bankName:"",bankAccount:"",companyAddr:"",companyPhone:""}}},computed:{invoiceTypeLabel:function(){var e=this,n=this.invoiceTypeOptions.find((function(n){return n.value===e.invoiceType}));return n?n.label:"电子普通发票"},isSpecialInvoice:function(){return"special"===this.invoiceType}},onLoad:function(e){this.orderId=e.id||"",this.orderNo=e.orderNo||"",this.amount=e.invoiceAmount||""},methods:{openInvoiceTypePopup:function(){this.tempInvoiceType=this.invoiceType,this.showInvoiceTypePopup=!0},closeInvoiceTypePopup:function(){this.showInvoiceTypePopup=!1},confirmInvoiceType:function(){this.invoiceType=this.tempInvoiceType,this.showInvoiceTypePopup=!1},goConfirmInvoiceIssuance:function(){if(this.isSpecialInvoice){if(!this.form.bankName)return void e.showToast({title:"请填写开户银行",icon:"none"});if(!this.form.bankAccount)return void e.showToast({title:"请填写银行账号",icon:"none"});if(!this.form.companyAddr)return void e.showToast({title:"请填写企业地址",icon:"none"});if(!this.form.companyPhone)return void e.showToast({title:"请填写企业电话",icon:"none"})}var n={invoiceType:this.invoiceTypeLabel,titleType:this.titleType,titleTypeText:"company"===this.titleType?"企业":"个人/事业单位",title:this.selectedTitle,content:"明细",amount:this.amount?"¥".concat(this.amount):"",taxNo:this.form.taxId,bankName:this.form.bankName,bankAccount:this.form.bankAccount,companyAddress:this.form.companyAddr,companyPhone:this.form.companyPhone,orderId:this.orderId,orderNo:this.orderNo};e.setStorageSync("invoiceFormData",n),e.navigateTo({url:"/shop/pages/confirm-invoice-issuance/confirm-invoice-issuance"})},changeTitleType:function(e){this.titleType=e,this.detailChecked="company"===e},handleDetailCheck:function(){this.isSpecialInvoice||(this.detailChecked=!this.detailChecked)},chooseInvoiceTitle:function(){var n=this;e.chooseInvoiceTitle({type:"company"===this.titleType?0:1,success:function(e){console.log(e),n.selectedTitle=e.title||"",n.form.taxId=e.taxNumber||"",n.form.bankName=e.bankName||"",n.form.bankAccount=e.bankAccount||"",n.form.companyAddr=e.companyAddress||"",n.form.companyPhone=e.telephone||"",1===e.type?n.changeTitleType("company"):n.changeTitleType("personal")}})}}};n.default=o}).call(this,o(2)["default"])},528:function(e,n,o){"use strict";o.r(n);var t=o(529),i=o.n(t);for(var c in t)["default"].indexOf(c)<0&&function(e){o.d(n,e,(function(){return t[e]}))}(c);n["default"]=i.a},529:function(e,n,o){}},[[522,"common/runtime","common/vendor"]]]);
|