chunk-1fb0f5fb.88cdf606.js 4.6 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1fb0f5fb"],{"3f5d":function(t,e,a){"use strict";a("a0e4")},a0e4:function(t,e,a){},dd9c:function(t,e,a){"use strict";a.r(e);var l=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-list-content"},[e("x-crud",{staticClass:"liu-crud-wrap",on:{load:t.onLoad},scopedSlots:t._u([{key:"slot-tabs",fn:function(a){a.scope;return[e("el-tabs",{staticClass:"liu-tabs",attrs:{type:"border-card"},on:{"tab-click":t.handleClick},model:{value:t.tabIndex,callback:function(e){t.tabIndex=e},expression:"tabIndex"}},t._l(t.tabsData,(function(t,a){return e("el-tab-pane",{key:a,attrs:{label:t.text,name:t.key}})})),1)]}},{key:"slot-apply",fn:function(a){var l=a.scope;return[1==l.row.status?[e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.showModalFn(l.row)}}},[t._v("审核")])]:t._e()]}},{key:"table-column-status",fn:function(a){var l=a.scope;return[1==l.row.status?[e("span",[t._v("待审核")])]:2==l.row.status?[e("span",{staticClass:"success_color"},[t._v("通过")])]:3==l.row.status?[e("span",{staticClass:"error_color"},[t._v("未通过")])]:[e("span",{staticClass:"error_color"},[t._v("-")])]]}},{key:"slot-total-amount",fn:function(){return[e("span",{staticStyle:{"font-size":"15px","font-weight":"bold"}},[t._v("累计提现:"+t._s(t.totalAmount))])]},proxy:!0}])}),e("el-dialog",{attrs:{title:"审核",visible:t.applyDialog,"close-on-click-modal":!1,width:"500px"},on:{"update:visible":function(e){t.applyDialog=e}}},[e("div",{staticClass:"ad-modal-content"},[e("el-form",{ref:"form",staticClass:"demo-form",attrs:{model:t.form,rules:t.rule,"label-width":"100px"}},[e("el-form-item",{attrs:{label:"状态",prop:"status"}},[e("el-radio-group",{model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},[e("el-radio",{attrs:{label:"2"}},[t._v("通过")]),e("el-radio",{attrs:{label:"3"}},[t._v("拒绝")])],1)],1),e("el-form-item",{attrs:{label:"备注",prop:"remark"}},[e("el-input",{attrs:{type:"textarea"},model:{value:t.form.remark,callback:function(e){t.$set(t.form,"remark",e)},expression:"form.remark"}})],1)],1)],1),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{size:"small"},on:{click:t.resetForm}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.applyFn}},[t._v("确认")])],1)])],1)},o=[],r=a("b57b"),s=a("8998"),n={data:function(){return{app:null,applyDialog:!1,form:{id:"",status:"2",remark:""},rule:{},tabsData:[{text:"全部",key:"0"},{text:"待审核",key:"1"}],tabIndex:"0",totalAmount:0}},mounted:function(){},methods:{handleClick:function(t,e){this.app.refresh({status:this.tabIndex})},showModalFn:function(t){this.form.id=t.id,this.applyDialog=!0},applyFn:function(){var t=this;this.$service.cash.check(this.form).then((function(e){t.app.refresh(),t.$message.success("操作成功"),t.resetForm()}))},resetForm:function(){this.$refs["form"].resetFields(),this.applyDialog=!1},onLoad:function(t){var e=this,a=t.ctx,l=t.app;this.app=l,a.service(this.$service.cash).set("table",{columns:[{prop:"id",label:"ID",align:"center",width:"70"},{prop:"sjName",label:"商家",align:"center",width:"100"},{prop:"shopName",label:"门店",align:"center",width:"100"},{prop:"sjId",label:"商家ID",align:"center",width:"90"},{prop:"shopId",label:"门店ID",align:"center",width:"90"},{prop:"cashName",label:"申请人",align:"center",width:"100"},{prop:"cashAccount",label:"收款帐号",align:"center",width:"100"},{prop:"amount",label:"申请提现",align:"center",emptyText:"无",width:"100"},{prop:"beAmount",label:"应转",align:"center",emptyText:"无",width:"100"},{prop:"getAmount",label:"到帐",align:"center",emptyText:"无",width:"100"},{prop:"thirdOrderSn",label:"提现回执",align:"center",emptyText:"",width:"130"},{prop:"remark",label:"备注",align:"center",emptyText:"",width:"160"},{prop:"status",label:"状态",align:"center",emptyText:"无"},{prop:"addTime",label:"提交时间",align:"center",emptyText:"无",width:"135"}],op:{visible:!0,props:{width:150,align:"center",fixed:"right",label:"操作"},layout:["slot-apply"]}}).set("layout",[["slot-tabs"],["flex1","refresh-btn"],["data-table"],["slot-total-amount","flex1","pagination"]]).on("refresh",function(){var t=Object(s["a"])(Object(r["a"])().m((function t(a,l){var o,s;return Object(r["a"])().w((function(t){while(1)switch(t.n){case 0:return o=l.next,t.n=1,o(a);case 1:s=t.v,e.totalAmount=s.totalAmount?s.totalAmount:0;case 2:return t.a(2)}}),t)})));return function(e,a){return t.apply(this,arguments)}}()).done(),l.refresh()}}},i=n,c=(a("3f5d"),a("1805")),p=Object(c["a"])(i,l,o,!1,null,"207e22fe",null);e["default"]=p.exports}}]);