(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["bundle-pages-invoice-invoice"],{"0004":function(t,e,i){"use strict";i.r(e);var n=i("df1c"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"03a1":function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.apiInvoiceAdd=function(t){return a.default.post("order_invoice/add",t)},e.apiInvoiceDetail=function(t){return a.default.get("order_invoice/detail",{params:t})},e.apiInvoiceEdit=function(t){return a.default.post("order_invoice/edit",t)},e.apiOrderInvoiceDetail=function(t){return a.default.get("order/invoice",{params:t})},e.changeShopFollow=function(t){return a.default.post("shop_follow/changeStatus",t)},e.getInvoiceSetting=function(t){return a.default.get("order_invoice/setting",{params:t})},e.getNearbyShops=function(t){return a.default.get("shop/getNearbyShops",{params:t})},e.getShopCategory=function(){return a.default.get("shop_category/getList")},e.getShopGoodsCategory=function(t){return a.default.get("shop_goods_category/getShopGoodsCategory",{params:t})},e.getShopInfo=function(t){return a.default.get("shop/getShopInfo",{params:t})},e.getShopList=function(t){return a.default.get("shop/getShopList",{params:t})},e.getShopService=function(t){return a.default.get("setting/getShopCustomerService",{params:{shop_id:t}})},e.getTreaty=function(){return a.default.get("ShopApply/getTreaty")},e.shopApply=function(t){return a.default.post("ShopApply/apply",t)},e.shopApplyDetail=function(t){return a.default.get("ShopApply/detail",{params:{id:t}})},e.shopApplyRecord=function(t){return a.default.get("ShopApply/record",{params:t})};var a=n(i("21ce"));i("0aec")},"05d1":function(t,e,i){"use strict";i.r(e);var n=i("996f"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"0c62":function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("64aa"),i("0c26");var a=n(i("d430")),o={name:"u-input",mixins:[a.default],props:{value:{type:[String,Number],default:""},type:{type:String,default:"text"},inputAlign:{type:String,default:"left"},placeholder:{type:String,default:"请输入内容"},disabled:{type:Boolean,default:!1},maxlength:{type:[Number,String],default:140},placeholderStyle:{type:String,default:"color: #c0c4cc;"},confirmType:{type:String,default:"done"},customStyle:{type:Object,default:function(){return{}}},fixed:{type:Boolean,default:!1},focus:{type:Boolean,default:!1},passwordIcon:{type:Boolean,default:!0},border:{type:Boolean,default:!1},borderColor:{type:String,default:"#dcdfe6"},autoHeight:{type:Boolean,default:!0},selectOpen:{type:Boolean,default:!1},height:{type:[Number,String],default:""},clearable:{type:Boolean,default:!0},cursorSpacing:{type:[Number,String],default:0},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},trim:{type:Boolean,default:!0},showConfirmbar:{type:Boolean,default:!0}},data:function(){return{defaultValue:this.value,inputHeight:70,textareaHeight:100,validateState:!1,focused:!1,showPassword:!1,lastValue:""}},watch:{value:function(t,e){this.defaultValue=t,t!=e&&"select"==this.type&&this.handleInput({detail:{value:t}})}},computed:{inputMaxlength:function(){return Number(this.maxlength)},getStyle:function(){var t={};return t.minHeight=this.height?this.height+"rpx":"textarea"==this.type?this.textareaHeight+"rpx":this.inputHeight+"rpx",t=Object.assign(t,this.customStyle),t},getCursorSpacing:function(){return Number(this.cursorSpacing)},uSelectionStart:function(){return String(this.selectionStart)},uSelectionEnd:function(){return String(this.selectionEnd)}},created:function(){this.$on("on-form-item-error",this.onFormItemError)},methods:{handleInput:function(t){var e=this,i=t.detail.value;this.trim&&(i=this.$u.trim(i)),this.$emit("input",i),this.defaultValue=i,setTimeout((function(){e.dispatch("u-form-item","on-form-change",i)}),40)},handleBlur:function(t){var e=this;setTimeout((function(){e.focused=!1}),100),this.$emit("blur",t.detail.value),setTimeout((function(){e.dispatch("u-form-item","on-form-blur",t.detail.value)}),40)},onFormItemError:function(t){this.validateState=t},onFocus:function(t){this.focused=!0,this.$emit("focus")},onConfirm:function(t){this.$emit("confirm",t.detail.value)},onClear:function(t){this.$emit("input","")},inputClick:function(){this.$emit("click")}}};e.default=o},"1f6b":function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */.u-input[data-v-2f408484]{position:relative;flex:1;display:flex;flex-direction:row}.u-input__input[data-v-2f408484]{font-size:%?28?%;color:#303133;flex:1}.u-input__textarea[data-v-2f408484]{width:auto;font-size:%?28?%;color:#303133;padding:%?10?% 0;line-height:normal;flex:1}.u-input--border[data-v-2f408484]{border-radius:%?6?%;border-radius:4px;border:1px solid #dcdfe6}.u-input--error[data-v-2f408484]{border-color:#fa3534!important}.u-input__right-icon__item[data-v-2f408484]{margin-left:%?10?%}.u-input__right-icon--select[data-v-2f408484]{transition:-webkit-transform .4s;transition:transform .4s;transition:transform .4s,-webkit-transform .4s}.u-input__right-icon--select--reverse[data-v-2f408484]{-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}',""]),t.exports=e},"223e":function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */.u-checkbox[data-v-0b68f884]{display:inline-flex;align-items:center;overflow:hidden;-webkit-user-select:none;user-select:none;line-height:1.8}.u-checkbox__icon-wrap[data-v-0b68f884]{color:#606266;flex:none;display:-webkit-flex;display:flex;flex-direction:row;align-items:center;justify-content:center;box-sizing:border-box;width:%?42?%;height:%?42?%;color:transparent;text-align:center;transition-property:color,border-color,background-color;font-size:20px;border:1px solid #c8c9cc;transition-duration:.2s}.u-checkbox__icon-wrap--circle[data-v-0b68f884]{border-radius:100%}.u-checkbox__icon-wrap--square[data-v-0b68f884]{border-radius:%?6?%}.u-checkbox__icon-wrap--checked[data-v-0b68f884]{color:#fff;background-color:#ff2c3c;border-color:#ff2c3c}.u-checkbox__icon-wrap--disabled[data-v-0b68f884]{background-color:#ebedf0;border-color:#c8c9cc}.u-checkbox__icon-wrap--disabled--checked[data-v-0b68f884]{color:#c8c9cc!important}.u-checkbox__label[data-v-0b68f884]{word-wrap:break-word;margin-left:%?10?%;margin-right:%?24?%;color:#606266;font-size:%?30?%}.u-checkbox__label--disabled[data-v-0b68f884]{color:#c8c9cc}',""]),t.exports=e},"2fc6":function(t,e,i){"use strict";i.r(e);var n=i("aa92"),a=i("c2bb");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("c952");var r=i("828b"),s=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"2f408484",null,!1,n["a"],void 0);e["default"]=s.exports},"77a8":function(t,e,i){var n=i("8a78");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("f36ff55a",n,!0,{sourceMap:!1,shadowMode:!1})},"784f":function(t,e,i){var n=i("1f6b");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("b276304e",n,!0,{sourceMap:!1,shadowMode:!1})},"7f15":function(t,e,i){"use strict";i.r(e);var n=i("a74f"),a=i("05d1");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("ac9c");var r=i("828b"),s=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"0b68f884",null,!1,n["a"],void 0);e["default"]=s.exports},8157:function(t,e,i){var n=i("223e");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("3a68c256",n,!0,{sourceMap:!1,shadowMode:!1})},"8a78":function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */.invoice[data-v-03163fc0]{height:calc(100vh - env(safe-area-inset-bottom));padding:%?24?%;position:relative}.invoice .box[data-v-03163fc0]{padding:%?20?% 0;border-radius:%?16?%}.invoice .box .item[data-v-03163fc0]{padding:%?16?% %?30?%}.invoice .box .item .label[data-v-03163fc0]{font-size:%?28?%;color:#101010}.invoice .box .item .content[data-v-03163fc0]{min-width:%?440?%}.invoice .footer[data-v-03163fc0]{left:0;bottom:0;width:100%;padding:%?24?%;position:absolute}.invoice .footer .btn[data-v-03163fc0]{height:%?88?%}.invoice .footer .submit-btn[data-v-03163fc0]{color:#fff;background-color:#e39b37}.invoice .footer .cancel-btn[data-v-03163fc0]{color:#e39b37;background-color:#fff}.invoice .invoice-type[data-v-03163fc0]{padding:%?40?%;padding-bottom:0}.invoice .invoice-type .invoice-type--item[data-v-03163fc0]{padding:%?28?% %?36?%;border-radius:%?40?%;margin-bottom:%?30?%}.invoice .invoice-type .invoice-type-confirm-btn[data-v-03163fc0]{padding:%?90?% 0 %?50?% 0}.invoice .invoice-type .invoice-type-confirm-btn .confirm[data-v-03163fc0]{background-color:#ff9e1e}',""]),t.exports=e},"996f":function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("64aa"),i("aa9c"),i("fd3c");var n={name:"u-checkbox",props:{name:{type:[String,Number],default:""},shape:{type:String,default:""},value:{type:Boolean,default:!1},disabled:{type:[String,Boolean],default:""},labelDisabled:{type:[String,Boolean],default:""},activeColor:{type:String,default:""},iconSize:{type:[String,Number],default:""},labelSize:{type:[String,Number],default:""},size:{type:[String,Number],default:""}},data:function(){return{parentDisabled:!1,newParams:{}}},created:function(){this.parent=this.$u.$parent.call(this,"u-checkbox-group"),this.parent&&this.parent.children.push(this)},computed:{isDisabled:function(){return""!==this.disabled?this.disabled:!!this.parent&&this.parent.disabled},isLabelDisabled:function(){return""!==this.labelDisabled?this.labelDisabled:!!this.parent&&this.parent.labelDisabled},checkboxSize:function(){return this.size?this.size:this.parent?this.parent.size:34},checkboxIconSize:function(){return this.iconSize?this.iconSize:this.parent?this.parent.iconSize:20},elActiveColor:function(){return this.activeColor?this.activeColor:this.parent?this.parent.activeColor:"primary"},elShape:function(){return this.shape?this.shape:this.parent?this.parent.shape:"square"},iconStyle:function(){var t={};return this.elActiveColor&&this.value&&!this.isDisabled&&(t.borderColor=this.elActiveColor,t.backgroundColor=this.elActiveColor),t.width=this.$u.addUnit(this.checkboxSize),t.height=this.$u.addUnit(this.checkboxSize),t},iconColor:function(){return this.value?"#ffffff":"transparent"},iconClass:function(){var t=[];return t.push("u-checkbox__icon-wrap--"+this.elShape),1==this.value&&t.push("u-checkbox__icon-wrap--checked"),this.isDisabled&&t.push("u-checkbox__icon-wrap--disabled"),this.value&&this.isDisabled&&t.push("u-checkbox__icon-wrap--disabled--checked"),t.join(" ")},checkboxStyle:function(){var t={};return this.parent&&this.parent.width&&(t.width=this.parent.width,t.flex="0 0 ".concat(this.parent.width)),this.parent&&this.parent.wrap&&(t.width="100%",t.flex="0 0 100%"),t}},methods:{onClickLabel:function(){this.isLabelDisabled||this.isDisabled||this.setValue()},toggle:function(){this.isDisabled||this.setValue()},emitEvent:function(){var t=this;this.$emit("change",{value:!this.value,name:this.name}),setTimeout((function(){t.parent&&t.parent.emitEvent&&t.parent.emitEvent()}),80)},setValue:function(){var t=0;if(this.parent&&this.parent.children&&this.parent.children.map((function(e){e.value&&t++})),1==this.value)this.emitEvent(),this.$emit("input",!this.value);else{if(this.parent&&t>=this.parent.max)return this.$u.toast("最多可选".concat(this.parent.max,"项"));this.emitEvent(),this.$emit("input",!this.value)}}}};e.default=n},"9e38":function(t,e,i){"use strict";var n=i("77a8"),a=i.n(n);a.a},a74f:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={uIcon:i("8f08").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"u-checkbox",style:[t.checkboxStyle]},[i("v-uni-view",{staticClass:"u-checkbox__icon-wrap",class:[t.iconClass],style:[t.iconStyle],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggle.apply(void 0,arguments)}}},[i("u-icon",{staticClass:"u-checkbox__icon-wrap__icon",attrs:{name:"checkbox-mark",size:t.checkboxIconSize,color:t.iconColor}})],1),i("v-uni-view",{staticClass:"u-checkbox__label",style:{fontSize:t.$u.addUnit(t.labelSize)},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClickLabel.apply(void 0,arguments)}}},[t._t("default")],2)],1)},o=[]},aa92:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={uIcon:i("8f08").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"u-input",class:{"u-input--border":t.border,"u-input--error":t.validateState},style:{padding:"0 "+(t.border?20:0)+"rpx",borderColor:t.borderColor,textAlign:t.inputAlign},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.inputClick.apply(void 0,arguments)}}},["textarea"==t.type?i("v-uni-textarea",{staticClass:"u-input__input u-input__textarea",style:[t.getStyle],attrs:{value:t.defaultValue,placeholder:t.placeholder,placeholderStyle:t.placeholderStyle,disabled:t.disabled,maxlength:t.inputMaxlength,fixed:t.fixed,focus:t.focus,autoHeight:t.autoHeight,"selection-end":t.uSelectionEnd,"selection-start":t.uSelectionStart,"cursor-spacing":t.getCursorSpacing,"show-confirm-bar":t.showConfirmbar},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.handleInput.apply(void 0,arguments)},blur:function(e){arguments[0]=e=t.$handleEvent(e),t.handleBlur.apply(void 0,arguments)},focus:function(e){arguments[0]=e=t.$handleEvent(e),t.onFocus.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.onConfirm.apply(void 0,arguments)}}}):i("v-uni-input",{staticClass:"u-input__input",style:[t.getStyle],attrs:{type:"password"==t.type?"text":t.type,value:t.defaultValue,password:"password"==t.type&&!t.showPassword,placeholder:t.placeholder,placeholderStyle:t.placeholderStyle,disabled:t.disabled||"select"===t.type,maxlength:t.inputMaxlength,focus:t.focus,confirmType:t.confirmType,"cursor-spacing":t.getCursorSpacing,"selection-end":t.uSelectionEnd,"selection-start":t.uSelectionStart,"show-confirm-bar":t.showConfirmbar},on:{focus:function(e){arguments[0]=e=t.$handleEvent(e),t.onFocus.apply(void 0,arguments)},blur:function(e){arguments[0]=e=t.$handleEvent(e),t.handleBlur.apply(void 0,arguments)},input:function(e){arguments[0]=e=t.$handleEvent(e),t.handleInput.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.onConfirm.apply(void 0,arguments)}}}),i("v-uni-view",{staticClass:"u-input__right-icon u-flex"},[t.clearable&&""!=t.value&&t.focused?i("v-uni-view",{staticClass:"u-input__right-icon__clear u-input__right-icon__item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClear.apply(void 0,arguments)}}},[i("u-icon",{attrs:{size:"32",name:"close-circle-fill",color:"#c0c4cc"}})],1):t._e(),t.passwordIcon&&"password"==t.type?i("v-uni-view",{staticClass:"u-input__right-icon__clear u-input__right-icon__item"},[i("u-icon",{attrs:{size:"32",name:t.showPassword?"eye-fill":"eye",color:"#c0c4cc"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showPassword=!t.showPassword}}})],1):t._e(),"select"==t.type?i("v-uni-view",{staticClass:"u-input__right-icon--select u-input__right-icon__item",class:{"u-input__right-icon--select--reverse":t.selectOpen}},[i("u-icon",{attrs:{name:"arrow-down-fill",size:"26",color:"#c0c4cc"}})],1):t._e()],1)],1)},o=[]},ac9c:function(t,e,i){"use strict";var n=i("8157"),a=i.n(n);a.a},c2bb:function(t,e,i){"use strict";i.r(e);var n=i("0c62"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},c952:function(t,e,i){"use strict";var n=i("784f"),a=i.n(n);a.a},df1c:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("9b1b"));i("5c47"),i("0506");var o=i("03a1"),r=i("f4fb"),s={data:function(){return{shop_id:"",invoice_id:"",order_id:"",showCoupon:!1,list:[{name:"个人",header_type:0,disabled:!1},{name:"企业",header_type:1,disabled:!1}],formData:{id:"",order_id:"",type:0,header_type:0,name:"",duty_number:"",email:"",mobile:"",address:"",bank:"",bank_account:""},type:0,open_invoice:0,spec_invoice:0}},methods:{initInvoiceSetting:function(){var t=this;(0,o.getInvoiceSetting)({shop_id:this.shop_id}).then((function(e){t.spec_invoice=e.data.spec_invoice,e.data.open_invoice?t.open_invoice=e.data.open_invoice:t.$toast({title:"当前店铺暂未开启发票"})}))},getInvoiceDetail:function(){var t=this;(0,o.apiInvoiceDetail)({id:this.invoice_id}).then((function(e){for(var i in e.data)t.formData.hasOwnProperty(i)&&(t.formData[i]=e.data[i])}))},initRules:function(){var t=this.formData;return this.open_invoice?t.name?t.duty_number||1!=t.header_type?t.email?/^[0-9a-zA-Z_.-]+[@][0-9a-zA-Z_.-]+([.][a-zA-Z]+){1,2}$/.test(t.email)?t.address||1!=t.header_type||1!=t.type?t.mobile||1!=t.type?t.bank||1!=t.header_type||1!=t.type?!(!t.bank_account&&1==t.header_type&&1==t.type)||(this.$toast({title:"请输入银行账号"}),!1):(this.$toast({title:"请输入开户银行"}),!1):(this.$toast({title:"请输入手机号码"}),!1):(this.$toast({title:"请输入企业地址"}),!1):(this.$toast({title:"邮箱输入有误,请重新输入"}),!1):(this.$toast({title:"请输入邮箱地址"}),!1):(this.$toast({title:"请输入税号"}),!1):(this.$toast({title:"请输入发票抬头"}),!1):(this.$toast({title:"当前店铺暂未开启发票"}),!1)},handleOpenInvoiceType:function(){0!=this.formData.header_type&&(this.showCoupon=!0)},handleCloseInvoiceType:function(){this.type!=this.formData.type&&(this.type=1==this.type?0:1)},handleChoise:function(){this.formData.type=this.type,this.showCoupon=!1},handleConfirm:function(){this.initRules()&&(uni.$emit("invoice",(0,a.default)((0,a.default)({},this.formData),{},{shop_id:this.shop_id})),uni.navigateBack())},handleInvoiceAdd:function(){this.initRules()&&(0,o.apiInvoiceAdd)((0,a.default)((0,a.default)({},this.formData),{},{order_id:this.order_id})).then((function(t){1==t.code&&setTimeout((function(){uni.navigateBack()}),500)}))},handleInvoiceEdit:function(){this.initRules()&&(0,o.apiInvoiceEdit)((0,a.default)({},this.formData)).then((function(t){1==t.code&&setTimeout((function(){uni.navigateBack()}),500)}))},handleCancel:function(){this.order_id||this.invoice_id||uni.$emit("invoice",{del:!0,shop_id:this.shop_id}),uni.navigateBack()}},onLoad:function(){var t=this.$Route.query;switch(1*t.type){case r.invoiceType["SETTLEMENT"]:this.shop_id=t.shop_id||"","{}"!=t.invoice&&(this.formData=JSON.parse(t.invoice),this.type=this.formData.type);break;case r.invoiceType["ORDERDETAILEdit"]:this.invoice_id=t.invoice_id||"",this.shop_id=t.shop_id||"",this.getInvoiceDetail();break;case r.invoiceType["ORDERDETAILADD"]:this.order_id=t.order_id||"",this.shop_id=t.shop_id||"";break}this.initInvoiceSetting()}};e.default=s},ef1a:function(t,e,i){"use strict";i.r(e);var n=i("fa54"),a=i("0004");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("9e38");var r=i("828b"),s=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"03163fc0",null,!1,n["a"],void 0);e["default"]=s.exports},fa54:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={uIcon:i("8f08").default,uRadioGroup:i("36bd").default,uRadio:i("119b").default,uInput:i("2fc6").default,uPopup:i("b12c").default,uCheckbox:i("7f15").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"invoice"},[i("v-uni-view",{staticClass:"box bg-white"},[i("v-uni-view",{staticClass:"item flex row-between",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleOpenInvoiceType.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"label"},[t._v("发票类型")]),i("v-uni-view",{staticClass:"content flex-1 flex row-right"},[i("v-uni-text",[t._v(t._s(0==t.type?"增值税电子普通发票":"增值税专用发票"))]),1==t.formData.header_type?i("u-icon",{attrs:{name:"arrow-right",size:"22"}}):t._e()],1)],1),i("v-uni-view",{staticClass:"item flex row-between"},[i("v-uni-view",{staticClass:"label"},[t._v("抬头类型")]),i("v-uni-view",{staticClass:"content flex-1 flex row-right"},[i("u-radio-group",{model:{value:t.formData.header_type,callback:function(e){t.$set(t.formData,"header_type",e)},expression:"formData.header_type"}},t._l(t.list,(function(e,n){return i("u-radio",{key:n,attrs:{name:e.header_type,disabled:e.disabled,"active-color":t.colorConfig.primary}},[t._v(" "+t._s(e.name)+" ")])})),1)],1)],1),i("v-uni-view",{staticClass:"item flex row-between"},[i("v-uni-view",{staticClass:"label"},[t._v("发票抬头")]),i("v-uni-view",{staticClass:"content"},[i("u-input",{attrs:{"input-align":"right",placeholder:"填写需要开具发票的姓名"},model:{value:t.formData.name,callback:function(e){t.$set(t.formData,"name",e)},expression:"formData.name"}})],1)],1),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:1===t.formData.header_type,expression:"formData.header_type === 1"}],staticClass:"item flex row-between"},[i("v-uni-view",{staticClass:"label"},[t._v("税号")]),i("v-uni-view",{staticClass:"content flex-1 flex row-right"},[i("u-input",{attrs:{"input-align":"right",placeholder:"纳税人识别号"},model:{value:t.formData.duty_number,callback:function(e){t.$set(t.formData,"duty_number",e)},expression:"formData.duty_number"}})],1)],1),i("v-uni-view",{staticClass:"item flex row-between"},[i("v-uni-view",{staticClass:"label"},[t._v("邮箱")]),i("v-uni-view",{staticClass:"content flex-1 flex row-right"},[i("u-input",{attrs:{"input-align":"right",placeholder:"您的联系邮箱"},model:{value:t.formData.email,callback:function(e){t.$set(t.formData,"email",e)},expression:"formData.email"}})],1)],1),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:1==t.type&&1==t.formData.header_type,expression:"type == 1 && formData.header_type == 1"}],staticClass:"item flex row-between"},[i("v-uni-view",{staticClass:"label"},[t._v("企业地址")]),i("v-uni-view",{staticClass:"content flex-1 flex row-right"},[i("u-input",{attrs:{"input-align":"right",placeholder:"必填"},model:{value:t.formData.address,callback:function(e){t.$set(t.formData,"address",e)},expression:"formData.address"}})],1)],1),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:1==t.type&&1==t.formData.header_type,expression:"type == 1 && formData.header_type == 1"}],staticClass:"item flex row-between"},[i("v-uni-view",{staticClass:"label"},[t._v("企业电话")]),i("v-uni-view",{staticClass:"content flex-1 flex row-right"},[i("u-input",{attrs:{"input-align":"right",placeholder:"必填"},model:{value:t.formData.mobile,callback:function(e){t.$set(t.formData,"mobile",e)},expression:"formData.mobile"}})],1)],1),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:1==t.type&&1==t.formData.header_type,expression:"type == 1 && formData.header_type == 1"}],staticClass:"item flex row-between"},[i("v-uni-view",{staticClass:"label"},[t._v("开户银行")]),i("v-uni-view",{staticClass:"content flex-1 flex row-right"},[i("u-input",{attrs:{"input-align":"right",placeholder:"必填"},model:{value:t.formData.bank,callback:function(e){t.$set(t.formData,"bank",e)},expression:"formData.bank"}})],1)],1),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:1==t.type&&1==t.formData.header_type,expression:"type == 1 && formData.header_type == 1"}],staticClass:"item flex row-between"},[i("v-uni-view",{staticClass:"label"},[t._v("银行账号")]),i("v-uni-view",{staticClass:"content flex-1 flex row-right"},[i("u-input",{attrs:{"input-align":"right",placeholder:"必填"},model:{value:t.formData.bank_account,callback:function(e){t.$set(t.formData,"bank_account",e)},expression:"formData.bank_account"}})],1)],1)],1),i("v-uni-view",{staticClass:"footer"},[t.order_id&&t.shop_id?i("v-uni-view",{},[i("v-uni-button",{staticClass:"submit-btn br60 white btn",attrs:{size:"lg"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleInvoiceAdd.apply(void 0,arguments)}}},[t._v(" 提交申请 ")])],1):t._e(),t.invoice_id&&t.shop_id?i("v-uni-view",{},[i("v-uni-button",{staticClass:"submit-btn br60 white btn",attrs:{size:"lg"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleInvoiceEdit.apply(void 0,arguments)}}},[t._v(" 提交编辑 ")])],1):t._e(),!t.shop_id||t.invoice_id||t.order_id?t._e():i("v-uni-view",{},[i("v-uni-button",{staticClass:"submit-btn br60 white btn",attrs:{size:"lg"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleConfirm.apply(void 0,arguments)}}},[t._v(" 确定 ")])],1),i("v-uni-view",{staticClass:"m-t-40"},[i("v-uni-button",{staticClass:"cancel-btn br60 white btn",attrs:{size:"lg"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleCancel.apply(void 0,arguments)}}},[t._v(" 不开发票 ")])],1)],1),i("u-popup",{attrs:{"border-radius":"14",mode:"bottom",closeable:!0,"safe-area-inset-bottom":!0},on:{open:function(e){arguments[0]=e=t.$handleEvent(e),t.type=t.formData.type},close:function(e){arguments[0]=e=t.$handleEvent(e),t.handleCloseInvoiceType.apply(void 0,arguments)}},model:{value:t.showCoupon,callback:function(e){t.showCoupon=e},expression:"showCoupon"}},[i("v-uni-view",{staticClass:"p-30 bg-body"},[i("v-uni-view",{staticClass:"text-center"},[t._v("发票类型选择")])],1),i("v-uni-view",{staticClass:"invoice-type bg-body"},[i("v-uni-view",{staticClass:"invoice-type--item bg-white flex row-between",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.type=0}}},[i("v-uni-view",[i("v-uni-view",{staticClass:"nr black"},[t._v("增值税电子普通发票")]),i("v-uni-view",{staticClass:"xs lighter m-t-14"},[t._v("默认发送至所提供的电子邮件")])],1),i("u-checkbox",{attrs:{value:0==t.type,shape:"circle",name:"0"}})],1),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:t.spec_invoice,expression:"spec_invoice"}],staticClass:"invoice-type--item bg-white flex row-between",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.type=1}}},[i("v-uni-view",[i("v-uni-view",{staticClass:"nr black"},[t._v("增值税专用发票")]),i("v-uni-view",{staticClass:"xs lighter m-t-14"},[t._v("纸质发票开出后将以邮寄形式交付")])],1),i("u-checkbox",{attrs:{value:1==t.type,shape:"circle",name:"1"}})],1),i("v-uni-view",{staticClass:"invoice-type-confirm-btn"},[i("v-uni-button",{staticClass:"confirm br60 white btn",attrs:{size:"lg"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleChoise.apply(void 0,arguments)}}},[t._v(" 确定 ")])],1)],1)],1)],1)},o=[]}}]);