chunk-2d0b3109.0f3a4e4c.js 3.0 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._self._c;return t("div",{staticClass:"app-list-content"},[t("x-crud",{staticClass:"liu-crud-wrap",on:{load:e.onLoad},scopedSlots:e._u([{key:"slot-tabs",fn:function(){return[t("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,a){return t("el-tab-pane",{key:a,attrs:{label:e.text,name:e.key}})})),1)]},proxy:!0},{key:"table-column-amount",fn:function(a){var n=a.scope;return[t("div",{staticClass:"flex-center-center"},[t("div",{},[e._v(e._s(1==n.row.io?"+":"-")+" "+e._s(n.row.amount))])])]}}])})],1)},r=[],l=a("b57b"),s=a("8998"),i={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(s["a"])(Object(l["a"])().m((function e(a,n){var r,s,i;return Object(l["a"])().w((function(e){while(1)switch(e.n){case 0:return r=n.next,e.n=1,r(a);case 1:if(s=e.v,i=s.asset,!t.$util.isEmpty(i)){e.n=2;break}return e.a(2,!1);case 2:t.tabsData[0].val=i.totalOrder,t.tabsData[1].val=i.unPayOrder,t.tabsData[2].val=i.unSendOrder,t.tabsData[3].val=i.sendingOrder,t.tabsData[4].val=i.finishOrder;case 3:return e.a(2)}}),e)})));return function(t,a){return e.apply(this,arguments)}}()).done(),n.refresh({ptStyle:1,tx:0})}}},p=i,c=a("1805"),o=Object(c["a"])(p,n,r,!1,null,null,null);t["default"]=o.exports}}]);