chunk-39c8d887.d34d324b.js 15 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-39c8d887"],{"4ecd":function(t,e,a){"use strict";var r=a("97b6"),n=a.n(r);n.a},"56ac":function(t,e,a){},8305:function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Card",{staticClass:"ivu-mt box",attrs:{bordered:!1,"dis-hover":""}},[a("Form",{ref:"formValidate",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[a("Row",[a("Col",{staticClass:"mr"},[a("FormItem",{attrs:{label:"时间选择:"}},[a("DatePicker",{staticStyle:{width:"250px"},attrs:{editable:!1,clearable:!0,value:t.timeVal,format:"yyyy/MM/dd",type:"datetimerange",placement:"bottom-start",placeholder:"自定义时间",options:t.options},on:{"on-change":t.onchangeTime}})],1)],1),a("Col",{staticClass:"mr"},[a("FormItem",{attrs:{label:"审核状态:"}},[a("Select",{staticStyle:{width:"250px"},attrs:{placeholder:"请选择",clearable:"","element-id":"status1"},on:{"on-change":function(e){return t.payStatus(t.formValidate.status)}},model:{value:t.formValidate.status,callback:function(e){t.$set(t.formValidate,"status",e)},expression:"formValidate.status"}},t._l(t.fromLists.status,(function(e,r){return a("Option",{attrs:{value:e.val}},[t._v(t._s(e.text))])})),1)],1)],1),a("Col",[a("FormItem",{attrs:{label:"转账状态:","label-for":"status1"}},[a("Select",{staticStyle:{width:"250px"},attrs:{placeholder:"请选择",clearable:"","element-id":"status1"},on:{"on-change":t.searchs},model:{value:t.formValidate.pay_status,callback:function(e){t.$set(t.formValidate,"pay_status",e)},expression:"formValidate.pay_status"}},[a("Option",{attrs:{value:"0"}},[t._v("未转账")]),a("Option",{attrs:{value:"1"}},[t._v("已转账")])],1)],1)],1)],1)],1)],1),t.cardLists.length>=0?a("cards-data",{attrs:{cardLists:t.cardLists}}):t._e(),a("Card",{staticClass:"ive-mt",attrs:{bordered:!1,"dis-hover":""}},[a("div",{staticClass:"btnbox"},[a("Button",{attrs:{type:"primary"},on:{click:t.add}},[t._v("申请提现")])],1),a("div",{staticClass:"table"},[a("Table",{ref:"table",staticClass:"mt25",attrs:{columns:t.columns,data:t.orderList,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"action",fn:function(e){var r=e.row;e.index;return[a("a",{on:{click:function(e){return t.remark(r)}}},[t._v("备注")])]}},{key:"extract_type",fn:function(e){var r=e.row;e.index;return["bank"==r.extract_type?a("span",[t._v("银行卡")]):t._e(),"weixin"==r.extract_type?a("span",[t._v("微信")]):t._e(),"alipay"==r.extract_type?a("span",[t._v("支付宝")]):t._e()]}},{key:"type",fn:function(e){var r=e.row;e.index;return["bank"==r.extract_type?a("div",[a("div",[t._v("开户地址:"+t._s(r.bank_address))]),a("div",[t._v("银行卡:"+t._s(r.bank_code))])]):t._e(),"weixin"==r.extract_type?a("div",[a("div",[t._v("微信号:"+t._s(r.wechat))]),a("viewer",[a("div",{staticClass:"tabBox_img"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:r.qrcode_url,expression:"row.qrcode_url"}]})])])],1):t._e(),"alipay"==r.extract_type?a("div",[a("div",[t._v("支付宝账号:"+t._s(r.alipay_account))]),a("viewer",[a("div",{staticClass:"tabBox_img"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:r.qrcode_url,expression:"row.qrcode_url"}]})])])],1):t._e()]}},{key:"status",fn:function(e){var r=e.row;e.index;return["0"==r.status?a("div",[t._v("未审核")]):t._e(),"1"==r.status?a("div",[t._v("已通过")]):t._e(),"-1"==r.status?a("div",[a("div",[t._v("未通过")]),a("div",[t._v("未通过原因:"+t._s(r.fail_msg))])]):t._e()]}},{key:"pay_status",fn:function(e){var r=e.row;e.index;return["0"==r.pay_status?a("div",[t._v("未转账")]):t._e(),"1"==r.pay_status?a("div",[a("div",[t._v("已转账")]),a("div",[t._v("转账说明:"+t._s(r.voucher_title))]),r.voucher_image?a("viewer",[a("div",{staticClass:"tabBox_img"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:r.voucher_image,expression:"row.voucher_image"}]})])]):t._e()],1):t._e()]}}])}),a("div",{staticClass:"acea-row row-right page"},[a("Page",{attrs:{total:t.total,current:t.formValidate.page,"show-elevator":"","show-total":"","page-size":t.formValidate.limit},on:{"on-change":t.pageChange}})],1)],1)]),a("Modal",{staticClass:"order_box",attrs:{scrollable:"",title:"请修改内容",closable:!1,"mask-closable":!1},model:{value:t.modalmark,callback:function(e){t.modalmark=e},expression:"modalmark"}},[a("Form",{ref:"remarks",attrs:{model:t.remarks,"label-width":80},nativeOn:{submit:function(t){t.preventDefault()}}},[a("FormItem",{attrs:{label:"备注:"}},[a("Input",{staticStyle:{width:"100%"},attrs:{maxlength:"200","show-word-limit":"",type:"textarea",placeholder:"请填写备注~"},model:{value:t.remarks.mark,callback:function(e){t.$set(t.remarks,"mark",e)},expression:"remarks.mark"}})],1)],1),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"primary"},on:{click:function(e){return t.putRemark()}}},[t._v("提交")]),a("Button",{on:{click:function(e){return t.cancel()}}},[t._v("取消")])],1)],1),a("Modal",{attrs:{title:"申请提现","mask-closable":!1},on:{"on-cancel":t.cancelApply},model:{value:t.modal,callback:function(e){t.modal=e},expression:"modal"}},[a("Form",{attrs:{model:t.formItem,"label-width":80}},[a("FormItem",{attrs:{label:"申请金额:"}},[a("InputNumber",{attrs:{min:0,placeholder:"请输入申请金额"},model:{value:t.formItem.money,callback:function(e){t.$set(t.formItem,"money",e)},expression:"formItem.money"}})],1),a("FormItem",{attrs:{label:"收款方式:"}},[a("Select",{attrs:{placeholder:"请选择",clearable:"","element-id":"status1"},model:{value:t.formItem.extract_type,callback:function(e){t.$set(t.formItem,"extract_type",e)},expression:"formItem.extract_type"}},[a("Option",{attrs:{value:"bank"}},[t._v("银行卡")]),a("Option",{attrs:{value:"weixin"}},[t._v("微信")]),a("Option",{attrs:{value:"alipay"}},[t._v("支付宝")])],1)],1),a("FormItem",{attrs:{label:"备注:"}},[a("Input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:5},placeholder:"请输入备注"},model:{value:t.formItem.mark,callback:function(e){t.$set(t.formItem,"mark",e)},expression:"formItem.mark"}}),a("div",{staticClass:"tips"},[t._v("最高转账"+t._s(t.extractStatistics.extract_max_price)+"元,最低转账"+t._s(t.extractStatistics.extract_min_price)+"元")])],1)],1),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{on:{click:t.cancelApply}},[t._v("取消")]),a("Button",{directives:[{name:"preventReClick",rawName:"v-preventReClick"}],attrs:{type:"primary"},on:{click:t.ok}},[t._v("确定")])],1)],1)],1)},n=[],i=a("2f62"),s=a("8745"),o=a("a584"),l=a("aad2");function c(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,r)}return a}function u(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?c(a,!0).forEach((function(e){m(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):c(a).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function m(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var d={name:"bill",components:{cardsData:o["a"]},data:function(){return{modal:!1,modalmark:!1,formItem:{money:0,extract_type:"bank",mark:""},remarkId:0,remarks:{mark:""},total:0,options:l["a"],cardLists:[],extractStatistics:[],grid:{xl:7,lg:7,md:12,sm:24,xs:24},loading:!1,columns:[{title:"ID",key:"id",width:60},{title:"转账金额",key:"extract_price",minWidth:80},{title:"申请时间",key:"add_time",minWidth:150},{title:"收款方式",slot:"extract_type",minWidth:80},{title:"审核状态",slot:"status",minWidth:120},{title:"到账状态",slot:"pay_status",minWidth:180},{title:"管理员",key:"admin_name",minWidth:80},{title:"备注",key:"supplier_mark",minWidth:150},{title:"操作",slot:"action",fixed:"right",minWidth:120,align:"center"}],orderList:[],formValidate:{pay_status:"",extract_type:"",data:"",status:"",page:1,limit:15},timeVal:[],fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"昨天",val:"yesterday"},{text:"今天",val:"today"},{text:"本周",val:"week"},{text:"本月",val:"month"},{text:"本季度",val:"quarter"},{text:"本年",val:"year"}]},fromLists:{custom:!0,status:[{text:"全部",val:""},{text:"待审核",val:"0"},{text:"已通过",val:"1"},{text:"未通过",val:"-1"}]}}},computed:u({},Object(i["e"])("store/layout",["isMobile"]),{labelWidth:function(){return this.isMobile?void 0:80},labelPosition:function(){return this.isMobile?"top":"left"}}),mounted:function(){this.getList()},methods:{getList:function(){var t=this;this.loading=!0,Object(s["d"])(this.formValidate).then((function(e){t.orderList=e.data.list.list,t.total=e.data.list.count,t.extractStatistics=e.data.extract_statistics,t.cardLists=[{col:6,count:t.extractStatistics.unPayPrice,name:"待转账金额",className:"md-basket"},{col:6,count:t.extractStatistics.price,name:"待审核金额",className:"md-cash"},{col:6,count:t.extractStatistics.price_not,name:"可提现金额",className:"ios-cash"},{col:6,count:t.extractStatistics.paidPrice,name:"累计提现金额",className:"ios-cash"}],t.loading=!1}))},searchs:function(){this.formValidate.page=1,this.getList()},selectChange:function(t){this.formValidate.page=1,this.formValidate.data=t,this.timeVal=[],this.getList()},payStatus:function(t){this.formValidate.page=1,this.formValidate.status=t,this.getList()},onchangeTime:function(t){this.timeVal=t,this.formValidate.data=this.timeVal.join("-"),this.formValidate.page=1,this.getList()},pageChange:function(t){this.formValidate.page=t,this.getList()},remark:function(t){this.remarkId=t.id,this.remarks.mark=t.supplier_mark,this.modalmark=!0},clear:function(){this.formItem={money:0,extract_type:"bank",mark:""},this.remarks.mark=""},cancelApply:function(){this.modal=!1,this.clear()},add:function(){this.modal=!0},ok:function(){var t=this;if(""==this.formItem.money||this.formItem.money<1)return this.$Message.error("提现金额不能小于1元");Object(s["c"])(this.formItem).then((function(e){t.$Message.success(e.msg),t.modal=!1,t.getList(),t.clear()})).catch((function(e){t.$Message.error(e.msg)}))},cancel:function(){this.modalmark=!1,this.clear()},putRemark:function(){var t=this;Object(s["e"])(this.remarkId,this.remarks).then((function(e){t.$Message.success(e.msg),t.modalmark=!1,t.getList()})).catch((function(e){t.$Message.error(e.msg)}))}}},f=d,p=(a("4ecd"),a("2877")),v=Object(p["a"])(f,r,n,!1,null,"eb598de0",null);e["default"]=v.exports},8745:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"d",(function(){return i})),a.d(e,"c",(function(){return s})),a.d(e,"e",(function(){return o})),a.d(e,"h",(function(){return l})),a.d(e,"i",(function(){return c})),a.d(e,"f",(function(){return u})),a.d(e,"g",(function(){return m})),a.d(e,"a",(function(){return d})),a.d(e,"j",(function(){return f}));var r=a("b6bd");function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"get";return Object(r["a"])({url:"/finance/info",method:e,data:t})}function i(t){return Object(r["a"])({url:"/finance/supplier_extract/list",method:"get",params:t})}function s(t){return Object(r["a"])({url:"/finance/supplier_extract/cash",method:"post",data:t})}function o(t,e){return Object(r["a"])({url:"/finance/supplier_extract/mark/".concat(t),method:"post",data:e})}function l(t){return Object(r["a"])({url:"finance/supplier_flowing_water/list",method:"get",params:t})}function c(t,e){return Object(r["a"])({url:"/finance/supplier_flowing_water/mark/".concat(t),method:"post",data:e})}function u(t){return Object(r["a"])({url:"/finance/supplier_flowing_water/fund_record",method:"get",params:t})}function m(t){return Object(r["a"])({url:"/finance/supplier_flowing_water/fund_record_info",method:"get",params:t})}function d(t){return Object(r["a"])({url:"/export/financeRecord",method:"get",params:t})}function f(t){return Object(r["a"])({url:"/finance/supplier_flowing_water/type",method:"get",params:t})}},"97b6":function(t,e,a){},a584:function(t,e,a){"use strict";var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Row",{staticClass:"ivu-mt",attrs:{type:"flex",align:"middle",gutter:10}},t._l(t.cardLists,(function(e,r){return a("Col",{key:r,staticClass:"ivu-mb",attrs:{lg:6,md:12,sm:24,xs:24}},[a("Card",{staticClass:"card_cent",attrs:{shadow:"",padding:0}},[a("div",{staticClass:"card_box"},[a("div",{staticClass:"card_box_cir",class:{one:r%5==0,two:r%5==1,three:r%5==2,four:r%5==3,five:r%5==4}},[a("div",{staticClass:"card_box_cir1",class:{one1:r%5==0,two1:r%5==1,three1:r%5==2,four1:r%5==3,five1:r%5==4}},[e.type?a("span",{staticClass:"iconfont",class:e.className}):a("Icon",{attrs:{type:e.className}})],1)]),a("div",{staticClass:"card_box_txt"},[a("span",{staticClass:"sp1",domProps:{textContent:t._s(e.count||0)}}),a("span",{staticClass:"sp2",domProps:{textContent:t._s(e.name)}})])])])],1)})),1)],1)},n=[],i={name:"cards",data:function(){return{}},props:{cardLists:Array},methods:{},created:function(){}},s=i,o=(a("cabe"),a("2877")),l=Object(o["a"])(s,r,n,!1,null,"23106e61",null);e["a"]=l.exports},aad2:function(t,e,a){"use strict";var r=a("c1df"),n=a.n(r);e["a"]={shortcuts:[{text:"今天",value:function(){var t=new Date,e=new Date;return e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),[e,t]}},{text:"昨天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),[e,t]}},{text:"最近7天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-6))),[e,t]}},{text:"最近30天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-29))),[e,t]}},{text:"上月",value:function(){var t=new Date,e=new Date,a=new Date(e.getFullYear(),e.getMonth(),0).getDate();return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,a))),[e,t]}},{text:"本月",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),[e,t]}},{text:"本季度",value:function(){var t=n()(n()().quarter(n()().quarter()).startOf("quarter").valueOf()).format("YYYY-MM-DD"),e=n()(n()().quarter(n()().quarter()).endOf("quarter").valueOf()).format("YYYY-MM-DD");return[t,e]}},{text:"本年",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),0,1))),[e,t]}}]}},cabe:function(t,e,a){"use strict";var r=a("56ac"),n=a.n(r);n.a}}]);