webpackJsonp([31],{F5pf:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("CCn6"),o={name:"putForward",data:function(){var t=this;return{today:{text:"今天",onClick:function(e){e.$emit("pick",[t.formatTime(new Date)+" 00:00:00",t.formatTime(new Date)+" 23:59:59"])}},yesterday:{text:"昨天",onClick:function(e){var a=t.formatTime(new Date((new Date).getTime()-864e5));e.$emit("pick",[a+" 00:00:00",a+" 23:59:59"])}},last30Day:{text:"过去30天",onClick:function(e){var a=t.formatTime(new Date((new Date).getTime()-2592e6));e.$emit("pick",[a+" 00:00:00",t.formatTime(new Date)+" 23:59:59"])}},last7Day:{text:"过去7天",onClick:function(e){var a=t.formatTime(new Date((new Date).getTime()-6048e5));e.$emit("pick",[a+" 00:00:00",t.formatTime(new Date)+" 23:59:59"])}},nowPage:1,total:0,limit:10,search:{key:"",status:"1",payTime:[]},liStatus:[{label:"全部",status:""},{label:"申请中",status:0},{label:"提现成功",status:1},{label:"提现失败",status:2}],tableData:[],showDialog:!1,showDesc:!1,dialogTitle:"审核",nowObj:{id:"",status:1,reason:"",desc:""},page:{current:1,pageSize:100,total:0},putForwardDialog:{show:!1,user_id:"",userLabel:"",money:0,desc:""},userList:[],rules:{userLabel:[{required:!0,message:"请选择用户",trigger:"change"}],money:[{required:!0,message:"请输入提现金额",trigger:"change"}],desc:[{required:!0,message:"请输入提现说明",trigger:"change"}]},searchFrom:{},selectUserList:[],userDialog:{show:!1,nowPage:1,total:0,limit:5}}},components:{page:a("kmJW").a},filters:{moneyYuan:function(t){return t?(t/100).toFixed(2)+"元":"0元"},filterStatus:function(t){var e="";return 0===t.status?e="审核中":1===t.status?e="提现成功":2===t.status&&(e="提现失败("+t.reason+")"),e},userLabel:function(t){return t.nickname+"["+t.user_id+"]"}},mounted:function(){this.getList()},methods:{formatTime:function(t){var e=t.getFullYear(),a=t.getMonth()+1;a<10&&(a="0"+a);var s=t.getDate();return s<10&&(s="0"+s),e+"-"+a+"-"+s},onSizeChange:function(t){this.nowPage=1,this.limit=t,this.getList()},exportTable:function(){var t={};this.search.withdraw_no&&(t.withdraw_no=this.search.withdraw_no),this.search.out_trade_no&&(t.out_trade_no=this.search.out_trade_no),(this.search.status||0===this.search.status)&&(t.status=this.search.status),this.search.user_id&&(t.user_id=this.search.user_id),this.search.money&&(t.money=100*parseFloat(this.search.money)),Object(s._18)("/api/admin/withdraw/export",t)},getList:function(){var t=this,e={limit:this.limit,page:this.nowPage};this.search.withdraw_no&&(e.withdraw_no=this.search.withdraw_no),this.search.out_trade_no&&(e.out_trade_no=this.search.out_trade_no),this.search.status&&"-1"!==this.search.status&&(e.status=this.search.status),this.search.user_id&&(e.user_id=this.search.user_id),this.search.payTime&&this.search.payTime.length>0&&(e.success_start_at=this.search.payTime[0],e.success_end_at=this.search.payTime[1]),this.search.money&&(e.money=100*parseFloat(this.search.money)),Object(s._91)(e).then(function(e){t.tableData=e.list,t.total=e.total})},onSearch:function(){this.nowPage=1,this.getList()},checkMoney:function(t){this.nowObj.id=t,this.showDesc=!1,this.showDialog=!0},addDesc:function(t,e){this.nowObj.id=t,this.nowObj.desc=e,this.showDesc=!0,this.showDialog=!0},onPageChange:function(t){this.nowPage=t,this.page.current=t,this.getList()},doCallback:function(){this.nowObj.id="",this.nowObj.status=1,this.nowObj.reason="",this.nowObj.desc="",this.page.current=1,this.showDialog=!1,this.getList(),this.$message({message:"提交成功",type:"success"})},onSave:function(t){var e=this;if(t){var a={desc:this.nowObj.desc};if(""===a.desc||null==a.desc)return this.$message.error("请填写备注"),!1;Object(s._10)(this.nowObj.id,"withdraw",a).then(function(t){e.doCallback()})}else{var o={reason:this.nowObj.reason,status:this.nowObj.status};if((""===o.reason||null==o.reason)&&2===o.status)return this.$message.error("请填写失败理由"),!1;o.reason="",Object(s._143)(this.nowObj.id,o).then(function(t){e.doCallback()})}},manualPutForward:function(){this.putForwardDialog.show=!0,this.putForwardDialog.user_id="",this.putForwardDialog.userLabel="",this.putForwardDialog.money=0,this.putForwardDialog.desc="",this.getUserList()},getUserList:function(){var t=this,e={limit:this.userDialog.limit,page:this.userDialog.nowPage};this.searchFrom.userId&&(e.user_id=this.searchFrom.userId),this.searchFrom.nickName&&(e.nickname=this.searchFrom.nickName),this.searchFrom.mobile&&(e.mobile=this.searchFrom.mobile),Object(s._86)(e).then(function(e){t.userList=e.list,t.userDialog.total=e.total})},confirmPutForward:function(){var t=this,e={user_id:this.putForwardDialog.user_id,money:this.putForwardDialog.money,desc:this.putForwardDialog.desc};this.$refs.refPutForward.validate(function(a){if(!a)return!1;t.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s._101)(e).then(function(e){t.$message({type:"success",message:"保存成功"}),t.getList(),t.putForwardDialog.show=!1})})})},handleSelectionChange:function(t){this.selectUserList=t},onUserPageChange:function(t){this.userDialog.nowPage=t,this.getUserList()},onUserSizeChange:function(t){this.userDialog.limit=t,this.userDialog.nowPage=1,this.getUserList()},onAdd:function(){0!==this.selectUserList.length?1===this.selectUserList.length?(this.putForwardDialog.userLabel=this.selectUserList[0].nickname+"["+this.selectUserList[0].user_id+"]",this.putForwardDialog.user_id=this.selectUserList[0].user_id,this.userDialog.show=!1):this.$message({type:"error",message:"只能选择一个用户!"}):this.$message({type:"error",message:"请选择用户!"})}}},r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"putForward"},[a("el-form",{staticClass:"demo-form-inline",attrs:{model:t.search,inline:"","label-width":"80px"}},[a("el-form-item",{attrs:{label:"提现单号"}},[a("el-input",{attrs:{placeholder:"提现单号"},model:{value:t.search.withdraw_no,callback:function(e){t.$set(t.search,"withdraw_no",e)},expression:"search.withdraw_no"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"订单号"}},[a("el-input",{attrs:{placeholder:"订单号"},model:{value:t.search.out_trade_no,callback:function(e){t.$set(t.search,"out_trade_no",e)},expression:"search.out_trade_no"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"用户ID"}},[a("el-input",{attrs:{placeholder:"用户ID"},model:{value:t.search.user_id,callback:function(e){t.$set(t.search,"user_id",e)},expression:"search.user_id"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"提现金额"}},[a("el-input",{attrs:{placeholder:"提现金额"},model:{value:t.search.money,callback:function(e){t.$set(t.search,"money",e)},expression:"search.money"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"提现时间"}},[a("el-date-picker",{attrs:{type:"daterange","range-separator":"至","value-format":"yyyy-MM-dd","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["00:00:00","23:59:59"],"picker-options":{shortcuts:[t.today,t.yesterday,t.last7Day,t.last30Day]}},model:{value:t.search.payTime,callback:function(e){t.$set(t.search,"payTime",e)},expression:"search.payTime"}})],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v("查询")]),t._v(" "),t.$store.state.export?a("el-button",{attrs:{type:"primary"},on:{click:t.exportTable}},[t._v("导出")]):t._e(),t._v(" "),t.$store.state.readonly?t._e():a("el-button",{attrs:{type:"primary"},on:{click:t.manualPutForward}},[t._v("手动提现")])],1)],1),t._v(" "),a("el-tabs",{staticStyle:{background:"white","padding-top":"10px"},attrs:{type:"card"},on:{"tab-click":t.onSearch},model:{value:t.search.status,callback:function(e){t.$set(t.search,"status",e)},expression:"search.status"}},[a("el-tab-pane",{attrs:{label:"提现成功",name:"1"}}),t._v(" "),a("el-tab-pane",{attrs:{label:"申请中",name:"0"}}),t._v(" "),a("el-tab-pane",{attrs:{label:"申请失败",name:"2"}}),t._v(" "),a("el-tab-pane",{attrs:{label:"全部",name:"-1"}})],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,border:"",fixed:""}},[a("el-table-column",{attrs:{prop:"withdraw_no",label:"提现单号"}}),t._v(" "),a("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),t._v(" "),a("el-table-column",{attrs:{label:"用户",width:"200",className:"f-c"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticClass:"avatar",attrs:{src:e.row.user_avatar}}),t._v(" "+t._s(e.row.user_nickname)+"(ID:"+t._s(e.row.user_id)+")\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"user_mobile",label:"手机号"}}),t._v(" "),a("el-table-column",{attrs:{label:"提现金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneyYuan")(e.row.money))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提现状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:{status:!0,red:2===e.row.status,green:1===e.row.status}},[t._v("\n "+t._s(t._f("filterStatus")(e.row))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提现成功时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.success_at)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提现时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.created_at)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}}),t._v(" "),t.$store.state.readonly?t._e():a("el-table-column",{attrs:{label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.status?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.checkMoney(e.row.id,e.row.desc)}}},[t._v("\n 审核\n ")]):t._e(),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.addDesc(e.row.id,e.row.desc)}}},[t._v("\n 添加备注\n ")])]}}])})],1),t._v(" "),a("page",{attrs:{nowPage:t.nowPage,total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange}}),t._v(" "),t.showDialog?a("el-dialog",{attrs:{title:t.dialogTitle,visible:t.showDialog},on:{"update:visible":function(e){t.showDialog=e}}},[a("el-form",{ref:"saveuser",attrs:{model:t.nowObj,"label-width":"70px"}},[t.showDesc?t._e():a("el-form-item",{attrs:{label:"订单状态"}},[[a("el-radio-group",{model:{value:t.nowObj.status,callback:function(e){t.$set(t.nowObj,"status",e)},expression:"nowObj.status"}},[a("el-radio",{attrs:{label:1}},[t._v("提现成功")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("提现失败")])],1)]],2),t._v(" "),2!==t.nowObj.status||t.showDesc?t._e():a("el-form-item",{attrs:{label:"失败理由"}},[a("el-input",{attrs:{type:"textarea",rows:"3","auto-complete":"off"},model:{value:t.nowObj.reason,callback:function(e){t.$set(t.nowObj,"reason",e)},expression:"nowObj.reason"}})],1),t._v(" "),t.showDesc?a("el-form-item",{attrs:{label:"备注信息"}},[a("el-input",{attrs:{type:"textarea",rows:"3","auto-complete":"off"},model:{value:t.nowObj.desc,callback:function(e){t.$set(t.nowObj,"desc",e)},expression:"nowObj.desc"}})],1):t._e()],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.onSave(t.showDesc)}}},[t._v("保 存")]),t._v(" "),a("el-button",{on:{click:function(e){t.showDialog=!1}}},[t._v("取 消")])],1)],1):t._e(),t._v(" "),t.putForwardDialog.show?a("el-dialog",{attrs:{title:"手动提现",visible:t.putForwardDialog.show},on:{"update:visible":function(e){t.$set(t.putForwardDialog,"show",e)}}},[a("el-form",{ref:"refPutForward",attrs:{model:t.putForwardDialog,rules:t.rules,"label-width":"80px"}},[a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"用户",prop:"userLabel"}},[a("el-input",{attrs:{readonly:"",placeholder:"请选择用户"},model:{value:t.putForwardDialog.userLabel,callback:function(e){t.$set(t.putForwardDialog,"userLabel",e)},expression:"putForwardDialog.userLabel"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:4}},[a("el-button",{staticStyle:{float:"right"},attrs:{type:"primary"},on:{click:function(e){t.userDialog.show=!0}}},[t._v("选择用户")])],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"提现金额",prop:"money"}},[a("el-input-number",{attrs:{min:0,placeholder:"提现金额"},model:{value:t.putForwardDialog.money,callback:function(e){t.$set(t.putForwardDialog,"money",e)},expression:"putForwardDialog.money"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"提现说明",prop:"desc"}},[a("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入内容"},model:{value:t.putForwardDialog.desc,callback:function(e){t.$set(t.putForwardDialog,"desc",e)},expression:"putForwardDialog.desc"}})],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.putForwardDialog.show=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.confirmPutForward}},[t._v("确 定")])],1),t._v(" "),a("el-dialog",{attrs:{modal:!1,visible:t.userDialog.show},on:{"update:visible":function(e){t.$set(t.userDialog,"show",e)}}},[a("el-form",{attrs:{"label-width":"90px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"ID"}},[a("el-input",{model:{value:t.searchFrom.userId,callback:function(e){t.$set(t.searchFrom,"userId",e)},expression:"searchFrom.userId"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"昵称"}},[a("el-input",{model:{value:t.searchFrom.nickName,callback:function(e){t.$set(t.searchFrom,"nickName",e)},expression:"searchFrom.nickName"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"电话"}},[a("el-input",{model:{value:t.searchFrom.mobile,callback:function(e){t.$set(t.searchFrom,"mobile",e)},expression:"searchFrom.mobile"}})],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:8,offset:16}},[a("el-form-item",[a("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",plain:""},on:{click:t.getUserList}},[t._v("搜索")])],1)],1)],1)],1),t._v(" "),a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.userList},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),t._v(" "),a("el-table-column",{attrs:{className:"f-c",label:"用户"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticStyle:{"margin-right":"5px",width:"50px",height:"50px","border-radius":"50px"},attrs:{src:e.row.avatar}}),t._v(t._s(e.row.nickname)+"(ID:"+t._s(e.row.user_id)+")\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"mobile",label:"手机号"}})],1),t._v(" "),a("page",{attrs:{total:t.userDialog.total,limit:t.userDialog.limit},on:{pageChange:t.onUserPageChange,sizeChange:t.onUserSizeChange}}),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.userDialog.show=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.onAdd}},[t._v("确 定")])],1)],1)],1):t._e()],1)};r._withStripped=!0;var n={render:r,staticRenderFns:[]},i=n;var l=!1;var c=a("VU/8")(o,i,!1,function(t){l||(a("teZk"),a("k6C/"))},"data-v-5621cbc8",null);c.options.__file="src\\components\\putForward\\index.vue";e.default=c.exports},JJOv:function(t,e,a){(t.exports=a("FZ+f")(!0)).push([t.i,"\n.f-c > .cell {\n display: -webkit-box !important;\n display: -ms-flexbox !important;\n display: flex !important;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-flow: row;\n flex-flow: row;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n","",{version:3,sources:["C:/Users/Administrator/Desktop/后台/admin/src/components/putForward/index.vue"],names:[],mappings:";AACA;EACE,gCAAgC;EAChC,gCAAgC;EAChC,yBAAyB;EACzB,+BAA+B;EAC/B,8BAA8B;MAC1B,mBAAmB;UACf,eAAe;EACvB,wBAAwB;MACpB,qBAAqB;UACjB,4BAA4B;EACpC,0BAA0B;MACtB,uBAAuB;UACnB,oBAAoB;CAC7B",file:"index.vue",sourcesContent:["\n.f-c > .cell {\n display: -webkit-box !important;\n display: -ms-flexbox !important;\n display: flex !important;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-flow: row;\n flex-flow: row;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n"],sourceRoot:""}])},"k6C/":function(t,e,a){var s=a("JJOv");"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);a("rjj0")("33054797",s,!1,{})},teZk:function(t,e,a){var s=a("wJWK");"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);a("rjj0")("e8a70c02",s,!1,{})},wJWK:function(t,e,a){(t.exports=a("FZ+f")(!0)).push([t.i,"\n.putForward[data-v-5621cbc8] {\n padding: 20px 0;\n}\n.status[data-v-5621cbc8]{\n color: #e9a038;\n}\n.status.red[data-v-5621cbc8]{\n color: #c30005;\n}\n.status.green[data-v-5621cbc8]{\n color: #00ac00;\n}\n.avatar[data-v-5621cbc8]{\n width: 50px;\n margin-right: 5px;\n border-radius: 50%;\n height: 50px;\n}\n","",{version:3,sources:["C:/Users/Administrator/Desktop/后台/admin/src/components/putForward/index.vue"],names:[],mappings:";AACA;EACE,gBAAgB;CACjB;AACD;EACE,eAAe;CAChB;AACD;EACE,eAAe;CAChB;AACD;EACE,eAAe;CAChB;AACD;EACE,YAAY;EACZ,kBAAkB;EAClB,mBAAmB;EACnB,aAAa;CACd",file:"index.vue",sourcesContent:["\n.putForward[data-v-5621cbc8] {\n padding: 20px 0;\n}\n.status[data-v-5621cbc8]{\n color: #e9a038;\n}\n.status.red[data-v-5621cbc8]{\n color: #c30005;\n}\n.status.green[data-v-5621cbc8]{\n color: #00ac00;\n}\n.avatar[data-v-5621cbc8]{\n width: 50px;\n margin-right: 5px;\n border-radius: 50%;\n height: 50px;\n}\n"],sourceRoot:""}])}});
-
chenyishuai@singsingenglish.com authorede9225a7f