chunk-2778f380.714e632f.js 26 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2778f380"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return u})),Math.easeInOutQuad=function(e,t,a,l){return e/=l/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var l=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function n(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function r(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function u(e,t,a){var u=r(),o=e-u,i=20,s=0;t="undefined"===typeof t?500:t;var c=function e(){s+=i;var r=Math.easeInOutQuad(s,u,o,t);n(r),s<t?l(e):a&&"function"===typeof a&&a()};c()}},"3bbf":function(e,t,a){},"73cd":function(e,t,a){"use strict";a("3bbf")},7971:function(e,t,a){"use strict";a("be07")},"92e3":function(e,t,a){"use strict";a.d(t,"u",(function(){return i})),a.d(t,"H",(function(){return s})),a.d(t,"s",(function(){return c})),a.d(t,"c",(function(){return d})),a.d(t,"D",(function(){return b})),a.d(t,"Y",(function(){return v})),a.d(t,"X",(function(){return f})),a.d(t,"d",(function(){return p})),a.d(t,"L",(function(){return m})),a.d(t,"w",(function(){return g})),a.d(t,"ab",(function(){return h})),a.d(t,"t",(function(){return T})),a.d(t,"o",(function(){return E})),a.d(t,"Z",(function(){return O})),a.d(t,"P",(function(){return y})),a.d(t,"cb",(function(){return I})),a.d(t,"db",(function(){return _})),a.d(t,"O",(function(){return N})),a.d(t,"T",(function(){return S})),a.d(t,"B",(function(){return C})),a.d(t,"l",(function(){return L})),a.d(t,"W",(function(){return A})),a.d(t,"bb",(function(){return R})),a.d(t,"I",(function(){return w})),a.d(t,"m",(function(){return M})),a.d(t,"v",(function(){return x})),a.d(t,"M",(function(){return k})),a.d(t,"f",(function(){return D})),a.d(t,"e",(function(){return j})),a.d(t,"K",(function(){return G})),a.d(t,"J",(function(){return U})),a.d(t,"S",(function(){return F})),a.d(t,"G",(function(){return P})),a.d(t,"a",(function(){return Y})),a.d(t,"x",(function(){return V})),a.d(t,"p",(function(){return H})),a.d(t,"n",(function(){return $})),a.d(t,"q",(function(){return q})),a.d(t,"g",(function(){return B})),a.d(t,"F",(function(){return W})),a.d(t,"r",(function(){return X})),a.d(t,"C",(function(){return K})),a.d(t,"A",(function(){return Q})),a.d(t,"z",(function(){return z})),a.d(t,"h",(function(){return J})),a.d(t,"k",(function(){return Z})),a.d(t,"i",(function(){return ee})),a.d(t,"j",(function(){return te})),a.d(t,"R",(function(){return ae})),a.d(t,"N",(function(){return le})),a.d(t,"E",(function(){return ne})),a.d(t,"y",(function(){return re})),a.d(t,"Q",(function(){return ue})),a.d(t,"U",(function(){return oe})),a.d(t,"V",(function(){return ie})),a.d(t,"b",(function(){return ce}));var l=a("2d63"),n=a("768b"),r=a("267e"),u=sessionStorage.getItem("tenantConfig");u=u?JSON.parse(u):{};var o=u.tenantId,i=null,s=null;1==o?(s=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],i=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"},{label:"直播课",value:"LIVE"}]):(s=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],i=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"},{label:"直播课",value:"LIVE"}]);var c=[{label:"乐团课",value:"MUSIC"},{label:"VIP课",value:"VIP"},{label:"网管课",value:"PRACTICE"},{label:"直播课",value:"LIVE"}],d=[{label:"正常签到",value:1},{label:"异常签到",value:0}],b=[{label:"兼职",value:"PART_TIME"},{label:"全职",value:"FULL_TIME"},{label:"劳务",value:"LABOUR"}],v=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],f=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"}],p=[].concat(f,[{value:"QUIT_SCHOOL",label:"休学"},{value:"DROP_OUT",label:"退学"},{value:"LATE",label:"迟到"}]),m=[{value:"APPLY",label:"报名"},{value:"RENEW",label:"续费"},{value:"MEMBER",label:"会员购买"},{value:"SMALL_CLASS_TO_BUY",label:"VIP购买"},{value:"SPORADIC",label:"零星收费"},{value:"LUCK",label:"福袋活动"},{value:"DEGREE_REGISTRATION",label:"考级报名"},{value:"DOUBLE_ELEVEN2020",label:"2020双十一活动"},{value:"DOUBLE_ELEVEN2021",label:"2021双十一活动"},{value:"DEGREE",label:"儿童节活动"},{value:"PRACTICE_GROUP_BUY",label:"网管课"},{value:"PRACTICE_GROUP_RENEW",label:"网管课续费"},{value:"REPAIR",label:"乐器维修"},{value:"OUTORDER",label:"外部收入"},{value:"GOODS_SELL",label:"商品销售"},{value:"MALL_BUY",label:"商城销售"},{value:"SUBJECT_CHANGE",label:"声部更换"},{value:"MAINTENANCE",label:"乐器保养"},{value:"ADD_STUDENT",label:"乐团报名"},{value:"REPLACEMENT",label:"乐器置换"},{value:"SCHOOL",label:"学校订单"},{value:"PERSONAL",label:"个人订单"},{value:"OTHER",label:"其他"},{value:"ACTIVITY",label:"活动购买"},{value:"LIVE_BUY",label:"直播购物"},{value:"LIVE_GROUP_BUY",label:"直播课购买"}],g=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],h=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"}],T=[{value:"NOT_START",label:"未开始"},{value:"UNDERWAY",label:"进行中"},{value:"OVER",label:"已结束"}],E=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],O=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],y=[{value:"FREE",label:"免费"},{value:"CHARGE",label:"收费"},{value:"TRIAL",label:"试听课"},{value:"CARE_PACKAGE",label:"关心包"},{value:"COME_ON_PACKAGE",label:"加油包"}],I=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及训练回访",label:"课后及训练回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],_=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及训练回访",label:"课后及训练回访"},{value:"练习及乐团表现",label:"练习及乐团表现"},{label:"考勤申诉",value:"考勤申诉"},{value:"异常请假回访",label:"异常请假回访"}]},{value:"小课回访",label:"小课回访",children:[{value:"续费类回访",label:"续费类回访"},{value:"服务回访",label:"服务回访"},{value:"其他",label:"其他"}]},{value:"云教练",label:"云教练",children:[{value:"体验回访",label:"体验回访"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"},{value:"会员续费",label:"会员续费"}]}],N=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"},{value:"YEEPAY",label:"易宝"}],S=[{value:"INSTRUMENT",label:"乐器销售"},{value:"ACCESSORIES",label:"配件销售"},{value:"SCHOOL_BUY",label:"学校采购"},{value:"OTHER",label:"其它"}],C=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"},{value:"OTHER",label:"其它"}],L=[{value:"1",label:"一年级"},{value:"2",label:"二年级"},{value:"3",label:"三年级"},{value:"4",label:"四年级"},{value:"5",label:"五年级"},{value:"6",label:"六年级"},{value:"7",label:"初一"},{value:"8",label:"初二"},{value:"9",label:"初三"},{value:"10",label:"高一"},{value:"11",label:"高二"},{value:"12",label:"高三"}],A=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],R=[{label:"不限制",value:"1"},{label:"线上不可调为线下",value:"0"},{label:"线下不可调为线上",value:"2"},{label:"线上线下不可互调",value:"3"}],w=se(r["musicGroupType"]),M=se(r["classTime"]),x=[{label:"课程收费",value:0},{label:"会员收费",value:2},{label:"免费",value:3}],k=se(r["payOrderType"]),D=se(r["auditType"]),j=se(r["auditPaymentType"]),G=se(r["orderServerType"]),U=se(r["orderAuditType"]),F=se(r["rewardModeType"]),P=se(r["musicClassType"]),Y=se(r["ProbationPeriodStatus"]),V=se(r["downListType"]),H=se(r["conclusion"]),$=se(r["clientType"]),q=se(r["couponType"]),B=se(r["backType"]),W=se(r["memberEnum"]),X=se(r["coupontypeDetail"]),K=se(r["issue"]),Q=se(r["feedbackType"]),z=se(r["feedbackTypeDesc"]),J=se(r["campState"]),Z=se(r["catgGoupType"]),ee=se(r["catRole"]),te=se(r["catType"]),ae=se(r["quiteReason"]),le=se(r["payUserType"]),ne=se(r["levelStatus"]),re=se(r["evaluateStatus"]),ue=se(r["problemType"]),oe=se(r["schoolUserType"]),ie=se(r["shareLiveType"]);function se(e){var t=[];for(var a in e)t.push({label:e[a],value:a});return t}var ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["value","label"],a=Object(n["a"])(t,2),r=a[0],u=a[1],o={};if(e&&e.length){var i,s=Object(l["a"])(e);try{for(s.s();!(i=s.n()).done;){var c=i.value;o[c[r]]=c[u]}}catch(d){s.e(d)}finally{s.f()}}return o}},"9acb":function(e,t,a){"use strict";a.d(t,"m",(function(){return i})),a.d(t,"n",(function(){return s})),a.d(t,"h",(function(){return c})),a.d(t,"g",(function(){return d})),a.d(t,"i",(function(){return b})),a.d(t,"j",(function(){return v})),a.d(t,"k",(function(){return f})),a.d(t,"c",(function(){return p})),a.d(t,"e",(function(){return m})),a.d(t,"f",(function(){return g})),a.d(t,"d",(function(){return h})),a.d(t,"b",(function(){return T})),a.d(t,"a",(function(){return E})),a.d(t,"q",(function(){return O})),a.d(t,"l",(function(){return y})),a.d(t,"o",(function(){return I})),a.d(t,"r",(function(){return _})),a.d(t,"p",(function(){return N}));var l=a("829b"),n=a("b775"),r=a("4328"),u=a.n(r),o="/api-web";function i(e){return Object(n["a"])({url:o+"/degree/queryPage",method:"get",params:e})}function s(e){return Object(n["a"])({url:o+"/degree/refund",method:"post",data:u.a.stringify(e)})}var c=function(e){return Object(l["a"])({url:"/api-web/degreeNews/page",data:e,method:"post"})},d=function(e){return Object(l["a"])({url:"/api-web/degreeNews/enable",data:e,requestType:"form",method:"post"})},b=function(e){return Object(l["a"])({url:"/api-web/degreeNews/remove",data:e,requestType:"form",method:"post"})},v=function(e){return Object(l["a"])({url:"/api-web/degreeNews/save",data:e,method:"post"})},f=function(e){return Object(l["a"])({url:"/api-web/degreeNews/update",data:e,method:"post"})},p=function(e){return Object(l["a"])({url:"/api-web/degreeLevelFee/page",data:e,method:"post"})},m=function(e){return Object(l["a"])({url:"/api-web/degreeLevelFee/save",data:e,method:"post"})},g=function(e){return Object(l["a"])({url:"/api-web/degreeLevelFee/update",data:e,method:"post"})},h=function(e){return Object(l["a"])({url:"/api-web/degreeLevelFee/remove",data:e,requestType:"form",method:"post"})},T={1:"一级",2:"二级",3:"三级",4:"四级",5:"五级",6:"六级",7:"七级",8:"八级",9:"九级",10:"十级"},E=[{value:1,text:"一级"},{value:2,text:"二级"},{value:3,text:"三级"},{value:4,text:"四级"},{value:5,text:"五级"},{value:6,text:"六级"},{value:7,text:"七级"},{value:8,text:"八级"},{value:9,text:"九级"},{value:10,text:"十级"}],O=[{value:1,text:"一级"},{value:2,text:"二级"},{value:3,text:"三级"},{value:4,text:"四级"}],y=function(e){return Object(l["a"])({url:"/api-web/degree/page",data:e,method:"post"})},I=function(e){return Object(l["a"])({url:"/api-web/degree/save",data:e,method:"post"})},_=function(e){return Object(l["a"])({url:"/api-web/degree/update",data:e,method:"post"})},N=function(e){return Object(l["a"])({url:"/api-web/degree/statistic",params:e,method:"get"})}},"9d64":function(e,t,a){e.exports=a.p+"static/img/logo.ae7b11a3.png"},be07:function(e,t,a){},daeb:function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[e._m(0),e._v(" "),a("div",{staticClass:"m-core"},[a("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.onSearch,reset:e.onReSet}},[a("el-form-item",{attrs:{prop:"keyword"}},[a("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.keyword,callback:function(t){e.$set(e.searchForm,"keyword","string"===typeof t?t.trim():t)},expression:"searchForm.keyword"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"orderDate"}},[a("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(" "),a("el-form-item",{attrs:{prop:"status"}},[a("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"}},e._l(e.levelStatusList,(function(e){return a("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"degree/save",expression:"'degree/save'"}],staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:function(t){return e.onGradeOperation("create")}}},[e._v("\n 新增考级\n ")]),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{width:"90px",align:"center",prop:"id",label:"编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.id))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"考级名称",align:"center"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("overflow-text",{attrs:{text:e.row.name}})]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"orderNo",label:"考级时间","min-width":100},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("dayjsFormat")(t.row.startTime))+"-"+e._s(e._f("dayjsFormat")(t.row.endTime))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"transNo",label:"人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v("报名人数:"+e._s(t.row.registerNum)+"人")]),e._v(" "),a("p",[e._v("报名人次:"+e._s(t.row.registerTotal)+"人")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"city",label:"适用分部"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("overflow-text",{attrs:{text:e.formatOrangNames(t.row.organNames)}})]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"school",label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(e._f("levelStatus")(t.row.status)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$helpers.permission("/levelManager")?a("el-button",{attrs:{type:"text"},on:{click:function(){e.$router.push({path:"/levelManager",query:{id:t.row.id,title:t.row.name}})}}},[e._v("详情")]):e._e(),e._v(" "),e.$helpers.permission("degree/update")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.onGradeOperation("update",t.row)}}},[e._v("修改")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.onCreateQrCode(t.row)}}},[e._v("链接")])]}}])})],1),e._v(" "),a("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),e._v(" "),a("gradeOperation",{ref:"gradeOperation",on:{getList:e.getList}}),e._v(" "),a("qr-code",{attrs:{title:"考级报名链接",codeUrl:e.qrCodeUrl},model:{value:e.codeStatus,callback:function(t){e.codeStatus=t},expression:"codeStatus"}})],1)},n=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h2",[a("div",{staticClass:"squrt"}),e._v("\n 考级管理\n ")])}],r=a("c80c"),u=a("db72"),o=a("a8db"),i=(a("96cf"),a("3b8d")),s=a("61f7"),c=a("641c"),d=a("333d"),b=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{width:"500px",title:e.dialogTitle,visible:e.operationVisible,"before-close":e.onClose,"append-to-body":""},on:{"update:visible":function(t){e.operationVisible=t}}},[a("el-form",{ref:"elForm",staticClass:"elForm",attrs:{"label-position":"top",model:e.forms,inline:!1,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"考级标题",rules:[{required:!0,message:"请输入考级标题"}],prop:"name"}},[a("el-input",{attrs:{type:"text",clearable:"",maxlength:"20",placeholder:"请输入考级标题"},model:{value:e.forms.name,callback:function(t){e.$set(e.forms,"name",t)},expression:"forms.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"适用分部",rules:[{required:!0,message:"请选择适用分部"}],prop:"organIds"}},[a("select-all",{staticClass:"organSelect",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择适用分部",multiple:"",clearable:""},model:{value:e.forms.organIds,callback:function(t){e.$set(e.forms,"organIds","string"===typeof t?t.trim():t)},expression:"forms.organIds"}},e._l(e.selects.branchs,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"考级开始日期",prop:"startTime",rules:[{required:!0,message:"请选择考级开始日期"}]}},[a("el-date-picker",{attrs:{type:"date","value-format":"yyyy-MM-dd",placeholder:"请选择考级开始日期","picker-options":e.startBigin(),disabled:"NOT_START"!=e.status},on:{change:function(){e.forms.endTime=null}},model:{value:e.forms.startTime,callback:function(t){e.$set(e.forms,"startTime","string"===typeof t?t.trim():t)},expression:"forms.startTime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"考级结束日期",prop:"endTime",rules:[{required:!0,message:"请选择考级结束日期"}]}},[a("el-date-picker",{attrs:{type:"date","value-format":"yyyy-MM-dd",placeholder:"请选择考级结束日期","picker-options":e.beginDate()},model:{value:e.forms.endTime,callback:function(t){e.$set(e.forms,"endTime","string"===typeof t?t.trim():t)},expression:"forms.endTime"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){return e.onClose()}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("确 定")])],1)],1)},v=[],f=(a("c5f6"),a("28a5"),a("7f7f"),a("ed08")),p=a("9acb"),m=a("5a0c"),g=a.n(m),h={name:"grade-operation",data:function(){return{dialogTitle:"",status:"NOT_START",dialogType:"create",operationVisible:!1,forms:{name:null,organIds:[],startTime:null,endTime:null}}},mounted:function(){this.$store.dispatch("setBranchs")},methods:{startBigin:function(){var e=g()().format("YYYY-MM-DD");return{firstDayOfWeek:1,disabledDate:function(t){return g()(e).valueOf()>g()(t).valueOf()}}},beginDate:function(){var e=this.forms.startTime;return{firstDayOfWeek:1,disabledDate:function(t){if(e)return new Date(e).getTime()>=t.getTime()+864e5}}},onClose:function(){this.$refs.elForm&&this.$refs.elForm.resetFields(),this.status="NOT_START",this.operationVisible=!1},onSubmit:function(){var e=this;this.$refs.elForm.validate(function(){var t=Object(i["a"])(Object(r["a"])().mark((function t(a){var l,n;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a){t.next=2;break}return t.abrupt("return");case 2:if(l=e.forms,n=Object(u["a"])(Object(u["a"])({},l),{},{organIds:l.organIds?l.organIds.join(","):"",endTime:g()(l.endTime).format("YYYY-MM-DD")+" 23:59:59"}),t.prev=4,"create"!==e.dialogType){t.next=11;break}return t.next=8,Object(p["o"])(n);case 8:e.$message.success("新增成功"),t.next=14;break;case 11:return t.next=13,Object(p["r"])(n);case 13:e.$message.success("修改成功");case 14:e.operationVisible=!1,e.onClose(),e.$emit("getList"),t.next=21;break;case 19:t.prev=19,t.t0=t["catch"](4);case 21:case"end":return t.stop()}}),t,null,[[4,19]])})));return function(e){return t.apply(this,arguments)}}())},openDialog:function(e,t){var a=this;console.log(e,t),this.dialogTitle="update"===e?"修改考级":"新增考级",this.dialogType=e||"create",this.operationVisible=!0,this.$nextTick((function(){"update"===e&&(a.status=t.status,a.forms={id:t.id,name:t.name,organIds:t.organIds?t.organIds.split(",").map((function(e){return Number(e)})):[],startTime:t.startTime,endTime:t.endTime})}))}}},T=h,E=(a("73cd"),a("2877")),O=Object(E["a"])(T,b,v,!1,null,"4bf43ef4",null),y=O.exports,I=a("92e3"),_=["orderDate"],N={components:{pagination:d["a"],gradeOperation:y,qrCode:c["a"]},name:"helpCategory",data:function(){return{codeStatus:!1,qrCodeUrl:null,levelStatusList:I["E"],searchForm:{keyword:null,status:null,startTime:null,endTime:null,orderDate:[]},tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},tempTreeList:[]}},mounted:function(){this.$store.dispatch("setBranchs"),this.getList()},methods:{formatOrangNames:function(e){return e?e.join(","):""},onSearch:function(){this.pageInfo.page=1,this.getList()},onReSet:function(){this.orderDate=null,this.$refs.searchForm.resetFields(),this.onSearch()},getList:function(){var e=Object(i["a"])(Object(r["a"])().mark((function e(){var t,a,l,n,i=this;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t=this.searchForm,a=t.orderDate,l=Object(o["a"])(t,_),n=Object(u["a"])(Object(u["a"])({},l),{},{page:this.pageInfo.page,rows:this.pageInfo.limit},Object(f["b"])(a,["startTime","endTime"])),e.next=5,Object(p["l"])(n).then((function(e){var t=e.data;200==e.code&&(i.tableList=t.rows,i.pageInfo.total=t.total)}));case 5:e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),onGradeOperation:function(e,t){var a=e||"create";this.$refs.gradeOperation.openDialog(a,t)},onCreateQrCode:function(e){this.codeStatus=!0,this.qrCodeUrl=Object(s["d"])()+"/#/level-apply-new?id="+e.id}}},S=N,C=(a("7971"),Object(E["a"])(S,l,n,!1,null,"31f0a6be",null));t["default"]=C.exports},ed08:function(e,t,a){"use strict";a.d(t,"c",(function(){return u})),a.d(t,"b",(function(){return o})),a.d(t,"a",(function(){return i}));var l=a("bd86"),n=(a("c5f6"),a("28a5"),a("a481"),a("6b54"),a("7618"),a("5a0c")),r=a.n(n);var u=function(e){var t=[];for(var a in e)if(e.hasOwnProperty(a)){var l=e[a],n=a.toLocaleUpperCase();t.push({label:l,value:"TRUE"===n||"FALSE"===n?"TRUE"===n:a})}return t},o=function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return e&&e.length?(t={},Object(l["a"])(t,a[0]||"start",r()(e[0]).isValid()?r()(e[0]).format(n):""),Object(l["a"])(t,a[1]||"end",r()(e[1]).isValid()?r()(e[1]).format(n):""),t):{}},i=function(e){var t,a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return e&&e.length?"YYYY-MM-DD"===u?(t={},Object(l["a"])(t,n[0]||"start",r()(e[0]).isValid()?r()(e[0]).format(u)+" 00:00:00":""),Object(l["a"])(t,n[1]||"end",r()(e[1]).isValid()?r()(e[1]).format(u)+" 23:59:59":""),t):(a={},Object(l["a"])(a,n[0]||"start",r()(e[0]).isValid()?r()(e[0]).format(u):""),Object(l["a"])(a,n[1]||"end",r()(e[1]).isValid()?r()(e[1]).format(u):""),a):{}}}}]);