CRMEB/crmeb/public/admin/js/chunk-6681ee65.643b29c3.js
2022-04-09 14:31:22 +08:00

1 line
13 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6681ee65"],{"3b2b":function(t,e,n){var a=n("7726"),r=n("5dbc"),i=n("86cc").f,o=n("9093").f,c=n("aae3"),s=n("0bfb"),u=a.RegExp,l=u,f=u.prototype,d=/a/g,m=/a/g,p=new u(d)!==d;if(n("9e1e")&&(!p||n("79e5")((function(){return m[n("2b4c")("match")]=!1,u(d)!=d||u(m)==m||"/a/i"!=u(d,"i")})))){u=function(t,e){var n=this instanceof u,a=c(t),i=void 0===e;return!n&&a&&t.constructor===u&&i?t:r(p?new l(a&&!i?t.source:t,e):l((a=t instanceof u)?t.source:t,a&&i?s.call(t):e),n?this:f,u)};for(var g=function(t){t in u||i(u,t,{configurable:!0,get:function(){return l[t]},set:function(e){l[t]=e}})},h=o(l),b=0;h.length>b;)g(h[b++]);f.constructor=u,u.prototype=f,n("2aba")(a,"RegExp",u)}n("7a56")("RegExp")},"61f7":function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return l})),n.d(e,"b",(function(){return f}));n("8e6e"),n("ac6a"),n("456d");var a=n("bd86");n("6b54"),n("3b2b"),n("a481");function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){Object(a["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var n={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(var a in n)if(new RegExp("(".concat(a,")")).test(e)){var r=n[a]+"";e=e.replace(RegExp.$1,1===RegExp.$1.length?r:c(r))}return e}function c(t){return("00"+t).substr(t.length)}var s={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"};var u=function(t,e){t.message=function(t){return e.replace("%s",t||"")}};function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i({required:!0,message:t,type:"string"},e)}function f(t){return d.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}u(l,"请输入%s"),u(f,"%s格式不正确");var d=Object.keys(s).reduce((function(t,e){return t[e]=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o="range"===e?{min:t[0],max:t[1]}:Object(a["a"])({},e,t);return i(i({message:n.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},o),r)},u(t[e],s[e]),t}),{})},"680a":function(t,e,n){"use strict";var a=n("9d2c"),r=n.n(a);r.a},"8a30":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",[n("div",{staticClass:"i-layout-page-header"},[n("div",{staticClass:"i-layout-page-header"},[n("span",{staticClass:"ivu-page-header-title"},[t._v(t._s(t.$route.meta.title))])])]),n("Card",{staticClass:"ivu-mt",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){var a=e.row;return[n("div",[t._v(t._s(a.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){var a=e.row;return[a.pm?n("div",{staticClass:"z-price"},[t._v("+ "+t._s(a.number))]):n("div",{staticClass:"f-price"},[t._v("- "+t._s(a.number))])]}},{key:"add_time",fn:function(e){var a=e.row;return[n("span",[t._v(" "+t._s(t._f("formatDate")(a.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)},r=[],i=(n("8e6e"),n("ac6a"),n("456d"),n("96cf"),n("3b8d")),o=n("bd86"),c=n("2f62"),s=n("cd05"),u=n("61f7"),l=n("fd73");function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){Object(o["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var m={name:"balance",components:{dateRadio:l["a"]},filters:{formatDate:function(t){if(0!==t){var e=new Date(1e3*t);return Object(u["a"])(e,"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:d(d({},Object(c["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(s["n"])(this.extractId,this.mark_msg).then(function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){while(1)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){var e=new Date(t).getTime();return e},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(s["i"])(this.formValidate).then(function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(n){var a;return regeneratorRuntime.wrap((function(e){while(1)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()}}},p=m,g=(n("680a"),n("2877")),h=Object(g["a"])(p,a,r,!1,null,"0c8fb11d",null);e["default"]=h.exports},"9d2c":function(t,e,n){},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 p})),n.d(e,"q",(function(){return g})),n.d(e,"p",(function(){return h})),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 O})),n.d(e,"n",(function(){return _}));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 p(t){return Object(a["a"])({url:"finance/recharge/".concat(t,"/refund_edit"),method:"get"})}function g(t){return Object(a["a"])({url:"export/userFinance",method:"get",params:t})}function h(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 O(t){return Object(a["a"])({url:"finance/balance/list",method:"get",params:t})}function _(t,e){return Object(a["a"])({url:"finance/balance/set_mark/".concat(t),method:"post",data:e})}},fd73:function(t,e,n){"use strict";var a=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)},r=[],i=n("61f7"),o={filters:{formatDate:function(t){if(0!==t){var e=new Date(t);return Object(i["a"])(e,"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){var e=new Date(t).getTime();return e}}},c=o,s=n("2877"),u=Object(s["a"])(c,a,r,!1,null,null,null);e["a"]=u.exports}}]);