chunk-2d0b3109.91427ed9.js 3.1 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b3109"],{"277e":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-list-content"},[a("x-crud",{staticClass:"liu-crud-wrap",on:{load:e.onLoad},scopedSlots:e._u([{key:"slot-tabs",fn:function(){return[a("el-tabs",{staticClass:"liu-tabs",attrs:{type:"border-card"},on:{"tab-click":e.handleClick},model:{value:e.tabIndex,callback:function(t){e.tabIndex=t},expression:"tabIndex"}},e._l(e.tabsData,(function(e,t){return a("el-tab-pane",{key:t,attrs:{label:e.text,name:e.key}})})),1)]},proxy:!0},{key:"table-column-amount",fn:function(t){var n=t.scope;return[a("div",{staticClass:"flex-center-center"},[a("div",{},[e._v(e._s(1==n.row.io?"+":"-")+" "+e._s(n.row.amount))])])]}}])})],1)},r=[],l=a("60b5"),s=(a("6a61"),{data:function(){return{app:null,tabIndex:"1",tabsData:[{text:"零售",key:"1",val:0},{text:"零售可提现",key:"2",val:0},{text:"供应商",key:"3",val:0},{text:"供应商可提现",key:"4",val:0}]}},mounted:function(){var e=this.$route.query.type;switch(e){case"1":this.tabIndex="1";break;case"2":this.tabIndex="3";break;case"3":this.tabIndex="2";break;case"4":this.tabIndex="4";break}this.handleClick()},methods:{handleClick:function(){switch(this.tabIndex){case"1":this.app.refresh({ptStyle:1,tx:0});break;case"2":this.app.refresh({ptStyle:1,tx:2});break;case"3":this.app.refresh({ptStyle:2,tx:0});break;case"4":this.app.refresh({ptStyle:2,tx:2});break}},onLoad:function(e){var t=this,a=e.ctx,n=e.app;this.app=n,a.service(this.$service.ptYeChange).set("table",{columns:[{prop:"id",label:"ID",align:"center","min-width":"50px"},{prop:"sjName",label:"商家",align:"center","min-width":"60px"},{prop:"shopName",label:"门店",align:"center","min-width":"60px"},{prop:"event",label:"事项",align:"center","min-width":"200px"},{prop:"amount",label:"金额",align:"center",emptyText:"无",width:"100px"},{prop:"capitalType",label:"流水类型",align:"center",emptyText:"无",width:"90px"},{prop:"balance",label:"当前余额",align:"center",emptyText:"无",width:"120px"},{prop:"txBalance",label:"当前可提现",align:"center",emptyText:"无"},{prop:"addTime",label:"时间",align:"center",emptyText:"无"}],op:{visible:!0,props:{width:150,align:"center",fixed:"right",label:"操作"},layout:[]}}).set("layout",[["slot-tabs"],["flex1","refresh-btn"],["data-table"],["flex1","pagination"]]).on("refresh",function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(a,n){var r,l,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=n.next,e.next=3,r(a);case 3:if(l=e.sent,s=l.asset,!t.$util.isEmpty(s)){e.next=7;break}return e.abrupt("return",!1);case 7:t.tabsData[0].val=s.totalOrder,t.tabsData[1].val=s.unPayOrder,t.tabsData[2].val=s.unSendOrder,t.tabsData[3].val=s.sendingOrder,t.tabsData[4].val=s.finishOrder;case 12:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}()).done(),n.refresh({ptStyle:1,tx:0})}}}),i=s,p=a("5d22"),c=Object(p["a"])(i,n,r,!1,null,null,null);t["default"]=c.exports}}]);