index.b9dcbe6b.js 19 KB

1
  1. var k=Object.defineProperty,U=Object.defineProperties;var V=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable;var y=(t,u,a)=>u in t?k(t,u,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[u]=a,D=(t,u)=>{for(var a in u||(u={}))N.call(u,a)&&y(t,a,u[a]);if(b)for(var a of b(u))L.call(u,a)&&y(t,a,u[a]);return t},A=(t,u)=>U(t,V(u));import{C as P}from"./index.f524f8ad.js";import{C as f}from"./index.34a5d4ba.js";import{B as p,r as F}from"./index.6fc5f983.js";import{v as q}from"./toolsValidate.add49407.js";import{d as _,a3 as $,c as e,aN as X,a as s,l as g,aO as R,f as j,K as O,L as i,al as x,am as E,ae as G,F as T,I as C,aP as z,ab as W,ac as H,W as v,ai as Q}from"./vendor.63aa8b19.js";const J="_form_1xw4e_1",K="_tags_1xw4e_2",Y="_iconQesution_1xw4e_67",Z="_uploadCon_1xw4e_76",uu="_uploadTips_1xw4e_80",eu="_formItem_1xw4e_90",tu="_tips_1xw4e_97",au="_tipsTitle_1xw4e_106",su="_rule_1xw4e_117",lu="_fAlert_1xw4e_132",ou="_messageDialog_1xw4e_144",iu="_messageDialog2_1xw4e_145";var n={form:J,tags:K,iconQesution:Y,uploadCon:Z,uploadTips:uu,formItem:eu,tips:tu,tipsTitle:au,rule:su,fAlert:lu,messageDialog:ou,messageDialog2:iu};const ru=t=>{var o,d;const u={speed:0,title:"",composer:"",partNames:[]},a=new DOMParser().parseFromString(t,"text/xml");u.title=((o=a.getElementsByTagName("work-title")[0])==null?void 0:o.textContent)||"",u.composer=((d=a.getElementsByTagName("creator")[0])==null?void 0:d.textContent)||"";const l=a.getElementsByTagName("measure");for(const c of Array.from(a.getElementsByTagName("part-name")))c.textContent&&u.partNames.push(c.textContent);for(const c of Array.from(l)){const m=c.getElementsByTagName("per-minute");if(m.length&&m[m.length-1]){u.speed=parseFloat(m[m.length-1].textContent||"0");break}}return u},nu="_popupContainer_1bydr_1",mu="_popupContainerError_1bydr_20",cu="_container_1bydr_24",du="_cContent_1bydr_27",pu="_title1_1bydr_30",Fu="_popupTips_1bydr_53",hu="_cTitle_1bydr_65",fu="_btnGroup_1bydr_82",Eu="_button_1bydr_85";var r={popupContainer:nu,popupContainerError:mu,container:cu,cContent:du,title1:pu,popupTips:Fu,cTitle:hu,btnGroup:fu,button:Eu},M=_({name:"message-tip",props:{type:{type:String,default:"upload"},title:{type:String,default:"\u6E29\u99A8\u63D0\u793A"},showButton:{type:Boolean,default:!0},buttonText:{type:String,default:"\u6211\u5DF2\u77E5\u6653"}},emits:["confirm"],setup(t,{emit:u}){$(!1);const a=l=>{let o=`${p("/teacher")}/#/registerProtocol`;l==="question"?o=`${p("/teacher")}/muic-standard/question.html`:l==="music"&&(o=`${p("/teacher")}/muic-standard/index.html`),window.open(o)};return()=>e("div",{class:[r.popupContainer,t.type==="error"?r.popupContainerError:""]},[e("p",{class:r.title1},[e("span",null,[t.title])]),e("div",{class:r.popupTips},[t.type==="upload"&&e(X,{class:r.container},{default:()=>[e("p",{class:r.cTitle},[s("\u6CE8\u610F\u4E8B\u9879\uFF1A")]),e("div",{class:r.cContent},[s("1\u3001\u5FC5\u987B\u662F\u4E0A\u4F20\u4EBA\u81EA\u5DF1\u53C2\u4E0E\u5236\u4F5C\u7684\u4F5C\u54C1 "),e("br",null,null),s("2\u3001\u6B4C\u66F2\u53CA\u6B4C\u66F2\u4FE1\u606F\u4E2D\u8BF7\u52FF\u6D89\u53CA\u653F\u6CBB\u3001\u5B97\u6559\u3001\u5E7F\u544A\u3001\u6D89\u6BD2\u3001\u72AF\u7F6A\u3001\u8272\u60C5\u3001\u4F4E\u4FD7\u3001\u66B4\u529B\u3001\u8840\u8165\u3001\u6D88\u6781\u7B49\u8FDD\u89C4\u5185\u5BB9\uFF0C\u8FDD\u53CD\u8005\u76F4\u63A5\u5220\u9664\u5185\u5BB9\u3002\u591A\u6B21\u8FDD\u53CD\u5219\u8FDB\u884C\u5C01\u53F7\u5904\u7406;"),e("br",null,null),s("3\u3001\u70B9\u51FB\u67E5\u770B"),e("span",{onClick:()=>a("protocol")},[s("\u300A\u7528\u6237\u6CE8\u518C\u534F\u8BAE\u300B")]),s("\uFF0C\u5982\u679C\u60A8\u4E0A\u4F20\u4E86\u6587\u4EF6\uFF0C\u5373\u8BA4\u4E3A\u60A8\u5B8C\u5168\u540C\u610F\u5E76\u9075\u5B88\u8BE5\u534F\u8BAE\u7684\u5185\u5BB9\u3002")]),e("p",{class:r.cTitle},[s("\u66F2\u8C31\u5BA1\u6838\u6807\u51C6\uFF1A")]),e("div",{class:r.cContent},[s("1\u3001\u6587\u4EF6\u5927\u5C0F\u4E0D\u8981\u8D85\u8FC75MB\uFF0C\u4E0D\u7B26\u5408\u7248\u9762\u89C4\u8303\u7684\u4E50\u8C31\uFF0C\u5BA1\u6838\u672A\u901A\u8FC7\u7684\u4E0D\u4E88\u4E0A\u67B6\uFF0C\u8BE6\u60C5\u53C2\u8003"),e("span",{onClick:()=>a("music")},[s("\u300A\u66F2\u8C31\u6392\u7248\u89C4\u8303\u300B")]),s("\uFF1B"),e("br",null,null),s("2\u3001XML\u4E0EMIDI\u6587\u4EF6\u5185\u5BB9\u5FC5\u987B\u4E00\u81F4\uFF0C\u63A8\u8350\u4F7F\u7528Sibelius\u6253\u8C31\u8F6F\u4EF6\uFF1B\u5BFC\u51FA\u8BBE\u7F6E\uFF1A\u5BFC\u51FAXML-\u672A\u538B\u7F29\uFF08*.XML\uFF09/\u5BFC\u51FAMIDI\uFF1A\u97F3\u8272-\u5176\u4ED6\u56DE\u653E\u8BBE\u5907General MIDI\u3001MIDI\u3001MIDI\u6587\u4EF6\u7C7B\u578B-\u7C7B\u578B0\u3001\u4E0D\u8981\u52FE\u9009\u201C\u5C06\u5F31\u62CD\u5C0F\u8282\u5BFC\u51FA\u4E3A\u5177\u6709\u4F11\u6B62\u7B26\u7684\u5B8C\u6574\u5C0F\u8282\u201D\u3002\u70B9\u51FB\u67E5\u770B"),e("span",{onClick:()=>a("question")},[s("\u300A\u5E38\u89C1\u95EE\u9898\u300B")])])]}),t.type==="error"&&e("div",{class:r.container},[e("div",{class:r.cContent},[s("\u58F0\u8F68\u540D\u79F0\u89E3\u6790\u5931\u8D25\uFF0C\u8BF7\u5BF9\u7167"),e("span",{onClick:()=>a("protocol")},[s("\u300A\u66F2\u8C31\u6392\u7248\u89C4\u8303\u300B")]),s("\u68C0\u67E5\u540E\u91CD\u8BD5")])]),t.type==="origin"&&e("div",{class:r.container},[e("div",{class:r.cContent},[s("1\u3001\u540C\u4E00\u9996\u66F2\u76EE\u4E0D\u53EF\u91CD\u590D\u4E0A\u4F20\uFF0C\u5982\u6709\u4E0D\u540C\u7248\u672C\u7EDF\u4E00\u7528\u201C\uFF08\uFF09\u201D\u8865\u5145\u3002\u4E3E\u4F8B\uFF1A\u4EBA\u751F\u7684\u65CB\u8F6C\u6728\u9A6C\uFF08\u957F\u7B1B\u4E8C\u91CD\u594F\u7248\uFF09"),e("br",null,null),s("2\u3001\u66F2\u76EE\u540D\u540E\u53EF\u6DFB\u52A0\u66F2\u76EE\u4FE1\u606F\u5907\u6CE8\uFF0C\u5305\u542B\u4F46\u4E0D\u9650\u4E8E\u66F2\u76EE\u7C7B\u578B\u7B49\u3002\u66F2\u76EE\u540D\u300AXXX\u300B\uFF0C\u4E3E\u4F8B\uFF1A\u4EBA\u58F0\u7684\u65CB\u8F6C\u6728\u9A6C\u300A\u54C8\u5C14\u7684\u79FB\u52A8\u57CE\u5821\u300B\uFF08\u957F\u7B1B\u4E8C\u91CD\u594F\u7248\uFF09"),e("br",null,null),s("3\u3001\u5176\u4ED6\u4FE1\u606F\u4E0D\u8981\u5199\u5728\u66F2\u76EE\u540D\u91CC\uFF0C\u5982\u6B4C\u624B\u3001\u4E0A\u4F20\u4EBA\u5458\u6635\u79F0\u7B49\u3002")])])]),t.showButton&&e("div",{class:r.btnGroup},[e(g,{type:"primary",class:r.button,onClick:()=>u("confirm")},{default:()=>[t.buttonText]})])])}});function Cu(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Q(t)}const gu=(t,u,a)=>{console.log(u),u==""?a(new Error("\u8BF7\u8F93\u5165\u6536\u8D39\u4EF7\u683C")):Number(u)<=0?a(new Error("\u6536\u8D39\u91D1\u989D\u5FC5\u987B\u5927\u4E8E0")):a()};var xu=_({name:"music-operation",data(){return{type:this.$route.query.type||"create",subjectList:[],tagList:[],submitLoading:!1,reason:"",formated:{},musicSheetAuthRecordId:null,auditStatus:"",form:{musicCover:"",accompanimentType:"HOMEMODE",playMode:"MP3",xmlFileUrl:"",playSpeed:"100",mp3Url:"",midiFileUrl:"",name:"",composer:"",remark:"",tags:[],paymentType:"FREE",musicPrice:"",backgroundMp3s:[]},radioList:[],tagStatus:!1,music_sheet_service_fee:0,music_account_period:0,visibleShow:!1,visibleShow2:!1,messageTipTitle:"\u4E0A\u4F20\u987B\u77E5",messageTipType:"upload",cbsInstrumentList:[]}},async mounted(){localStorage.getItem("isCatchTip")||(this.visibleShow=!0),document.title=this.type==="create"?"\u65B0\u5EFA\u66F2\u8C31":"\u7F16\u8F91\u66F2\u8C31";try{await F.get("/api-website/sysConfig/queryByParamNameList",{params:{paramNames:"music_sheet_service_fee,music_account_period"}}).then(u=>{console.log(u,"res"),(u.data||[]).forEach(l=>{l.paramName==="music_sheet_service_fee"?this.music_sheet_service_fee=l.paramValue:l.paramName==="music_account_period"&&(this.music_account_period=l.paramValue)})}),await F.get("/api-website/open/MusicTag/tree").then(u=>{this.tagList=u.data||[]}),await F.post("/api-teacher/musicalInstrument/list").then(u=>{(u.data||[]).forEach(l=>{this.cbsInstrumentList.push({id:l.id,name:l.name,code:l.code,loading:!1})})}),this.$route.query.id&&this.setDetail(this.$route.query.id)}catch{}},watch:{formated(){this.mergeXmlData(this.formated)}},computed:{auditDisabled(){return this.auditStatus==="DOING"}},methods:{mergeXmlData(t){this.formated=t,this.form.name||(this.form.name=t.title),this.form.composer||(this.form.composer=t.composer),t.speed&&(this.form.playSpeed=""+t.speed)},async setDetail(t){try{const{data:u}=await F.get("/api-website/open/music/sheet/detail/"+t);this.musicSheetAuthRecordId=u.musicSheetAuthRecordId,this.auditStatus=u.auditStatus,this.form.playMode=u.audioType||"MP3",this.form.xmlFileUrl=u.xmlFileUrl,this.form.name=u.musicSheetName,this.form.composer=u.composer,this.form.playSpeed=u.playSpeed,this.form.tags=u.musicTag.split(","),this.form.tags=this.form.tags.filter(a=>a!="").map(a=>Number(a)),this.form.musicCover=u.titleImg,this.form.midiFileUrl=u.midiUrl,this.form.mp3Url=u.metronomeUrl,this.form.remark=u.remark,this.form.paymentType=u.paymentType,this.form.musicPrice=u.musicPrice||0,this.form.backgroundMp3s=u.background.map(a=>({url:a.audioFileUrl,trackName:a.musicalInstrumentName,id:a.musicalInstrumentId,track:a.track,loading:!1}))}catch(u){console.log(u)}},createSubmitData(){var u,a,l;const{form:t}=this;return{musicSheetJson:{playMode:t.playMode,xmlFileUrl:t.xmlFileUrl,name:t.name,composer:t.composer,playSpeed:t.playSpeed,musicTagIds:(u=t.tags)==null?void 0:u.join(","),remark:t.remark,musicCover:t.musicCover,multiTracksSelection:(a=t.backgroundMp3s.map(o=>o.track))==null?void 0:a.join(","),midiFileUrl:t.midiFileUrl,musicPrice:t.musicPrice,paymentType:t.paymentType,musicSheetAccompanimentList:[{audioFileUrl:t.mp3Url,sortNumber:1,audioPlayType:"PLAY"}],musicSheetSoundList:t.backgroundMp3s.map(o=>({musicalInstrumentId:o.id,musicalInstrumentName:o.trackName,audioFileUrl:o.url,track:o.track,audioPlayType:"PLAY"})),musicalInstrumentIds:(l=t.backgroundMp3s.map(o=>o.id))==null?void 0:l.join(","),extConfigJson:'{"repeatedBeats":0,"gradualTimes":{},"isEvxml":0}'}}},onFormatter(t){t.target.value=q(t.target.value)},readerFile(t){R(t).then(u=>{const a=ru(u);let l=!1;const o=a.partNames||[],d=[];for(const c of o){let m=-1;if(this.cbsInstrumentList.forEach((B,I)=>{const w=B.code?B.code.split(","):"";for(const S of w)c.indexOf(S)>-1&&(m=I)}),m===-1){l=!0;break}const h=this.cbsInstrumentList[m];h&&d.push({url:"",id:h.id,trackName:h.name,track:c,loading:h.loading})}if(o.length<=0||l){this.visibleShow2=!0,this.form.xmlFileUrl="";return}this.formated=a,this.form.backgroundMp3s=d,console.log(this.form.backgroundMp3s,"121212",d)})},onSubmit(){this.$refs.form.validate(async t=>{if(t){this.submitLoading=!0;try{this.$route.query.id?await F.post("/api-teacher/musicSheetAuthRecord/update",{data:A(D({},this.createSubmitData()),{id:this.musicSheetAuthRecordId})}):await F.post("/api-teacher/musicSheetAuthRecord/save",{data:this.createSubmitData()}),this.submitLoading=!1,j.success("\u4E0A\u4F20\u6210\u529F"),sessionStorage.setItem("musicActiveName","DOING"),this.$router.back()}catch{this.submitLoading=!1}}else return this.$nextTick(()=>{document.getElementsByClassName("is-error")[0].scrollIntoView({block:"center",behavior:"smooth"})}),!1})},onDetail(t){let u=`${p("/teacher")}/#/registerProtocol`;t==="question"?u=`${p("/teacher")}/muic-standard/question.html`:t==="music"&&(u=`${p("/teacher")}/muic-standard/index.html`),window.open(u)}},render(){let t;return e("div",{class:n.form},[e("div",{class:"text-2xl font-semibold text-black leading-none px-6 py-5 flex justify-between"},[this.type==="create"?"\u65B0\u5EFA\u66F2\u8C31":"\u7F16\u8F91\u66F2\u8C31",e("div",{class:n.uploadTips,onClick:()=>this.visibleShow=!0},[s("\u4E0A\u4F20\u987B\u77E5")])]),e(O,{size:"large",labelPosition:"left",labelWidth:"150px",model:this.form,ref:"form",class:"px-7 py-5",disabled:this.auditDisabled},{default:()=>[e("div",{class:n.fAlert},[s("\u66F2\u76EE\u4E0A\u4F20")]),e(i,{label:"\u64AD\u653E\u7C7B\u578B",prop:"playMode",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u64AD\u653E\u7C7B\u578B"}]},{default:()=>[e(x,{modelValue:this.form.playMode,"onUpdate:modelValue":u=>this.form.playMode=u},{default:()=>[e(E,{label:"MP3",class:"mr-3 w-24"},{default:()=>[s("MP3")]}),e(E,{label:"MIDI",class:"w-24"},{default:()=>[s("MIDI")]})]})]}),this.form.playMode==="MP3"?e(i,{label:"\u4E0A\u4F20\u4F34\u594F",prop:"mp3Url",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u4F34\u594F"}]},{default:()=>[e(f,{modelValue:this.form.mp3Url,"onUpdate:modelValue":u=>this.form.mp3Url=u,bucket:"cloud-coach",accept:".mp3",uploadType:"file",disabled:this.auditDisabled,type:"music",btnText:"\u4E0A\u4F20\u4F34\u594F\u6587\u4EF6",size:8,extraTips:"\u4EC5\u652F\u6301MP3\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u6700\u5927\u4E0D\u80FD\u8D85\u8FC78MB"},null)]}):e(i,{label:"MIDI\u6587\u4EF6",prop:"midiFileUrl",rules:[{required:!0,message:"\u8BF7\u9009\u62E9MIDI\u6587\u4EF6"}]},{default:()=>[e(f,{modelValue:this.form.midiFileUrl,"onUpdate:modelValue":u=>this.form.midiFileUrl=u,bucket:"cloud-coach",accept:".midi,.mid",disabled:this.auditDisabled,uploadType:"file",type:"music",btnText:"\u4E0A\u4F20MIDI\u6587\u4EF6",size:8,extraTips:"\u4EC5\u652F\u6301MID\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u6700\u5927\u4E0D\u80FD\u8D85\u8FC78MB"},null)]}),e(i,{label:"\u4E0A\u4F20XML",prop:"xmlFileUrl",rules:[{required:!0,message:"\u8BF7\u9009\u62E9XML\u6587\u4EF6"}]},{default:()=>[e(f,{modelValue:this.form.xmlFileUrl,"onUpdate:modelValue":u=>this.form.xmlFileUrl=u,bucket:"cloud-coach",accept:"application/xml",uploadType:"file",disabled:this.auditDisabled,type:"music",btnText:"\u4E0A\u4F20XML\u6587\u4EF6",extraTips:"\u4EC5\u652F\u6301XML\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u6700\u5927\u4E0D\u80FD\u8D85\u8FC78MB",onChange:this.readerFile,onRemove:()=>{this.form.backgroundMp3s=[]}},null)]}),this.form.backgroundMp3s.length>0&&this.form.playMode==="MP3"&&e(i,null,{label:()=>e("div",{class:"flex items-center"},[e("i",{style:"color: var(--el-color-danger);margin-right: 4px;"},[s("*")]),s("\u4E0A\u4F20\u539F\u97F3"),e(G,{effect:"dark",placement:"top"},{content:()=>e("div",{class:"w-[445px]"},[s("1\u3001\u540C\u4E00\u9996\u66F2\u76EE\u4E0D\u53EF\u91CD\u590D\u4E0A\u4F20\uFF0C\u5982\u6709\u4E0D\u540C\u7248\u672C\u7EDF\u4E00\u7528\u201C\uFF08\uFF09\u201D\u8865\u5145\u3002\u4E3E\u4F8B\uFF1A\u4EBA\u751F\u7684\u65CB\u8F6C\u6728\u9A6C\uFF08\u957F\u7B1B\u4E8C\u91CD\u594F\u7248\uFF09"),e("br",null,null),s("2\u3001\u66F2\u76EE\u540D\u540E\u53EF\u6DFB\u52A0\u66F2\u76EE\u4FE1\u606F\u5907\u6CE8\uFF0C\u5305\u542B\u4F46\u4E0D\u9650\u4E8E\u66F2\u76EE\u7C7B\u578B\u7B49\u3002\u66F2\u76EE\u540D\u300AXXX\u300B\uFF0C\u4E3E\u4F8B\uFF1A\u4EBA\u58F0\u7684\u65CB\u8F6C\u6728\u9A6C\u300A\u54C8\u5C14\u7684\u79FB\u52A8\u57CE\u5821\u300B\uFF08\u957F\u7B1B\u4E8C\u91CD\u594F\u7248\uFF09"),e("br",null,null),s("3\u3001\u5176\u4ED6\u4FE1\u606F\u4E0D\u8981\u5199\u5728\u66F2\u76EE\u540D\u91CC\uFF0C\u5982\u6B4C\u624B\u3001\u4E0A\u4F20\u4EBA\u5458\u6635\u79F0\u7B49\u3002")]),default:()=>e("i",{class:n.iconQesution},null)})]),default:()=>e(T,null,[this.form.backgroundMp3s.map((u,a)=>e(i,{prop:`backgroundMp3s.${a}.url`,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u539F\u97F3\u6587\u4EF6",trigger:"blur,change"}],class:n.formItem},{default:()=>[e("div",{style:"line-height: 1; font-weight: 500;font-size: 16px;color: #131415; padding-bottom: 12px;"},[s("\u6240\u5C5E\u8F68\u9053\uFF1A"),u.trackName]),e(f,{modelValue:u.url,"onUpdate:modelValue":l=>u.url=l,bucket:"cloud-coach",accept:".mp3",uploadType:"file",disabled:this.auditDisabled,class:n.uploadCon,size:8,type:"music",btnText:"\u4E0A\u4F20\u539F\u97F3\u6587\u4EF6",extraTips:"\u4EC5\u652F\u6301MP3\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u6700\u5927\u4E0D\u80FD\u8D85\u8FC78MB"},null)]}))])}),e("div",{class:n.fAlert},[s("\u66F2\u76EE\u4FE1\u606F")]),e(i,{label:"\u66F2\u76EE\u540D\u79F0",prop:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u66F2\u76EE\u540D\u79F0"}]},{default:()=>[e(C,{modelValue:this.form.name,"onUpdate:modelValue":u=>this.form.name=u,placeholder:"\u8BF7\u9009\u62E9\u66F2\u76EE\u540D\u79F0",maxlength:50,showWordLimit:!0},null)]}),e(i,{label:"\u97F3\u4E50\u4EBA",prop:"composer",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u97F3\u4E50\u4EBA"}]},{default:()=>[e(C,{modelValue:this.form.composer,"onUpdate:modelValue":u=>this.form.composer=u,placeholder:"\u8BF7\u8F93\u5165\u97F3\u4E50\u4EBA",maxlength:14,showWordLimit:!0},null)]}),e(i,{label:"\u66F2\u76EE\u63CF\u8FF0",prop:"remark"},{default:()=>[e(C,{modelValue:this.form.remark,"onUpdate:modelValue":u=>this.form.remark=u,placeholder:"\u8BF7\u8F93\u5165\u66F2\u76EE\u63CF\u8FF0",maxlength:200,showWordLimit:!0,type:"textarea"},null)]}),e(i,{label:"\u66F2\u8C31\u5C01\u9762",prop:"musicCover",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u66F2\u8C31\u5C01\u9762"}]},{default:()=>[e(P,{modelValue:this.form.musicCover,bucket:"cloud-coach",cropUploadSuccess:u=>{this.form.musicCover=u},onRemove:()=>{this.form.musicCover=""},delete:!this.auditDisabled,disabled:this.auditDisabled,domSize:{height:"150px"},options:{title:"\u66F2\u8C31\u5C01\u9762",enlarge:2,autoCropWidth:300,autoCropHeight:300}},null)]}),e(i,{label:"\u66F2\u76EE\u901F\u5EA6",prop:"playSpeed",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u66F2\u76EE\u901F\u5EA6"}]},{default:()=>[e(z,{controls:!1,modelValue:this.form.playSpeed,"onUpdate:modelValue":u=>this.form.playSpeed=u,placeholder:"\u8BF7\u8F93\u5165\u66F2\u76EE\u901F\u5EA6",min:45,max:270},null)]}),e(i,{label:"\u66F2\u76EE\u6807\u7B7E",prop:"tags",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u66F2\u76EE\u6807\u7B7E"}]},{default:()=>[e(W,{multiple:!0,modelValue:this.form.tags,"onUpdate:modelValue":u=>this.form.tags=u,placeholder:"\u8BF7\u9009\u62E9\u66F2\u76EE\u6807\u7B7E",multipleLimit:3,class:"w-full"},Cu(t=this.tagList.map(u=>e(H,{key:u.id,value:u.id,label:u.name},null)))?t:{default:()=>[t]})]}),e(i,{label:"\u662F\u5426\u6536\u8D39",prop:"paymentType",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u6536\u8D39"}]},{default:()=>[e(x,{modelValue:this.form.paymentType,"onUpdate:modelValue":u=>this.form.paymentType=u},{default:()=>[e(E,{label:"CHARGE",class:"mr-3 w-24"},{default:()=>[s("\u662F")]}),e(E,{label:"FREE",class:"w-24"},{default:()=>[s("\u5426")]})]})]}),this.form.paymentType==="CHARGE"&&e(T,null,[e(i,{label:"\u6536\u8D39\u4EF7\u683C",prop:"musicPrice",rules:[{required:!0,validator:gu}]},{default:()=>[e(C,{modelValue:this.form.musicPrice,"onUpdate:modelValue":u=>this.form.musicPrice=u,placeholder:"\u8BF7\u8F93\u5165\u6536\u8D39\u4EF7\u683C",maxlength:5,onKeyup:this.onFormatter},{suffix:()=>e("span",{class:"text-base text-[#999]"},[s("\u5143")])})]}),e(i,null,{default:()=>[e("div",{class:n.rule},[e("p",null,[s("\u6263\u9664\u624B\u7EED\u8D39\u540E\u8BE5\u66F2\u76EE\u9884\u8BA1\u6536\u5165\u4E3A\uFF1A"),e("span",null,[(parseFloat(this.form.musicPrice||"0")||0)*(100-this.music_sheet_service_fee)/100,e("span",null,[s("\u5143/\u4EBA")])])]),e("p",null,[s("\u60A8\u7684\u4E50\u8C31\u6536\u5165\u5728\u5B66\u5458\u8D2D\u4E70\u540E"),this.music_account_period,s("\u5929\u7ED3\u7B97\u5230\u60A8\u7684\u8D26\u6237\u4E2D")])])]})])]}),!this.auditDisabled&&e("div",{class:"text-center pt-6 pb-7"},[e(g,{class:"!w-44 !h-[48px]",round:!0,onClick:()=>{this.$router.back()}},{default:()=>[s("\u53D6\u6D88")]}),e(g,{type:"primary",class:"!w-44 !h-[48px]",round:!0,onClick:this.onSubmit,loading:this.submitLoading},{default:()=>[s("\u63D0\u4EA4\u5BA1\u6838")]})]),e(v,{modelValue:this.visibleShow,"onUpdate:modelValue":u=>this.visibleShow=u,destroyOnClose:!0,customClass:n.messageDialog},{default:()=>[e(M,{type:"upload",title:"\u4E0A\u4F20\u987B\u77E5",onConfirm:()=>{localStorage.setItem("isCatchTip","1"),this.visibleShow=!1}},null)]}),e(v,{modelValue:this.visibleShow2,"onUpdate:modelValue":u=>this.visibleShow2=u,destroyOnClose:!0,customClass:n.messageDialog2},{default:()=>[e(M,{type:"error",title:"\u89E3\u6790\u5931\u8D25",onConfirm:()=>this.visibleShow2=!1},null)]})])}});export{xu as default,gu as validator};