You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
14 KiB
1 lines
14 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-201685ba"],{"0cdb":function(t,e,n){},"2e83":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));n("28a5");var a=n("8122"),r=n("e8ae"),i=n.n(r),l=n("21a6");function o(t,e,n,r,o,s){var c,u=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],d=1,m=new i.a.Workbook,g=t.length;function h(t){var e=Array.isArray(t)?t[0]:t,n=Array.isArray(t)?t[1]:{};c=m.addWorksheet(e,n)}function p(t,e){if(!Object(a["isEmpty"])(t)){t=Array.isArray(t)?t:t.split(",");for(var n=0;n<t.length;n++){var r=c.getRow(n+1);r.getCell(1).value=t[n],r.height=30,r.font={bold:!0,size:20,vertAlign:"subscript"},r.alignment={vertical:"bottom",horizontal:"center"},r.outlineLevel=1,c.mergeCells(n+1,1,n+1,e),r.commit(),d++}}}function b(t){if(!Object(a["isEmpty"])(t)){for(var e=c.getRow(d),n=1;n<=t.length;n++)e.getCell(n).value=t[n-1];e.height=25,e.width=50,e.font={bold:!0,size:18,vertAlign:"subscript"},e.alignment={vertical:"bottom",horizontal:"center"},e.outlineLevel=1,e.commit(),d++}}function v(t){if(!Object(a["isEmpty"])(t))for(var e=0;e<t.length;e++){for(var n=d,r=c.getRow(d),i=!1,l=0,o=0,s=0,u=0;u<t[e].length;u++)Array.isArray(t[e][u])?(l=s,i=!0,_(t[e][u],s),s+=t[e][u][0].length,o=s):(r.getCell(w(s)).value=t[e][u],r.getCell(w(s)).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},r.alignment={vertical:"middle",horizontal:"center"},s++);i&&y(n,d,l,o),r.height=25,r.commit(),d++}}function _(t,e){for(var n=t.length,a=n-1,r=0;r<t.length;r++){for(var i=c.getRow(d),l=0;l<t[r].length;l++)i.getCell(w(e+l)).value=t[r][l],i.getCell(w(e+l)).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},i.alignment={vertical:"middle",horizontal:"center"};i.height=25,i.commit(),r<a&&d++}}function y(t,e,n,a){for(var r=0;r<g;r++)(r<n||r>a)&&c.mergeCells(w(r)+t+":"+w(r)+e)}function x(t){if(!Object(a["isEmpty"])(t))if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=c.getRow(d);n.getCell(1).value=t[e],n.getCell(1).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},n.alignment={vertical:"middle",horizontal:"left"},c.mergeCells("A"+d+":"+w(g-1)+d),d++}else{var r=c.getRow(d);r.getCell(1).value=t[f],r.getCell(1).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},r.alignment={vertical:"middle",horizontal:"left"},c.mergeCells("A"+d+":"+w(g-1)+d)}}function w(t){if(t<26)return u[t];var e=t%26,n=Math.floor(t%26);return u[n]+u[e]}function k(t){t||(t=(new Date).getTime()),m.xlsx.writeBuffer().then((function(e){var n=new Blob([e],{type:"application/octet-stream"});l["saveAs"](n,t+".xlsx")}))}h(s),p(e,g),b(t),v(n),x(r),k(o)}},"517c":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("div",{staticClass:"container"},[n("el-form",{attrs:{size:"small","label-width":"100px"}},[n("el-form-item",{staticClass:"width100",attrs:{label:"时间选择:"}},[n("el-radio-group",{staticClass:"mr20",attrs:{type:"button",size:"small"},on:{change:function(e){return t.selectChange(t.tableFrom.date)}},model:{value:t.tableFrom.date,callback:function(e){t.$set(t.tableFrom,"date",e)},expression:"tableFrom.date"}},t._l(t.fromList.fromTxt,(function(e,a){return n("el-radio-button",{key:a,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1),t._v(" "),n("el-date-picker",{staticStyle:{width:"250px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间"},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"提现状态:"}},[n("el-radio-group",{attrs:{type:"button",size:"small"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.status,callback:function(e){t.$set(t.tableFrom,"status",e)},expression:"tableFrom.status"}},[n("el-radio-button",{attrs:{label:""}},[t._v("全部")]),t._v(" "),n("el-radio-button",{attrs:{label:"0"}},[t._v("审核中")]),t._v(" "),n("el-radio-button",{attrs:{label:"1"}},[t._v("已提现")]),t._v(" "),n("el-radio-button",{attrs:{label:"-1"}},[t._v("已拒绝")])],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"提现方式:"}},[n("el-radio-group",{attrs:{type:"button",size:"small"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.extract_type,callback:function(e){t.$set(t.tableFrom,"extract_type",e)},expression:"tableFrom.extract_type"}},[n("el-radio-button",{attrs:{label:""}},[t._v("全部")]),t._v(" "),n("el-radio-button",{attrs:{label:"0"}},[t._v("银行卡")]),t._v(" "),n("el-radio-button",{attrs:{label:"2"}},[t._v("支付宝")]),t._v(" "),n("el-radio-button",{attrs:{label:"1"}},[t._v("微信")])],1)],1),t._v(" "),n("el-form-item",{staticClass:"width100",attrs:{label:"关键字:"}},[n("el-input",{staticClass:"selWidth",attrs:{placeholder:"姓名/支付宝账号/银行卡号",size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}},[n("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1),t._v(" "),n("el-button",{attrs:{size:"small",type:"primary",icon:"el-icon-top"},on:{click:t.exports}},[t._v("列表导出")])],1)],1)],1)]),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{prop:"extract_id",label:"序号",width:"60"}}),t._v(" "),n("el-table-column",{attrs:{label:"二维码","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"demo-image__preview"},[e.row.extract_pic?n("el-image",{attrs:{src:e.row.extract_pic,"preview-src-list":[e.row.extract_pic]}}):t._e()],1)]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"user.nickname",label:"用户信息","min-width":"150"}}),t._v(" "),n("el-table-column",{attrs:{prop:"uid",label:"用户UID","min-width":"150"}}),t._v(" "),n("el-table-column",{attrs:{prop:"real_name",label:"户名","min-width":"150"}}),t._v(" "),n("el-table-column",{attrs:{prop:"extract_price",label:"提现金额","min-width":"120"}}),t._v(" "),n("el-table-column",{attrs:{label:"提现方式","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("extractTypeFilter")(e.row.extract_type)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"银行名称","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.extract_type?n("span",[t._v(t._s(e.row.bank_name&&e.row.bank_address?e.row.bank_name+e.row.bank_address:e.row.bank_address))]):n("span",[t._v("-")])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"账号","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.extract_type?n("span",[t._v(t._s(e.row.bank_code))]):2==e.row.extract_type?n("span",[t._v(t._s(e.row.alipay_code))]):1==e.row.extract_type?n("span",[t._v(t._s(e.row.wechat))]):n("span")]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"审核状态","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",{staticClass:"spBlock"},[t._v(t._s(t._f("extractStatusFilter")(e.row.status)))]),t._v(" "),0===e.row.status?[n("el-button",{attrs:{type:"danger",icon:"el-icon-close",size:"mini"},on:{click:function(n){return t.onExamine(e.row.extract_id)}}},[t._v("未通过")]),t._v(" "),n("el-button",{attrs:{type:"primary",icon:"el-icon-check",size:"mini"},on:{click:function(n){return t.ok(e.row.extract_id)}}},[t._v("通过")])]:t._e()]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"拒绝原因","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",{staticClass:"spBlock"},[t._v(t._s(e.row.fail_msg?e.row.fail_msg:"-"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"create_time",label:"添加时间","min-width":"150"}})],1),t._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),n("file-list",{ref:"exportList"})],1)},r=[],i=n("c80c"),l=(n("96cf"),n("3b8d")),o=n("2801"),s=n("2e83"),c=n("e572"),u=n("30dc"),d={components:{fileList:u["a"]},name:"AccountsExtract",data:function(){return{timeVal:[],tableData:{data:[],total:0},listLoading:!0,tableFrom:{extract_type:"",status:"",date:"",keyword:"",page:1,limit:20},fromList:c["a"]}},mounted:function(){this.getList()},methods:{onExamine:function(t){var e=this;this.$prompt("未通过",{confirmButtonText:"确定",cancelButtonText:"取消",inputErrorMessage:"请输入原因",inputType:"textarea",inputValue:"输入信息不完整或有误!",inputPlaceholder:"请输入原因",inputValidator:function(t){if(!t)return"请输入原因"}}).then((function(n){var a=n.value;Object(o["h"])(t,{status:-1,fail_msg:a}).then((function(t){e.$message({type:"success",message:"提交成功"}),e.getList()})).catch((function(t){e.$message.error(t.message)}))})).catch((function(){e.$message({type:"info",message:"取消输入"})}))},ok:function(t){var e=this;this.$modalSure("审核通过吗").then((function(){Object(o["h"])(t,{status:1}).then((function(t){var n=t.message;e.$message.success(n),e.getList()})).catch((function(t){var n=t.message;e.$message.error(n)}))}))},selectChange:function(t){this.timeVal=[],this.tableFrom.date=t,this.tableFrom.page=1,this.getList()},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.tableFrom.page=1,this.getList()},exports:function(){var t=Object(l["a"])(Object(i["a"])().mark((function t(){var e,n,a,r,l;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=JSON.parse(JSON.stringify(this.tableFrom)),n=[],e.page=1,a=1,r={},l=0;case 5:if(!(l<a)){t.next=14;break}return t.next=8,this.downData(e);case 8:r=t.sent,a=Math.ceil(r.count/e.limit),r.export.length&&(n=n.concat(r.export),e.page++);case 11:l++,t.next=5;break;case 14:return Object(s["a"])(r.header,r.title,n,r.foot,r.filename),t.abrupt("return");case 16:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),downData:function(t){return new Promise((function(e,n){Object(o["g"])(t).then((function(t){return e(t.data)}))}))},exportRecord:function(){var t=this;Object(o["g"])(this.tableFrom).then((function(e){var n=t.$createElement;t.$msgbox({title:"提示",message:n("p",null,[n("span",null,'文件正在生成中,请稍后点击"'),n("span",{style:"color: teal"},"导出记录"),n("span",null,'"查看~ ')]),confirmButtonText:"我知道了"}).then((function(t){}))})).catch((function(e){t.$message.error(e.message)}))},getExportFileList:function(){this.$refs.exportList.exportFileList()},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(o["f"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.$message.error(t.message),e.listLoading=!1}))},pageChange:function(t){this.tableFrom.page=t,this.getList()},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList()}}},f=d,m=(n("54d0"),n("2877")),g=Object(m["a"])(f,a,r,!1,null,"12ad4e01",null);e["default"]=g.exports},"54d0":function(t,e,n){"use strict";n("0cdb")},e572:function(t,e,n){"use strict";n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var a=[{label:"开启",value:1},{label:"关闭",value:0}],r={title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},i={title:"状态",custom:!0,fromTxt:[{text:"全部",val:""},{text:"待审核",val:"0"},{text:"审核已通过",val:"1"},{text:"审核未通过",val:"2"}]}},f8b7:function(t,e,n){"use strict";n.d(e,"n",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return l})),n.d(e,"p",(function(){return o})),n.d(e,"l",(function(){return s})),n.d(e,"m",(function(){return c})),n.d(e,"o",(function(){return u})),n.d(e,"t",(function(){return d})),n.d(e,"i",(function(){return f})),n.d(e,"j",(function(){return m})),n.d(e,"g",(function(){return g})),n.d(e,"h",(function(){return h})),n.d(e,"f",(function(){return p})),n.d(e,"v",(function(){return b})),n.d(e,"w",(function(){return v})),n.d(e,"u",(function(){return _})),n.d(e,"e",(function(){return y})),n.d(e,"d",(function(){return x})),n.d(e,"c",(function(){return w})),n.d(e,"s",(function(){return k})),n.d(e,"r",(function(){return C})),n.d(e,"q",(function(){return F}));var a=n("0c6d");function r(t){return a["a"].get("order/lst",t)}function i(){return a["a"].get("order/chart")}function l(t){return a["a"].get("order/title",t)}function o(t){return a["a"].get("store/order/update/".concat(t,"/form"))}function s(t){return a["a"].get("store/order/delivery/".concat(t,"/form"))}function c(t){return a["a"].get("order/detail/".concat(t))}function u(t,e){return a["a"].get("order/status/".concat(t),e)}function d(t){return a["a"].get("order/refund/lst",t)}function f(t){return a["a"].get("order/children/".concat(t))}function m(t){return a["a"].get("order/express/".concat(t))}function g(t){return a["a"].get("order/excel",t)}function h(t){return a["a"].get("order/refund/excel",t)}function p(t){return a["a"].get("excel/lst",t)}function b(){return a["a"].get("order/takechart")}function v(t){return a["a"].get("order/takelst",t)}function _(t){return a["a"].get("order/take_title",t)}function y(){return a["a"].get("excel/type")}function x(t){return a["a"].get("delivery/order/lst",t)}function w(t){return a["a"].get("delivery/order/cancel/".concat(t,"/form"))}function k(t){return a["a"].get("delivery/station/payLst",t)}function C(){return a["a"].get("delivery/title")}function F(){return a["a"].get("delivery/belence")}}}]); |