12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5a4a8698"],{"0fb6":function(t,e,r){},"28b7":function(t,e,r){"use strict";r.d(e,"j",function(){return a}),r.d(e,"g",function(){return i}),r.d(e,"f",function(){return s}),r.d(e,"r",function(){return u}),r.d(e,"i",function(){return o}),r.d(e,"q",function(){return l}),r.d(e,"t",function(){return c}),r.d(e,"s",function(){return d}),r.d(e,"k",function(){return f}),r.d(e,"b",function(){return p}),r.d(e,"c",function(){return h}),r.d(e,"e",function(){return m}),r.d(e,"m",function(){return b}),r.d(e,"p",function(){return g}),r.d(e,"o",function(){return v}),r.d(e,"l",function(){return _}),r.d(e,"n",function(){return y}),r.d(e,"d",function(){return w}),r.d(e,"a",function(){return S}),r.d(e,"h",function(){return k});var n=r("bf9a");function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n["b"].get("user",{params:t})}function i(){return n["b"].get("user/number")}function s(){return n["b"].get("user/moneySum")}function u(t){return n["b"].post("user/status",t)}function o(t){return n["b"].get("user/wallet",{params:t})}function l(t,e){return n["b"].put("user/".concat(t),e)}function c(t){return n["b"].post("user/returnDeposit",t)}function d(t){return n["b"].post("user/reReturnDeposit",t)}function f(t){return n["b"].post("user/groupSendSms",t)}function p(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n["b"].get("user/groupSendSmsList",{params:t})}function h(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n["b"].get("user/groupSmsTemplate",{params:t})}function m(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n["b"].get("user/getUserByMobile",{params:t})}function b(t){return n["b"].post("user/rechargeBalance",t)}function g(t){return n["b"].post("user/refundBalance",t)}function v(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n["b"].get("user/refundBalanceOrders",{params:t})}function _(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n["b"].get("user/queryRefundBalance",{params:t})}function y(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n["b"].get("user/refundBalanceAgain",{params:t})}function w(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n["b"].get("user/students",{params:t})}function S(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n["b"].post("user/student",t)}function k(){return n["b"].get("user/studentsNumber")}},"2ce2":function(t,e,r){"use strict";var n=r("b3ff"),a=r.n(n);a.a},"323a":function(t,e,r){"use strict";r.d(e,"e",function(){return a}),r.d(e,"f",function(){return i}),r.d(e,"a",function(){return s}),r.d(e,"c",function(){return u}),r.d(e,"d",function(){return o}),r.d(e,"b",function(){return l});var n=r("bf9a");function a(t){return n["b"].post("admin_merchants",t)}function i(t,e){return n["b"].put("admin_merchants/".concat(t),e)}function s(t){return n["b"].get("admin_merchants/".concat(t,"/edit"))}function u(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n["b"].get("admin_merchants",{params:t})}function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n["b"].get("admin_merchant_config/get",{params:t})}function l(t){return n["b"].post("admin_merchant_config/edit",t)}},"386d":function(t,e,r){"use strict";var n=r("cb7c"),a=r("83a1"),i=r("5f1b");r("214f")("search",1,function(t,e,r,s){return[function(r){var n=t(this),a=void 0==r?void 0:r[e];return void 0!==a?a.call(r,n):new RegExp(r)[e](String(n))},function(t){var e=s(r,t,this);if(e.done)return e.value;var u=n(t),o=String(this),l=u.lastIndex;a(l,0)||(u.lastIndex=0);var c=i(u,o);return a(u.lastIndex,l)||(u.lastIndex=l),null===c?-1:c.index}]})},"469f":function(t,e,r){r("6c1c"),r("1654"),t.exports=r("7d7b")},"5d73":function(t,e,r){t.exports=r("469f")},"69d9":function(t,e,r){"use strict";r("8e6e"),r("456d"),r("7f7f"),r("ac6a");var n=r("bd86");function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(r,!0).forEach(function(e){Object(n["a"])(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(r).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var s,u,o={name:"SearchForm",data:function(){return{form:{},show:!0}},props:{fields:Array,resetCurrentPage:{type:Boolean,default:!0}},created:function(){this.initFormShow()},methods:{onSubmit:function(){var t=this,e=i({},this.$route.query);this.resetCurrentPage&&delete e.page,this.fields.forEach(function(r){var n=r.field,a=t.form[n];"string"===typeof a&&(a=a.trim()),""===a||void 0===a?delete e[n]:(e[n]=a,"time_between"===n&&(e[n]=null==a?a:[a[0],a[1]]))}),this.$router.push({path:this.$route.path,query:e})},dateFormat:function(t){var e=t.getFullYear()+"-"+this.p(t.getMonth()+1)+"-"+this.p(t.getDate()),r=this.p(t.getHours())+":"+this.p(t.getMinutes())+":"+this.p(t.getSeconds());return e+r},p:function(t){return t<10?"0"+t:t},onReset:function(){this.form={},this.onSubmit()},initFormShow:function(){var t=this;this.fields.some(function(e){if(t.$route.query[e.field])return t.show=!0,!0})},setFormValueFromQuery:function(){var t=this,e=this.$route.query;this.fields.forEach(function(r){var n=r.field,a=e[n];t.$set(t.form,n,a)})},toggleShow:function(){this.show=!this.show},getOffsetHeight:function(){var t=document.getElementById("div-searchForm"),e=t.clientWidth||t.offsetWidth;this.formHeight=e}},watch:{$route:{handler:function(){this.setFormValueFromQuery()},immediate:!0}},render:function(t){var e=this;return t("el-collapse-transition",[t("div",{directives:[{name:"show",value:this.show}]},[t("el-form",{attrs:{inline:!0},nativeOn:{keydown:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?(t.preventDefault(),e.onSubmit(t)):null}}},[this.fields.map(function(r){var n;switch(r.type){case"el-select":n=t("el-select",{style:"width:150px;",attrs:{placeholder:r.label,filterable:!0,clearable:!0},model:{value:e.form[r.field],callback:function(t){e.$set(e.form,r.field,t)}}},[r.options.map(function(e){return t("el-option",{key:e.value||e.id,attrs:{label:e.label||e.name,value:String(e.value||e.id)}})})]);break;case"time-between":n=t("el-date-picker",{attrs:{type:"datetimerange","value-format":"yyyy-MM-dd HH:mm:ss","start-placeholder":r.label1,"end-placeholder":r.label2},model:{value:e.form[r.field],callback:function(t){e.$set(e.form,r.field,t)}}});break;case"super-input":n=t("el-input",{attrs:{placeholder:r.label,clearable:!0},model:{value:e.form[r.field],callback:function(t){e.$set(e.form,r.field,t)}}});break;default:n=t("el-input",{attrs:{placeholder:r.label,clearable:!0},model:{value:e.form[r.field],callback:function(t){e.$set(e.form,r.field,t)}}})}return t("el-form-item",{key:r.field},[n])}),t("el-form-item",{class:"actions"},[t("el-button",{attrs:{type:"primary"},on:{click:this.onSubmit}},["查询"]),t("el-button",{on:{click:this.onReset}},["重置"])])])])])}},l=o,c=(r("cafd"),r("2877")),d=Object(c["a"])(l,s,u,!1,null,"6dd66826",null);e["a"]=d.exports},"768b":function(t,e,r){"use strict";var n=r("a745"),a=r.n(n);function i(t){if(a()(t))return t}var s=r("5d73"),u=r.n(s);function o(t,e){var r=[],n=!0,a=!1,i=void 0;try{for(var s,o=u()(t);!(n=(s=o.next()).done);n=!0)if(r.push(s.value),e&&r.length===e)break}catch(l){a=!0,i=l}finally{try{n||null==o["return"]||o["return"]()}finally{if(a)throw i}}return r}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function c(t,e){return i(t)||o(t,e)||l()}r.d(e,"a",function(){return c})},"7d7b":function(t,e,r){var n=r("e4ae"),a=r("7cd6");t.exports=r("584a").getIterator=function(t){var e=a(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return n(e.call(t))}},"81df":function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.page?r("el-pagination",t._b({ref:"page",attrs:{"page-sizes":t.pageSizes,"current-page":t.currentPage,"page-size":t.perPage,total:t.page.total,layout:t.layout,background:""},on:{"size-change":t.onSizeChange,"current-change":t.onChange,"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"update:pageSize":function(e){t.perPage=e},"update:page-size":function(e){t.perPage=e}}},"el-pagination",t.$attrs,!1)):t._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 t=[10,30,50,100,200],e=this.page.per_page;return-1===t.indexOf(e)?[this.page.per_page].concat(t):t}},methods:{push:function(){var t=Object.assign({},this.$route.query,{page:this.currentPage,per_page:this.perPage});this.$router.push({path:this.$route.path,query:t})},onSizeChange:function(t){this.$emit("size-change",t),this.autoPush&&(this.currentPage=1,this.push())},onChange:function(t){this.$emit("current-change",t),this.autoPush&&this.push()}},watch:{page:{handler:function(t){var e=this;t&&(this.currentPage=t.current_page,this.perPage=t.per_page,this.$nextTick(function(){e.$refs.page.internalCurrentPage=t.current_page}))},immediate:!0}}},s=i,u=r("2877"),o=Object(u["a"])(s,n,a,!1,null,"f691fd2e",null);e["a"]=o.exports},"83a1":function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},b3ff:function(t,e,r){},cafd:function(t,e,r){"use strict";var n=r("0fb6"),a=r.n(n);a.a},dda6:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("el-card",{scopedSlots:t._u([{key:"header",fn:function(){return[r("div",{staticClass:"header-class"},[r("div",[r("content-header")],1),r("div",{staticClass:"wid-class"},[r("span",[t._v("待处理数:")]),r("span",{staticClass:"font-col"},[t._v(t._s(t.waitNumbers))])])])]},proxy:!0}])},[r("search-form",{ref:"searchForm",attrs:{fields:t.search}}),r("el-table",{staticStyle:{"font-size":"12px"},attrs:{data:t.users,resource:"user"}},[r("el-table-column",{attrs:{label:"头像",align:"center","min-width":"5%"},scopedSlots:t._u([{key:"default",fn:function(t){return[r("img",{attrs:{src:t.row.user.avatar,"min-width":"30",height:"30"}})]}}])}),r("el-table-column",{attrs:{prop:"user.nickname","show-overflow-tooltip":"",label:"昵称(真实姓名)",align:"center","min-width":"5%"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.user.nickname)),e.row.user.truename?r("span",[t._v("("+t._s(e.row.user.truename)+")")]):t._e()]}}])}),r("el-table-column",{attrs:{prop:"user.mobile",label:"手机号码",align:"center","min-width":"6%","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{label:"认证类型",align:"center","min-width":"6%"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.type?r("el-button",{attrs:{type:"success",size:"mini",plain:""}},[t._v("\n "+t._s(e.row.type_text)+"\n ")]):t._e(),0==e.row.type?r("el-button",{attrs:{type:"danger",size:"mini",plain:""}},[t._v("\n "+t._s(e.row.type_text)+"\n ")]):t._e()]}}])}),r("el-table-column",{attrs:{prop:"school",align:"center",label:"学校","min-width":"4%","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"student_no",align:"center",label:"学号或工号","show-overflow-tooltip":"","min-width":"8%"}}),r("el-table-column",{attrs:{prop:"year",label:"年份","show-overflow-tooltip":"",align:"center","min-width":"8%"}}),r("el-table-column",{attrs:{prop:"register_area",label:"所属区域","show-overflow-tooltip":"",align:"center","min-width":"8%"}}),r("el-table-column",{attrs:{prop:"created_at",align:"center","show-overflow-tooltip":"","min-width":"8%",label:"申请时间"}}),r("el-table-column",{attrs:{label:"审核状态",align:"center","min-width":"6%"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.auth_status?r("el-button",{attrs:{type:"success",size:"mini",plain:""}},[t._v("\n "+t._s(e.row.auth_status_text)+"\n ")]):t._e(),0==e.row.auth_status?r("el-button",{attrs:{type:"danger",size:"mini",plain:""}},[t._v("\n "+t._s(e.row.auth_status_text)+"\n ")]):t._e()]}}])}),r("el-table-column",{attrs:{prop:"error_msg",label:"失败原因","min-width":"8%"}}),r("el-table-column",{attrs:{label:"操作",align:"center",width:"400"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(r){return t.authClick(e.row)}}},[t._v("设置")])]}}])})],1),r("div",{staticClass:"card-footer"},[r("pagination",{attrs:{page:t.page}})],1),r("el-dialog",{attrs:{title:"认证信息",visible:t.dialogVisible,width:"80%"},on:{"update:visible":function(e){t.dialogVisible=e}}},[r("el-card",{staticClass:"box-card",staticStyle:{display:"inline-block",width:"45%","margin-right":"20px"}},[r("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[r("span",[t._v("认证信息")])]),r("div",[r("span",{staticClass:"label-name"},[t._v(" 姓名: ")]),r("span",[t._v(t._s(t.editStudent.name))])]),r("div",[r("span",{staticClass:"label-name"},[t._v(" 类型: ")]),r("span",[t._v(t._s(t.editStudent.type_text))])]),r("div",[r("span",{staticClass:"label-name"},[t._v(" 学校: ")]),r("span",[t._v(t._s(t.editStudent.school))])]),r("div",[r("span",{staticClass:"label-name"},[t._v(" 学号: ")]),r("span",[t._v(t._s(t.editStudent.student_no))])]),r("div",[r("span",{staticClass:"label-name"},[t._v(" 入学年份: ")]),r("span",[t._v(t._s(t.editStudent.year))])]),r("div",[r("span",{staticClass:"label-name"},[t._v(" 上传凭证: ")]),r("span",[t.dialogVisible?r("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:t.editStudent.resource.url,"preview-src-list":[t.editStudent.resource.url]}}):t._e()],1)])]),r("el-card",{staticClass:"box-card",staticStyle:{display:"inline-block",width:"50%","vertical-align":"top"}},[r("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[r("span",[t._v("认证结果")])]),r("el-form",{ref:"formAuth",attrs:{model:t.formAuth,rules:t.formRules,"label-width":"150px"}},[r("el-form-item",{attrs:{prop:"auth_status",required:"",label:"认证状态"}},[r("el-select",{staticClass:"limit-width",attrs:{placeholder:"请选择"},model:{value:t.formAuth.auth_status,callback:function(e){t.$set(t.formAuth,"auth_status",e)},expression:"formAuth.auth_status"}},t._l(t.auth_status,function(t){return r("el-option",{key:t.id,attrs:{label:t.title,value:t.id}})}),1)],1),r("el-form-item",{attrs:{prop:"auth_date",label:"认证过期时间"}},[r("el-date-picker",{attrs:{type:"date","value-format":"yyyy-MM-dd",placeholder:"选择失效时间"},model:{value:t.formAuth.auth_date,callback:function(e){t.$set(t.formAuth,"auth_date",e)},expression:"formAuth.auth_date"}})],1),r("el-form-item",{attrs:{prop:"error_msg",label:"失败信息"}},[r("el-input",{attrs:{type:"textarea"},model:{value:t.formAuth.error_msg,callback:function(e){t.$set(t.formAuth,"error_msg",e)},expression:"formAuth.error_msg"}})],1),r("el-form-item",[r("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submit()}}},[t._v("确 定")])],1)],1)],1)],1)],1)},a=[],i=(r("386d"),r("ac6a"),r("5df3"),r("768b")),s=(r("96cf"),r("3b8d")),u=r("69d9"),o=r("81df"),l=r("28b7"),c=r("873a"),d=r("323a"),f={name:"Student",components:{SearchForm:u["a"],Pagination:o["a"]},data:function(){return{search:[{type:"super-input",field:"mobile_nickname",label:"用户昵称 / 用户手机号"},{field:"truename",label:"真实姓名"},{type:"el-select",field:"is_card_certified",label:"实名认证状态",options:[{id:"",name:"全部"},{value:"0",label:"未实名"},{value:"1",label:"已实名"}]},{type:"el-select",field:"status",label:"使用状态",options:[{id:"",name:"全部"},{value:"0",label:"暂停使用"},{value:"1",label:"正常"}]},{type:"el-select",field:"merchant_id",label:"商户",options:[{id:"",name:"全部"}]}],users:[],page:null,waitNumbers:0,editStudent:[],auth_status:[{id:0,title:"待认证"},{id:1,title:"认证成功"},{id:2,title:"认证失败"}],formAuth:{id:0,auth_status:0,auth_date:"",error_msg:""},dialogVisible:!1,formRules:{auth_status:[{required:!0,message:"请选择认证结果",trigger:"change"}]}}},inject:["reload"],mixins:[c["m"]],watch:{$route:{handler:function(){var t=Object(s["a"])(regeneratorRuntime.mark(function t(e){var r,n,a,i;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.autoPageSize(57,e);case 2:return t.next=4,Object(l["d"])(e.query);case 4:r=t.sent,n=r.data,a=n.data,i=n.meta,this.users=a,this.page=i;case 10:case"end":return t.stop()}},t,this)}));function e(e){return t.apply(this,arguments)}return e}(),immediate:!0}},created:function(){var t=Object(s["a"])(regeneratorRuntime.mark(function t(){var e,r,n,a,s;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return this.balanceShow=!Object(c["d"])("rechargeBalance"),this.returnBalanceShow=Object(c["d"])("returnBalance"),t.next=4,Object(l["h"])();case 4:if(e=t.sent,r=e.data,this.waitNumbers=r,"administrator"!==this.$store.state.users.user.roles[0]){t.next=16;break}return t.next=10,Promise.all([Object(d["c"])({all:1})]);case 10:n=t.sent,a=Object(i["a"])(n,1),s=a[0].data,this.search[4].options.push.apply(this.search[4].options,s.data),t.next=17;break;case 16:this.search.splice(4,1);case 17:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),methods:{authClick:function(t){this.editStudent=t,this.dialogVisible=!0,this.formAuth.id=t.id},submit:function(){var t=this;console.log("mead"),this.$refs["formAuth"].validate(function(e){if(!e)return alert("请检查输入内容"),!1;if(1==t.formAuth.auth_status){if(!t.formAuth.auth_date)return alert("请输入到期时间"),!1}else if(!t.formAuth.error_msg)return alert("请输入失败原因"),!1;Object(l["a"])(t.formAuth).then(function(e){e.then(function(e){e&&(t.$message({message:"操作成功",type:"success"}),t.dialogVisibleActive=!1,t.formAuth.auth_status=0,t.formAuth.id=0,t.formAuth.error_msg="",t.formAuth.auth_date="")})})})}}},p=f,h=(r("2ce2"),r("2877")),m=Object(h["a"])(p,n,a,!1,null,"49ae9500",null);e["default"]=m.exports}}]);
- //# sourceMappingURL=chunk-5a4a8698.f4187dc9.js.map
|