chunk-6922df9d.dd14c909.js 13 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6922df9d"],{"09f4":function(e,t,r){"use strict";r.d(t,"a",(function(){return l})),Math.easeInOutQuad=function(e,t,r,n){return e/=n/2,e<1?r/2*e*e+t:(e--,-r/2*(e*(e-2)-1)+t)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function a(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function l(e,t,r){var l=o(),s=e-l,i=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=i;var o=Math.easeInOutQuad(c,l,s,t);a(o),c<t?n(e):r&&"function"===typeof r&&r()};u()}},"2db9":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"m-container"},[e._m(0),e._v(" "),r("div",{staticClass:"m-core"},[r("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.onSearch,reset:e.onReSet}},[r("el-form-item",{attrs:{prop:"name"}},[r("el-input",{attrs:{clearable:"",placeholder:"请输入姓名"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(t){t.target.blur(),e.$refs.searchForm.save(),e.search()}(t)}},model:{value:e.searchForm.name,callback:function(t){e.$set(e.searchForm,"name","string"===typeof t?t.trim():t)},expression:"searchForm.name"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"orderNo"}},[r("el-input",{attrs:{clearable:"",placeholder:"请输入订单编号"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(t){t.target.blur(),e.$refs.searchForm.save(),e.search()}(t)}},model:{value:e.searchForm.orderNo,callback:function(t){e.$set(e.searchForm,"orderNo","string"===typeof t?t.trim():t)},expression:"searchForm.orderNo"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"transNo"}},[r("el-input",{attrs:{clearable:"",placeholder:"请输入交易流水号"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(t){t.target.blur(),e.$refs.searchForm.save(),e.search()}(t)}},model:{value:e.searchForm.transNo,callback:function(t){e.$set(e.searchForm,"transNo","string"===typeof t?t.trim():t)},expression:"searchForm.transNo"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"city"}},[r("el-input",{attrs:{clearable:"",placeholder:"请输入所属城市"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(t){t.target.blur(),e.$refs.searchForm.save(),e.search()}(t)}},model:{value:e.searchForm.city,callback:function(t){e.$set(e.searchForm,"city","string"===typeof t?t.trim():t)},expression:"searchForm.city"}})],1),e._v(" "),r("el-form-item",[r("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择考级类型"},model:{value:e.searchForm.degreeType,callback:function(t){e.$set(e.searchForm,"degreeType","string"===typeof t?t.trim():t)},expression:"searchForm.degreeType"}},[r("el-option",{attrs:{value:3,label:"2022级暑假考级"}}),e._v(" "),r("el-option",{attrs:{value:2,label:"2022级寒假考级"}}),e._v(" "),r("el-option",{attrs:{value:1,label:"2021级寒假考级"}})],1)],1),e._v(" "),r("el-form-item",[r("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择缴费状态"},model:{value:e.searchForm.status,callback:function(t){e.$set(e.searchForm,"status","string"===typeof t?t.trim():t)},expression:"searchForm.status"}},[r("el-option",{attrs:{value:1,label:"未缴费"}}),e._v(" "),r("el-option",{attrs:{value:2,label:"已缴费"}}),e._v(" "),r("el-option",{attrs:{value:3,label:"已退费"}})],1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"orderDate"}},[r("el-date-picker",{staticStyle:{width:"410px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"报名开始日期","end-placeholder":"报名结束日期","picker-options":{firstDayOfWeek:1}},model:{value:e.searchForm.orderDate,callback:function(t){e.$set(e.searchForm,"orderDate","string"===typeof t?t.trim():t)},expression:"searchForm.orderDate"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")]),e._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"export/degreeRegistration/825",expression:"'export/degreeRegistration/825'"}],attrs:{type:"primary"},on:{click:e.onExport}},[e._v("导出")])],1)],1),e._v(" "),r("div",{staticStyle:{"font-size":"14px",color:"#f85043","padding-bottom":"10px"}},[e._v("\n 报考总人数:"+e._s(e.totalNumber)+"人\n "),r("i",{staticStyle:{width:"10px",display:"inline-block"}}),e._v("\n 实收总金额:"+e._s(e.totalAmount)+"元\n ")]),e._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[r("el-table-column",{attrs:{align:"center",prop:"name",label:"姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("copy-text",[e._v(e._s(t.row.name))]),r("br"),e._v("\n ("),r("copy-text",[e._v(e._s(t.row.id))]),e._v(")\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"orderNo",label:"订单编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("copy-text",[e._v(e._s(t.row.orderNo))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"transNo",label:"交易流水号"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-tooltip",{attrs:{placement:"top-start"}},[r("div",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(t.row.transNo))])]),e._v(" "),r("copy-text",[e._v(e._s(t.row.transNo))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"city",label:"所属城市"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("copy-text",[e._v(e._s(t.row.city))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"school",label:"学校"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("copy-text",[e._v(e._s(t.row.school))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"gender",label:"性别"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.gender?"男":"女"))]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"idcard",label:"证件号码"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"mobile",label:"联系电话",width:"110px"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"subject",label:"报考专业"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.type?t.row.subject:"乐理")+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"level",label:"报考级别",width:"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.level?r("div",[e._v("\n "+e._s(t.row.level)+" / "+e._s(e._f("moneyFormat")(t.row.money))+"元\n ")]):e._e()]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"缴费状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("statusFilter")(t.row.status)))]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"证书"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.theoryCert?r("div",[r("el-image",{staticStyle:{width:"80px",height:"80px","border-radius":"5px"},attrs:{fit:"cover",src:t.row.theoryCert,"preview-src-list":[t.row.theoryCert]}})],1):r("div",[e._v("--")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"createTime",label:"报名时间"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"memo",label:"备注"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[2==t.row.status&&e.$helpers.permission("degree/refund")?r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.onDegreeRefund(t.row)}}},[e._v("退费")]):e._e()]}}])})],1),e._v(" "),r("pagination",{attrs:{sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)],1)])},a=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("h2",[r("div",{staticClass:"squrt"}),e._v("\n 考级报名\n ")])}],o=(r("96cf"),r("1da1")),l=r("5530"),s=r("15fd"),i=r("333d"),c=r("bc3a"),u=r.n(c),p=r("e3eb"),d=r.n(p),m=r("b775"),f=r("4328"),v=r.n(f),b="/api-web";function h(e){return Object(m["a"])({url:b+"/degree/queryPage",method:"get",params:e})}function g(e){return Object(m["a"])({url:b+"/degree/refund",method:"post",data:v.a.stringify(e)})}var y=r("5f87"),_=r("ed08"),w=r("3908"),k={components:{pagination:i["a"]},name:"helpCategory",data:function(){return{searchForm:{name:null,orderNo:null,transNo:null,city:null,status:2,startTime:null,organId:null,endTime:null,orderDate:[],degreeType:3},totalNumber:0,totalAmount:0,tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},tempTreeList:[]}},mounted:function(){this.getList(),this.__init()},methods:{__init:function(){this.$store.dispatch("setBranchs")},onSearch:function(){this.pageInfo.page=1,this.getList()},onReSet:function(){this.orderDate=null,this.$refs.searchForm.resetFields(),this.searchForm.status=2,this.onSearch()},getList:function(){var e=this,t=this.searchForm,r=t.orderDate,n=Object(s["a"])(t,["orderDate"]),a=Object(l["a"])(Object(l["a"])({},n),{},{page:this.pageInfo.page,rows:this.pageInfo.limit},Object(_["a"])(r,["startTime","endTime"]));h(a).then((function(t){var r=t.data;200==t.code&&(e.totalNumber=r.applyNum,e.totalAmount=r.totalAmount,e.tableList=r.rows,e.pageInfo.total=r.total)}))},onDegreeRefund:function(e){var t=this;this.$confirm("确定退费吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(o["a"])(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,g({degreeRegistrationId:e.id});case 3:t.$message.success("退费成功"),t.getList(),r.next=9;break;case 7:r.prev=7,r.t0=r["catch"](0);case 9:case"end":return r.stop()}}),r,null,[[0,7]])}))))},onExport:function(){var e=this,t="/api-web/export/degreeRegistration",r=this.searchForm,n=r.orderDate,a=Object(s["a"])(r,["orderDate"]),o=Object(l["a"])(Object(l["a"])({},a),Object(_["a"])(n,["startTime","endTime"]));o=d()(o);var i={method:"get",headers:{Authorization:Object(y["b"])(),tenantId:Object(y["a"])()},url:t,params:o,responseType:"blob"};this.$confirm("您确定导出列表?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){w["a"].startLoading(),u()(i).then((function(t){var r=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),n=new Response(r).text();n.then((function(t){if(-1!=t.indexOf("code")){var n=JSON.parse(t);if(403==n.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);e.$message.error(n.msg)}else{var a=URL.createObjectURL(r),o=document.createElement("a"),l=new Date,s=l.getFullYear()+""+(l.getMonth()+1)+l.getDate()+l.getHours()+l.getMinutes(),i=s+"考级报名列表.xls";o.href=a,o.setAttribute("download",i),document.body.appendChild(o),o.click()}})),w["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),w["a"].endLoading()}))})).catch((function(){}))}},filters:{statusFilter:function(e){var t=["未支付","支付中","已支付","已退费"];return t[e]}}},x=k,F=(r("60ad"),r("2877")),O=Object(F["a"])(x,n,a,!1,null,"578b7120",null);t["default"]=O.exports},"52d1":function(e,t,r){},"60ad":function(e,t,r){"use strict";r("52d1")},ed08:function(e,t,r){"use strict";r.d(t,"b",(function(){return l})),r.d(t,"a",(function(){return s}));var n=r("ade3"),a=(r("c5f6"),r("28a5"),r("a481"),r("6b54"),r("53ca"),r("5a0c")),o=r.n(a);var l=function(e){var t=[];for(var r in e)if(e.hasOwnProperty(r)){var n=e[r],a=r.toLocaleUpperCase();t.push({label:n,value:"TRUE"===a||"FALSE"===a?"TRUE"===a:r})}return t},s=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return e&&e.length?(t={},Object(n["a"])(t,r[0]||"start",o()(e[0]).isValid()?o()(e[0]).format(a):""),Object(n["a"])(t,r[1]||"end",o()(e[1]).isValid()?o()(e[1]).format(a):""),t):{}}}}]);