AppDetail.9ff4aa2e.js 33 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["AppDetail"],{3908:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));r("433b");var n=r("d399");function a(e){e?n["a"].loading({duration:0,forbidClick:!0,message:"加载中..."}):n["a"].clear()}},4127:function(e,t,r){"use strict";var n=r("d2334"),a=r("b313"),i=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,s(t)?t:[t])},l=Date.prototype.toISOString,f=a["default"],d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:f,formatter:a.formatters[f],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||"bigint"===typeof e},m=function e(t,r,a,i,o,u,l,f,m,h,g,y,v){var b=t;if("function"===typeof l?b=l(r,b):b instanceof Date?b=h(b):"comma"===a&&s(b)&&(b=n.maybeMap(b,(function(e){return e instanceof Date?h(e):e})).join(",")),null===b){if(i)return u&&!y?u(r,d.encoder,v,"key"):r;b=""}if(p(b)||n.isBuffer(b)){if(u){var x=y?r:u(r,d.encoder,v,"key");return[g(x)+"="+g(u(b,d.encoder,v,"value"))]}return[g(r)+"="+g(String(b))]}var S,$=[];if("undefined"===typeof b)return $;if(s(l))S=l;else{var O=Object.keys(b);S=f?O.sort(f):O}for(var U=0;U<S.length;++U){var N=S[U],_=b[N];if(!o||null!==_){var D=s(b)?"function"===typeof a?a(r,N):r:r+(m?"."+N:"["+N+"]");c($,e(_,D,a,i,o,u,l,f,m,h,g,y,v))}}return $},h=function(e){if(!e)return d;if(null!==e.encoder&&void 0!==e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=a["default"];if("undefined"!==typeof e.format){if(!i.call(a.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=a.formatters[r],o=d.filter;return("function"===typeof e.filter||s(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?d.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:d.encode,encoder:"function"===typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:o,formatter:n,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}};e.exports=function(e,t){var r,n,a=e,i=h(t);"function"===typeof i.filter?(n=i.filter,a=n("",a)):s(i.filter)&&(n=i.filter,r=n);var u,l=[];if("object"!==typeof a||null===a)return"";u=t&&t.arrayFormat in o?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var f=o[u];r||(r=Object.keys(a)),i.sort&&r.sort(i.sort);for(var d=0;d<r.length;++d){var p=r[d];i.skipNulls&&null===a[p]||c(l,m(a[p],p,f,i.strictNullHandling,i.skipNulls,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.formatter,i.encodeValuesOnly,i.charset))}var g=l.join(i.delimiter),y=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),g.length>0?y+g:""}},4328:function(e,t,r){"use strict";var n=r("4127"),a=r("9e6a"),i=r("b313");e.exports={formats:i,parse:a,stringify:n}},"5a0c":function(e,t,r){!function(t,r){e.exports=r()}(0,(function(){"use strict";var e="millisecond",t="second",r="minute",n="hour",a="day",i="week",o="month",s="quarter",u="year",c=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,l=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},d={s:f,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),a=r%60;return(t<=0?"+":"-")+f(n,2,"0")+":"+f(a,2,"0")},m:function(e,t){var r=12*(t.year()-e.year())+(t.month()-e.month()),n=e.clone().add(r,o),a=t-n<0,i=e.clone().add(r+(a?-1:1),o);return Number(-(r+(t-n)/(a?n-i:i-n))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(c){return{M:o,y:u,w:i,d:a,D:"date",h:n,m:r,s:t,ms:e,Q:s}[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},m="en",h={};h[m]=p;var g=function(e){return e instanceof x},y=function(e,t,r){var n;if(!e)return m;if("string"==typeof e)h[e]&&(n=e),t&&(h[e]=t,n=e);else{var a=e.name;h[a]=e,n=a}return!r&&n&&(m=n),n||!r&&m},v=function(e,t){if(g(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new x(r)},b=d;b.l=y,b.i=g,b.w=function(e,t){return v(e,{locale:t.$L,utc:t.$u,$offset:t.$offset})};var x=function(){function f(e){this.$L=this.$L||y(e.locale,null,!0),this.parse(e)}var d=f.prototype;return d.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(b.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(c);if(n)return r?new Date(Date.UTC(n[1],n[2]-1,n[3]||1,n[4]||0,n[5]||0,n[6]||0,n[7]||0)):new Date(n[1],n[2]-1,n[3]||1,n[4]||0,n[5]||0,n[6]||0,n[7]||0)}return new Date(t)}(e),this.init()},d.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},d.$utils=function(){return b},d.isValid=function(){return!("Invalid Date"===this.$d.toString())},d.isSame=function(e,t){var r=v(e);return this.startOf(t)<=r&&r<=this.endOf(t)},d.isAfter=function(e,t){return v(e)<this.startOf(t)},d.isBefore=function(e,t){return this.endOf(t)<v(e)},d.$g=function(e,t,r){return b.u(e)?this[t]:this.set(r,e)},d.year=function(e){return this.$g(e,"$y",u)},d.month=function(e){return this.$g(e,"$M",o)},d.day=function(e){return this.$g(e,"$W",a)},d.date=function(e){return this.$g(e,"$D","date")},d.hour=function(e){return this.$g(e,"$H",n)},d.minute=function(e){return this.$g(e,"$m",r)},d.second=function(e){return this.$g(e,"$s",t)},d.millisecond=function(t){return this.$g(t,"$ms",e)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(e,s){var c=this,l=!!b.u(s)||s,f=b.p(e),d=function(e,t){var r=b.w(c.$u?Date.UTC(c.$y,t,e):new Date(c.$y,t,e),c);return l?r:r.endOf(a)},p=function(e,t){return b.w(c.toDate()[e].apply(c.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice(t)),c)},m=this.$W,h=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(f){case u:return l?d(1,0):d(31,11);case o:return l?d(1,h):d(0,h+1);case i:var v=this.$locale().weekStart||0,x=(m<v?m+7:m)-v;return d(l?g-x:g+(6-x),h);case a:case"date":return p(y+"Hours",0);case n:return p(y+"Minutes",1);case r:return p(y+"Seconds",2);case t:return p(y+"Milliseconds",3);default:return this.clone()}},d.endOf=function(e){return this.startOf(e,!1)},d.$set=function(i,s){var c,l=b.p(i),f="set"+(this.$u?"UTC":""),d=(c={},c[a]=f+"Date",c.date=f+"Date",c[o]=f+"Month",c[u]=f+"FullYear",c[n]=f+"Hours",c[r]=f+"Minutes",c[t]=f+"Seconds",c[e]=f+"Milliseconds",c)[l],p=l===a?this.$D+(s-this.$W):s;if(l===o||l===u){var m=this.clone().set("date",1);m.$d[d](p),m.init(),this.$d=m.set("date",Math.min(this.$D,m.daysInMonth())).toDate()}else d&&this.$d[d](p);return this.init(),this},d.set=function(e,t){return this.clone().$set(e,t)},d.get=function(e){return this[b.p(e)]()},d.add=function(e,s){var c,l=this;e=Number(e);var f=b.p(s),d=function(t){var r=v(l);return b.w(r.date(r.date()+Math.round(t*e)),l)};if(f===o)return this.set(o,this.$M+e);if(f===u)return this.set(u,this.$y+e);if(f===a)return d(1);if(f===i)return d(7);var p=(c={},c[r]=6e4,c[n]=36e5,c[t]=1e3,c)[f]||1,m=this.$d.getTime()+e*p;return b.w(m,this)},d.subtract=function(e,t){return this.add(-1*e,t)},d.format=function(e){var t=this;if(!this.isValid())return"Invalid Date";var r=e||"YYYY-MM-DDTHH:mm:ssZ",n=b.z(this),a=this.$locale(),i=this.$H,o=this.$m,s=this.$M,u=a.weekdays,c=a.months,f=function(e,n,a,i){return e&&(e[n]||e(t,r))||a[n].substr(0,i)},d=function(e){return b.s(i%12||12,e,"0")},p=a.meridiem||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:b.s(s+1,2,"0"),MMM:f(a.monthsShort,s,c,3),MMMM:f(c,s),D:this.$D,DD:b.s(this.$D,2,"0"),d:String(this.$W),dd:f(a.weekdaysMin,this.$W,u,2),ddd:f(a.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(i),HH:b.s(i,2,"0"),h:d(1),hh:d(2),a:p(i,o,!0),A:p(i,o,!1),m:String(o),mm:b.s(o,2,"0"),s:String(this.$s),ss:b.s(this.$s,2,"0"),SSS:b.s(this.$ms,3,"0"),Z:n};return r.replace(l,(function(e,t){return t||m[e]||n.replace(":","")}))},d.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},d.diff=function(e,c,l){var f,d=b.p(c),p=v(e),m=6e4*(p.utcOffset()-this.utcOffset()),h=this-p,g=b.m(this,p);return g=(f={},f[u]=g/12,f[o]=g,f[s]=g/3,f[i]=(h-m)/6048e5,f[a]=(h-m)/864e5,f[n]=h/36e5,f[r]=h/6e4,f[t]=h/1e3,f)[d]||h,l?g:b.a(g)},d.daysInMonth=function(){return this.endOf(o).$D},d.$locale=function(){return h[this.$L]},d.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=y(e,t,!0);return n&&(r.$L=n),r},d.clone=function(){return b.w(this.$d,this)},d.toDate=function(){return new Date(this.valueOf())},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},f}();return v.prototype=x.prototype,v.extend=function(e,t){return e(t,x,v),v},v.locale=y,v.isDayjs=g,v.unix=function(e){return v(1e3*e)},v.en=h[m],v.Ls=h,v}))},6185:function(e,t,r){},"69b0":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:"appDetail"},[r("van-cell-group",[r("van-field",{attrs:{disabled:"",label:"考级名称"},model:{value:e.form.examBaseName,callback:function(t){e.$set(e.form,"examBaseName",t)},expression:"form.examBaseName"}}),r("van-cell",{attrs:{disabled:"",title:"缴费状态"}},[e.form.status?r("div",["PAY_WAIT"===e.form.status?r("p",{staticClass:"noPass"},[e._v("未缴费")]):r("p",{staticClass:"pass"},[e._v("已缴费")])]):e._e()]),r("van-field",{attrs:{disabled:"",label:"预计考试日期"},model:{value:e.form.examTime,callback:function(t){e.$set(e.form,"examTime",t)},expression:"form.examTime"}}),r("van-cell",{attrs:{title:"专业等级"}},[e._v("\n "+e._s(e.form.subjectName?e.form.subjectName:"通用")),e.form.level?r("span",[e._v("("+e._s(e._f("formatLevel")(e.form.level))+")")]):e._e()]),e._l(e.practiceInfo,(function(t,n){return r("van-cell",{key:n,attrs:{title:"练习曲"+e.numberToCN(n),"is-link":!e.form.practiceSongIdList},on:{click:function(t){return e.onOpen("practice",n)}}},[e._v("\n "+e._s(t.songName)+" "+e._s(t.songAuthor?"-"+t.songAuthor:t.songAuthor)+"\n ")])})),e._l(e.performInfo,(function(t,n){return r("van-cell",{key:n,attrs:{title:"演奏曲"+e.numberToCN(n),"is-link":!e.form.performSongIdList},on:{click:function(t){return e.onOpen("perform",n)}}},[e._v("\n "+e._s(t.songName)+" "+e._s(t.songAuthor?"-"+t.songAuthor:t.songAuthor)+"\n ")])})),r("van-field",{attrs:{disabled:"",label:"考级证书"},scopedSlots:e._u([{key:"input",fn:function(){return[r("van-uploader",{attrs:{name:"certificate","before-read":e.beforeRead,"before-delete":e.beforeDelete,"after-read":e.afterRead,accept:"image/*",disabled:!e.form.editStatus,deletable:e.form.editStatus,"max-count":1},model:{value:e.uploadCertificate,callback:function(t){e.uploadCertificate=t},expression:"uploadCertificate"}})]},proxy:!0}]),model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}}),r("van-cell",{attrs:{disabled:"",title:"乐理等级"}},[e._v("\n "+e._s(e._f("formatLevel")(e.form.examMusicTheoryLevel))+"\n ")]),r("van-field",{attrs:{disabled:"",label:"乐理证书"},scopedSlots:e._u([{key:"input",fn:function(){return[r("van-uploader",{attrs:{name:"certificate2","before-read":e.beforeRead,"before-delete":e.beforeDelete,"after-read":e.afterRead,accept:"image/*",disabled:!e.form.editStatus,deletable:e.form.editStatus,"max-count":1},model:{value:e.uploadCertificate2,callback:function(t){e.uploadCertificate2=t},expression:"uploadCertificate2"}})]},proxy:!0}]),model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],2),"AUDIT_REJECT"==e.form.status||e.form.memo?e._e():r("van-cell-group",{staticClass:"memos"},["AUDIT_REJECT"==e.form.status?r("van-cell",{attrs:{disabled:"",title:"报名审核"}},[e.form.status?r("div",["AUDIT_PASS"===e.form.status?r("p",{staticClass:"pass"},[e._v("已通过")]):"AUDIT_WAIT"===e.form.status?r("p",[e._v("等待审核")]):r("p",{staticClass:"noPass"},[e._v("未通过")])]):e._e()]):e._e(),e.form.memo?r("van-cell",{attrs:{title:"备注"}},[e._v("\n "+e._s(e.form.memo)+"\n ")]):e._e()],1),e.form.editStatus?r("van-button",{attrs:{type:"primary",round:"",block:""},on:{click:e.onSubmit}},[e._v("重新提交")]):e._e(),r("van-popup",{staticClass:"van-popup-song",attrs:{"close-on-click-overlay":!1},model:{value:e.songUpload.songStatus,callback:function(t){e.$set(e.songUpload,"songStatus",t)},expression:"songUpload.songStatus"}},[r("div",{staticClass:"song-popup"},[r("div",{staticClass:"title"},[e._v("自定义曲目")]),r("van-field",{attrs:{name:"songName",disabled:!e.form.editStatus,label:"曲名",placeholder:"请输入曲名"},scopedSlots:e._u([{key:"label",fn:function(){return[r("i",{staticStyle:{color:"#ee0a24"}},[e._v("*")]),e._v("曲名")]},proxy:!0}]),model:{value:e.songUpload.songName,callback:function(t){e.$set(e.songUpload,"songName",t)},expression:"songUpload.songName"}}),r("van-field",{attrs:{name:"songAuthor",disabled:!e.form.editStatus,label:"作者",placeholder:"请输入作者"},scopedSlots:e._u([{key:"label",fn:function(){return[r("i",{staticStyle:{color:"#ffffff"}},[e._v("*")]),e._v("作者")]},proxy:!0}]),model:{value:e.songUpload.songAuthor,callback:function(t){e.$set(e.songUpload,"songAuthor",t)},expression:"songUpload.songAuthor"}}),r("van-field",{attrs:{readonly:"",clearable:""},scopedSlots:e._u([{key:"input",fn:function(){return["practice"==e.songUpload.indexName?r("van-uploader",{attrs:{name:e.songUpload.indexName+"-"+e.songUpload.index,"before-read":e.beforeRead,"before-delete":e.beforeDelete,"after-read":e.afterRead,multiple:"",disabled:!e.form.editStatus,deletable:e.form.editStatus,accept:"image/*","max-count":5},model:{value:e.practiceUpload[e.songUpload.index],callback:function(t){e.$set(e.practiceUpload,e.songUpload.index,"string"===typeof t?t.trim():t)},expression:"practiceUpload[songUpload.index]"}}):e._e(),"perform"==e.songUpload.indexName?r("van-uploader",{attrs:{name:e.songUpload.indexName+"-"+e.songUpload.index,"before-read":e.beforeRead,"before-delete":e.beforeDelete,"after-read":e.afterRead,multiple:"",disabled:!e.form.editStatus,deletable:e.form.editStatus,accept:"image/*","max-count":5},model:{value:e.performUpload[e.songUpload.index],callback:function(t){e.$set(e.performUpload,e.songUpload.index,"string"===typeof t?t.trim():t)},expression:"performUpload[songUpload.index]"}}):e._e()]},proxy:!0}])}),r("p",{staticClass:"song-popup-tips"},[r("i",{staticStyle:{color:"#ee0a24"}},[e._v("*")]),e._v("支持格式:png,jpg,bmp")]),r("div",{staticClass:"popup-group"},[r("span",{on:{click:e.onSaveCancel}},[e._v("取消")]),r("span",{staticClass:"popup-sure",on:{click:e.onSaveUpload}},[e._v("确定")])])],1)])],1)},a=[],i=r("a34a"),o=r.n(i),s=r("cf45"),u=r("5a0c"),c=r.n(u),l=r("3908"),f=r("8900"),d=r("736c");function p(e,t,r,n,a,i,o){try{var s=e[i](o),u=s.value}catch(c){return void r(c)}s.done?t(u):Promise.resolve(u).then(n,a)}function m(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){p(i,n,a,o,s,"next",e)}function s(e){p(i,n,a,o,s,"throw",e)}o(void 0)}))}}var h={name:"appDetail",data:function(){var e=this.$route.query;return{headerStatus:!1,examRegistrationId:e.examRegistrationId,form:{id:null,paymentOrderNo:null,examBaseName:null,subjectName:null,level:null,status:null,examStartTime:null,lastExamCertificateUrl:null,examMusicTheoryLevel:null,lastMusicTheoryCertificateUrl:null,memo:null,practiceSongIdList:null,performSongIdList:null,editStatus:!1},uploadCertificate:[],uploadCertificate2:[],songUpload:{songStatus:!1,indexName:null,index:null,songName:null,songAuthor:null},practiceNum:null,performUpload:[],performUploadTemp:[],performInfo:[],performNum:null,practiceUpload:[],practiceUploadTemp:[],practiceInfo:[]}},mounted:function(){var e=this.$route.query;e.Authorization&&localStorage.setItem("Authorization",decodeURI(e.Authorization)),Object(s["a"])().android||Object(s["a"])().iPhone?document.title="报考详情":this.headerStatus=!0,this.__init()},methods:{__init:function(){var e=m(o.a.mark((function e(){var t,r,n,a,i=this;return o.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return Object(l["a"])(!0),e.prev=1,e.next=4,Object(d["a"])({page:1,rows:20,examRegistrationId:this.examRegistrationId});case 4:t=e.sent,Object(l["a"])(!1),r=t.data,200==r.code&&(n=r.data.rows?r.data.rows[0]:{},this.form={id:n.id,paymentOrderNo:n.paymentOrderNo,examBaseName:n.examBaseName,subjectName:n.subjectName,level:n.level,status:n.status,examStartTime:n.examStartTime,examTime:c()(n.examStartTime).format("YYYY-MM-DD")+"~"+c()(n.examEndTime).format("YYYY-MM-DD"),lastExamCertificateUrl:n.lastExamCertificateUrl,examMusicTheoryLevel:n.examMusicTheoryLevel,lastMusicTheoryCertificateUrl:n.lastMusicTheoryCertificateUrl,memo:n.memo,practiceSongIdList:n.practiceSongIdList,performSongIdList:n.performSongIdList,editStatus:"AUDIT_PASS"!==n.status&&"AUDIT_WAIT"!==n.status},n.lastExamCertificateUrl&&(this.uploadCertificate=[{url:n.lastExamCertificateUrl}]),n.lastMusicTheoryCertificateUrl&&(this.uploadCertificate2=[{url:n.lastMusicTheoryCertificateUrl}]),a=n.songJson?JSON.parse(n.songJson):[],a.forEach((function(e){var t=e.uploadUrl?e.uploadUrl.split(","):[],r=[];t.forEach((function(e){r.push({url:e})})),"PRACTICE"===e.type?(i.practiceUpload.push(r),i.practiceUploadTemp.push(r),i.practiceInfo.push(e)):"PERFORM"===e.type&&(i.performUpload.push(r),i.performUploadTemp.push(r),i.performInfo.push(e))})),this.practiceInfo.forEach((function(e,t){e.index=t})),this.performInfo.forEach((function(e,t){e.index=t})),this.practiceNum=this.practiceUpload.length,this.performNum=this.performUpload.length),e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](1),Object(l["a"])(!1);case 13:case"end":return e.stop()}}),e,this,[[1,10]])})));function t(){return e.apply(this,arguments)}return t}(),onOpen:function(e,t){var r=this.songUpload,n=this.practiceInfo[t],a=this.performInfo[t],i=this.form.practiceSongIdList,o=this.form.performSongIdList;if("perform"==e){if(o)return;r.songName=a?a.songName:null,r.songAuthor=a?a.songAuthor:null}else if("practice"==e){if(i)return;r.songName=n?n.songName:null,r.songAuthor=n?n.songAuthor:null}r.indexName=e,r.index=t,r.songStatus=!0},beforeRead:function(e){var t=e.size/1024/1024<5;return!!t||(this.$toast("上传图片大小不能超过 5MB"),!1)},beforeDelete:function(e,t){var r=t.name.split("-"),n=this.form;return"certificate2"==r[0]?n.lastMusicTheoryCertificateUrl="":"certificate"==r[0]&&(n.lastExamCertificateUrl=""),!0},afterRead:function(){var e=m(o.a.mark((function e(t,r){var n,a,i,s,u;return o.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=r.name.split("-"),e.prev=1,t.status="uploading",t.message="上传中...",a=new FormData,a.append("file",t.file),e.next=8,Object(f["r"])(a);case 8:if(i=e.sent,s=i.data,200!=s.code){e.next=16;break}t.status="done",u=this.form,"certificate2"==n[0]?u.lastMusicTheoryCertificateUrl=s.data.url:"certificate"==n[0]?u.lastExamCertificateUrl=s.data.url:("practice"==n[0]||"perform"==n[0])&&(t.url=s.data.url),e.next=20;break;case 16:return t.status="failed",t.message="上传失败",this.$toast(s.msg),e.abrupt("return",!1);case 20:e.next=25;break;case 22:return e.prev=22,e.t0=e["catch"](1),e.abrupt("return",!1);case 25:case"end":return e.stop()}}),e,this,[[1,22]])})));function t(t,r){return e.apply(this,arguments)}return t}(),onSubmit:function(){var e=m(o.a.mark((function e(){var t,r,n,a,i,s,u;return o.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.onCheckFields()){e.next=2;break}return e.abrupt("return");case 2:return t=[],r=this.practiceUpload,this.practiceInfo.forEach((function(e){var n=[];r[e.index].forEach((function(e){n.push(e.url)})),t.push({songName:e.songName,songAuthor:e.songAuthor,index:e.index,type:"PRACTICE",uploadUrl:n.join(",")})})),n=this.performUpload,this.performInfo.forEach((function(e){var r=[];n[e.index].forEach((function(e){r.push(e.url)})),t.push({songName:e.songName,songAuthor:e.songAuthor,index:e.index,type:"PERFORM",uploadUrl:r.join(",")})})),a=this.form,i={id:a.id,lastExamCertificateUrl:a.lastExamCertificateUrl,lastMusicTheoryCertificateUrl:a.lastMusicTheoryCertificateUrl,songJson:JSON.stringify(t),status:"AUDIT_WAIT"},Object(l["a"])(!0),e.prev=10,e.next=13,Object(f["c"])(i);case 13:s=e.sent,Object(l["a"])(!1),u=s.data,200==u.code?(this.practiceUpload=[],this.practiceUploadTemp=[],this.practiceInfo=[],this.performUpload=[],this.performUploadTemp=[],this.performInfo=[],this.__init()):this.$toast(u.msg),e.next=22;break;case 19:e.prev=19,e.t0=e["catch"](10),Object(l["a"])(!1);case 22:case"end":return e.stop()}}),e,this,[[10,19]])})));function t(){return e.apply(this,arguments)}return t}(),onCheckFields:function(){var e=this.form;return this.practiceUpload.length!=this.practiceNum?(this.$toast("请上传练习曲"),!1):this.performUpload.length!=this.performNum?(this.$toast("请上传演奏曲"),!1):!(e.level>2&&0==e.examMusicTheoryLevel&&!e.lastMusicTheoryCertificateUrl)||(this.$toast("请上传乐理证书"),!1)},onSaveCancel:function(){this.songUpload.songStatus=!1,this.performUpload=JSON.parse(JSON.stringify(this.performUploadTemp)),this.practiceUpload=JSON.parse(JSON.stringify(this.practiceUploadTemp))},onSaveUpload:function(){var e=this.songUpload;if(e.songName){if("practice"==e.indexName){var t=this.practiceUpload[e.index],r=t?t.length:0;if(!(t&&r>0&&t[0].url))return void this.$toast("请上传文件");if(!t[r-1].url)return void this.$toast("上传曲谱中,请稍等");this.practiceInfo[e.index]=JSON.parse(JSON.stringify(e)),this.practiceUploadTemp=JSON.parse(JSON.stringify(this.practiceUpload))}else if("perform"==e.indexName){var n=this.performUpload[e.index],a=n?n.length:0;if(!(n&&a>0))return void this.$toast("请上传文件");if(!n[a-1].url)return void this.$toast("上传曲谱中,请稍等");this.performInfo[e.index]=JSON.parse(JSON.stringify(e)),this.performUploadTemp=JSON.parse(JSON.stringify(this.performUpload))}e.songName=null,e.songAuthor=null,e.songStatus=!1}else this.$toast("请输入曲名")},numberToCN:function(e){var t={0:"一",1:"二",2:"三",3:"四",4:"五",5:"六",6:"七",7:"八",8:"九",9:"十"};return t[e]}},filters:{filterStatus:function(e){var t={PAY_WAIT:"未缴费",AUDIT_WAIT:"等待审核",AUDIT_PASS:"通过",AUDIT_REJECT:"拒绝",REFUNDED:"已退款"};return t[e]}}},g=h,y=(r("9c13"),r("2877")),v=Object(y["a"])(g,n,a,!1,null,"bc857d70",null);t["default"]=v.exports},"736c":function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return i}));var n=r("981f").default;function a(e){return n({url:"/api-student/examRegistration/applyList",method:"get",params:e})}function i(e){return n({url:"/api-student/examRegistration/examList",method:"get",params:e})}},8900:function(e,t,r){"use strict";r.d(t,"o",(function(){return o})),r.d(t,"p",(function(){return s})),r.d(t,"m",(function(){return u})),r.d(t,"d",(function(){return c})),r.d(t,"j",(function(){return l})),r.d(t,"q",(function(){return f})),r.d(t,"l",(function(){return d})),r.d(t,"r",(function(){return p})),r.d(t,"i",(function(){return m})),r.d(t,"g",(function(){return h})),r.d(t,"h",(function(){return g})),r.d(t,"b",(function(){return y})),r.d(t,"c",(function(){return v})),r.d(t,"k",(function(){return b})),r.d(t,"e",(function(){return x})),r.d(t,"f",(function(){return S})),r.d(t,"n",(function(){return $})),r.d(t,"a",(function(){return O}));var n=r("4328"),a=r.n(n),i=r("981f").default;function o(e){return i({url:"/api-auth/code/sendSms",method:"post",data:a.a.stringify(e)})}function s(e){return i({url:"/api-auth/smsLogin",method:"post",data:a.a.stringify(e)})}function u(e){return i({url:"/api-auth/user/noAuth/queryUserByPhone",method:"get",params:e})}function c(e){return i({url:"/api-student/examinationBasic/getInfo",method:"post",data:a.a.stringify(e)})}function l(e){return i({url:"/api-student/student/getStudent",method:"get",params:e})}function f(e){return i({url:"/api-student/student/updateInfo",method:"post",data:a.a.stringify(e)})}function d(e){return i({url:"/api-student/examRegistration/ocr",method:"post",data:e})}function p(e){return i({url:"/api-student/uploadFile",method:"post",data:e})}function m(e){return i({url:"/api-student/examSubject/getStudentExamSubjects",method:"get",params:e})}function h(e){return i({url:"/api-student/examSubjectSong/getExamSubjectLevel",method:"get",params:e})}function g(e){return i({url:"/api-student/examSubjectSong/getExamSubjectSong",method:"get",params:e})}function y(e){return i({url:"/api-student/examRegistration/add",method:"post",data:e})}function v(e){return i({url:"/api-student/examRegistration/update",method:"post",data:e})}function b(e){return i({url:"/api-student/examMusicTheory/getTheoryLevelList",method:"get",params:e})}function x(e){return i({url:"/api-student/examOrder/getExamIngOrder",method:"get",params:e})}function S(e){return i({url:"/api-student/examRegistration/getExamRegistration",method:"get",params:e})}function $(e){return i({url:"/api-student/examRegistration/repay",method:"post",data:a.a.stringify(e)})}function O(e){return i({url:"/api-student/examOrder/closeOrder",method:"post",data:a.a.stringify(e)})}},"9c13":function(e,t,r){"use strict";var n=r("6185"),a=r.n(n);a.a},"9e6a":function(e,t,r){"use strict";var n=r("d2334"),a=Object.prototype.hasOwnProperty,i=Array.isArray,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},u=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c="utf8=%26%2310003%3B",l="utf8=%E2%9C%93",f=function(e,t){var r,f={},d=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,p=t.parameterLimit===1/0?void 0:t.parameterLimit,m=d.split(t.delimiter,p),h=-1,g=t.charset;if(t.charsetSentinel)for(r=0;r<m.length;++r)0===m[r].indexOf("utf8=")&&(m[r]===l?g="utf-8":m[r]===c&&(g="iso-8859-1"),h=r,r=m.length);for(r=0;r<m.length;++r)if(r!==h){var y,v,b=m[r],x=b.indexOf("]="),S=-1===x?b.indexOf("="):x+1;-1===S?(y=t.decoder(b,o.decoder,g,"key"),v=t.strictNullHandling?null:""):(y=t.decoder(b.slice(0,S),o.decoder,g,"key"),v=n.maybeMap(u(b.slice(S+1),t),(function(e){return t.decoder(e,o.decoder,g,"value")}))),v&&t.interpretNumericEntities&&"iso-8859-1"===g&&(v=s(v)),b.indexOf("[]=")>-1&&(v=i(v)?[v]:v),a.call(f,y)?f[y]=n.combine(f[y],v):f[y]=v}return f},d=function(e,t,r,n){for(var a=n?t:u(t,r),i=e.length-1;i>=0;--i){var o,s=e[i];if("[]"===s&&r.parseArrays)o=[].concat(a);else{o=r.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(c,10);r.parseArrays||""!==c?!isNaN(l)&&s!==c&&String(l)===c&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(o=[],o[l]=a):o[c]=a:o={0:a}}a=o}return a},p=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,u=r.depth>0&&o.exec(i),c=u?i.slice(0,u.index):i,l=[];if(c){if(!r.plainObjects&&a.call(Object.prototype,c)&&!r.allowPrototypes)return;l.push(c)}var f=0;while(r.depth>0&&null!==(u=s.exec(i))&&f<r.depth){if(f+=1,!r.plainObjects&&a.call(Object.prototype,u[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(u[1])}return u&&l.push("["+i.slice(u.index)+"]"),d(l,t,r,n)}},m=function(e){if(!e)return o;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?o.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?o.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:o.comma,decoder:"function"===typeof e.decoder?e.decoder:o.decoder,delimiter:"string"===typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:o.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:o.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling}};e.exports=function(e,t){var r=m(t);if(""===e||null===e||"undefined"===typeof e)return r.plainObjects?Object.create(null):{};for(var a="string"===typeof e?f(e,r):e,i=r.plainObjects?Object.create(null):{},o=Object.keys(a),s=0;s<o.length;++s){var u=o[s],c=p(u,a[u],r,"string"===typeof e);i=n.merge(i,c,r)}return n.compact(i)}},a34a:function(e,t,r){e.exports=r("96cf")},b313:function(e,t,r){"use strict";var n=String.prototype.replace,a=/%20/g,i=r("d2334"),o={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=i.assign({default:o.RFC3986,formatters:{RFC1738:function(e){return n.call(e,a,"+")},RFC3986:function(e){return String(e)}}},o)},d2334:function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty,a=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),o=function(e){while(e.length>1){var t=e.pop(),r=t.obj[t.prop];if(a(r)){for(var n=[],i=0;i<r.length;++i)"undefined"!==typeof r[i]&&n.push(r[i]);t.obj[t.prop]=n}}},s=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)"undefined"!==typeof e[n]&&(r[n]=e[n]);return r},u=function e(t,r,i){if(!r)return t;if("object"!==typeof r){if(a(t))t.push(r);else{if(!t||"object"!==typeof t)return[t,r];(i&&(i.plainObjects||i.allowPrototypes)||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(r);var o=t;return a(t)&&!a(r)&&(o=s(t,i)),a(t)&&a(r)?(r.forEach((function(r,a){if(n.call(t,a)){var o=t[a];o&&"object"===typeof o&&r&&"object"===typeof r?t[a]=e(o,r,i):t.push(r)}else t[a]=r})),t):Object.keys(r).reduce((function(t,a){var o=r[a];return n.call(t,a)?t[a]=e(t[a],o,i):t[a]=o,t}),o)},c=function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},l=function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(a){return n}},f=function(e,t,r){if(0===e.length)return e;var n=e;if("symbol"===typeof e?n=Symbol.prototype.toString.call(e):"string"!==typeof e&&(n=String(e)),"iso-8859-1"===r)return escape(n).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var a="",o=0;o<n.length;++o){var s=n.charCodeAt(o);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?a+=n.charAt(o):s<128?a+=i[s]:s<2048?a+=i[192|s>>6]+i[128|63&s]:s<55296||s>=57344?a+=i[224|s>>12]+i[128|s>>6&63]+i[128|63&s]:(o+=1,s=65536+((1023&s)<<10|1023&n.charCodeAt(o)),a+=i[240|s>>18]+i[128|s>>12&63]+i[128|s>>6&63]+i[128|63&s])}return a},d=function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var a=t[n],i=a.obj[a.prop],s=Object.keys(i),u=0;u<s.length;++u){var c=s[u],l=i[c];"object"===typeof l&&null!==l&&-1===r.indexOf(l)&&(t.push({obj:i,prop:c}),r.push(l))}return o(t),e},p=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},m=function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},h=function(e,t){return[].concat(e,t)},g=function(e,t){if(a(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)};e.exports={arrayToObject:s,assign:c,combine:h,compact:d,decode:l,encode:f,isBuffer:m,isRegExp:p,maybeMap:g,merge:u}}}]);