glhcp/server/public/mobile/static/js/bundle-pages-invoice-invoic...

1 line
28 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["bundle-pages-invoice-invoice"],{"06cd":function(t,e,i){"use strict";i.r(e);var n=i("b4ed"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"0932":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("4569").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=[]},"27a3":function(t,e,i){"use strict";i.r(e);var n=i("df20"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"293c":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("4569").default,uRadioGroup:i("9a0c4").default,uRadio:i("d999").default,uInput:i("5cb0").default,uPopup:i("a821").default,uCheckbox:i("88d4").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=[]},"34f9":function(t,e,i){var n=i("55a8");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("d7201518",n,!0,{sourceMap:!1,shadowMode:!1})},3671:function(t,e,i){"use strict";var n=i("f689"),a=i.n(n);a.a},"55a8":function(t,e,i){var n=i("24fb");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-455821ba]{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-455821ba]{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-455821ba]{border-radius:100%}.u-checkbox__icon-wrap--square[data-v-455821ba]{border-radius:%?6?%}.u-checkbox__icon-wrap--checked[data-v-455821ba]{color:#fff;background-color:#ff2c3c;border-color:#ff2c3c}.u-checkbox__icon-wrap--disabled[data-v-455821ba]{background-color:#ebedf0;border-color:#c8c9cc}.u-checkbox__icon-wrap--disabled--checked[data-v-455821ba]{color:#c8c9cc!important}.u-checkbox__label[data-v-455821ba]{word-wrap:break-word;margin-left:%?10?%;margin-right:%?24?%;color:#606266;font-size:%?30?%}.u-checkbox__label--disabled[data-v-455821ba]{color:#c8c9cc}',""]),t.exports=e},"55c1":function(t,e,i){"use strict";var n=i("4ea4");i("a9e3"),i("498a"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("37b6")),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},"57a8":function(t,e,i){"use strict";i.r(e);var n=i("55c1"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"5cb0":function(t,e,i){"use strict";i.r(e);var n=i("74f4"),a=i("57a8");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("7404");var r,s=i("f0c5"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"1203163a",null,!1,n["a"],r);e["default"]=c.exports},"5ebc":function(t,e,i){"use strict";var n=i("34f9"),a=i.n(n);a.a},7404:function(t,e,i){"use strict";var n=i("c4f7"),a=i.n(n);a.a},"74f4":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("4569").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=[]},"88d4":function(t,e,i){"use strict";i.r(e);var n=i("0932"),a=i("27a3");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("5ebc");var r,s=i("f0c5"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"455821ba",null,!1,n["a"],r);e["default"]=c.exports},"9b09":function(t,e,i){var n=i("24fb");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-1203163a]{position:relative;flex:1;display:flex;flex-direction:row}.u-input__input[data-v-1203163a]{font-size:%?28?%;color:#303133;flex:1}.u-input__textarea[data-v-1203163a]{width:auto;font-size:%?28?%;color:#303133;padding:%?10?% 0;line-height:normal;flex:1}.u-input--border[data-v-1203163a]{border-radius:%?6?%;border-radius:4px;border:1px solid #dcdfe6}.u-input--error[data-v-1203163a]{border-color:#fa3534!important}.u-input__right-icon__item[data-v-1203163a]{margin-left:%?10?%}.u-input__right-icon--select[data-v-1203163a]{transition:-webkit-transform .4s;transition:transform .4s;transition:transform .4s,-webkit-transform .4s}.u-input__right-icon--select--reverse[data-v-1203163a]{-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}',""]),t.exports=e},a116:function(t,e,i){var n=i("24fb");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-163c292c]{height:calc(100vh - env(safe-area-inset-bottom));padding:%?24?%;position:relative}.invoice .box[data-v-163c292c]{padding:%?20?% 0;border-radius:%?16?%}.invoice .box .item[data-v-163c292c]{padding:%?16?% %?30?%}.invoice .box .item .label[data-v-163c292c]{font-size:%?28?%;color:#101010}.invoice .box .item .content[data-v-163c292c]{min-width:%?440?%}.invoice .footer[data-v-163c292c]{left:0;bottom:0;width:100%;padding:%?24?%;position:absolute}.invoice .footer .btn[data-v-163c292c]{height:%?88?%}.invoice .footer .submit-btn[data-v-163c292c]{color:#fff;background-color:#e39b37}.invoice .footer .cancel-btn[data-v-163c292c]{color:#e39b37;background-color:#fff}.invoice .invoice-type[data-v-163c292c]{padding:%?40?%;padding-bottom:0}.invoice .invoice-type .invoice-type--item[data-v-163c292c]{padding:%?28?% %?36?%;border-radius:%?40?%;margin-bottom:%?30?%}.invoice .invoice-type .invoice-type-confirm-btn[data-v-163c292c]{padding:%?90?% 0 %?50?% 0}.invoice .invoice-type .invoice-type-confirm-btn .confirm[data-v-163c292c]{background-color:#ff9e1e}',""]),t.exports=e},b194:function(t,e,i){"use strict";var n=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getShopList=o,e.getShopCategory=r,e.getShopInfo=s,e.getShopGoodsCategory=c,e.changeShopFollow=l,e.shopApply=u,e.shopApplyRecord=d,e.shopApplyDetail=p,e.getTreaty=h,e.getShopService=f,e.getInvoiceSetting=v,e.apiInvoiceAdd=b,e.apiInvoiceEdit=m,e.apiInvoiceDetail=_,e.apiOrderInvoiceDetail=y;var a=n(i("b175"));i("357b");function o(t){return a.default.get("shop/getShopList",{params:t})}function r(){return a.default.get("shop_category/getList")}function s(t){return a.default.get("shop/getShopInfo",{params:t})}function c(t){return a.default.get("shop_goods_category/getShopGoodsCategory",{params:t})}function l(t){return a.default.post("shop_follow/changeStatus",t)}function u(t){return a.default.post("ShopApply/apply",t)}function d(t){return a.default.get("ShopApply/record",{params:t})}function p(t){return a.default.get("ShopApply/detail",{params:{id:t}})}function h(){return a.default.get("ShopApply/getTreaty")}function f(t){return a.default.get("setting/getShopCustomerService",{params:{shop_id:t}})}function v(t){return a.default.get("order_invoice/setting",{params:t})}function b(t){return a.default.post("order_invoice/add",t)}function m(t){return a.default.post("order_invoice/edit",t)}function _(t){return a.default.get("order_invoice/detail",{params:t})}function y(t){return a.default.get("order/invoice",{params:t})}},b4ed:function(t,e,i){"use strict";var n=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("5530")),o=i("b194"),r=i("d429"),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},c4f7:function(t,e,i){var n=i("9b09");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("5682a912",n,!0,{sourceMap:!1,shadowMode:!1})},d3ff:function(t,e,i){"use strict";i.r(e);var n=i("293c"),a=i("06cd");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("3671");var r,s=i("f0c5"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"163c292c",null,!1,n["a"],r);e["default"]=c.exports},df20:function(t,e,i){"use strict";i("d81d"),i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;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},f689:function(t,e,i){var n=i("a116");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("588c5430",n,!0,{sourceMap:!1,shadowMode:!1})}}]);