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.
3 lines
42 KiB
3 lines
42 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user"],{"03ab":function(e,t,a){"use strict";a("42ea")},"0ea6":function(e,t,a){},1158:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("div",{staticClass:"table-operator"}),t("a-table",{attrs:{rowKey:function(e){return e.id},columns:e.columns,"data-source":e.list,scroll:{x:1300},bordered:"",pagination:!1},scopedSlots:e._u([{key:"main_info",fn:function(a){return t("span",{},[t("p",[e._v(e._s(a.user.nick_name))]),t("p",{staticClass:"c-p"},[e._v(e._s(a.user.mobile))])])}},{key:"type",fn:function(a){return t("span",{},[1==a.type?t("p",[e._v("普通")]):t("p",[e._v("增值税")])])}},{key:"source",fn:function(a){return t("span",{},[1==a.source?t("p",[e._v("个人")]):t("p",[e._v("单位")])])}}])}),t("a-pagination",{staticStyle:{float:"right"},attrs:{"default-page-size":e.queryParam.pageSize,pageSizes:e.queryParam.pageSize,total:e.total,showSizeChanger:!0,showQuickJumper:!0,pageSizeOptions:e.pageSizeOptions,layout:"total, sizes, prev, pager, next, jumper",showTotal:e.showTotal},on:{showSizeChange:e.handleSizeChange,change:e.handlePageChange},model:{value:e.queryParam.page,callback:function(t){e.$set(e.queryParam,"page",t)},expression:"queryParam.page"}})],1)},n=[],i=(a("d3b7"),a("b775")),o={list:"/user.invoice/index"};function s(e){return Object(i["b"])({url:o.list,method:"post",params:e})}var l=a("2af9"),c=[{title:"ID",dataIndex:"id",ellipsis:!0},{title:"会员昵称/手机号",scopedSlots:{customRender:"main_info"}},{title:"发票类型",dataIndex:"type",scopedSlots:{customRender:"type"}},{title:"抬头类型",dataIndex:"source",scopedSlots:{customRender:"source"}},{title:"单位名称",dataIndex:"header"},{title:"税号",dataIndex:"duty_no"},{title:"开户银行",dataIndex:"bank_name"},{title:"银行卡号",dataIndex:"bank_no"},{title:"单位地址",dataIndex:"address"},{title:"单位电话",dataIndex:"phone"}],u={name:"Index",components:{ContentHeader:l["a"],STable:l["d"]},data:function(){return{searchForm:this.$form.createForm(this),categoryList:[],orderStatusList:[],queryParam:{order_status:"0",recovery_name:"",category_id:"",order_no:"",page:1,pageSize:15},pageSizeOptions:["15","30","50","100","200","300","400","500"],showTotal:function(e){return"共 ".concat(e," 条记录")},total:0,isLoading:!1,columns:c,selectedRowKeys:[],list:[]}},created:function(){this.fetchData()},computed:{rowSelection:function(){return{selectedRowKeys:this.selectedRowKeys,onChange:this.onSelectChange}}},methods:{onSelectChange:function(e){this.selectedRowKeys=e},handleTabs:function(e){this.queryParam.page=1,this.queryParam.order_status=e.target.value,this.fetchData()},handleSearch:function(){this.queryParam.page=1,this.fetchData()},fetchData:function(){var e=this;this.isLoading=!0,s(this.queryParam).then((function(t){e.list=t.data.list,e.total=t.data.total})).finally((function(){return e.isLoading=!1}))},handleReset:function(){this.searchForm.resetFields()},handlePageChange:function(e,t){this.queryParam.page=e,this.queryParam.pageSize=t,this.fetchData()},handleSizeChange:function(e,t){this.queryParam.page=e,this.queryParam.pageSize=t,this.fetchData()},handleRefresh:function(){this.selectedRowKeys=[],this.fetchData()}}},d=u,f=(a("c4f0"),a("2877")),m=Object(f["a"])(d,r,n,!1,null,"ac058ce2",null);t["default"]=m.exports},"1d95":function(e,t,a){"use strict";a("2810")},"1da1":function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));a("d3b7");function r(e,t,a,r,n,i,o){try{var s=e[i](o),l=s.value}catch(e){return void a(e)}s.done?t(l):Promise.resolve(l).then(r,n)}function n(e){return function(){var t=this,a=arguments;return new Promise((function(n,i){var o=e.apply(t,a);function s(e){r(o,n,i,s,l,"next",e)}function l(e){r(o,n,i,s,l,"throw",e)}s(void 0)}))}}},2810:function(e,t,a){},"3c76":function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));var r=a("5c06"),n=new r["a"]([{key:"WECHAT",name:"微信支付",value:"wechat"},{key:"ALIPAY",name:"支付宝",value:"alipay"},{key:"BALANCE",name:"余额支付",value:"balance"},{key:"HUIFU",name:"银联支付",value:"huifu"}])},"42ea":function(e,t,a){},"565d":function(e,t,a){},"57af":function(e,t,a){"use strict";a("96e1")},"5f30":function(e,t,a){"use strict";a("565d")},"740e":function(e,t,a){"use strict";a("a939")},"75f1":function(e,t,a){"use strict";a.r(t);a("b0c0");var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("div",{staticClass:"table-operator"},[t("div",{staticClass:"row-item-tab clearfix"},[t("div",{staticClass:"tab-list fl-l"},[t("a-radio-group",{attrs:{defaultValue:e.queryParam.type},on:{change:e.handleTabs}},[t("a-radio-button",{attrs:{value:"0"}},[e._v("全部")]),e._l(e.typeList,(function(a,r){return t("a-radio-button",{key:r,attrs:{value:a.value}},[e._v(e._s(a.name))])}))],2)],1),t("a-button",{staticClass:"fl-l",attrs:{type:"primary",icon:"plus"},on:{click:function(t){return e.handleCreate()}}},[e._v("新增")])],1)]),e.isLoading?e._e():t("a-table",{attrs:{rowKey:"identity_id",columns:e.columns,dataSource:e.dataList,defaultExpandAllRows:!0,expandIconColumnIndex:1,pagination:!1,loading:e.isLoading},scopedSlots:e._u([{key:"month",fn:function(a){return t("span",{},[t("p",{staticClass:"twoline-hide"},[e._v(e._s(a)+"个月")])])}},{key:"action",fn:function(a,r){return t("span",{},[[t("a",{directives:[{name:"action",rawName:"v-action:edit",arg:"edit"}],staticStyle:{"margin-right":"8px"},on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),t("a",{directives:[{name:"action",rawName:"v-action:delete",arg:"delete"}],attrs:{icon:"delete"},on:{click:function(t){return e.handleDelete([r.identity_id])}}},[e._v("删除")])]],2)}}],null,!1,3262084385)}),t("add",{ref:"AddRef",on:{handleSubmit:e.handleRefresh}}),t("edit",{ref:"EditRef",on:{handleSubmit:e.handleRefresh}})],1)},n=[],i=a("c7eb"),o=a("1da1"),s=(a("d3b7"),a("b775")),l={list:"/user.identity/list",add:"/user.identity/add",edit:"/user.identity/edit",delete:"/user.identity/delete",typeList:"/user.identity/typeList"};function c(e){return Object(s["b"])({url:l.list,method:"post",data:e})}function u(e){return Object(s["b"])({url:l.add,method:"post",data:e})}function d(e){return Object(s["b"])({url:l.edit,method:"post",data:e})}function f(e){return Object(s["b"])({url:l.delete,method:"post",data:e})}function m(e){return Object(s["b"])({url:l.typeList,method:"post",params:e})}var h=a("2af9"),p=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:"新增",width:500,visible:e.visible,confirmLoading:e.confirmLoading,maskClosable:!1,destroyOnClose:!0},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['name', { rules: [{ required: true, min: 2, message: '请输入至少2个字符' }] }]"}]})],1),t("a-form-item",{attrs:{label:"价格",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["price",{initialValue:1,rules:[{required:!0,message:"请输入价格"}]}],expression:"['price', { initialValue: 1, rules: [{ required: true, message: '请输入价格' }] }]"}],attrs:{min:.01,precision:2}}),t("span",{staticClass:"ml-10"},[e._v("元")])],1),t("a-form-item",{attrs:{label:"时效",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["month",{initialValue:1,rules:[{required:!0,message:"请输入时效"}]}],expression:"['month', { initialValue: 1, rules: [{ required: true, message: '请输入时效' }] }]"}],attrs:{min:1}}),t("span",{staticClass:"ml-10"},[e._v("月")])],1),t("a-form-item",{attrs:{label:"身份",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["type",{initialValue:10,rules:[{required:!0}]}],expression:"['type', { initialValue: 10, rules: [{ required: true }] }]"}]},e._l(e.typeList,(function(a,r){return t("a-radio",{key:r,attrs:{value:a.value}},[e._v(e._s(a.name))])})),1)],1)],1)],1)],1)},v=[],b={components:{},props:{},data:function(){return{title:"",labelCol:{span:7},wrapperCol:{span:13},typeList:[],visible:!1,confirmLoading:!1,form:this.$form.createForm(this)}},methods:{add:function(){this.visible=!0,this.getTypeList()},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){e||t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},getTypeList:function(){var e=this;this.isLoading=!0,m().then((function(t){e.typeList=t.data.list})).finally((function(){return e.isLoading=!1}))},onFormSubmit:function(e){var t=this;this.confirmLoading=!0,u({form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(e){t.confirmLoading=!1}))}}},y=b,g=a("2877"),C=Object(g["a"])(y,p,v,!1,null,null,null),w=C.exports,x=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:"编辑",width:500,visible:e.visible,confirmLoading:e.confirmLoading,maskClosable:!1,destroyOnClose:!0},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['name', { rules: [{ required: true, min: 2, message: '请输入至少2个字符' }] }]"}]})],1),t("a-form-item",{attrs:{label:"价格",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["price",{initialValue:1,rules:[{required:!0,message:"请输入价格"}]}],expression:"['price', { initialValue: 1, rules: [{ required: true, message: '请输入价格' }] }]"}],attrs:{min:.01,precision:2}}),t("span",{staticClass:"ml-10"},[e._v("元")])],1),t("a-form-item",{attrs:{label:"时效",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["month",{initialValue:1,rules:[{required:!0,message:"请输入时效"}]}],expression:"['month', { initialValue: 1, rules: [{ required: true, message: '请输入时效' }] }]"}],attrs:{min:1}}),t("span",{staticClass:"ml-10"},[e._v("月")])],1),t("a-form-item",{attrs:{label:"身份",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["type",{initialValue:10,rules:[{required:!0}]}],expression:"['type', { initialValue: 10, rules: [{ required: true }] }]"}]},e._l(e.typeList,(function(a,r){return t("a-radio",{key:r,attrs:{value:a.value}},[e._v(e._s(a.name))])})),1)],1)],1)],1)],1)},L=[],S={components:{},props:{},data:function(){return{title:"",labelCol:{span:7},wrapperCol:{span:13},visible:!1,confirmLoading:!1,form:this.$form.createForm(this),record:{},typeList:[]}},methods:{edit:function(e){this.getTypeList(),this.visible=!0,this.record=e,this.setFieldsValue()},getTypeList:function(){var e=this;this.isLoading=!0,m().then((function(t){e.typeList=t.data.list})).finally((function(){return e.isLoading=!1}))},setFieldsValue:function(){var e=this.record,t=this.form.setFieldsValue;this.$nextTick((function(){t(_.pick(e,["name","price","month","type"]))}))},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){e||t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.confirmLoading=!0,d({identityId:this.record["identity_id"],form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(e){t.confirmLoading=!1}))}}},E=S,R=Object(g["a"])(E,x,L,!1,null,null,null),k=R.exports,I=[{title:"ID",dataIndex:"identity_id"},{title:"名称",dataIndex:"name"},{title:"价格",dataIndex:"price",scopedSlots:{customRender:"server_name"}},{title:"时效",dataIndex:"month",scopedSlots:{customRender:"month"}},{title:"类别",dataIndex:"type_text"},{title:"添加时间",width:"180px",dataIndex:"create_time"},{title:"操作",dataIndex:"action",width:"150px",fixed:"right",scopedSlots:{customRender:"action"}}],P={name:"Index",components:{ContentHeader:h["a"],STable:h["d"],Add:w,Edit:k},data:function(){return{searchForm:this.$form.createForm(this),queryParam:{type:"0",page:1},dataList:[],typeList:[],isLoading:!1,columns:I}},created:function(){this.$route.query.type&&(this.queryParam.type=this.$route.query.type),this.getTypeList(),this.getList()},computed:{rowSelection:function(){return{selectedRowKeys:this.selectedRowKeys,onChange:this.onSelectChange}}},methods:{getList:function(){var e=this;this.isLoading=!0,c(this.queryParam).then((function(t){e.dataList=t.data.list})).finally((function(){return e.isLoading=!1}))},onSelectChange:function(e){this.selectedRowKeys=e},handleTabs:function(e){this.queryParam.type=e.target.value,this.handleRefresh(!0)},getTypeList:function(){var e=this;this.isLoading=!0,m().then((function(t){e.typeList=t.data.list})).finally((function(){return e.isLoading=!1}))},handleDelete:function(e){var t=this,a=this.$confirm({title:"您确定要删除该记录吗?",content:"删除后不可恢复",onOk:function(){return f({identityId:e}).then((function(e){t.$message.success(e.message,1.5),t.handleRefresh()})).finally((function(e){return a.destroy()}))}})},handleCreate:function(){this.$refs.AddRef.add()},handleEdit:function(e){var t=this;return Object(o["a"])(Object(i["a"])().mark((function a(){return Object(i["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.$refs.EditRef.edit(e);case 1:case"end":return a.stop()}}),a)})))()},handleRefresh:function(){this.getList()}}},O=P,q=(a("5f30"),Object(g["a"])(O,r,n,!1,null,"903cffb6",null));t["default"]=q.exports},"88bc":function(e,t,a){(function(t){var a=1/0,r=9007199254740991,n="[object Arguments]",i="[object Function]",o="[object GeneratorFunction]",s="[object Symbol]",l="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,u=l||c||Function("return this")();function d(e,t,a){switch(a.length){case 0:return e.call(t);case 1:return e.call(t,a[0]);case 2:return e.call(t,a[0],a[1]);case 3:return e.call(t,a[0],a[1],a[2])}return e.apply(t,a)}function f(e,t){var a=-1,r=e?e.length:0,n=Array(r);while(++a<r)n[a]=t(e[a],a,e);return n}function m(e,t){var a=-1,r=t.length,n=e.length;while(++a<r)e[n+a]=t[a];return e}var h=Object.prototype,p=h.hasOwnProperty,v=h.toString,b=u.Symbol,_=h.propertyIsEnumerable,y=b?b.isConcatSpreadable:void 0,g=Math.max;function C(e,t,a,r,n){var i=-1,o=e.length;a||(a=S),n||(n=[]);while(++i<o){var s=e[i];t>0&&a(s)?t>1?C(s,t-1,a,r,n):m(n,s):r||(n[n.length]=s)}return n}function w(e,t){return e=Object(e),x(e,t,(function(t,a){return a in e}))}function x(e,t,a){var r=-1,n=t.length,i={};while(++r<n){var o=t[r],s=e[o];a(s,o)&&(i[o]=s)}return i}function L(e,t){return t=g(void 0===t?e.length-1:t,0),function(){var a=arguments,r=-1,n=g(a.length-t,0),i=Array(n);while(++r<n)i[r]=a[t+r];r=-1;var o=Array(t+1);while(++r<t)o[r]=a[r];return o[t]=i,d(e,this,o)}}function S(e){return k(e)||R(e)||!!(y&&e&&e[y])}function E(e){if("string"==typeof e||N(e))return e;var t=e+"";return"0"==t&&1/e==-a?"-0":t}function R(e){return P(e)&&p.call(e,"callee")&&(!_.call(e,"callee")||v.call(e)==n)}var k=Array.isArray;function I(e){return null!=e&&q(e.length)&&!O(e)}function P(e){return T(e)&&I(e)}function O(e){var t=F(e)?v.call(e):"";return t==i||t==o}function q(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function F(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function T(e){return!!e&&"object"==typeof e}function N(e){return"symbol"==typeof e||T(e)&&v.call(e)==s}var j=L((function(e,t){return null==e?{}:w(e,f(C(t,1),E))}));e.exports=j}).call(this,a("c8ba"))},"930b":function(e,t,a){"use strict";var r=a("5c06");t["a"]=new r["a"]([{key:"PENDING",name:"待支付",value:10},{key:"SUCCESS",name:"支付成功",value:20}])},"96e1":function(e,t,a){},a939:function(e,t,a){},c4f0:function(e,t,a){"use strict";a("0ea6")},c7eb:function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));a("a4d3"),a("e01a"),a("b636"),a("d28b"),a("944a"),a("fb6a"),a("b0c0"),a("0c47"),a("23dc"),a("3410"),a("131a"),a("d3b7"),a("3ca3"),a("159b"),a("ddb0");var r=a("53ca");function n(){
|
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
n=function(){return t};var e,t={},a=Object.prototype,i=a.hasOwnProperty,o=Object.defineProperty||function(e,t,a){e[t]=a.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function d(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,a){return e[t]=a}}function f(e,t,a,r){var n=t&&t.prototype instanceof y?t:y,i=Object.create(n.prototype),s=new q(r||[]);return o(i,"_invoke",{value:k(e,a,s)}),i}function m(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",p="suspendedYield",v="executing",b="completed",_={};function y(){}function g(){}function C(){}var w={};d(w,l,(function(){return this}));var x=Object.getPrototypeOf,L=x&&x(x(F([])));L&&L!==a&&i.call(L,l)&&(w=L);var S=C.prototype=y.prototype=Object.create(w);function E(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function R(e,t){function a(n,o,s,l){var c=m(e[n],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==Object(r["a"])(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){a("next",e,s,l)}),(function(e){a("throw",e,s,l)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return a("throw",e,s,l)}))}l(c.arg)}var n;o(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,n){a(e,r,t,n)}))}return n=n?n.then(i,i):i()}})}function k(t,a,r){var n=h;return function(i,o){if(n===v)throw Error("Generator is already running");if(n===b){if("throw"===i)throw o;return{value:e,done:!0}}for(r.method=i,r.arg=o;;){var s=r.delegate;if(s){var l=I(s,r);if(l){if(l===_)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=b,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=v;var c=m(t,a,r);if("normal"===c.type){if(n=r.done?b:p,c.arg===_)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=b,r.method="throw",r.arg=c.arg)}}}function I(t,a){var r=a.method,n=t.iterator[r];if(n===e)return a.delegate=null,"throw"===r&&t.iterator["return"]&&(a.method="return",a.arg=e,I(t,a),"throw"===a.method)||"return"!==r&&(a.method="throw",a.arg=new TypeError("The iterator does not provide a '"+r+"' method")),_;var i=m(n,t.iterator,a.arg);if("throw"===i.type)return a.method="throw",a.arg=i.arg,a.delegate=null,_;var o=i.arg;return o?o.done?(a[t.resultName]=o.value,a.next=t.nextLoc,"return"!==a.method&&(a.method="next",a.arg=e),a.delegate=null,_):o:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,_)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function q(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function F(t){if(t||""===t){var a=t[l];if(a)return a.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function a(){for(;++n<t.length;)if(i.call(t,n))return a.value=t[n],a.done=!1,a;return a.value=e,a.done=!0,a};return o.next=o}}throw new TypeError(Object(r["a"])(t)+" is not iterable")}return g.prototype=C,o(S,"constructor",{value:C,configurable:!0}),o(C,"constructor",{value:g,configurable:!0}),g.displayName=d(C,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,C):(e.__proto__=C,d(e,u,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},E(R.prototype),d(R.prototype,c,(function(){return this})),t.AsyncIterator=R,t.async=function(e,a,r,n,i){void 0===i&&(i=Promise);var o=new R(f(e,a,r,n),i);return t.isGeneratorFunction(a)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},E(S),d(S,u,"Generator"),d(S,l,(function(){return this})),d(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),a=[];for(var r in t)a.push(r);return a.reverse(),function e(){for(;a.length;){var r=a.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=F,q.prototype={constructor:q,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var a in this)"t"===a.charAt(0)&&i.call(this,a)&&!isNaN(+a.slice(1))&&(this[a]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var a=this;function r(r,n){return s.type="throw",s.arg=t,a.next=r,n&&(a.method="next",a.arg=e),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var a=this.tryEntries.length-1;a>=0;--a){var r=this.tryEntries[a];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var n=r;break}}n&&("break"===e||"continue"===e)&&n.tryLoc<=t&&t<=n.finallyLoc&&(n=null);var o=n?n.completion:{};return o.type=e,o.arg=t,n?(this.method="next",this.next=n.finallyLoc,_):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),_},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),O(a),_}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var r=a.completion;if("throw"===r.type){var n=r.arg;O(a)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,a,r){return this.delegate={iterator:F(t),resultName:a,nextLoc:r},"next"===this.method&&(this.arg=e),_}},t}},dab6:function(e,t,a){"use strict";a.r(t);a("b0c0");var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("div",{staticClass:"table-operator"},[t("a-row",{staticClass:"row-item-search"},[t("a-form",{staticClass:"search-form",attrs:{form:e.searchForm,layout:"inline"},on:{submit:e.handleSearch}},[t("a-form-item",{attrs:{label:"昵称/手机号"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["search"],expression:"['search']"}],attrs:{placeholder:"请输入昵称/手机号"}})],1),e.$module("user-grade")?t("a-form-item",{attrs:{label:"会员等级"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["gradeId",{initialValue:0}],expression:"['gradeId', { initialValue: 0 }]"}]},[t("a-select-option",{attrs:{value:0}},[e._v("全部")]),e._l(e.gradeList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.grade_id}},[e._v(e._s(a.name))])}))],2)],1):e._e(),t("a-form-item",{attrs:{label:"注册时间"}},[t("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["betweenTime"],expression:"['betweenTime']"}],attrs:{format:"YYYY-MM-DD"}})],1),t("a-form-item",{staticClass:"search-btn"},[t("a-button",{attrs:{type:"primary",icon:"search","html-type":"submit"}},[e._v("搜索")])],1)],1)],1)],1),t("s-table",{ref:"table",attrs:{rowKey:"user_id",loading:e.isLoading,columns:e.columns,data:e.loadData,pagination:e.pagination},scopedSlots:e._u([{key:"avatar_url",fn:function(e){return t("span",{},[t("div",{staticClass:"avatar"},[t("img",e?{attrs:{width:"45",height:"45",src:e,alt:"用户头像"}}:{attrs:{width:"45",height:"45",src:a("889b"),alt:"用户头像"}})])])}},{key:"main_info",fn:function(a){return t("span",{},[t("p",[e._v(e._s(a.nick_name))]),t("p",{staticClass:"c-p"},[e._v(e._s(a.mobile))])])}},{key:"grade",fn:function(a){return t("span",{},[a?t("a-tag",[e._v(e._s(a.name))]):t("span",[e._v("--")])],1)}},{key:"balance",fn:function(a,r){return t("span",{},[t("p",[t("span",[e._v("余额:")]),t("span",{staticClass:"c-p"},[e._v(e._s(a))])]),t("p",[t("span",[e._v("积分:")]),t("span",{staticClass:"c-p"},[e._v(e._s(r.points))])])])}},{key:"expend_money",fn:function(a){return t("span",{},[t("span",{staticClass:"c-p"},[e._v(e._s(a))])])}},{key:"platform",fn:function(e){return t("span",{staticClass:"platform"},[t("platform-icon",{attrs:{name:e,showTips:!0,iconSize:17}})],1)}},{key:"invite_user",fn:function(a){return t("span",{},[t("p",[e._v(e._s(a.nick_name))]),t("p",{staticClass:"c-p"},[e._v(e._s(a.mobile))])])}},{key:"action",fn:function(a){return t("span",{staticClass:"actions"},[e.$module("market-recharge")?t("a",{directives:[{name:"action",rawName:"v-action:recharge",arg:"recharge"}],attrs:{title:"会员充值"},on:{click:function(t){return e.handleRecharge(a)}}},[e._v("充值")]):e._e(),e.$module("user-grade")?t("a",{directives:[{name:"action",rawName:"v-action:grade",arg:"grade"}],attrs:{title:"会员等级"},on:{click:function(t){return e.handleGrade(a)}}},[e._v("等级")]):e._e(),t("a",{directives:[{name:"action",rawName:"v-action:delete",arg:"delete"}],on:{click:function(t){return e.handleDelete(a)}}},[e._v("删除")])])}}])}),t("GradeForm",{ref:"GradeForm",attrs:{gradeList:e.gradeList},on:{handleSubmit:e.handleRefresh}}),t("RechargeForm",{ref:"RechargeForm",on:{handleSubmit:e.handleRefresh}})],1)},n=[],i=a("5530"),o=(a("d3b7"),a("ab09")),s=a("fa04"),l=a("fab29"),c=a("2e1c"),u=a("2af9"),d=a("8d5f"),f=function(){var e=this,t=e._self._c;return t("a-modal",{staticClass:"noborder",attrs:{title:e.title,width:520,visible:e.visible,confirmLoading:e.confirmLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"会员ID",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v(e._s(e.record.user_id))])]),t("a-form-item",{attrs:{label:"会员身份",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["user_type",{rules:[{required:!0}]}],expression:"['user_type', { rules: [{ required: true }] }]"}],attrs:{placeholder:"请选择会员身份"},on:{change:e.setUserType}},[t("a-select-option",{attrs:{value:0}},[e._v("无身份")]),e._l(e.userTypeList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.id}},[e._v(e._s(a.name))])}))],2)],1),e.show_date?t("a-form-item",{attrs:{label:"有效时间",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-date-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["effective_time",{rules:[{message:"请输入有效时间",required:!0}]}],expression:"['effective_time', { rules: [{message: '请输入有效时间',required: true }] }]"}],attrs:{valueFormat:"YYYY-MM-DD"}})],1):e._e(),e.show_date_fx?t("a-form-item",{attrs:{label:"有效时间",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-date-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["fx_effective_time",{rules:[{message:"请输入有效时间",required:!0}]}],expression:"['fx_effective_time', { rules: [{message: '请输入有效时间',required: true }] }]"}],attrs:{valueFormat:"YYYY-MM-DD"}})],1):e._e(),t("a-form-item",{attrs:{label:"管理员备注",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["remark",{rules:[{required:!0,message:"请输入管理员备注"}]}],expression:"['remark', { rules: [{ required: true, message: '请输入管理员备注' }] }]"}],attrs:{placeholder:"请输入管理员备注",rows:3}})],1)],1)],1)],1)},m=[],h=a("88bc"),p=a.n(h),v={components:{},props:{gradeList:{type:Array,required:!0}},data:function(){return{show_date:!1,show_date_fx:!1,title:"设置会员等级",labelCol:{span:7},wrapperCol:{span:13},visible:!1,confirmLoading:!1,fx_effective_time:"",effective_time:"",form:this.$form.createForm(this),record:{},userTypeList:[{id:10,name:"游客"},{id:20,name:"PLUS会员"},{id:30,name:"分销商"},{id:40,name:"店长"}]}},methods:{handle:function(e){this.visible=!0,this.record=e,this.fx_effective_time=e.fx_effective_time,this.effective_time=e.effective_time,30===e.user_type&&e.fx_effective_time?(this.show_date=!1,this.show_date_fx=!0):20===e.user_type||40===e.user_type&&e.effective_time?(this.show_date=!0,this.show_date_fx=!1):(this.show_date=!1,this.show_date_fx=!1),this.setFieldsValue()},setUserType:function(e){30===e?(this.show_date=!1,this.show_date_fx=!0,this.record.fx_effective_time=this.fx_effective_time):20===e||40===e?(this.show_date=!0,this.show_date_fx=!1,this.record.effective_time=this.effective_time):(this.show_date=!1,this.show_date_fx=!1),this.record.user_type=e,this.setFieldsValue()},setFieldsValue:function(){var e=this.record,t=this.form.setFieldsValue;this.$nextTick((function(){t(p()(e,["user_type","effective_time","fx_effective_time"]))})),this.form.getFieldDecorator("grade_id",{initialValue:0,preserve:!0})},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.confirmLoading=!0,l["b"]({userId:this.record.user_id,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){return t.confirmLoading=!1}))}}},b=v,_=(a("03ab"),a("2877")),y=Object(_["a"])(b,f,m,!1,null,null,null),g=y.exports,C=function(){var e=this,t=e._self._c;return t("a-modal",{staticClass:"noborder",attrs:{title:e.title,width:520,visible:e.visible,confirmLoading:e.confirmLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-tabs",{attrs:{activeKey:e.activeKey},on:{change:e.onChangeTabs}},[t("a-tab-pane",{key:e.RECHARGE_TYPE_BALANCE,attrs:{tab:"充值余额"}},[e.activeKey===e.RECHARGE_TYPE_BALANCE?[t("a-form-item",{staticClass:"mb-5",attrs:{label:"会员ID",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v(e._s(e.record.user_id))])]),t("a-form-item",{staticClass:"mb-5",attrs:{label:"当前余额",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",{staticClass:"c-p"},[e._v(e._s(e.record.balance))])]),t("a-form-item",{attrs:{label:"充值方式",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["".concat(e.RECHARGE_TYPE_BALANCE,".mode"),{initialValue:"inc",rules:[{required:!0}]}],expression:"[`${RECHARGE_TYPE_BALANCE}.mode`, { initialValue: 'inc', rules: [{ required: true }] }]"}]},[t("a-radio",{attrs:{value:"inc"}},[e._v("增加")]),t("a-radio",{attrs:{value:"dec"}},[e._v("减少")]),t("a-radio",{attrs:{value:"final"}},[e._v("最终金额")])],1)],1),t("a-form-item",{attrs:{label:"变更金额",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["".concat(e.RECHARGE_TYPE_BALANCE,".money"),{initialValue:"",rules:[{required:!0,message:"请输入变更的金额"}]}],expression:"[`${RECHARGE_TYPE_BALANCE}.money`, { initialValue: '', rules: [{ required: true, message: '请输入变更的金额' }] }]"}],attrs:{min:.01}})],1),t("a-form-item",{attrs:{label:"管理员备注",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["".concat(e.RECHARGE_TYPE_BALANCE,".remark"),{rules:[{required:!0,message:"请输入管理员备注"}]}],expression:"[`${RECHARGE_TYPE_BALANCE}.remark`, { rules: [{ required: true, message: '请输入管理员备注' }] }]"}],attrs:{placeholder:"请输入管理员备注",rows:3}})],1)]:e._e()],2),t("a-tab-pane",{key:e.RECHARGE_TYPE_POINTS,attrs:{tab:"充值积分"}},[e.activeKey===e.RECHARGE_TYPE_POINTS?[t("a-form-item",{staticClass:"mb-5",attrs:{label:"会员ID",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v(e._s(e.record.user_id))])]),t("a-form-item",{staticClass:"mb-5",attrs:{label:"当前积分",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",{staticClass:"c-p"},[e._v(e._s(e.record.points))])]),t("a-form-item",{attrs:{label:"充值方式",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["".concat(e.RECHARGE_TYPE_POINTS,".mode"),{initialValue:"inc",rules:[{required:!0}]}],expression:"[`${RECHARGE_TYPE_POINTS}.mode`, { initialValue: 'inc', rules: [{ required: true }] }]"}]},[t("a-radio",{attrs:{value:"inc"}},[e._v("增加")]),t("a-radio",{attrs:{value:"dec"}},[e._v("减少")]),t("a-radio",{attrs:{value:"final"}},[e._v("最终积分")])],1)],1),t("a-form-item",{attrs:{label:"变更数量",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["".concat(e.RECHARGE_TYPE_POINTS,".value"),{initialValue:"",rules:[{required:!0,message:"请输入变更的金数量"}]}],expression:"[`${RECHARGE_TYPE_POINTS}.value`, { initialValue: '', rules: [{ required: true, message: '请输入变更的金数量' }] }]"}],attrs:{min:.01}})],1),t("a-form-item",{attrs:{label:"管理员备注",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["".concat(e.RECHARGE_TYPE_POINTS,".remark"),{rules:[{required:!0,message:"请输入管理员备注"}]}],expression:"[`${RECHARGE_TYPE_POINTS}.remark`, { rules: [{ required: true, message: '请输入管理员备注' }] }]"}],attrs:{placeholder:"请输入管理员备注",rows:3}})],1)]:e._e()],2)],1)],1)],1)],1)},w=[],x="balance",L="points",S={components:{},data:function(){return{title:"会员充值",labelCol:{span:7},wrapperCol:{span:13},visible:!1,confirmLoading:!1,form:this.$form.createForm(this),activeKey:x,RECHARGE_TYPE_BALANCE:x,RECHARGE_TYPE_POINTS:L,record:{}}},methods:{handle:function(e){this.visible=!0,this.record=e},onChangeTabs:function(e){this.activeKey=e},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this,a=this.record,r=this.activeKey;this.confirmLoading=!0,l["d"]({userId:a.user_id,target:r,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){return t.confirmLoading=!1}))}}},E=S,R=(a("57af"),Object(_["a"])(E,C,w,!1,null,"2bace808",null)),k=R.exports,I=Object(s["c"])([{title:"会员ID",dataIndex:"user_id"},{title:"会员头像",dataIndex:"avatar_url",scopedSlots:{customRender:"avatar_url"}},{title:"昵称/手机号",scopedSlots:{customRender:"main_info"}},{title:"邀请人",dataIndex:"invite_user",scopedSlots:{customRender:"invite_user"}},{title:"会员身份",dataIndex:"user_type_text"},{title:"余额/积分",dataIndex:"balance",scopedSlots:{customRender:"balance"}},{title:"实际消费金额",dataIndex:"expend_money",scopedSlots:{customRender:"expend_money"}},{title:"注册来源",dataIndex:"platform",scopedSlots:{customRender:"platform"}},{title:"注册时间",dataIndex:"create_time"},{title:"操作",width:"180px",scopedSlots:{customRender:"action"}}]),P={name:"Index",components:{STable:u["d"],GradeForm:g,RechargeForm:k,PlatformIcon:d["a"],UserItem:o["d"]},data:function(){var e=this;return{searchForm:this.$form.createForm(this),queryParam:{},isLoading:!1,columns:I,loadData:function(t){return l["c"](Object(i["a"])(Object(i["a"])({},t),e.queryParam)).then((function(e){return e.data.list}))},gradeList:[]}},created:function(){this.getGradeList()},methods:{getGradeList:function(){var e=this;c["a"]().then((function(t){e.gradeList=t.data.list}))},handleGrade:function(e){this.$refs.GradeForm.handle(e)},handleRecharge:function(e){this.$refs.RechargeForm.handle(e)},handleDelete:function(e){var t=this,a=this.$confirm({title:"您确定要删除该记录吗?",content:"删除后不可恢复",onOk:function(){return l["a"]({userId:e.user_id}).then((function(e){t.$message.success(e.message,1.5),t.handleRefresh()})).finally((function(e){return a.destroy()}))}})},handleSearch:function(e){var t=this;e.preventDefault(),this.searchForm.validateFields((function(e,a){e||(t.queryParam=Object(i["a"])(Object(i["a"])({},t.queryParam),a),t.handleRefresh(!0))}))},handleRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$refs.table.refresh(e)}}},O=P,q=(a("740e"),Object(_["a"])(O,r,n,!1,null,"715a43a8",null));t["default"]=q.exports},e5a8:function(e,t,a){"use strict";a.r(t);a("b0c0");var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("div",{staticClass:"table-operator"},[t("a-row",{staticClass:"row-item-search"},[t("a-form",{staticClass:"search-form",attrs:{form:e.searchForm,layout:"inline"},on:{submit:e.handleSearch}},[t("a-form-item",{attrs:{label:"会员订单号"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["search"],expression:"['search']"}],attrs:{placeholder:"请输入会员订单号"}})],1),t("a-form-item",{attrs:{label:"支付状态"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["pay_status",{initialValue:0}],expression:"['pay_status', { initialValue: 0 }]"}]},[t("a-select-option",{attrs:{value:0}},[e._v("全部")]),t("a-select-option",{attrs:{value:10}},[e._v("待支付")]),t("a-select-option",{attrs:{value:20}},[e._v("已支付")])],1)],1),t("a-form-item",{attrs:{label:"订单类型"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["order_type",{initialValue:0}],expression:"['order_type', { initialValue: 0 }]"}]},[t("a-select-option",{attrs:{value:0}},[e._v("全部")]),t("a-select-option",{attrs:{value:10}},[e._v("会员")]),t("a-select-option",{attrs:{value:20}},[e._v("分销商 ")])],1)],1),t("a-form-item",{attrs:{label:"支付方式"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["pay_method",{initialValue:0}],expression:"['pay_method', { initialValue: 0 }]"}]},[t("a-select-option",{attrs:{value:0}},[e._v("全部")]),t("a-select-option",{attrs:{value:"wechat"}},[e._v("微信支付")]),t("a-select-option",{attrs:{value:"balance"}},[e._v("余额支付 ")]),t("a-select-option",{attrs:{value:"huifu"}},[e._v("银联付 ")])],1)],1),t("a-form-item",{attrs:{label:"付款时间"}},[t("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["pay_time"],expression:"['pay_time']"}],staticStyle:{width:"220px"},attrs:{format:"YYYY-MM-DD"}})],1),t("a-form-item",{staticClass:"search-btn"},[t("a-button",{attrs:{type:"primary",icon:"search","html-type":"submit"}},[e._v("搜索")])],1)],1)],1)],1),t("s-table",{ref:"table",attrs:{rowKey:"order_id",loading:e.isLoading,columns:e.columns,data:e.loadData,pagination:e.pagination},scopedSlots:e._u([{key:"user",fn:function(e){return t("span",{},[t("UserItem",{attrs:{user:e}})],1)}},{key:"order_type",fn:function(a){return t("span",{},[10==a?t("a-tag",[e._v("会员")]):e._e(),20==a?t("a-tag",[e._v("分销商")]):e._e()],1)}},{key:"month",fn:function(a){return t("span",{},[t("p",{staticClass:"twoline-hide"},[e._v(e._s(a)+"个月")])])}},{key:"pay_method",fn:function(a){return t("span",{},[a?t("a-tag",[e._v(e._s(e.PaymentMethodEnum[a].name))]):e._e()],1)}},{key:"pay_status",fn:function(a){return t("span",{},[t("a-tag",{attrs:{color:20==a?"green":""}},[e._v(e._s(20==a?"已支付":"待支付"))])],1)}},{key:"pay_time",fn:function(a){return t("span",{},[t("span",[e._v(e._s(e._f("formatDate")(a)))])])}}])})],1)},n=[],i=a("5530"),o=a("3c76"),s=a("ca00"),l=a("b775"),c={order:"/user.identity/identityOrderList"};function u(e){return Object(l["b"])({url:c.order,method:"get",params:e})}var d=a("ab09"),f=a("930b"),m=a("c1df"),h=a.n(m),p={name:"Index",components:{STable:d["b"],UserItem:d["d"]},filters:{formatDate:function(e){return e?h()(1e3*e).format("YYYY-MM-DD HH:mm:ss"):"-"}},data:function(){var e=this;return{PayStatusEnum:f["a"],searchForm:this.$form.createForm(this),queryParam:{},isLoading:!1,columns:[{title:"ID",dataIndex:"order_id"},{title:"会员信息",dataIndex:"user",scopedSlots:{customRender:"user"}},{title:"订单号",dataIndex:"order_no"},{title:"订单类型",dataIndex:"order_type",scopedSlots:{customRender:"order_type"}},{title:"会员时效",dataIndex:"month",scopedSlots:{customRender:"month"}},{title:"支付金额",dataIndex:"pay_price"},{title:"支付方式",dataIndex:"pay_method",scopedSlots:{customRender:"pay_method"}},{title:"支付状态",dataIndex:"pay_status",scopedSlots:{customRender:"pay_status"}},{title:"支付时间",dataIndex:"pay_time",scopedSlots:{customRender:"pay_time"}},{title:"创建时间",dataIndex:"create_time",scopedSlots:{customRender:"create_time"}}],loadData:function(t){return u(Object(i["a"])(Object(i["a"])({},t),e.queryParam)).then((function(e){return e.data.list}))}}},created:function(){},beforeCreate:function(){Object(s["a"])(this,{PaymentMethodEnum:o["a"]})},methods:{handleRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$refs.table.refresh(e)},handleSearch:function(e){var t=this;e.preventDefault(),this.searchForm.validateFields((function(e,a){e||(t.queryParam=Object(i["a"])(Object(i["a"])({},t.queryParam),a),t.handleRefresh(!0))}))}}},v=p,b=(a("1d95"),a("2877")),_=Object(b["a"])(v,r,n,!1,null,"b63cac6a",null);t["default"]=_.exports}}]); |