1 |
- !function(){function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(e,t,n,r,i,a,u){try{var o=e[a](u),s=o.value}catch(c){return void n(c)}o.done?t(s):Promise.resolve(s).then(r,i)}function r(e){return function(){var t=this,r=arguments;return new Promise((function(i,a){var u=e.apply(t,r);function o(e){n(u,i,a,o,s,"next",e)}function s(e){n(u,i,a,o,s,"throw",e)}o(void 0)}))}}function i(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 a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=document.createElement("style");o.innerHTML="._select_1kllz_1{padding:0 .32rem;height:.64rem}._tag-list_1kllz_5{margin-top:.32rem}._tag-list_1kllz_5 .van-tag{margin-right:.16rem;margin-bottom:.16rem}._radio-group_1kllz_12,._checkbox-group_1kllz_13{display:flex;flex-wrap:wrap;margin-top:.37333rem}._radio-group_1kllz_12 ._radio_1kllz_12:first-child .van-radio__label,._checkbox-group_1kllz_13 ._radio_1kllz_12:first-child .van-radio__label,._radio-group_1kllz_12 ._checkbox_1kllz_13:first-child .van-checked__label,._checkbox-group_1kllz_13 ._checkbox_1kllz_13:first-child .van-checked__label{margin-left:0}._radio_1kllz_12 .van-radio__icon{display:none}._radio_1kllz_12 .van-tag--large{width:2.50667rem;height:.8rem;font-size:.42667rem;text-align:center;display:flex;align-items:center;justify-content:center}._radio_1kllz_12 .van-tag{box-sizing:border-box}._radio_1kllz_12 .van-tag--default{color:var(--van-tag-text-default-color)}._radio_1kllz_12 .van-tag--primary{background-color:var(--tag-bg-color)}._checkbox-group_1kllz_13{padding-bottom:.32rem}._checkbox_1kllz_13{margin-bottom:.13333rem}._checkbox_1kllz_13 .van-checkbox__icon{display:none}._checkbox_1kllz_13 .van-tag--large{width:2.50667rem;height:.8rem;font-size:.42667rem;text-align:center;display:flex;align-items:center;justify-content:center}._checkbox_1kllz_13 .van-tag{box-sizing:border-box}._checkbox_1kllz_13 .van-tag--default{color:var(--van-tag-text-default-color)}._checkbox_1kllz_13 .van-tag--primary{background-color:var(--tag-bg-color)}._timer_vlxou_1{background:#f6f8f9;min-height:100vh;overflow:hidden;padding:0 .37333rem}._tips_vlxou_7{margin:.32rem 0;padding:.4rem .32rem;background:#ffffff;border-radius:.26667rem}._tips_vlxou_7 ._tipsTitle_vlxou_13{font-size:.48rem;font-weight:500;color:#000;line-height:.66667rem}._tips_vlxou_7 ._tipsTime_vlxou_19{padding-top:.10667rem;font-size:.37333rem;color:#ff9e5a;line-height:.58667rem}._tips_vlxou_7 ._tipsTime_vlxou_19 span{font-weight:600}._timerContainer_vlxou_28{background:#ffffff;border-radius:.26667rem;padding:.37333rem .13333rem .24rem}._timerContainer_vlxou_28 .van-col{margin-bottom:.13333rem}._tag_vlxou_36{height:.74667rem;background:#eff6f5;border-radius:.10667rem;font-size:.37333rem;font-weight:500;color:#2dc7aa;display:flex;align-items:center;justify-content:center}._active_vlxou_47{background:#2dc7aa;color:#fff}._select_vlxou_51{color:#fff!important;background:#ffb752}\n",document.head.appendChild(o),System.register(["./index-legacy.082f9b5c.js","./index-legacy.afab844e.js","./index-legacy.68af7cbc.js","./index-legacy.dc694a0c.js","./index-legacy.c03ed020.js","./index-legacy.b280fa6b.js","./index-legacy.b6df77cb.js","./index-legacy.50e89744.js","./index-legacy.0c69c28d.js","./index-legacy.70c418b2.js","./index-legacy.7abb092e.js","./index-legacy.ed2e8587.js","./index-legacy.8b7e287e.js","./index-legacy.a465b12d.js","./toolsValidate-legacy.7f3f4925.js","./index-legacy.747ca76c.js","./index-legacy.1f9b075d.js","./index-legacy.ffac1931.js","./function-call-legacy.114240f8.js","./index-legacy.1b582b3f.js","./checkbox_default-legacy.3ce674d8.js","./use-id-legacy.93f000a4.js","./index-legacy.892064fa.js"],(function(t){"use strict";var n,i,u,o,s,c,l,f,d,m,p,h,b,g,_,y,v,j,x,S,k,M,w,T,O,z;return{setters:[function(e){n=e.C,i=e.a},function(e){u=e.S},function(e){o=e.C},function(e){e.bv,s=e.d,c=e.t,l=e.i,f=e.w,d=e.B,m=e.b,p=e.T,h=e.p,b=e.ak},function(e){g=e.R,_=e.a},function(){},function(e){y=e.T},function(e){v=e.S},function(){},function(e){j=e.F},function(e){x=e.A},function(e){S=e.C},function(){},function(){},function(e){k=e.v},function(e){M=e.R,w=e.C},function(e){T=e.F},function(e){O=e.C},function(e){z=e.D},function(){},function(){},function(){},function(){}],execute:function(){var D="_radio-group_1kllz_12",I="_checkbox-group_1kllz_13",P="_radio_1kllz_12",C="_checkbox_1kllz_13",N="_timer_vlxou_1",H="_tips_vlxou_7",L="_tipsTitle_vlxou_13",Y="_tipsTime_vlxou_19",V="_timerContainer_vlxou_28",F="_tag_vlxou_36",A="_active_vlxou_47",E="_select_vlxou_51",$={exports:{}};$.exports=function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}};var U=$.exports,q={exports:{}};!function(e,t){e.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-:/.()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^\s\d-_:/()]+/,a={},u=function(e){return(e=+e)+(e>68?1900:2e3)},o=function(e){return function(t){this[e]=+t}},s=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},l=function(e,t){var n,r=a.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},f={A:[i,function(e){this.afternoon=l(e,!1)}],a:[i,function(e){this.afternoon=l(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,o("seconds")],ss:[r,o("seconds")],m:[r,o("minutes")],mm:[r,o("minutes")],H:[r,o("hours")],h:[r,o("hours")],HH:[r,o("hours")],hh:[r,o("hours")],D:[r,o("day")],DD:[n,o("day")],Do:[i,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,o("month")],MM:[n,o("month")],MMM:[i,function(e){var t=c("months"),n=(c("monthsShort")||t.map((function(e){return e.substr(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,o("year")],YY:[n,function(e){this.year=u(e)}],YYYY:[/\d{4}/,o("year")],Z:s,ZZ:s};function d(n){var r,i;r=n,i=a&&a.formats;for(var u=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),o=u.length,s=0;s<o;s+=1){var c=u[s],l=f[c],d=l&&l[0],m=l&&l[1];u[s]=m?{regex:d,parser:m}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<o;n+=1){var i=u[n];if("string"==typeof i)r+=i.length;else{var a=i.regex,s=i.parser,c=e.substr(r),l=a.exec(c)[0];s.call(t,l),e=e.replace(l,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(u=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,u=e.args;this.$u=r;var o=u[1];if("string"==typeof o){var s=!0===u[2],c=!0===u[3],l=s||c,f=u[2];c&&(f=u[2]),a=this.$locale(),!s&&f&&(a=n.Ls[f]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=d(t)(e),i=r.year,a=r.month,u=r.day,o=r.hours,s=r.minutes,c=r.seconds,l=r.milliseconds,f=r.zone,m=new Date,p=u||(i||a?1:m.getDate()),h=i||m.getFullYear(),b=0;i&&!a||(b=a>0?a-1:m.getMonth());var g=o||0,_=s||0,y=c||0,v=l||0;return f?new Date(Date.UTC(h,b,p,g,_,y,v+60*f.offset*1e3)):n?new Date(Date.UTC(h,b,p,g,_,y,v)):new Date(h,b,p,g,_,y,v)}catch(e){return new Date("")}}(t,o,r),this.init(),f&&!0!==f&&(this.$L=this.locale(f).$L),l&&t!=this.format(o)&&(this.$d=new Date("")),a={}}else if(o instanceof Array)for(var m=o.length,p=1;p<=m;p+=1){u[1]=o[p-1];var h=n.apply(this,u);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}p===m&&(this.$d=new Date(""))}else i.call(this,e)}}}()}(q);var B=q.exports;c.extend(B),c.extend(U);var J=s({name:"timer",props:{timerObject:{type:Object,default:{}},onChoice:{type:Function,default:function(e){}},courseMinutes:{type:Number,default:25},freeMinutes:{type:Number,default:5},startSetting:{type:String,default:"08:00"},endSetting:{type:String,default:"18:00"}},data:function(){return{timerList:[],list:[],weekList:["周一","周二","周三","周四","周五","周六","周日"],weekType:["monday","tuesday","wednesday","thursday","friday","saturday","sunday"]}},mounted:function(){this.list=this.timerInit(this.startSetting,this.endSetting,this.courseMinutes+this.freeMinutes||30),console.log(this.endSetting)},methods:{timerInit:function(e,t,n){for(var r=c(e,"HH:mm"),i=c(t,"HH:mm"),u=[];r.add(n,"minute").isSameOrBefore(c(i));){var o={startTime:r.format("HH:mm"),endTime:r.add(n,"minute").format("HH:mm"),status:!1};u.push(o),r=r.add(n,"minute")}var s=[];return u.forEach((function(e){for(var t=[],n=0;n<7;n++)t.push(a({},e));s.push(t)})),this._initData(s)},_initData:function(e){var t=this.weekType,n=this.timerObject;return e.forEach((function(e){e.forEach((function(e,r){var i=n[t[r]],a=c(e.startTime,"HH:mm").format("HH:mm:ss");(null==i?void 0:i.some((function(e){return e.startTime===a})))&&(e.status=!0)}))})),e},btnStatus:function(e,t){return"row"===t?this.list.every((function(t){return t[e].status})):"col"==t?this.list[e].every((function(e){return e.status})):void 0},choice:function(e,t,n){"row"===t&&this.list.forEach((function(t,r){var i=!n;t[e].status=i})),"col"==t&&this.list[e].forEach((function(e,t){var r=!n;e.status=r}))},onSubmit:function(){var e=this,t=this.list,n={monday:[],tuesday:[],wednesday:[],thursday:[],friday:[],saturday:[],sunday:[]},r=this.weekType,i=!1;t.forEach((function(t,a){t.forEach((function(t,a){t.status&&(i=!0,n[r[a]].push({startTime:c(t.startTime,"HH:mm").format("HH:mm:ss"),endTime:c(t.endTime,"HH:mm").subtract(e.freeMinutes,"minute").format("HH:mm:ss")}))}))})),this.onChoice&&this.onChoice(n,i)}},render:function(){var e=this;return l("div",{class:N},[l("div",{class:H},[l("div",{class:L},[f("请选择陪练开始时间")]),l("div",{class:Y},[f("陪练课单课时时长为 "),l("span",null,[this.courseMinutes]),f(" 分钟")])]),l("div",{class:[V,"mb12"]},[l(M,{gutter:5},{default:function(){return[l(w,{span:3},null),e.weekList.map((function(e){return l(w,{span:3},{default:function(){return[l("span",{class:F},[e])]}})}))]}}),l(M,{gutter:5},{default:function(){return[l(w,{span:3},null),e.weekList.map((function(t,n){return l(w,{span:3},{default:function(){return[l("span",{class:[F,e.btnStatus(n,"row")&&A],onClick:function(){return e.choice(n,"row",e.btnStatus(n,"row"))},title:t},[f("全选")])]}})}))]}}),this.list.map((function(t,n){return l(M,{gutter:5},{default:function(){return[l(w,{span:3},{default:function(){return[l("span",{class:[F,e.btnStatus(n,"col")&&A],onClick:function(){return e.choice(n,"col",e.btnStatus(n,"col"))}},[f("全选")])]}}),t.map((function(e){return l(w,{span:3},{default:function(){return[l("span",{class:[F,e.status&&E],title:e,style:{color:"#333333"},onClick:function(){return e.status=!e.status}},[e.startTime])]}})}))]}})}))]),l(v,{offsetBottom:0,position:"bottom"},{default:function(){return[l("div",{class:"btnGroup"},[l(d,{block:!0,round:!0,type:"primary",onClick:e.onSubmit},{default:function(){return[f("确定")]}})])]}})])}});function R(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!b(e)}t("default",s({name:"PracticeSetting",data:function(){return{subjectList:[],chargeTypeArr:{0:"否",1:"是"},classTimeStatus:!1,subjectStatus:!1,timerStatus:!1,timeSetting:{courseMinutes:25,freeMinutes:5,startSetting:"08:00",endSetting:"18:00"},timerObject:{},form:{enableFlag:1,courseMinutes:null,freeMinutes:0,subjectIdTemp:"",subjectId:[],subjectPrice:[],skipHolidayFlag:1,setting:""},minutes:[],rate:0}},computed:{choiceSubjectId:function(){var e=this.form;return(e.subjectIdTemp?e.subjectIdTemp.split(","):[]).map((function(e){return Number(e)}))||[]}},mounted:function(){var e=this;return r(regeneratorRuntime.mark((function t(){var n,r,i,u,o,s,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,m.get("/api-teacher/sysConfig/queryByParamNameList",{params:{paramNames:"practice_times_setting,practice_service_fee,course_start_setting,course_end_setting"}});case 3:return n=t.sent,(n.data||[]).forEach((function(t){if("practice_times_setting"===t.paramName){var n=t.paramValue?JSON.parse(t.paramValue):[],r=[];n.forEach((function(e){r.push(a(a({},e),{},{name:e.courseMinutes}))})),e.minutes=[].concat(r)}"practice_service_fee"===t.paramName&&(e.rate=t.paramValue),"course_start_setting"===t.paramName&&(e.timeSetting.startSetting=t.paramValue),"course_end_setting"===t.paramName&&(e.timeSetting.endSetting=t.paramValue)})),t.next=8,m.post("/api-teacher/teacher/querySubject");case 8:return r=t.sent,e.subjectList=r.data||[],t.next=12,m.post("/api-teacher/teacherFreeTime/getDetail",{data:{defaultFlag:1}});case 12:i=t.sent,(u=i.data)&&(e.timeSetting.courseMinutes=u.courseMinutes,e.timeSetting.freeMinutes=u.freeMinutes,e.timerObject={monday:u.monday?JSON.parse(u.monday):[],tuesday:u.tuesday?JSON.parse(u.tuesday):[],wednesday:u.wednesday?JSON.parse(u.wednesday):[],thursday:u.thursday?JSON.parse(u.thursday):[],friday:u.friday?JSON.parse(u.friday):[],saturday:u.saturday?JSON.parse(u.saturday):[],sunday:u.sunday?JSON.parse(u.sunday):[]},o=[],s=[],(u.subjectPrice||[]).forEach((function(e){o.push(e.subjectId),s.push({subjectId:e.subjectId,subjectPrice:e.subjectPrice,subjectName:e.subjectName})})),c=e.timerObject,e.form={enableFlag:u.enableFlag,courseMinutes:u.courseMinutes,freeMinutes:u.freeMinutes,subjectIdTemp:o.join(","),subjectId:o,subjectPrice:s,skipHolidayFlag:u.skipHolidayFlag,setting:c.monday.length>0||c.tuesday.length>0||c.wednesday.length>0||c.thursday.length>0||c.friday.length>0||c.saturday.length>0||c.sunday.length>0?"已设置":""}),t.next=19;break;case 17:t.prev=17,t.t0=t.catch(0);case 19:case"end":return t.stop()}}),t,null,[[0,17]])})))()},methods:{onSelect:function(e){this.form.courseMinutes!==e.courseMinutes&&(this.timerObject={},this.form.setting=""),this.form.courseMinutes=e.courseMinutes,this.form.freeMinutes=e.freeMinutes},onTimer:function(){var e=this;return r(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,(n=e.form).courseMinutes){t.next=5;break}return p("请选择单课时时长"),t.abrupt("return");case 5:e.timeSetting.courseMinutes=Number(n.courseMinutes),e.timeSetting.freeMinutes=Number(n.freeMinutes),e.timerStatus=!0,t.next=12;break;case 10:t.prev=10,t.t0=t.catch(0);case 12:case"end":return t.stop()}}),t,null,[[0,10]])})))()},onChoiceTimer:function(e,t){this.form.setting=t?"已设置":"",this.timerObject=e,this.timerStatus=!1},onChoice:function(t){console.log(t);var n=t||[];this.form.subjectId=n,this.form.subjectIdTemp=n.join(",")||"";var r=e(this.form.subjectPrice);n.forEach((function(e){-1===r.findIndex((function(t){return t.subjectId===e}))&&r.push({subjectId:e,subjectPrice:null,subjectName:""})}));var i=[];r.forEach((function(e){n.some((function(t){return t===e.subjectId}))&&i.push(e)})),this.form.subjectPrice=i,this.subjectStatus=!1},getSubjectName:function(e){var t=this.subjectList.find((function(t){return t.id===e}));return t?t.name:""},onFormatter:function(e){return k(e)},onSubmit:function(){var e=this;return r(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,(n=e.form).subjectPrice.forEach((function(t){t.subjectName=e.getSubjectName(t.subjectId)})),t.next=5,m.post("/api-teacher/teacherFreeTime/upSet",{data:a(a({},n),e.timerObject)});case 5:p("设置成功"),setTimeout((function(){h({api:"back",content:{}})}),500),t.next=11;break;case 9:t.prev=9,t.t0=t.catch(0);case 11:case"end":return t.stop()}}),t,null,[[0,9]])})))()}},render:function(){var e,t,r,a,s=this;return l(T,{style:{paddingTop:"15px"},onSubmit:this.onSubmit},{default:function(){return[l(n,null,{default:function(){return[l(i,{title:"是否开启陪练课",required:!0,border:!1},{default:function(){return[l(g,{class:D,modelValue:s.form.enableFlag,"onUpdate:modelValue":function(e){return s.form.enableFlag=e}},R(e=["1","0"].map((function(e){var t=Number(e)===Number(s.form.enableFlag),n=t?"primary":"default";return l(_,{class:P,name:e},{default:function(){return[l(y,{size:"large",plain:t,type:n},{default:function(){return[s.chargeTypeArr[e]]}})]}})})))?e:{default:function(){return[e]}})]}}),l(i,{title:"可教授乐器",required:!0},{default:function(){return[s.form.subjectPrice&&s.form.subjectPrice.length>0&&l(O,{modelValue:s.form.subjectId,class:I,disabled:!0,onClick:function(){s.subjectStatus=!0}},R(t=s.form.subjectPrice.map((function(e){var t;return l(S,{class:C},{default:function(){return[l(y,{plain:!0,type:"primary",round:!0,closeable:!0,size:"medium",onClick:function(e){e.stopPropagation(),e.preventDefault()},onClose:function(t){t.stopPropagation(),t.preventDefault(),z.confirm({title:"提示",message:"您是否要删除该选择的课程?",confirmButtonColor:"var(--van-primary)"}).then((function(){var t=s.form.subjectId.indexOf(e.subjectId);-1!==t&&s.form.subjectId.splice(t,1);var n=s.form.subjectPrice.findIndex((function(t){return t.subjectId===e.subjectId}));-1!==n&&s.form.subjectPrice.splice(n,1),s.form.subjectIdTemp=s.form.subjectId.join(",")}))}},R(t=s.getSubjectName(e.subjectId))?t:{default:function(){return[t]}})]}})})))?t:{default:function(){return[t]}}),!s.form.subjectPrice.length&&l(j,{modelValue:s.form.subjectIdTemp,"onUpdate:modelValue":function(e){return s.form.subjectIdTemp=e},name:"courseMinutes",readonly:!0,onClick:function(){s.subjectStatus=!0},rules:[{required:!0,message:"请选择可教授乐器"}],placeholder:"请选择可教授乐器"},null)]}}),l(i,{title:"单课时时长",required:!0},{default:function(){return[l(j,{modelValue:s.form.courseMinutes,"onUpdate:modelValue":function(e){return s.form.courseMinutes=e},name:"courseMinutes",readonly:!0,isLink:!0,onClick:function(){s.classTimeStatus=!0},rules:[{required:!0,message:"请选择单课时时长"}],placeholder:"请选择单课时时长"},{button:function(){return l("span",null,[f("分钟")])}})]}})]}}),s.form.subjectPrice&&s.form.subjectPrice.length>0&&l(n,null,R(r=s.form.subjectPrice.map((function(e){return l(i,{title:"".concat(s.getSubjectName(e.subjectId),"声部陪练价格"),required:!0},{default:function(){return[l(j,{modelValue:e.subjectPrice,"onUpdate:modelValue":function(t){return e.subjectPrice=t},name:"singleMins",type:"number",labelWidth:"auto",label:"".concat(s.form.courseMinutes||0,"分钟 / "),rules:[{required:!0,message:"请选择声部陪练价格"}],formatter:s.onFormatter,maxlength:8,placeholder:"请选择声部陪练价格"},{button:function(){return l("span",null,[f("元")])}})]}})})))?r:{default:function(){return[r]}}),l(n,null,{default:function(){return[l(i,{title:"可陪练时间段"},{default:function(){return[l(j,{modelValue:s.form.setting,name:"singleMins",readonly:!0,isLink:!0,onClick:s.onTimer,placeholder:"未设置"},null)]}})]}}),l(n,null,{default:function(){return[l(i,{required:!0,title:"是否跳过节假日",border:!1},{default:function(){return[l(g,{class:D,modelValue:s.form.skipHolidayFlag,"onUpdate:modelValue":function(e){return s.form.skipHolidayFlag=e}},R(a=["1","0"].map((function(e){var t=Number(e)===Number(s.form.skipHolidayFlag),n=t?"primary":"default";return l(_,{class:P,name:e},{default:function(){return[l(y,{size:"large",plain:t,type:n},{default:function(){return[s.chargeTypeArr[e]]}})]}})})))?a:{default:function(){return[a]}})]}})]}}),l(v,{offsetBottom:0,position:"bottom"},{default:function(){return[l("div",{class:"btnGroup"},[l(d,{block:!0,round:!0,type:"primary","native-type":"submit"},{default:function(){return[f("提交")]}})])]}}),l(o,{modelValue:s.subjectStatus,"onUpdate:modelValue":function(e){return s.subjectStatus=e},destroy:!0},{default:function(){return[l(u,{max:5,single:!0,subjectList:s.subjectList,choiceSubjectIds:s.choiceSubjectId,onChoice:s.onChoice},null)]}}),l(o,{modelValue:s.timerStatus,"onUpdate:modelValue":function(e){return s.timerStatus=e},destroy:!0},{default:function(){return[l(J,{onChoice:s.onChoiceTimer,timerObject:s.timerObject,courseMinutes:Number(s.timeSetting.courseMinutes),freeMinutes:Number(s.timeSetting.freeMinutes),startSetting:s.timeSetting.startSetting,endSetting:s.timeSetting.endSetting},null)]}}),l(x,{show:s.classTimeStatus,"onUpdate:show":function(e){return s.classTimeStatus=e},actions:s.minutes,cancelText:"取消",closeOnClickAction:!0,onSelect:s.onSelect},null)]}})}}))}}}))}();
|