(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_invoice_list-index"],{"0066":function(t,e,i){"use strict";i.r(e);var a=i("8d5d"),n=i("f2d8");for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("9238");var r,s=i("f0c5"),c=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"9da22a2c",null,!1,a["a"],r);e["default"]=c.exports},"23c5":function(t,e,i){"use strict";var a=i("4ea4");i("99af"),i("c740"),i("a434"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("b60d")),o=i("26cb"),r=i("b79f"),s=i("f57c"),c=a(i("5411")),d={components:{home:n.default},mixins:[c.default],data:function(){return{orderList:[],invoiceList:[],nav:1,page:1,limit:30,loading:!1,finished:!1,specialInvoice:!0}},watch:{nav:{immediate:!0,handler:function(t){switch(this.page=1,t){case 1:this.orderList=[],this.getOrderList();break;case 2:this.invoiceList=[],this.getInvoiceList();break}}}},computed:(0,o.mapGetters)(["isLogin"]),onLoad:function(t){"invoice_form"===t.from&&(this.nav=2),this.getUserInfo()},methods:{getUserInfo:function(){var t=this;(0,r.getUserInfo)().then((function(e){var i=e.data.special_invoice;t.specialInvoice=i}))},navTab:function(t){this.nav!==t&&(this.nav=t)},getOrderList:function(){var t=this;uni.showLoading({title:"加载中"}),(0,s.orderInvoiceList)({page:this.page,limit:this.limit}).then((function(e){var i=e.data;uni.hideLoading(),t.orderList=t.orderList.concat(i),t.finished=i.length66&&(e.top=t.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")}};e.default=r},"74e86":function(t,e,i){"use strict";var a=i("5268"),n=i.n(a);n.a},"8d5d":function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{style:t.colorStyle},[i("v-uni-view",{staticClass:"acea-row nav"},[i("v-uni-view",{staticClass:"acea-row row-center-wrapper",class:{on:1===t.nav},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navTab(1)}}},[t._v("发票记录")]),i("v-uni-view",{staticClass:"acea-row row-center-wrapper",class:{on:2===t.nav},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navTab(2)}}},[t._v("抬头管理")])],1),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:1===t.nav,expression:"nav === 1"}],staticClass:"record-wrapper"},[t._l(t.orderList,(function(e){return i("v-uni-view",{key:e.id,staticClass:"item"},[i("v-uni-view",{staticClass:"item-hd acea-row"},[i("v-uni-image",{staticClass:"image",attrs:{src:e.order.cartInfo[0].productInfo.image}}),i("v-uni-view",{staticClass:"text"},[t._v(t._s(e.order.cartInfo[0].productInfo.store_name+e.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"},[t._v(t._s(1===e.header_type?"个人":"企业")+t._s(1===e.type?"普通":"专用")+"发票")]),i("v-uni-view",[t._v("申请时间 "+t._s(e.add_time))])],1),i("v-uni-view",{staticClass:"money"},[t._v("¥"),i("v-uni-text",{staticClass:"num"},[t._v(t._s(e.order.pay_price))])],1)],1),i("v-uni-view",{staticClass:"item-ft acea-row row-between-wrapper"},[i("v-uni-view",[t._v(t._s(e.is_invoice?"已开票":"未开票"))]),i("v-uni-navigator",{staticClass:"link",attrs:{url:"/pages/users/user_invoice_order/index?order_id="+e.order.order_id}},[t._v("查看详情")])],1)],1)})),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:2===t.page&&!t.orderList.length,expression:"page === 2 && !orderList.length"}],staticClass:"nothing"},[i("v-uni-image",{staticClass:"image",attrs:{src:"/static/images/noInvoice.png"}}),i("v-uni-view",[t._v("没有发票信息哟~")])],1)],2),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:2===t.nav,expression:"nav === 2"}]},[t.invoiceList.length?i("v-uni-view",{staticClass:"list"},[t._l(t.invoiceList,(function(e){return[1===e.type||2===e.type&&t.specialInvoice?i("v-uni-view",{key:e.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"},[t._v(t._s(e.name))]),e.is_default?i("v-uni-view",{staticClass:"label"},[t._v("默认")]):t._e()],1),i("v-uni-view",{staticClass:"type",class:{special:2===e.type}},[t._v(t._s(1===e.type&&1===e.header_type?"个人普通发票":1===e.type&&2===e.header_type?"企业普通发票":"企业专用发票"))])],1),i("v-uni-view",{staticClass:"item-bd"},[i("v-uni-view",{staticClass:"cell"},[t._v("联系邮箱 "+t._s(e.email))]),2===e.header_type?i("v-uni-view",{staticClass:"cell"},[t._v("企业税号 "+t._s(e.duty_number))]):t._e(),1===e.header_type&&e.drawer_phone?i("v-uni-view",{staticClass:"cell"},[t._v("联系电话 "+t._s(e.drawer_phone))]):t._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=t.$handleEvent(i),t.editInvoice(e.id)}}},[i("v-uni-text",{staticClass:"iconfont icon-bianji"}),t._v("编辑")],1),i("v-uni-view",{staticClass:"btn",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.deleteInvoice(e.id)}}},[i("v-uni-text",{staticClass:"iconfont icon-shanchu"}),t._v("删除")],1)],1)],1):t._e()]}))],2):t._e(),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:2===t.page&&!t.invoiceList.length,expression:"page === 2 && !invoiceList.length"}],staticClass:"nothing"},[i("v-uni-image",{staticClass:"image",attrs:{src:"/static/images/noInvoice.png"}}),i("v-uni-view",[t._v("没有发票信息哟~")])],1),i("v-uni-navigator",{staticClass:"add-link",attrs:{url:"/pages/users/user_invoice_form/index?specialInvoice="+t.specialInvoice}},[i("v-uni-text",{staticClass:"iconfont icon-fapiao"}),t._v("添加新发票")],1)],1),i("home")],1)},o=[]},9238:function(t,e,i){"use strict";var a=i("c6ed"),n=i.n(a);n.a},b60d:function(t,e,i){"use strict";i.r(e);var a=i("c819"),n=i("e6f5");for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("74e86");var r,s=i("f0c5"),c=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"3f1aaa8c",null,!1,a["a"],r);e["default"]=c.exports},c6ed:function(t,e,i){var a=i("2771");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("b7e3d344",a,!0,{sourceMap:!1,shadowMode:!1})},c819:function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{style:t.colorStyle},[i("v-uni-view",{staticStyle:{"touch-action":"none"}},[i("v-uni-view",{staticClass:"home",staticStyle:{position:"fixed"},style:{top:t.top+"px"},attrs:{id:"right-nav"},on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.setTouchMove.apply(void 0,arguments)}}},[t.homeActive?i("v-uni-view",{staticClass:"homeCon bg-color",class:!0===t.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):t._e(),i("v-uni-view",{staticClass:"pictrueBox",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.open.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{staticClass:"image",attrs:{src:!0===t.homeActive?"/static/images/close.gif":"/static/images/open.gif"}})],1)],1)],1)],1)],1)},o=[]},e6f5:function(t,e,i){"use strict";i.r(e);var a=i("62bb"),n=i.n(a);for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},f2d8:function(t,e,i){"use strict";i.r(e);var a=i("23c5"),n=i.n(a);for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a}}]);