chunk-336a8bf9.b4e745ce.js 6.3 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-336a8bf9"],{"7adb":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{data:t.tableData.list,"header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"}}},[a("el-table-column",{attrs:{prop:"id",label:"编号",fixed:"left",width:"60"}}),a("el-table-column",{attrs:{prop:"wxAccount",label:"提现帐号",width:"150","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[1===e.row.classify?a("span",[t._v(" "+t._s(e.row.alipayAccount?e.row.alipayAccount:"-")+" ")]):a("span",[t._v(" "+t._s(e.row.wxAccount?e.row.wxAccount:"-")+" ")])]}}])}),a("el-table-column",{attrs:{prop:"wxName",label:"提现帐号名称",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[1===e.row.classify?a("span",[t._v(" "+t._s(e.row.alipayName?e.row.alipayName:"-")+" ")]):a("span",[t._v(" "+t._s(e.row.wxName?e.row.wxName:"-")+" ")])]}}])}),a("el-table-column",{attrs:{prop:"wxImg",label:"收款二维码",width:"120",className:"image-cell"},scopedSlots:t._u([{key:"default",fn:function(e){return[1===e.row.classify?a("div",[null==e.row.alipayImg||""===e.row.alipayImg?a("span",[t._v("暂无图片")]):t._e(),e.row.alipayImg?a("span",[a("el-image",{staticStyle:{width:"40px",height:"40px"},attrs:{src:e.row.alipayImg,"preview-src-list":[e.row.alipayImg],fit:"cover"}})],1):t._e()]):a("div",[null==e.row.wxImg||""===e.row.wxImg?a("span",[t._v("暂无图片")]):t._e(),e.row.wxImg?a("span",[a("el-image",{staticStyle:{width:"40px",height:"40px"},attrs:{src:e.row.wxImg,"preview-src-list":[e.row.wxImg],fit:"cover"}})],1):t._e()])]}}])}),a("el-table-column",{attrs:{prop:"classify",label:"提现方式",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[1===e.row.classify?a("span",[t._v("支付宝")]):2===e.row.classify?a("span",[t._v("微信小程序")]):3===e.row.classify?a("span",[t._v("微信公众号")]):a("span",[t._v("暂无")])]}}])}),a("el-table-column",{attrs:{prop:"money",label:"提现金额",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.row;return[a("span",[t._v("¥ "+t._s(o.money.toFixed(2)))])]}}])}),a("el-table-column",{attrs:{prop:"state",label:"状态",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.state?a("span",{staticStyle:{color:"#4f9dec"}},[t._v("待转账")]):t._e(),1===e.row.state?a("span",[t._v("已转账")]):t._e(),-1===e.row.state?a("span",[t._v("已拒绝")]):t._e()]}}])}),a("el-table-column",{attrs:{prop:"createTime",label:"申请时间",width:"160"}}),a("el-table-column",{attrs:{prop:"outTime",label:"转账/拒绝时间",width:"160"}}),a("el-table-column",{attrs:{prop:"ordersNo",label:"转账订单号",width:"160"}}),a("el-table-column",{attrs:{prop:"reason",label:"拒绝原因",width:"160","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{fixed:"right",label:"操作",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-success",disabled:0!=e.row.state},on:{click:function(a){return t.handleCashSubmit(e.row)}}},[t._v("转帐 ")]),a("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-error",disabled:0!=e.row.state},on:{click:function(a){return t.showRefuseDialog(e.row)}}},[t._v("拒绝 ")])]}}])})],1),a("el-dialog",{attrs:{title:t.dialogTitle,visible:t.dialogRefuseVisible,center:""},on:{close:t.onClose,"update:visible":function(e){t.dialogRefuseVisible=e}}},[a("el-form",{attrs:{model:t.dialogForm}},[a("el-form-item",{attrs:{label:"拒绝原因:","label-width":t.formLabelWidth}},[a("el-input",{staticStyle:{width:"65%"},attrs:{type:"textarea",rows:"4",placeholder:"请输入拒绝原因"},model:{value:t.dialogForm.reason,callback:function(e){t.$set(t.dialogForm,"reason",e)},expression:"dialogForm.reason"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.hideDialog}},[t._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.handleRefuseSubmit()}}},[t._v("确 定")])],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.tableData.total,expression:"tableData.total"}],attrs:{total:t.tableData.total,page:t.queryParams.pageNum,limit:t.queryParams.pageSize},on:{"update:page":function(e){return t.$set(t.queryParams,"pageNum",e)},"update:limit":function(e){return t.$set(t.queryParams,"pageSize",e)},pagination:t.getList}})],1)},i=[],l={name:"UserCashOut",data:function(){return{loading:!1,ids:[],single:!0,multiple:!0,showSearch:!0,queryParams:{pageNum:1,pageSize:10,userId:void 0},tableData:{list:[],total:0},dialogRefuseVisible:!1,dialogTitle:"拒绝提现申请",formLabelWidth:"200px",dialogForm:{cashId:"",reason:""}}},mounted:function(){},methods:{activated:function(t){this.queryParams.userId=t,this.getList()},getList:function(){var t=this;this.loading=!0,this.request({url:"/api/admin/cash/cashOutList",method:"get",params:this.queryParams}).then((function(e){t.loading=!1,200===e.code&&(t.tableData.list=e.rows,t.tableData.total=e.total)})).catch((function(){t.loading=!1}))},handleCashSubmit:function(t){var e=this;this.$confirm("确定提交提现转帐?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return e.request({url:"/api/admin/cash/cashPay",method:"post",params:{cashId:t.id}}).then((function(t){e.msgResponse(t)}))})).then((function(){e.handleQuery()})).catch((function(){}))},showRefuseDialog:function(t){this.dialogForm.cashId=t.id,this.dialogForm.reason="",this.dialogTitle="拒绝提现申请",this.dialogRefuseVisible=!0},handleRefuseSubmit:function(){var t=this;this.validateForm()&&this.request({url:"api/admin/cash/refuse",method:"get",params:this.dialogForm}).then((function(e){t.msgResponse(e),setTimeout((function(){t.hideDialog()}),500)})).then((function(){t.handleQuery()})).catch((function(){}))},validateForm:function(){return!0},hideDialog:function(){this.onClose()},onClose:function(){this.dialogRefuseVisible=!1}}},s=l,n=(a("f0d2"),a("2877")),r=Object(n["a"])(s,o,i,!1,null,null,null);e["default"]=r.exports},"89d3":function(t,e,a){},f0d2:function(t,e,a){"use strict";a("89d3")}}]);