(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_invoice_list-index"],{"39ed":function(e,t,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.adminExpress=function(e,t){return o.default.get("admin/order/express/"+e+"".concat(t?"/refund":""))},t.aliPay=function(e,t){return o.default.get("ali_pay",{key:e,quitUrl:t},{noAuth:!0})},t.cancelRefundOrder=function(e){return o.default.post("order/refund/cancel/"+e)},t.cartDel=function(e){"object"===(0,r.default)(e)&&(e=e.join(","));return o.default.post("cart/del",{ids:e})},t.changeCartNum=function(e,t){return o.default.post("cart/num",{id:e,number:t})},t.checkShipping=function(e,t){return o.default.post("order/check_shipping",{cartId:e,new:t})},t.express=function(e,t){return o.default.get("order/express/"+e+"".concat(t?"/refund":""))},t.getCartCounts=function(e){return o.default.get("cart/count",{numType:void 0===e?0:e})},t.getCartList=function(e){return o.default.get("cart/list",e)},t.getCashierOrder=function(e,t){return o.default.get("order/cashier/".concat(e,"/").concat(t))},t.getCouponsOrderPrice=function(e,t){return o.default.get("coupons/order/"+e,t)},t.getNewOrderList=function(e){return o.default.get("order/refund/list",e)},t.getOrderDetail=function(e,t){return o.default.get("order/detail/"+e+"".concat(t?"/".concat(t):""))},t.getOrderList=function(e){return o.default.get("order/list",e)},t.getRefundOrderDetail=function(e,t){return o.default.get("order/refund_detail/"+e+"".concat(t?"/".concat(t):""))},t.getResetCart=function(e){return o.default.post("v2/reset_cart",e)},t.offlineCheckPrice=function(e){return o.default.post("order/offline/check/price",e)},t.offlineCreate=function(e){return o.default.post("order/offline/create",e)},t.ordeRefundReason=function(){return o.default.get("order/refund/reason")},t.orderAgain=function(e){return o.default.post("order/again",{uni:e})},t.orderCancel=function(e){return o.default.post("order/cancel",{id:e})},t.orderComment=function(e){return o.default.post("order/comment",e)},t.orderConfirm=function(e,t,i,n){return o.default.post("order/confirm",{cartId:e,new:t,addressId:i,shipping_type:n})},t.orderCoupon=function(e){return o.default.post("v2/order/product_coupon/"+e)},t.orderCreate=function(e,t){return o.default.post("order/create/"+e,t)},t.orderData=function(){return o.default.get("order/data")},t.orderDel=function(e){return o.default.post("order/del",{uni:e})},t.orderInvoiceDetail=function(e){return o.default.get("v2/order/invoice_detail/".concat(e))},t.orderInvoiceList=function(e){return o.default.get("v2/order/invoice_list",e)},t.orderOfflinePayType=function(){return o.default.get("order/offline/pay/type")},t.orderPay=function(e){return o.default.post("order/pay",e)},t.orderProduct=function(e){return o.default.post("order/product",{unique:e})},t.orderRefundVerify=function(e){return o.default.post("order/refund/verify",e)},t.orderTake=function(e){return o.default.post("order/take",{uni:e})},t.postOrderComputed=function(e,t){return o.default.post("order/computed/"+e,t)},t.postRefundGoods=function(e){return o.default.post("order/refund/cart_info",e)},t.refundExpress=function(e){return o.default.post("order/refund/express",e)},t.refundGoodsList=function(e){return o.default.get("order/refund/cart_info/".concat(e))},t.refundOrderDel=function(e){return o.default.get("order/refund/del/"+e,{})},t.refundOrderDetail=function(e){return o.default.get("order/refund/detail/"+e)},t.returnGoodsSubmit=function(e,t){return o.default.post("order/refund/apply/".concat(e),t)},t.vcartList=function(){return o.default.get("v2/cart_list")},i("99af");var r=n(i("53ca")),o=n(i("fb81"))},"3b71":function(e,t,i){"use strict";i.r(t);var n=i("8b3c"),r=i("7b1b");for(var o in r)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return r[e]}))}(o);i("77b4");var a=i("f0c5"),c=Object(a["a"])(r["default"],n["b"],n["c"],!1,null,"5c721f6d",null,!1,n["a"],void 0);t["default"]=c.exports},"468f":function(e,t,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("99af"),i("c740"),i("a434");var r=n(i("3b71")),o=i("26cb"),a=i("d1ea"),c=i("39ed"),s=n(i("19b6")),d=i("00a0"),u={components:{home:r.default},mixins:[s.default],data:function(){return{imgHost:d.HTTP_REQUEST_URL,orderList:[],invoiceList:[],nav:1,page:1,limit:30,loading:!1,finished:!1,specialInvoice:!0}},watch:{nav:{immediate:!0,handler:function(e){switch(this.page=1,e){case 1:this.orderList=[],this.getOrderList();break;case 2:this.invoiceList=[],this.getInvoiceList();break}}}},computed:(0,o.mapGetters)(["isLogin"]),onLoad:function(e){"invoice_form"===e.from&&(this.nav=2),this.getUserInfo()},methods:{getUserInfo:function(){var e=this;(0,a.getUserInfo)().then((function(t){var i=t.data.special_invoice;e.specialInvoice=i}))},navTab:function(e){this.nav!==e&&(this.nav=e)},getOrderList:function(){var e=this;uni.showLoading({title:this.$t("加载中")}),(0,c.orderInvoiceList)({page:this.page,limit:this.limit}).then((function(t){var i=t.data;uni.hideLoading(),e.orderList=e.orderList.concat(i),e.finished=i.length66&&(this.top=e.touches[0].clientY)},open:function(){this.homeActive?this.$store.commit("CLOSE_HOME"):this.$store.commit("OPEN_HOME")}},created:function(){},beforeDestroy:function(){this.$store.commit("CLOSE_HOME")}};t.default=c},"77b4":function(e,t,i){"use strict";var n=i("efc4"),r=i.n(n);r.a},"7b1b":function(e,t,i){"use strict";i.r(t);var n=i("6cbb"),r=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(o);t["default"]=r.a},8956:function(e,t,i){"use strict";var n=i("ed87"),r=i.n(n);r.a},"8b3c":function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return r})),i.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{style:e.colorStyle},[i("v-uni-view",{staticStyle:{"touch-action":"none"}},[i("v-uni-view",{staticClass:"home",staticStyle:{position:"fixed"},style:{top:e.top+"px"},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 bg-color",class:!0===e.homeActive?"on":""},[i("v-uni-navigator",{staticClass:"iconfont icon-shouye-xianxing",attrs:{"hover-class":"none","open-type":"switchTab",url:"/pages/index/index"}}),i("v-uni-navigator",{staticClass:"iconfont icon-caigou-xianxing",attrs:{"hover-class":"none","open-type":"switchTab",url:"/pages/order_addcart/order_addcart"}}),i("v-uni-navigator",{staticClass:"iconfont icon-yonghu1",attrs:{"hover-class":"none","open-type":"switchTab",url:"/pages/user/index"}})],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",attrs:{src:!0===e.homeActive?e.imgHost+"/statics/images/close.gif":e.imgHost+"/statics/images/open.gif"}})],1)],1)],1)],1)],1)},r=[]},a57e:function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return r})),i.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{style:e.colorStyle},[i("v-uni-view",{staticClass:"acea-row nav"},[i("v-uni-view",{staticClass:"acea-row row-center-wrapper",class:{on:1===e.nav},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.navTab(1)}}},[e._v(e._s(e.$t("发票记录")))]),i("v-uni-view",{staticClass:"acea-row row-center-wrapper",class:{on:2===e.nav},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.navTab(2)}}},[e._v(e._s(e.$t("抬头管理")))])],1),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:1===e.nav,expression:"nav === 1"}],staticClass:"record-wrapper"},[e._l(e.orderList,(function(t){return i("v-uni-view",{key:t.id,staticClass:"item"},[i("v-uni-view",{staticClass:"item-hd acea-row"},[i("v-uni-image",{staticClass:"image",attrs:{src:t.order.cartInfo[0].productInfo.image}}),i("v-uni-view",{staticClass:"text"},[e._v(e._s(t.order.cartInfo[0].productInfo.store_name+t.order.cartInfo[0].productInfo.attrInfo.suk||""))])],1),i("v-uni-view",{staticClass:"item-bd acea-row row-between-wrapper"},[i("v-uni-view",[i("v-uni-view",{staticClass:"name"},[e._v(e._s(1===t.header_type?e.$t("个人"):e.$t("企业"))+e._s(1===t.type?e.$t("普通"):e.$t("专用"))+e._s(e.$t("发票")))]),i("v-uni-view",[e._v(e._s(e.$t("申请时间"))+" "+e._s(t.add_time))])],1),i("v-uni-view",{staticClass:"money"},[e._v(e._s(e.$t("¥"))),i("v-uni-text",{staticClass:"num"},[e._v(e._s(t.order.pay_price))])],1)],1),i("v-uni-view",{staticClass:"item-ft acea-row row-between-wrapper"},[i("v-uni-view",[e._v(e._s(t.is_invoice?e.$t("已开票"):e.$t("未开票")))]),i("v-uni-navigator",{staticClass:"link",attrs:{url:"/pages/users/user_invoice_order/index?order_id="+t.order.order_id}},[e._v(e._s(e.$t("查看详情")))])],1)],1)})),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:2===e.page&&!e.orderList.length,expression:"page === 2 && !orderList.length"}],staticClass:"nothing"},[i("v-uni-image",{attrs:{src:e.imgHost+"/statics/images/noInvoice.png"}}),i("v-uni-view",[e._v(e._s(e.$t("没有发票信息哟~")))])],1)],2),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:2===e.nav,expression:"nav === 2"}]},[e.invoiceList.length?i("v-uni-view",{staticClass:"list"},[e._l(e.invoiceList,(function(t){return[1===t.type||2===t.type&&e.specialInvoice?i("v-uni-view",{key:t.id,staticClass:"item"},[i("v-uni-view",{staticClass:"acea-row item-hd"},[i("v-uni-view",{staticClass:"acea-row row-middle"},[i("v-uni-view",{staticClass:"name"},[e._v(e._s(t.name))]),t.is_default?i("v-uni-view",{staticClass:"label"},[e._v(e._s(e.$t("默认")))]):e._e()],1),i("v-uni-view",{staticClass:"type",class:{special:2===t.type}},[e._v(e._s(1===t.type&&1===t.header_type?e.$t("个人普通发票"):1===t.type&&2===t.header_type?e.$t("企业普通发票"):e.$t("企业专用发票")))])],1),i("v-uni-view",{staticClass:"item-bd"},[i("v-uni-view",{staticClass:"cell"},[e._v(e._s(e.$t("联系邮箱"))+" "+e._s(t.email))]),2===t.header_type?i("v-uni-view",{staticClass:"cell"},[e._v(e._s(e.$t("企业税号"))+" "+e._s(t.duty_number))]):e._e(),1===t.header_type&&t.drawer_phone?i("v-uni-view",{staticClass:"cell"},[e._v(e._s(e.$t("联系电话"))+" "+e._s(t.drawer_phone))]):e._e()],1),i("v-uni-view",{staticClass:"acea-row row-right item-ft"},[i("v-uni-view",{staticClass:"btn",on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.editInvoice(t.id)}}},[i("v-uni-text",{staticClass:"iconfont icon-bianji"}),e._v(e._s(e.$t("编辑")))],1),i("v-uni-view",{staticClass:"btn",on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.deleteInvoice(t.id)}}},[i("v-uni-text",{staticClass:"iconfont icon-shanchu"}),e._v(e._s(e.$t("删除")))],1)],1)],1):e._e()]}))],2):e._e(),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:2===e.page&&!e.invoiceList.length,expression:"page === 2 && !invoiceList.length"}],staticClass:"nothing"},[i("v-uni-image",{attrs:{src:e.imgHost+"/statics/images/noInvoice.png"}}),i("v-uni-view",[e._v(e._s(e.$t("没有发票信息哟~")))])],1),i("v-uni-navigator",{staticClass:"add-link",attrs:{url:"/pages/users/user_invoice_form/index?specialInvoice="+e.specialInvoice}},[i("v-uni-text",{staticClass:"iconfont icon-fapiao"}),e._v(e._s(e.$t("添加新发票")))],1)],1),i("home")],1)},r=[]},aae6:function(e,t,i){var n=i("24fb");t=n(!1),t.push([e.i,".pictrueBox[data-v-5c721f6d]{width:%?130?%;height:%?120?%}\n\n/*返回主页按钮*/.home[data-v-5c721f6d]{position:fixed;color:#fff;text-align:center;z-index:999;right:%?15?%;display:flex}.home .homeCon[data-v-5c721f6d]{border-radius:%?50?%;opacity:0;height:0;color:var(--view-theme);width:0}.home .homeCon.on[data-v-5c721f6d]{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)!important;opacity:.8;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.home .homeCon .iconfont[data-v-5c721f6d]{font-size:%?48?%;color:#fff;display:inline-block;margin:0 auto}.home .pictrue[data-v-5c721f6d]{width:%?86?%;height:%?86?%;border-radius:50%;margin:0 auto;background-color:var(--view-theme)}.home .pictrue .image[data-v-5c721f6d]{width:100%;height:100%;border-radius:50%;-webkit-transform:rotate(90deg);transform:rotate(90deg);ms-transform:rotate(90deg);moz-transform:rotate(90deg);webkit-transform:rotate(90deg);o-transform:rotate(90deg)}",""]),e.exports=t},ed87:function(e,t,i){var n=i("4b2b");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i("4f06").default;r("5c8df10c",n,!0,{sourceMap:!1,shadowMode:!1})},ef55:function(e,t,i){"use strict";i.r(t);var n=i("a57e"),r=i("5905");for(var o in r)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return r[e]}))}(o);i("8956");var a=i("f0c5"),c=Object(a["a"])(r["default"],n["b"],n["c"],!1,null,"31f99ec0",null,!1,n["a"],void 0);t["default"]=c.exports},efc4:function(e,t,i){var n=i("aae6");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i("4f06").default;r("24378372",n,!0,{sourceMap:!1,shadowMode:!1})}}]);