mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-01-19 05:48:15 +00:00
1 line
13 KiB
JavaScript
1 line
13 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3b1af082"],{"2c3e":function(t,e,n){var a=n("da84"),r=n("83ab"),i=n("9f7f").MISSED_STICKY,o=n("c6b6"),c=n("edd0"),s=n("69f3").get,u=RegExp.prototype,l=a.TypeError;r&&i&&c(u,"sticky",{configurable:!0,get:function(){if(this!==u){if("RegExp"===o(this))return!!s(this).sticky;throw l("Incompatible receiver, RegExp required")}}})},4099:function(t,e,n){},"4aa2e":function(t,e,n){"use strict";var a=n("4099");n.n(a).a},"4d63":function(t,e,n){var a=n("83ab"),r=n("da84"),i=n("e330"),o=n("94ca"),c=n("7156"),s=n("9112"),u=n("241c").f,l=n("3a9b"),f=n("44e7"),d=n("577e"),m=n("90d8"),g=n("9f7f"),h=n("aeb0"),p=n("cb2d"),b=n("d039"),v=n("1a2d"),y=n("69f3").enforce,_=n("2626"),k=n("b622"),x=n("fce3"),w=n("107c"),O=k("match"),j=r.RegExp,R=j.prototype,M=r.SyntaxError,E=i(R.exec),T=i("".charAt),$=i("".replace),D=i("".indexOf),I=i("".slice),V=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,C=/a/g,S=/a/g,L=(n=new j(C)!==C,g.MISSED_STICKY),W=g.UNSUPPORTED_Y;k=a&&(!n||L||x||w||b((function(){return S[O]=!1,j(C)!=C||j(S)==S||"/a/i"!=j(C,"i")})));if(o("RegExp",k)){function F(t,e){var n,a,r=l(R,this),i=f(t),o=void 0===e,u=[],g=t;if(!r&&i&&o&&t.constructor===F)return t;if((i||l(R,t))&&(t=t.source,o&&(e=m(g))),t=void 0===t?"":d(t),e=void 0===e?"":d(e),g=t,i=e=x&&"dotAll"in C&&(n=!!e&&-1<D(e,"s"))?$(e,/s/g,""):e,L&&"sticky"in C&&(a=!!e&&-1<D(e,"y"))&&W&&(e=$(e,/y/g,"")),w&&(t=(o=function(t){for(var e,n=t.length,a=0,r="",i=[],o={},c=!1,s=!1,u=0,l="";a<=n;a++){if("\\"===(e=T(t,a)))e+=T(t,++a);else if("]"===e)c=!1;else if(!c)switch(!0){case"["===e:c=!0;break;case"("===e:E(V,I(t,a+1))&&(a+=2,s=!0),r+=e,u++;continue;case">"===e&&s:if(""===l||v(o,l))throw new M("Invalid capture group name");o[l]=!0,s=!(i[i.length]=[l,u]),l="";continue}s?l+=e:r+=e}return[r,i]}(t))[0],u=o[1]),o=c(j(t,e),r?this:R,F),(n||a||u.length)&&(e=y(o),n&&(e.dotAll=!0,e.raw=F(function(t){for(var e,n=t.length,a=0,r="",i=!1;a<=n;a++)"\\"===(e=T(t,a))?r+=e+T(t,++a):i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),r+=e):r+="[\\s\\S]";return r}(t),i)),a&&(e.sticky=!0),u.length&&(e.groups=u)),t!==g)try{s(o,"source",""===g?"(?:)":g)}catch(t){}return o}for(var P=u(j),A=0;P.length>A;)h(F,j,P[A++]);(R.constructor=F).prototype=R,p(r,"RegExp",F,{constructor:!0})}_("RegExp")},"61f7":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return u}));var a=n("fc11"),r=n("f3f3");function i(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var n,a,r={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(n in r)new RegExp("(".concat(n,")")).test(e)&&(a=r[n]+"",e=e.replace(RegExp.$1,1===RegExp.$1.length?a:("00"+a).substr(a.length)));return e}n("ac1f"),n("00b4"),n("5319"),n("4d63"),n("c607"),n("2c3e"),n("25f0"),n("498a"),n("d3b7"),n("b64b"),n("99af");var o={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"};function c(t,e){t.message=function(t){return e.replace("%s",t||"")}}function s(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Object(r.a)({required:!0,message:t,type:"string"},e)}function u(t){return l.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}c(s,"请输入%s"),c(u,"%s格式不正确");var l=Object.keys(o).reduce((function(t,e){return t[e]=function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},o="range"===e?{min:t[0],max:t[1]}:Object(a.a)({},e,t);return Object(r.a)(Object(r.a)({message:n.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},o),i)},c(t[e],o[e]),t}),{})},"8a30":function(t,e,n){"use strict";n.r(e);var a=n("c964"),r=n("f3f3"),i=(n("96cf"),n("498a"),n("a15b"),n("2f62")),o=n("cd05"),c=n("61f7");r={name:"balance",components:{dateRadio:n("fd73").a},filters:{formatDate:function(t){if(0!==t)return t=new Date(1e3*t),Object(c.a)(t,"yyyy-MM-dd hh:mm")}},data:function(){return{images:["1.jpg","2.jpg"],modal_loading:!1,options:this.$timeOptions,mark_msg:{mark:""},modals:!1,total:0,loading:!1,columns:[{title:"ID",key:"id",width:50},{title:"关联订单",key:"relation",minWidth:120},{title:"交易时间",key:"add_time",minWidth:90},{title:"交易金额",slot:"number",minWidth:100},{title:"用户",key:"nickname",minWidth:80},{title:"交易类型",key:"type_name",minWidth:100},{title:"备注",key:"mark",minWidth:100},{title:"操作",slot:"set",fixed:"right",width:100}],tabList:[],withdrawal:[],selectIndexTime:"",payment:[{title:"全部",value:""},{title:"微信",value:"weixin"},{title:"支付宝",value:"alipay"},{title:"银行卡",value:"bank"},{title:"线下支付",value:"offline"}],formValidate:{trading_type:"",time:"",keywords:"",page:1,limit:20},timeVal:[],FromData:null,extractId:0}},computed:Object(r.a)(Object(r.a)({},Object(i.e)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:80},labelPosition:function(){return this.isMobile?"top":"left"}}),mounted:function(){this.getList()},methods:{oks:function(){var t=this;this.modal_loading=!0,this.mark_msg.mark=this.mark_msg.mark.trim(),Object(o.n)(this.extractId,this.mark_msg).then(function(){var e=Object(a.a)(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.$Message.success(n.msg),t.modal_loading=!1,t.modals=!1,t.getList();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.modal_loading=!1,t.$Message.error(e.msg)}))},setMark:function(t){this.modals=!0,this.extractId=t.id,this.mark_msg.mark=t.mark},onSelectDate:function(t){this.formValidate.time=t,this.formValidate.page=1,this.getList()},dateToMs:function(t){return new Date(t).getTime()},onchangeTime:function(t){this.timeVal=t,this.formValidate.time=this.timeVal.join("-"),this.formValidate.page=1,this.getList()},selChange:function(t){this.formValidate.page=1,this.formValidate.trading_type=t,this.getList()},getList:function(){var t=this;this.loading=!0,Object(o.i)(this.formValidate).then(function(){var e=Object(a.a)(regeneratorRuntime.mark((function e(n){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=n.data,t.tabList=a.list,t.total=a.count,t.withdrawal=a.status,t.loading=!1;case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},pageChange:function(t){this.formValidate.page=t,this.getList()},submitFail:function(){this.getList()}}},n("4aa2e"),i=n("2877"),n=Object(i.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Card",{staticClass:"ivu-mt mb10",attrs:{bordered:!1,"dis-hover":""}},[n("Form",{ref:"formValidate",staticClass:"tabform",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[n("Row",{attrs:{gutter:24,type:"flex"}},[n("Col",{attrs:{span:"24"}},[n("FormItem",{attrs:{label:"订单时间:"}},[n("dateRadio",{on:{selectDate:t.onSelectDate}}),n("DatePicker",{staticClass:"mr20",staticStyle:{width:"200px"},attrs:{editable:!1,clearable:!1,value:t.timeVal,format:"yyyy/MM/dd",type:"daterange",placement:"bottom-start",placeholder:"请选择时间",options:t.options},on:{"on-change":t.onchangeTime}})],1)],1),n("Col",{attrs:{span:"24"}},[n("FormItem",{attrs:{label:"交易类型:"}},[n("Select",{staticClass:"mr15",staticStyle:{width:"30%"},attrs:{type:"button"},on:{"on-change":t.selChange},model:{value:t.formValidate.trading_type,callback:function(e){t.$set(t.formValidate,"trading_type",e)},expression:"formValidate.trading_type"}},t._l(Object.values(t.withdrawal),(function(e,a){return n("Option",{key:a,attrs:{label:e,value:Object.keys(t.withdrawal)[a]}},[t._v(t._s(e))])})),1)],1)],1)],1)],1)],1),n("Card",{attrs:{bordered:!1,"dis-hover":""}},[n("Table",{ref:"table",attrs:{columns:t.columns,data:t.tabList,loading:t.loading,"no-data-text":"暂无数据","no-filtered-data-text":"暂无筛选结果"},scopedSlots:t._u([{key:"extract_price",fn:function(e){return e=e.row,[n("div",[t._v(t._s(e.extract_price))])]}},{key:"pay_type",fn:function(e){var a=e.row;return t._l(t.payment,(function(e){return n("div",{key:e.value},[a.pay_type==e.value?n("span",[t._v(" "+t._s(e.title)+" ")]):t._e()])}))}},{key:"number",fn:function(e){return e=e.row,[e.pm?n("div",{staticClass:"z-price"},[t._v("+ "+t._s(e.number))]):n("div",{staticClass:"f-price"},[t._v("- "+t._s(e.number))])]}},{key:"add_time",fn:function(e){return e=e.row,[n("span",[t._v(" "+t._s(t._f("formatDate")(e.add_time)))])]}},{key:"set",fn:function(e){var a=e.row;return[n("Button",{staticClass:"item",attrs:{size:"small",type:"primary"},on:{click:function(e){return t.setMark(a)}}},[t._v("备注")])]}}])}),n("div",{staticClass:"acea-row row-right page"},[n("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),n("Modal",{attrs:{scrollable:"",closable:"",title:"备注","mask-closable":!1},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[n("Input",{attrs:{type:"textarea",rows:4,placeholder:"请输入备注"},model:{value:t.mark_msg.mark,callback:function(e){t.$set(t.mark_msg,"mark",e)},expression:"mark_msg.mark"}}),n("div",{attrs:{slot:"footer"},slot:"footer"},[n("Button",{attrs:{type:"primary",size:"large",long:"",loading:t.modal_loading},on:{click:t.oks}},[t._v("确定")])],1)],1)],1)}),[],!1,null,"79567af1",null);e.default=n.exports},c607:function(t,e,n){var a=n("da84"),r=n("83ab"),i=n("fce3"),o=n("c6b6"),c=n("edd0"),s=n("69f3").get,u=RegExp.prototype,l=a.TypeError;r&&i&&c(u,"dotAll",{configurable:!0,get:function(){if(this!==u){if("RegExp"===o(this))return!!s(this).dotAll;throw l("Incompatible receiver, RegExp required")}}})},cd05:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i})),n.d(e,"f",(function(){return o})),n.d(e,"e",(function(){return c})),n.d(e,"h",(function(){return s})),n.d(e,"d",(function(){return u})),n.d(e,"c",(function(){return l})),n.d(e,"m",(function(){return f})),n.d(e,"k",(function(){return d})),n.d(e,"r",(function(){return m})),n.d(e,"l",(function(){return g})),n.d(e,"q",(function(){return h})),n.d(e,"p",(function(){return p})),n.d(e,"g",(function(){return b})),n.d(e,"j",(function(){return v})),n.d(e,"o",(function(){return y})),n.d(e,"i",(function(){return _})),n.d(e,"n",(function(){return k}));var a=n("6b6c");function r(){return Object(a.a)({url:"finance/finance/bill_type",method:"get"})}function i(t){return Object(a.a)({url:"finance/finance/list",method:"get",params:t})}function o(t){return Object(a.a)({url:"finance/finance/commission_list",method:"get",params:t})}function c(t){return Object(a.a)({url:"finance/finance/user_info/".concat(t),method:"get"})}function s(t,e){return Object(a.a)({url:"finance/finance/extract_list/".concat(t),method:"get",params:e})}function u(t){return Object(a.a)({url:"finance/extract",method:"get",params:t})}function l(t){return Object(a.a)({url:"finance/extract/".concat(t,"/edit"),method:"get"})}function f(t,e){return Object(a.a)({url:"finance/extract/refuse/".concat(t),method:"put",data:e})}function d(t){return Object(a.a)({url:"finance/recharge",method:"get",params:t})}function m(t){return Object(a.a)({url:"finance/recharge/user_recharge",method:"get",params:t})}function g(t){return Object(a.a)({url:"finance/recharge/".concat(t,"/refund_edit"),method:"get"})}function h(t){return Object(a.a)({url:"export/userFinance",method:"get",params:t})}function p(t){return Object(a.a)({url:"export/userCommission",method:"get",params:t})}function b(t){return Object(a.a)({url:"export/userRecharge",method:"get",params:t})}function v(t){return Object(a.a)({url:"statistic/flow/get_list",method:"get",params:t})}function y(t,e){return Object(a.a)({url:"statistic/flow/set_mark/".concat(t),method:"post",data:e})}function _(t){return Object(a.a)({url:"finance/balance/list",method:"get",params:t})}function k(t,e){return Object(a.a)({url:"finance/balance/set_mark/".concat(t),method:"post",data:e})}},edd0:function(t,e,n){var a=n("13d2"),r=n("9bf2");t.exports=function(t,e,n){return n.get&&a(n.get,e,{getter:!0}),n.set&&a(n.set,e,{setter:!0}),r.f(t,e,n)}},fd73:function(t,e,n){"use strict";n("a15b");var a=n("61f7"),r={filters:{formatDate:function(t){if(0!==t)return t=new Date(t),Object(a.a)(t,"yyyy/MM/dd")}},data:function(){return{timeVal:[],options:this.$timeOptions,selectIndexTime:""}},methods:{onSelectTime:function(t){var e=[this.$options.filters.formatDate(this.dateToMs(this.$timeOptions.shortcuts[this.selectIndexTime].value()[0])),this.$options.filters.formatDate(this.dateToMs(this.$timeOptions.shortcuts[this.selectIndexTime].value()[1]))];this.$emit("selectDate",e.join("-"))},dateToMs:function(t){return new Date(t).getTime()}}};n=n("2877"),n=Object(n.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("RadioGroup",{attrs:{type:"button"},on:{"on-change":t.onSelectTime},model:{value:t.selectIndexTime,callback:function(e){t.selectIndexTime=e},expression:"selectIndexTime"}},t._l(t.options.shortcuts,(function(e,a){return n("Radio",{key:a,attrs:{label:a}},[t._v(t._s(e.text))])})),1)}),[],!1,null,null,null);e.a=n.exports}}]); |