• 王's avatar
    build · e7c42b38
    authored
    e7c42b38
17.75bf74af802bb6b63fcd.js 10.4 KB
webpackJsonp([17],{"6swy":function(t,e,a){var s=a("fUYk");"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);a("rjj0")("367aeb1c",s,!1,{})},F5pf:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("CCn6"),n={name:"putForward",data:function(){return{nowPage:1,total:0,limit:10,search:{key:"",status:1},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}}},components:{page:a("kmJW").a},filters:{moneyYuan:function(t){return t?(t/100).toFixed(2)+"元":""},filterStatus:function(t){var e="";return 0===t?e="审核中":1===t?e="提现成功":2===t&&(e="提现失败"),e}},mounted:function(){this.getList()},methods:{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._2)("/api/public/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||0===this.search.status)&&(e.status=this.search.status),this.search.user_id&&(e.user_id=this.search.user_id),this.search.money&&(e.money=100*parseFloat(this.search.money)),Object(s._53)(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.Y)(this.nowObj.id,"withdraw",a).then(function(t){e.doCallback()})}else{var n={reason:this.nowObj.reason,status:this.nowObj.status};if((""===n.reason||null==n.reason)&&2===n.status)return this.$message.error("请填写失败理由"),!1;n.reason="",Object(s._77)(this.nowObj.id,n).then(function(t){e.doCallback()})}}}},o=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:"订单状态"}},[a("el-select",{attrs:{placeholder:"用户名/手机/课程名称"},on:{change:t.onSearch},model:{value:t.search.status,callback:function(e){t.$set(t.search,"status",e)},expression:"search.status"}},t._l(t.liStatus,function(t){return a("el-option",{key:t.status,attrs:{label:t.label,value:t.status}})}))],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-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v("查询")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.exportTable}},[t._v("导出")])],1)],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,border:""}},[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.status))+"\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:"reason",label:"失败原因"}}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}}),t._v(" "),t.$store.state.readonly?t._e():a("el-table-column",{attrs:{label:"操作"},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()],1)};o._withStripped=!0;var r={render:o,staticRenderFns:[]},l=r;var i=!1;var c=a("VU/8")(n,l,!1,function(t){i||(a("6swy"),a("TTn9"))},"data-v-86b0546e",null);c.options.__file="src/components/putForward/index.vue";e.default=c.exports},TTn9:function(t,e,a){var s=a("yWw3");"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);a("rjj0")("54f32604",s,!1,{})},fUYk:function(t,e,a){(t.exports=a("FZ+f")(!0)).push([t.i,"\n.putForward[data-v-86b0546e] {\n  padding: 20px 0;\n}\n.status[data-v-86b0546e]{\n  color: #e9a038;\n}\n.status.red[data-v-86b0546e]{\n  color: #c30005;\n}\n.status.green[data-v-86b0546e]{\n  color: #00ac00;\n}\n.avatar[data-v-86b0546e]{\n  width: 50px;\n  margin-right: 5px;\n  border-radius: 50%;\n}\n","",{version:3,sources:["/Users/wang/Documents/changchang/projects/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;CACpB",file:"index.vue",sourcesContent:["\n.putForward[data-v-86b0546e] {\n  padding: 20px 0;\n}\n.status[data-v-86b0546e]{\n  color: #e9a038;\n}\n.status.red[data-v-86b0546e]{\n  color: #c30005;\n}\n.status.green[data-v-86b0546e]{\n  color: #00ac00;\n}\n.avatar[data-v-86b0546e]{\n  width: 50px;\n  margin-right: 5px;\n  border-radius: 50%;\n}\n"],sourceRoot:""}])},yWw3: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:["/Users/wang/Documents/changchang/projects/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:""}])}});