12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-41a71215"],{"0fb6":function(e,t,n){},"323a":function(e,t,n){"use strict";n.d(t,"e",function(){return a}),n.d(t,"f",function(){return i}),n.d(t,"a",function(){return o}),n.d(t,"c",function(){return u}),n.d(t,"d",function(){return c}),n.d(t,"b",function(){return s});var r=n("bf9a");function a(e){return r["b"].post("admin_merchants",e)}function i(e,t){return r["b"].put("admin_merchants/".concat(e),t)}function o(e){return r["b"].get("admin_merchants/".concat(e,"/edit"))}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r["b"].get("admin_merchants",{params:e})}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r["b"].get("admin_merchant_config/get",{params:e})}function s(e){return r["b"].post("admin_merchant_config/edit",e)}},"32ad":function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"e",function(){return i}),n.d(t,"f",function(){return o}),n.d(t,"a",function(){return u}),n.d(t,"d",function(){return c}),n.d(t,"c",function(){return s});var r=n("bf9a");function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r["b"].get("deposit_cards",{params:e})}function i(e){return r["b"].post("deposit_cards",e)}function o(e,t){return r["b"].put("deposit_cards/".concat(e),t)}function u(e){return r["b"].get("deposit_cards/".concat(e,"/edit"))}function c(e){return r["b"].post("deposit_cards/giveDepositCardToUser",e)}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r["b"].get("deposit_card_orders",{params:e})}},"386d":function(e,t,n){"use strict";var r=n("cb7c"),a=n("83a1"),i=n("5f1b");n("214f")("search",1,function(e,t,n,o){return[function(n){var r=e(this),a=void 0==n?void 0:n[t];return void 0!==a?a.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=o(n,e,this);if(t.done)return t.value;var u=r(e),c=String(this),s=u.lastIndex;a(s,0)||(u.lastIndex=0);var l=i(u,c);return a(u.lastIndex,s)||(u.lastIndex=s),null===l?-1:l.index}]})},"469f":function(e,t,n){n("6c1c"),n("1654"),e.exports=n("7d7b")},"5d73":function(e,t,n){e.exports=n("469f")},"69d9":function(e,t,n){"use strict";n("8e6e"),n("456d"),n("7f7f"),n("ac6a");var r=n("bd86");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(n,!0).forEach(function(t){Object(r["a"])(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var o,u,c={name:"SearchForm",data:function(){return{form:{},show:!0}},props:{fields:Array,resetCurrentPage:{type:Boolean,default:!0}},created:function(){this.initFormShow()},methods:{onSubmit:function(){var e=this,t=i({},this.$route.query);this.resetCurrentPage&&delete t.page,this.fields.forEach(function(n){var r=n.field,a=e.form[r];"string"===typeof a&&(a=a.trim()),""===a||void 0===a?delete t[r]:(t[r]=a,"time_between"===r&&(t[r]=null==a?a:[a[0],a[1]]))}),this.$router.push({path:this.$route.path,query:t})},dateFormat:function(e){var t=e.getFullYear()+"-"+this.p(e.getMonth()+1)+"-"+this.p(e.getDate()),n=this.p(e.getHours())+":"+this.p(e.getMinutes())+":"+this.p(e.getSeconds());return t+n},p:function(e){return e<10?"0"+e:e},onReset:function(){this.form={},this.onSubmit()},initFormShow:function(){var e=this;this.fields.some(function(t){if(e.$route.query[t.field])return e.show=!0,!0})},setFormValueFromQuery:function(){var e=this,t=this.$route.query;this.fields.forEach(function(n){var r=n.field,a=t[r];e.$set(e.form,r,a)})},toggleShow:function(){this.show=!this.show},getOffsetHeight:function(){var e=document.getElementById("div-searchForm"),t=e.clientWidth||e.offsetWidth;this.formHeight=t}},watch:{$route:{handler:function(){this.setFormValueFromQuery()},immediate:!0}},render:function(e){var t=this;return e("el-collapse-transition",[e("div",{directives:[{name:"show",value:this.show}]},[e("el-form",{attrs:{inline:!0},nativeOn:{keydown:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?(e.preventDefault(),t.onSubmit(e)):null}}},[this.fields.map(function(n){var r;switch(n.type){case"el-select":r=e("el-select",{style:"width:150px;",attrs:{placeholder:n.label,filterable:!0,clearable:!0},model:{value:t.form[n.field],callback:function(e){t.$set(t.form,n.field,e)}}},[n.options.map(function(t){return e("el-option",{key:t.value||t.id,attrs:{label:t.label||t.name,value:String(t.value||t.id)}})})]);break;case"time-between":r=e("el-date-picker",{attrs:{type:"datetimerange","value-format":"yyyy-MM-dd HH:mm:ss","start-placeholder":n.label1,"end-placeholder":n.label2},model:{value:t.form[n.field],callback:function(e){t.$set(t.form,n.field,e)}}});break;case"super-input":r=e("el-input",{attrs:{placeholder:n.label,clearable:!0},model:{value:t.form[n.field],callback:function(e){t.$set(t.form,n.field,e)}}});break;default:r=e("el-input",{attrs:{placeholder:n.label,clearable:!0},model:{value:t.form[n.field],callback:function(e){t.$set(t.form,n.field,e)}}})}return e("el-form-item",{key:n.field},[r])}),e("el-form-item",{class:"actions"},[e("el-button",{attrs:{type:"primary"},on:{click:this.onSubmit}},["查询"]),e("el-button",{on:{click:this.onReset}},["重置"])])])])])}},s=c,l=(n("cafd"),n("2877")),f=Object(l["a"])(s,o,u,!1,null,"6dd66826",null);t["a"]=f.exports},"768b":function(e,t,n){"use strict";var r=n("a745"),a=n.n(r);function i(e){if(a()(e))return e}var o=n("5d73"),u=n.n(o);function c(e,t){var n=[],r=!0,a=!1,i=void 0;try{for(var o,c=u()(e);!(r=(o=c.next()).done);r=!0)if(n.push(o.value),t&&n.length===t)break}catch(s){a=!0,i=s}finally{try{r||null==c["return"]||c["return"]()}finally{if(a)throw i}}return n}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function l(e,t){return i(e)||c(e,t)||s()}n.d(t,"a",function(){return l})},"7d7b":function(e,t,n){var r=n("e4ae"),a=n("7cd6");e.exports=n("584a").getIterator=function(e){var t=a(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},"81df":function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.page?n("el-pagination",e._b({ref:"page",attrs:{"page-sizes":e.pageSizes,"current-page":e.currentPage,"page-size":e.perPage,total:e.page.total,layout:e.layout,background:""},on:{"size-change":e.onSizeChange,"current-change":e.onChange,"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.perPage=t},"update:page-size":function(t){e.perPage=t}}},"el-pagination",e.$attrs,!1)):e._e()},a=[],i={name:"Pagination",data:function(){return{currentPage:1,perPage:10}},props:{page:Object,layout:{type:String,default:"total, prev, pager, next, sizes, jumper"},autoPush:{type:Boolean,default:!0}},computed:{pageSizes:function(){var e=[10,30,50,100,200],t=this.page.per_page;return-1===e.indexOf(t)?[this.page.per_page].concat(e):e}},methods:{push:function(){var e=Object.assign({},this.$route.query,{page:this.currentPage,per_page:this.perPage});this.$router.push({path:this.$route.path,query:e})},onSizeChange:function(e){this.$emit("size-change",e),this.autoPush&&(this.currentPage=1,this.push())},onChange:function(e){this.$emit("current-change",e),this.autoPush&&this.push()}},watch:{page:{handler:function(e){var t=this;e&&(this.currentPage=e.current_page,this.perPage=e.per_page,this.$nextTick(function(){t.$refs.page.internalCurrentPage=e.current_page}))},immediate:!0}}},o=i,u=n("2877"),c=Object(u["a"])(o,r,a,!1,null,"f691fd2e",null);t["a"]=c.exports},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},b3cd:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-card",{scopedSlots:e._u([{key:"header",fn:function(){return[n("content-header")]},proxy:!0}])},[n("div",{staticClass:"header-button"},[n("search-form",{ref:"searchForm",attrs:{fields:e.search}})],1),n("el-table",{attrs:{data:e.recharge_order,resource:"recharge_order"}},[n("el-table-column",{attrs:{prop:"id",label:"ID",width:"60",align:"center"}}),n("el-table-column",{attrs:{prop:"no",label:"订单号",width:"250",align:"center"}}),n("el-table-column",{attrs:{"show-overflow-tooltip":"","min-width":"10%",prop:"users",label:"用户昵称(真名)"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[e._v("\n "+e._s(n.users.nickname)+"("+e._s(n.users.truename)+")\n ")]}}])}),n("el-table-column",{attrs:{prop:"users",width:"150",align:"center",label:"手机号"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[e._v("\n "+e._s(n.users.mobile)+"\n ")]}}])}),n("el-table-column",{attrs:{prop:"deposit_card_name",label:"名称",width:"150",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-tag",{attrs:{type:"warning"}},[e._v(e._s(t.row.deposit_card_name))])]}}])}),n("el-table-column",{attrs:{prop:"pay_money",label:"支付金额",width:"150",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-tag",{attrs:{type:"danger"}},[e._v(e._s(t.row.pay_money))])]}}])}),n("el-table-column",{attrs:{prop:"area","show-overflow-tooltip":"","min-width":"8%",align:"center",label:"区域"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[n("el-tag",{staticClass:"mr-1"},[e._v("\n "+e._s(r.areas.name)+"\n ")])]}}])}),n("el-table-column",{attrs:{label:"支付状态",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.pay_status?n("el-tag",{attrs:{type:"success"}},[e._v("成功")]):n("el-tag",{attrs:{type:"danger"}},[e._v("失败")])]}}])}),n("el-table-column",{attrs:{prop:"created_at",label:"添加时间",width:"180",align:"center"}}),n("el-table-column",{attrs:{prop:"pay_time",label:"支付时间",width:"180",align:"center"}})],1),n("div",{staticClass:"card-footer"},[n("pagination",{attrs:{page:e.page}})],1)],1)},a=[],i=(n("386d"),n("ac6a"),n("5df3"),n("768b")),o=(n("96cf"),n("3b8d")),u=n("69d9"),c=n("81df"),s=n("32ad"),l=n("b64d"),f=n("873a"),d=n("323a"),p={name:"Index",components:{SearchForm:u["a"],Pagination:c["a"]},data:function(){return{search:[{type:"el-select",field:"area_id",label:"骑行区域",options:[{id:"",name:"全部"}]},{type:"super-input",field:"mobile_nickname",label:"用户昵称 / 用户手机号"},{field:"no",label:"订单号"},{type:"el-select",field:"pay_status",label:"是否支付成功",options:[{id:"",name:"全部"},{id:1,name:"成功"},{id:0,name:"失败"}]},{type:"el-select",field:"merchant_id",label:"商户",options:[{id:"",name:"全部"}]}],recharge_order:[],page:null,first_blood:!0}},created:function(){var e=Object(o["a"])(regeneratorRuntime.mark(function e(){var t,n,r,a,o,u;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([Object(l["b"])({all:1})]);case 2:if(t=e.sent,n=Object(i["a"])(t,1),r=n[0].data,this.search[0].options.push.apply(this.search[0].options,r),"administrator"!==this.$store.state.users.user.roles[0]){e.next=15;break}return e.next=9,Promise.all([Object(d["c"])({all:1})]);case 9:a=e.sent,o=Object(i["a"])(a,1),u=o[0].data,this.search[4].options.push.apply(this.search[4].options,u.data),e.next=16;break;case 15:this.search.splice(4,1);case 16:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}(),mixins:[f["m"]],watch:{$route:{handler:function(){var e=Object(o["a"])(regeneratorRuntime.mark(function e(t){var n,r,a,i;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.autoPageSize(47,t);case 2:return e.next=4,Object(s["c"])(t.query);case 4:n=e.sent,r=n.data,a=r.data,i=r.meta,this.recharge_order=a,this.page=i;case 10:case"end":return e.stop()}},e,this)}));function t(t){return e.apply(this,arguments)}return t}(),immediate:!0}}},h=p,m=(n("ba5a"),n("2877")),g=Object(m["a"])(h,r,a,!1,null,"0649d3a1",null);t["default"]=g.exports},b64d:function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"c",function(){return i}),n.d(t,"d",function(){return o}),n.d(t,"e",function(){return u}),n.d(t,"a",function(){return c});var r=n("bf9a");function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r["b"].get("area",{params:e})}function i(e){return r["b"].get("area/".concat(e))}function o(e){return r["b"].post("area",e)}function u(e,t){return r["b"].put("area/".concat(e),t)}function c(e){return r["b"].get("area/".concat(e,"/edit"))}},ba5a:function(e,t,n){"use strict";var r=n("c4c4"),a=n.n(r);a.a},c4c4:function(e,t,n){},cafd:function(e,t,n){"use strict";var r=n("0fb6"),a=n.n(r);a.a}}]);
- //# sourceMappingURL=chunk-41a71215.95a64df5.js.map
|