(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-cb540710"],{"20e1":function(i,t,e){"use strict";e.r(t);var s=function(){var i=this,t=i.$createElement,e=i._self._c||t;return e("div",{staticClass:"list"},[e("van-list",{staticStyle:{"margin-top":"20px"},attrs:{finished:i.finished,"finished-text":"没有更多了"},on:{load:i.onLoad},model:{value:i.loading,callback:function(t){i.loading=t},expression:"loading"}},i._l(i.billList,(function(t){return e("van-swipe-cell",{key:t.name,scopedSlots:i._u([{key:"right",fn:function(){return[e("van-button",{attrs:{square:"",type:"danger",text:"删除"},on:{click:function(e){return i.del_taker(t)}}})]},proxy:!0}],null,!0)},[e("van-cell",{on:{click:function(e){return i.checkPeople(t)}}},[e("div",{staticClass:"record"},[e("div",{staticClass:"recordLeft"},[e("div",{staticClass:"recordName"},[i._v(i._s(t.checkTaker))]),1==t.invoiceMedium?e("div",{staticClass:"recordTime"},[i._v(" "+i._s(t.address)+" ")]):i._e(),0==t.invoiceMedium?e("div",{staticClass:"recordTime"},[i._v(" "+i._s(t.email)+" ")]):i._e()]),e("div",{staticClass:"isdefault_"},[i._v(" "+i._s(1==t.isDefault?"默认":"")+" ")])])])],1)})),1),e("div",{staticClass:"next-click"},[e("div",{staticClass:"nextButton"},[e("div",{staticClass:"clickBtn",on:{click:i.nextPage}},[i._v("新增收票人")])])]),e("van-popup",{style:{height:"50%"},attrs:{position:"bottom"},model:{value:i.show,callback:function(t){i.show=t},expression:"show"}},[e("div",{staticClass:"invoiceConditions"},[e("div",{staticClass:"invoiceItem"},[e("div",[i._v("店铺")]),e("div",{staticClass:"itemSelect"},[e("van-popover",{attrs:{trigger:"click",theme:"dark",placement:"left-start",actions:i.shopList},on:{select:i.shopSelect},scopedSlots:i._u([{key:"reference",fn:function(){return[e("van-button",[i._v(i._s(i.invoiceParam.shopName))])]},proxy:!0}]),model:{value:i.shopPopover,callback:function(t){i.shopPopover=t},expression:"shopPopover"}}),e("span",{staticClass:"downArrow"})],1)]),e("div",{staticClass:"paramBtn"},[e("div",{on:{click:i.hanldReset}},[i._v("重置")]),e("div",{on:{click:i.hanldConfirm}},[i._v("保存")])])])])],1)},a=[],n=(e("e17f"),e("2241")),o=(e("99af"),e("d3b7"),e("3ca3"),e("ddb0"),e("2b3d"),e("365c")),c={name:"InvoiceUserTicket",data:function(){return{title:"常用收票人",active:"1",show:!1,searchIcon:e("6b67"),isCkeckAll:!1,invoiceParam:{pageNum:1,pageSize:10,userId:"1"},billTotal:0,billList:[],finished:!1,loading:!1,shopPopover:!1,shopList:[],postParams:{}}},created:function(){},methods:{visibilityEve:function(){var i=this;this.$utils.visibilityEve((function(){i.postParams={}}))},onNativeShow:function(){console.log(123456),this.finished=!1,this.invoiceParam.pageNum=1,this.getInvoice()},getInvoice:function(){var i=this;o["a"].getUserList(this.invoiceParam).then((function(t){0==t.code&&(i.loading=!1,i.billTotal=t.data.total,1==i.invoiceParam.pageNum?i.billList=t.data.records:i.billList=i.billList.concat(t.data.records),i.billList.length==t.data.total&&(i.finished=!0))}))},onLoad:function(){this.billList.length>0?this.billList.length<this.billTotal&&(this.invoiceParam.pageNum+=1,this.getInvoice()):this.getInvoice()},nextPage:function(){this.invoiceParam.creatOrUpdate="0",this.postParams=this.invoiceParam,this.postParams.id="",this.$router.push({path:"/invoiceAddTicket",query:this.postParams})},checkPeople:function(i){this.invoiceParam.creatOrUpdate="1";var t={id:i.id};this.postParams=Object.assign(this.invoiceParam,t),this.$router.push({path:"/invoiceAddTicket",query:this.postParams})},hanldDialog:function(){this.show=!0},testin:function(i){i.stopPropagation()},shopSelect:function(i){this.invoiceParam.shopId=i.key,this.invoiceParam.shopName=i.text},hanldReset:function(){this.show=!1,this.invoiceParam.shopName=this.shopList[0].text,this.invoiceParam.shopId=this.shopList[0].key,this.invoiceParam.pageNum=1,this.finished=!1,this.getInvoice()},hanldConfirm:function(){this.show=!1,this.invoiceParam.pageNum=1,this.finished=!1,this.getInvoice()},del_taker:function(i){var t=this;n["a"].confirm({title:"提示",message:"确定删除么？",confirmButtonText:"确定",cancelButtonText:"取消"}).then((function(){var e=new URLSearchParams;e.append("id",i.id),o["a"].deleteInvoiceCheckTaker(e).then((function(i){0==i.code&&(t.invoiceParam.pageNum=1,t.finished=!1,t.getInvoice())}))})).catch((function(){}))}}},l=c,r=(e("2cc6"),e("2877")),h=Object(r["a"])(l,s,a,!1,null,null,null);t["default"]=h.exports},"2cc6":function(i,t,e){"use strict";e("d58d")},d58d:function(i,t,e){}}]);