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 lines
17 KiB
1 lines
17 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_invoicing-index"],{"01cf":function(e,t,i){var a=i("24fb");t=a(!1),t.push([e.i,"uni-form[data-v-e03a99fc]{font-size:%?28?%;color:#282828}uni-form uni-input[data-v-e03a99fc],\nuni-form uni-radio-group[data-v-e03a99fc]{flex:1;text-align:right}uni-form uni-input[data-v-e03a99fc]{font-size:%?26?%}uni-form uni-label[data-v-e03a99fc]{margin-right:%?50?%}uni-form uni-radio[data-v-e03a99fc]{margin-right:%?8?%}uni-form uni-checkbox-group[data-v-e03a99fc]{height:%?90?%}uni-form uni-checkbox[data-v-e03a99fc]{margin-right:%?20?%}uni-form uni-button[data-v-e03a99fc]{height:%?86?%;border-radius:%?43?%;margin:%?26?% %?30?%;background-color:#e93323;font-size:%?30?%;line-height:%?86?%;color:#fff}.panel[data-v-e03a99fc]{padding-right:%?30?%;padding-left:%?30?%;background-color:#fff}.panel~.panel[data-v-e03a99fc]{margin-top:%?14?%}.panel .acea-row[data-v-e03a99fc]{height:%?90?%}.panel .acea-row~.acea-row[data-v-e03a99fc]{border-top:1px solid #eee}.input-placeholder[data-v-e03a99fc]{font-size:%?26?%;color:#bbb}.icon-xiangyou[data-v-e03a99fc]{margin-left:%?25?%;font-size:%?18?%;color:#bfbfbf}.btn-wrap[data-v-e03a99fc]{position:fixed;bottom:%?58?%;left:0;width:100%}.btn-wrap .back[data-v-e03a99fc]{border:1px solid #e93323;background:none;color:#e93323}.popup[data-v-e03a99fc]{position:fixed;bottom:0;left:0;z-index:99;width:100%;padding-bottom:%?100?%;border-top-left-radius:%?16?%;border-top-right-radius:%?16?%;background-color:#f5f5f5;overflow:hidden;-webkit-transform:translateY(100%);transform:translateY(100%);transition:.3s}.popup.on[data-v-e03a99fc]{-webkit-transform:translateY(0);transform:translateY(0)}.popup .title[data-v-e03a99fc]{position:relative;height:%?137?%;font-size:%?32?%;line-height:%?137?%;text-align:center}.popup uni-scroll-view[data-v-e03a99fc]{height:%?466?%;padding-right:%?30?%;padding-left:%?30?%;box-sizing:border-box}.popup uni-label[data-v-e03a99fc]{padding:%?35?% %?30?%;border-radius:%?16?%;margin-bottom:%?20?%;background-color:#fff}.popup .text[data-v-e03a99fc]{flex:1;min-width:0;font-size:%?28?%;color:#282828}.popup .info[data-v-e03a99fc]{margin-top:%?10?%;font-size:%?22?%;color:#909090}.popup .icon-guanbi[data-v-e03a99fc]{position:absolute;top:50%;right:%?30?%;z-index:2;-webkit-transform:translateY(-50%);transform:translateY(-50%);font-size:%?30?%;color:#707070;cursor:pointer}.popup uni-button[data-v-e03a99fc]{height:%?86?%;border-radius:%?43?%;margin-right:%?30?%;margin-left:%?30?%;background-color:#e93323;font-size:%?30?%;line-height:%?86?%;color:#fff}.popup .text .acea-row[data-v-e03a99fc]{display:inline-flex;max-width:100%}.popup .name[data-v-e03a99fc]{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:%?30?%}.popup .label[data-v-e03a99fc]{width:%?56?%;height:%?28?%;border:1px solid #e93323;margin-left:%?18?%;font-size:%?20?%;line-height:%?26?%;text-align:center;color:#e93323}.popup .type[data-v-e03a99fc]{width:%?124?%;height:%?42?%;margin-top:%?14?%;background-color:#fcf0e0;font-size:%?24?%;line-height:%?42?%;text-align:center;color:#d67300}.popup .type.special[data-v-e03a99fc]{background-color:#fde9e7;color:#e93323}",""]),e.exports=t},"03da":function(e,t,i){"use strict";i.r(t);var a=i("aea8"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(o);t["default"]=n.a},"0cc2":function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return n})),i.d(t,"a",(function(){}));var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",[i("v-uni-form",{attrs:{"report-submit":"true"},on:{submit:function(t){arguments[0]=t=e.$handleEvent(t),e.formSubmit.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"panel"},["1"==e.receipt_title_type?i("v-uni-view",{staticClass:"acea-row row-middle"},[i("v-uni-view",[e._v("发票类型")]),i("v-uni-input",{attrs:{name:"receipt_type",value:e.typeName,disabled:"true"}})],1):e._e(),"2"==e.receipt_title_type?i("v-uni-view",{staticClass:"acea-row row-middle"},[i("v-uni-view",[e._v("发票类型")]),i("v-uni-input",{attrs:{name:"receipt_type",value:e.typeName,disabled:"true"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.callType.apply(void 0,arguments)}}}),i("v-uni-text",{staticClass:"iconfont icon-xiangyou"})],1):e._e(),i("v-uni-view",{staticClass:"acea-row row-middle"},[i("v-uni-view",[e._v("抬头类型")]),i("v-uni-radio-group",{attrs:{name:"receipt_title_type"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeHeader.apply(void 0,arguments)}}},[i("v-uni-label",[i("v-uni-radio",{attrs:{value:"1",checked:"1"==e.receipt_title_type}}),i("v-uni-text",[e._v("个人")])],1),i("v-uni-label",[i("v-uni-radio",{attrs:{value:"2",checked:"2"==e.receipt_title_type}}),i("v-uni-text",[e._v("企业")])],1)],1)],1),i("v-uni-view",{staticClass:"acea-row row-middle"},[i("v-uni-view",[e._v("发票抬头")]),i("v-uni-input",{attrs:{name:"receipt_title",value:e.receipt_title,placeholder:"需要开具发票的企业名称",disabled:"true"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.callTitle.apply(void 0,arguments)}}}),i("v-uni-text",{staticClass:"iconfont icon-xiangyou"})],1),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:"2"==e.receipt_title_type,expression:"receipt_title_type == '2'"}],staticClass:"acea-row row-middle"},[i("v-uni-view",[e._v("税号")]),i("v-uni-input",{attrs:{name:"duty_paragraph",value:e.duty_paragraph,disabled:"true",placeholder:"纳税人识别号"}})],1),i("v-uni-view",{staticClass:"acea-row row-middle"},[i("v-uni-view",[e._v("手机号")]),i("v-uni-input",{attrs:{name:"drawer_phone",value:e.drawer_phone,disabled:"true",placeholder:"您的手机号"}})],1),i("v-uni-view",{staticClass:"acea-row row-middle"},[i("v-uni-view",[e._v("邮箱")]),i("v-uni-input",{attrs:{name:"email",value:e.email,disabled:"true",placeholder:"您的联系邮箱"}})],1)],1),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:"2"==e.receipt_title_type&&"2"==e.receipt_type,expression:"receipt_title_type == '2' && receipt_type == '2'"}],staticClass:"panel"},[i("v-uni-view",{staticClass:"acea-row row-middle"},[i("v-uni-view",[e._v("开户银行")]),i("v-uni-input",{attrs:{name:"bank_name",value:e.bank_name,disabled:"true",placeholder:"您的开户银行"}})],1),i("v-uni-view",{staticClass:"acea-row row-middle"},[i("v-uni-view",[e._v("银行账号")]),i("v-uni-input",{attrs:{name:"bank_code",value:e.bank_code,disabled:"true",placeholder:"您的银行账号"}})],1),i("v-uni-view",{staticClass:"acea-row row-middle"},[i("v-uni-view",[e._v("企业地址")]),i("v-uni-input",{attrs:{name:"address",value:e.address,disabled:"true",placeholder:"您所在的企业地址"}})],1),i("v-uni-view",{staticClass:"acea-row row-middle"},[i("v-uni-view",[e._v("企业电话")]),i("v-uni-input",{attrs:{name:"tel",value:e.tel,disabled:"true",placeholder:"您的企业电话"}})],1)],1),i("v-uni-view",{staticClass:"btn-wrap"},[i("v-uni-button",{attrs:{"form-type":"submit"}},[e._v("提交申请")]),i("v-uni-button",{staticClass:"back",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goBack.apply(void 0,arguments)}}},[e._v("不开发票")])],1)],1),i("v-uni-view",{class:{mask:e.popupType||e.popupTitle}}),i("v-uni-view",{staticClass:"popup",class:{on:e.popupType}},[i("v-uni-view",{staticClass:"title"},[e._v("发票类型选择"),i("v-uni-text",{staticClass:"iconfont icon-guanbi",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.closeType.apply(void 0,arguments)}}})],1),i("v-uni-scroll-view",{attrs:{"scroll-y":"true"}},[i("v-uni-radio-group",{attrs:{name:"invoice-type"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeType.apply(void 0,arguments)}}},e._l(e.invoiceTypeList,(function(t){return i("v-uni-label",{key:t.type,staticClass:"acea-row row-middle"},[i("v-uni-view",{staticClass:"text"},[i("v-uni-view",[e._v(e._s(t.name))]),i("v-uni-view",{staticClass:"info"},[e._v(e._s(t.info))])],1),i("v-uni-radio",{attrs:{value:t.type,checked:e.receipt_type==t.type}})],1)})),1)],1),i("v-uni-button",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.closeType.apply(void 0,arguments)}}},[e._v("确定")])],1),i("v-uni-view",{staticClass:"popup",class:{on:e.popupTitle}},[i("v-uni-view",{staticClass:"title"},[e._v("抬头选择"),i("v-uni-text",{staticClass:"iconfont icon-guanbi",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.closeTitle.apply(void 0,arguments)}}})],1),i("v-uni-scroll-view",{attrs:{"scroll-y":"true"}},[i("v-uni-radio-group",{attrs:{name:"invoice-title"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeTitle.apply(void 0,arguments)}}},[e._l(e.invoiceList,(function(t){return[e.receipt_title_type==t.receipt_title_type?i("v-uni-label",{key:t.user_receipt_id,staticClass:"acea-row row-middle"},[i("v-uni-view",{staticClass:"text"},[i("v-uni-view",{staticClass:"acea-row row-middle"},[i("v-uni-view",{staticClass:"name"},[e._v(e._s(t.receipt_title))]),t.is_default?i("v-uni-view",{staticClass:"label"},[e._v("默认")]):e._e()],1),i("v-uni-view",{staticClass:"type",class:{special:"2"==t.receipt_type}},[e._v(e._s(1==t.receipt_type?"普通发票":"专用发票"))])],1),i("v-uni-radio",{attrs:{value:t.user_receipt_id,checked:t.user_receipt_id==e.invoice_id}})],1):e._e()]}))],2)],1),i("v-uni-button",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.addTitle.apply(void 0,arguments)}}},[e._v("添加新的抬头")])],1),i("home")],1)},n=[]},"12a1":function(e,t,i){var a=i("01cf");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=i("4f06").default;n("5e994686",a,!0,{sourceMap:!1,shadowMode:!1})},"1f3e":function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return n})),i.d(t,"a",(function(){}));var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticStyle:{"touch-action":"none"},style:e.viewColor},[i("v-uni-view",{staticClass:"home",staticStyle:{position:"fixed"},style:{top:e.top+"px",bottom:e.bottom},attrs:{id:"right-nav"},on:{touchmove:function(t){t.stopPropagation(),t.preventDefault(),arguments[0]=t=e.$handleEvent(t),e.setTouchMove.apply(void 0,arguments)}}},[e.homeActive?i("v-uni-view",{staticClass:"homeCon",class:!0===e.homeActive?"on":""},[i("v-uni-navigator",{staticClass:"iconfont icon-shouye-xianxing",attrs:{"hover-class":"none",url:"/pages/index/index","open-type":"switchTab"}}),i("v-uni-navigator",{staticClass:"iconfont icon-caigou-xianxing",attrs:{"hover-class":"none",url:"/pages/order_addcart/order_addcart","open-type":"switchTab"}}),i("v-uni-navigator",{staticClass:"iconfont icon-yonghu1",attrs:{"hover-class":"none",url:"/pages/user/index","open-type":"switchTab"}})],1):e._e(),i("v-uni-view",{staticClass:"pictrueBox",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.open.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{staticClass:"image pictruea",attrs:{src:!0===e.homeActive?"/static/images/navbtn_open.gif":"/static/images/navbtn_close.gif"}})],1)],1)],1)],1)},n=[]},"32e8":function(e,t,i){"use strict";i.r(t);var a=i("ae5c"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(o);t["default"]=n.a},"458b":function(e,t,i){var a=i("24fb");t=a(!1),t.push([e.i,".pictrueBox[data-v-6d33dd08]{width:%?130?%;height:%?120?%}\n/*返回主页按钮*/.home[data-v-6d33dd08]{position:fixed;color:#fff;text-align:center;z-index:9999;right:%?15?%;display:flex}.home .homeCon[data-v-6d33dd08]{border-radius:%?50?%;opacity:0;height:0;color:#e93323;width:0}.home .homeCon.on[data-v-6d33dd08]{opacity:1;-webkit-animation:bounceInRight .5s cubic-bezier(.215,.61,.355,1);animation:bounceInRight .5s cubic-bezier(.215,.61,.355,1);width:%?300?%;height:%?86?%;margin-bottom:%?20?%;display:flex;justify-content:center;align-items:center;background:var(--view-theme)}.home .homeCon .iconfont[data-v-6d33dd08]{font-size:%?48?%;color:#fff;display:inline-block;margin:0 auto}.home .pictrue[data-v-6d33dd08]{width:%?86?%;height:%?86?%;border-radius:50%;margin:0 auto;background-color:var(--view-theme);box-shadow:0 %?5?% %?12?% rgba(0,0,0,.5)}.home .pictrue .image[data-v-6d33dd08]{width:100%;height:100%}.pictruea[data-v-6d33dd08]{width:100%;height:100%;display:block;object-fit:cover;vertical-align:middle}",""]),e.exports=t},"4df8":function(e,t,i){"use strict";var a=i("12a1"),n=i.n(a);n.a},"6cb5":function(e,t,i){var a=i("458b");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=i("4f06").default;n("545af455",a,!0,{sourceMap:!1,shadowMode:!1})},"92b0":function(e,t,i){"use strict";var a=i("6cb5"),n=i.n(a);n.a},a394:function(e,t,i){"use strict";i.r(t);var a=i("1f3e"),n=i("32e8");for(var o in n)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(o);i("92b0");var c=i("f0c5"),r=Object(c["a"])(n["default"],a["b"],a["c"],!1,null,"6d33dd08",null,!1,a["a"],void 0);t["default"]=r.exports},a5f5:function(e,t,i){"use strict";i.r(t);var a=i("0cc2"),n=i("03da");for(var o in n)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(o);i("4df8");var c=i("f0c5"),r=Object(c["a"])(n["default"],a["b"],a["c"],!1,null,"e03a99fc",null,!1,a["a"],void 0);t["default"]=r.exports},ae5c:function(e,t,i){"use strict";i("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i("26cb"),n=i("8342"),o={name:"Home",props:{},data:function(){return{domain:n.HTTP_REQUEST_URL,top:"",bottom:""}},computed:(0,a.mapGetters)(["homeActive","viewColor","keyColor"]),methods:{setTouchMove:function(e){e.touches[0].clientY<545&&e.touches[0].clientY>66&&(this.top=e.touches[0].clientY,this.bottom="auto")},open:function(){this.homeActive?this.$store.commit("CLOSE_HOME"):this.$store.commit("OPEN_HOME")}},created:function(){this.bottom="50px"}};t.default=o},aea8:function(e,t,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("d401"),i("d3b7"),i("25f0"),i("7db0");var n=a(i("a394")),o=i("c6c3"),c={components:{home:n.default},data:function(){return{id:"",receipt_title_type:"1",receipt_type:"1",drawer_phone:"",receipt_title:"",duty_paragraph:"",tel:"",address:"",bank_name:"",bank_code:"",is_default:0,email:"",isDefault:[],typeName:"增值税电子普通发票",popupType:!1,popupTitle:!1,invoiceTypeList:[{type:"1",name:"增值税电子普通发票",info:"纸质发票开出后将以邮寄形式交付"},{type:"2",name:"增值税专用发票",info:"纸质发票开出后将以邮寄形式交付"}],special_invoice:!0,invoice_func:!0,invoiceList:[],invoice_checked:"",invoice_id:"",order_id:"",news:"",cartId:"",pinkId:"",couponId:"",addressId:""}},watch:{},onLoad:function(e){this.news=e.news,this.cartId=e.cartId,this.pinkId=e.pinkId,this.couponId=e.couponId,this.addressId=e.addressId,"false"==e.special_invoice&&this.$set(this,"special_invoice",!1),this.getInvoiceDefault(),this.getInvoiceList()},methods:{getInvoiceList:function(){var e=this,t={receipt_title_type:this.receipt_title_type,receipt_type:this.receipt_type};(0,o.invoice)(t).then((function(t){for(var i=0;i<t.data.length;i++)t.data[i].user_receipt_id=t.data[i].user_receipt_id.toString(),t.data[i].is_default&&(e.invoice_id=t.data[i].user_receipt_id);e.$set(e,"invoiceList",t.data)})).catch((function(t){e.$util.Tips({title:t})}))},getInvoiceDefault:function(){var e=this,t={is_default:1,receipt_title_type:this.receipt_title_type,receipt_type:this.receipt_type};(0,o.invoice)(t).then((function(t){var i=t.data[0];e.receipt_title_type=i.receipt_title_type,e.receipt_type=i.receipt_type,e.receipt_title=i.receipt_title,e.email=i.email,e.duty_paragraph=i.duty_paragraph,e.bank_name=i.bank_name,e.bank_code=i.bank_code,e.address=i.address,e.tel=i.tel,e.invoice_id=i.user_receipt_id.toString()})).catch((function(e){}))},getInvoiceDetail:function(e){var t=this;(0,o.invoiceDetail)(e).then((function(e){uni.hideLoading(),t.receipt_title_type=e.data.receipt_title_type,t.receipt_type=e.data.receipt_type,t.typeName="1"==t.receipt_type?"增值税电子普通发票":"增值税专用发票",t.receipt_title=e.data.receipt_title,t.email=e.data.email,t.duty_paragraph=e.data.duty_paragraph,t.bank_name=e.data.bank_name,t.bank_code=e.data.bank_code,t.address=e.data.address,t.tel=e.data.tel,t.is_default=e.data.is_default})).catch((function(e){uni.hideLoading(),t.$util.Tips({title:e})}))},callType:function(){this.popupType=!0},changeType:function(e){var t=this;this.receipt_type=e.detail.value,this.typeName=this.invoiceTypeList.find((function(e){return e.type==t.receipt_type})).name,this.getInvoiceList()},closeType:function(){this.popupType=!1},callTitle:function(){this.popupTitle=!0},changeTitle:function(e){this.invoice_id=e.detail.value.toString(),this.getInvoiceDetail(e.detail.value),this.popupTitle=!1},addTitle:function(){uni.navigateTo({url:"/pages/users/user_invoice_list/index"})},closeTitle:function(){this.popupTitle=!1},changeHeader:function(e){this.receipt_title_type=e.detail.value,1==e.detail.value&&(this.receipt_type=1,this.typeName="增值税电子普通发票"),this.receipt_type,this.getInvoiceDefault(),this.getInvoiceList()},changeDefault:function(e){this.is_default=e.detail.value.length?1:0},formSubmit:function(e){uni.navigateTo({url:"/pages/users/order_confirm/index?new="+this.news+"&cartId="+this.cartId+"&addressId="+this.addressId+"&pinkId="+this.pinkId+"&couponId="+this.couponId+"&invoice_id="+this.invoice_id+"&invoice_type="+this.receipt_type})},goBack:function(){uni.navigateTo({url:"/pages/users/order_confirm/index?new="+this.news+"&cartId="+this.cartId+"&addressId="+this.addressId+"&pinkId="+this.pinkId+"&couponId="+this.couponId})}}};t.default=c}}]); |