bztang-admin/addons/yun_shop/static/app/js/chunk-0778db02.6ecd5c6b.js

1 line
9.1 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0778db02","chunk-2d0d83d6"],{"1cc3":function(t,e,i){var a=i("cbbd");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("499e").default;n("46ad5df8",a,!0,{sourceMap:!1,shadowMode:!1})},"41c8":function(t,e,i){"use strict";i("1cc3")},"4a8c":function(t,e,i){"use strict";i("c859")},"522f":function(t,e,i){"use strict";i("7d27")},"79db":function(t,e,i){t.exports=i.p+"static/app/img/empty-image-search.ef236a93.png"},"7d27":function(t,e,i){var a=i("c519");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("499e").default;n("20ac2ae6",a,!0,{sourceMap:!1,shadowMode:!1})},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var a=document.documentElement,n=document.body,o={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return a&&a.scrollTop?t=a.scrollTop:n&&(t=n.scrollTop),t},getClientHeight:function(){var t=0;return t=n.clientHeight&&a.clientHeight?Math.min(n.clientHeight,a.clientHeight):Math.max(n.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(n.scrollHeight,a.scrollHeight)},handleScroll:function(){this.otherScroll();var t=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=t>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},b47a:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"invoiceCenter"},[i("van-sticky",[i("c-title",{attrs:{hide:!1,text:"发票中心"}}),i("van-tabs",{on:{change:t.activeType},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[i("van-tab",{attrs:{name:1,title:"已开票"}}),i("van-tab",{attrs:{name:2,title:"申请中发票"}}),i("van-tab",{attrs:{name:3,title:"申请开票"}}),i("van-tab",{attrs:{name:4,title:"发票抬头"}})],1)],1),i("keep-alive",[i("invoice"+t.active,{tag:"component",attrs:{toast:t.Toast,status:t.active,list:t.list,total:t.total,sinvoice:t.sinvoice},on:{getlist:function(e){return t.getList(!0)}}})],1),i("div",{directives:[{name:"show",rawName:"v-show",value:t.list&&t.list.length<=0&&!t.loading&&!t.isLoading,expression:"list &&list.length <=0 && !loading && !isLoading"}]},[i("yz-blank",{attrs:{text:"暂无数据",isBtn:!1}})],1),i("div",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],staticClass:"list-loading"},[i("van-loading",{attrs:{size:"1.5rem"}},[t._v("加载中...")])],1),i("van-divider",{directives:[{name:"show",rawName:"v-show",value:t.noMore&&!t.loading&&t.list.length>0,expression:"noMore && !loading && list.length >0"}],attrs:{dashed:""}},[t._v("没有更多的数据了~~~")])],1)},n=[],o=(i("e7e5"),i("d399")),s=(i("d3b7"),i("159b"),i("99af"),i("3ca3"),i("ddb0"),function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"content"},t._l(t.list,(function(e,a){return i("div",{key:a,staticClass:"content-item"},[i("item",{attrs:{lable:1==e.rise_type?"个人":"单位",text:t.get_invoice_type(e.invoice_type)}}),i("item",{attrs:{lable:"开票金额",text:t.$i18n.t("money")+e.price,color:"#f15353"}}),i("item",{attrs:{lable:"订单号",text:e.order_sn}},[i("div",{staticClass:"order-details",on:{click:function(i){return t.orderDetails(e.order_id)}}},[i("span",[t._v("订单详情")]),i("van-icon",{attrs:{name:"arrow"}})],1)]),i("item",{attrs:{lable:"申请时间",text:e.created_at}}),i("div",{staticClass:"van-hairline--top shop-box"},[i("div",{staticClass:"shop-box-left"},[i("i",{staticClass:"iconfont icon-fontclass-dianpu"}),i("span",{staticClass:"shop-name"},[t._v(t._s(e.shop_name))])]),i("router-link",{attrs:{to:t.fun.getUrl("invoiceDetails",{id:e.id})}},[i("div",{staticClass:"details"},[t._v("查看详情")])])],1)],1)})),0)}),l=[],c=(i("14d9"),i("ed66")),r={props:{list:{type:Array,default:[]}},data:function(){return{last_page:null,page:1,loading:!1,isLoading:!1}},methods:{get_invoice_type:function(t){switch(t){case 0:return"电子发票";case 1:return"普通发票";case 2:return"专用发票";case 81:return"数电专票";case 82:return"数电普票";default:return"其他发票"}},orderDetails:function(t){this.$router.push(this.fun.getUrl("HotelOrderDetail",{order_id:t,orderType:"shop"}))}},components:{item:c["a"]}},d=r,u=(i("41c8"),i("2877")),f=Object(u["a"])(d,s,l,!1,null,"08365967",null),h=f.exports,p=i("ac0d"),v=i("eb17"),g={mixins:[p["a"]],activated:function(){this.getList(!0)},data:function(){return{active:0,Toast:o["a"],httpUrl:"plugin.invoice.frontend.index.index",page:1,last_page:null,loading:!1,isLoading:!1,list:[],total:0,noMore:!1,isLoadMore:!0,sinvoice:[]}},methods:{initPage:function(){this.list=[],this.page=1,this.last_page=null,this.total=0},activeType:function(t){this.httpUrl=1==t||2==t?"plugin.invoice.frontend.index.index":3==t?"plugin.invoice.frontend.index.not-invoice":"plugin.invoice.frontend.rise.get-list",this.getList(!0)},getList:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.loading=e,this.initPage(),$http.get(this.httpUrl,{status:this.active,page:1}).then((function(e){var i=e.result,a=e.msg,n=e.data;t.loading=!1,t.isLoading=!1,1==i&&n?(n.data=n.data||[],3==t.active?(t.sinvoice=n.sinvoice,n.data.forEach((function(t){t.button_models=[{name:"申请开票",value:"apply_invoice",api:"test",type:""}]}))):4==t.active&&n.data.forEach((function(t){t.change=!1})),t.list=n.data,t.total=n.total,t.last_page=n.last_page):(t.last_page=1,Object(o["a"])(a))}))},getMoreData:function(){var t=this;if(this.isLoadMore=!1,this.page==this.last_page)return Object(o["a"])("没有更多的数据了"),this.noMore=!0,!1;this.loading=!0;var e=this.page+1;$http.get(this.httpUrl,{page:e}).then((function(i){var a=i.result,n=i.msg,s=i.data;t.loading=!1,t.isLoadMore=!0,1==a?(s.data=s.data||[],3==t.active?s.data.forEach((function(t){t.button_models=[{name:"申请开票",value:"apply_invoice",api:"test",type:""}]})):4==t.active&&s.data.forEach((function(t){t.change=!1})),t.list=t.list.concat(s.data),t.page=e):Object(o["a"])(n)}))},onRefresh:function(){this.getList(!1)}},components:{invoice1:h,invoice2:h,invoice3:function(){return Promise.all([i.e("chunk-commons"),i.e("chunk-2d2295a8"),i.e("chunk-62ea5054"),i.e("chunk-c62cefcc"),i.e("chunk-68dee918")]).then(i.bind(null,"f9ea"))},invoice4:function(){return i.e("chunk-d50c1068").then(i.bind(null,"6314"))},yzBlank:v["default"]}},m=g,b=(i("522f"),Object(u["a"])(m,a,n,!1,null,"29d5deb1",null));e["default"]=b.exports},c519:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".invoiceCenter[data-v-29d5deb1]{text-align:left}.list-loading[data-v-29d5deb1]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin:1rem 0}",""]),t.exports=e},c859:function(t,e,i){var a=i("e68b");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("499e").default;n("21c98a6c",a,!0,{sourceMap:!1,shadowMode:!1})},cbbd:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".content .order-details[data-v-08365967]{color:#f15353;font-size:.69rem}.content .content-item[data-v-08365967]{width:22.19rem;margin:.63rem auto;background-color:#fff;border-radius:.3rem;padding:1rem 1rem 0}.content .content-item .shop-box[data-v-08365967]{height:3rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-top:.5rem}.content .content-item .shop-box .shop-box-left[data-v-08365967]{color:#1d1d1d;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}.content .content-item .shop-box .shop-box-left .shop-name[data-v-08365967]{margin-left:.4rem;font-size:.81rem}.content .content-item .shop-box .details[data-v-08365967]{line-height:1.56rem;width:4.06rem;font-size:.69rem;border:.03rem solid #f15353;border-radius:.78rem;color:#f15353;text-align:center;margin-left:.5rem}",""]),t.exports=e},e68b:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".item[data-v-dfcccd74]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font-size:.875rem;padding:.4688rem 0}.item .item-left[data-v-dfcccd74]{width:6rem;color:#747474}.item .item-right[data-v-dfcccd74]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}",""]),t.exports=e},ed66:function(t,e,i){"use strict";var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"item"},[i("div",{staticClass:"item-left"},[t._v(t._s(t.lable))]),i("div",{staticClass:"item-right",style:{color:t.color?t.color:"#0c0d0e"}},[t._v(t._s(t.text))]),t._t("default")],2)},n=[],o={props:["lable","text","color"]},s=o,l=(i("4a8c"),i("2877")),c=Object(l["a"])(s,a,n,!1,null,"dfcccd74",null);e["a"]=c.exports}}]);