1 |
- var Ge=Object.defineProperty,_e=Object.defineProperties;var $e=Object.getOwnPropertyDescriptors;var Oe=Object.getOwnPropertySymbols;var Xe=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable;var Be=(f,P,D)=>P in f?Ge(f,P,{enumerable:!0,configurable:!0,writable:!0,value:D}):f[P]=D,x=(f,P)=>{for(var D in P||(P={}))Xe.call(P,D)&&Be(f,D,P[D]);if(Oe)for(var D of Oe(P))Ye.call(P,D)&&Be(f,D,P[D]);return f},k=(f,P)=>_e(f,$e(P));var g=(f,P,D)=>new Promise((a,I)=>{var T=F=>{try{c(D.next(F))}catch(R){I(R)}},t=F=>{try{c(D.throw(F))}catch(R){I(R)}},c=F=>F.done?a(F.value):Promise.resolve(F.value).then(T,t);c((D=D.apply(f,P)).next())});import{d as X,ai as ne,u as ee,r as z,a as H,B as Y,i as e,a9 as S,dw as Se,dC as se,l as h,_ as W,ce as d,p as v,k as b,cg as Q,dj as be,bi as C,db as _,ae as ce,a0 as A,q as xe,b as Je,cf as Ce,H as N,aa as J,da as re,d9 as B,aj as oe,ch as te,bn as De,bC as K,e as We,dD as le,U as He,d7 as Qe,d8 as Fe}from"./index.17aa86ea.js";import{g as Ze,s as et}from"./use-async.e05b34bb.js";import{C as ae,F as q,D as Z,G as ue,E as we,H as qe}from"./constant.b4bfe346.js";import{s as fe}from"./api.cc5dc488.js";import{S as pe}from"./index.43f1d419.js";import{P as de}from"./index.0202f458.js";import{T as M}from"./index.2710b03b.js";import{g as U,a as $}from"./objectUtil.ec24ceed.js";import{d as Te,l as ke,c as Ie,r as Re,a as me,e as Le,s as Pe,t as je,u as ie,v as Ue,m as tt}from"./api.e4e37bb9.js";import{g as he,f as Ve,c as Ee}from"./musicUtil.56af1657.js";import{N as ve}from"./Cascader.0eaac8f1.js";import{y as ze,c as ge}from"./api.bac88ad3.js";import{f as Ae}from"./dateUtil.ba4c101b.js";import{e as at}from"./filters.0e1cdfd6.js";import{a as lt}from"./searchArray.617a5610.js";import"./searchs.b637f0d6.js";import"./dayjs.min.25de0421.js";const st=X({name:"kt-addMusic",props:{appId:{type:String,required:!0},subjectList:{type:Array,default:()=>[]},musicSheetCategories:{type:Array,default:()=>[]}},emits:["close","getList"],setup(f,{slots:P,attrs:D,emit:a}){const I=ne(),T=ee(),t=z(!1),c=H({loading:!1,pagination:{page:1,rows:5,pageTotal:0},stepPagination:{page:1,rows:5,pageTotal:0},searchForm:{keyword:null,subjectId:null,sourceType:null,composer:null,userId:null,applicationId:null},subjectList:[],showAdd:!1,currentStep:1,dataList:[],selectRowData:[],musicSheetCategories:[],musicSheetTagListKt:[],musicTagIds:[],recommendFlag:!1,startSortNum:null,projectMusicCategoryId:null,isConvertibleScore:null,status:!1,scoreType:null,useProjectData:[],userIdDisable:!0,userIdData:[],globalPaymentType:null}),F=()=>g(this,null,function*(){try{const{data:r}=yield Ie({applicationId:f.appId});r&&r.length>0&&r.forEach(i=>{c.musicSheetTagListKt.push(k(x({},i),{label:i.name,value:i.id}))})}catch(r){}});Y(()=>g(this,null,function*(){c.searchForm.keyword=null,c.searchForm.subjectId=null,c.searchForm.sourceType=null,c.searchForm.composer=null,c.searchForm.userId=null,c.searchForm.applicationId=null,c.loading=!0,c.subjectList=f.subjectList;try{const{data:r}=yield Te({applicationIds:f.appId,enable:!0});r&&r.length>0&&(c.musicSheetCategories=r[0].musicSheetCategories)}catch(r){}yield F(),yield R(),yield p()}));const R=()=>g(this,null,function*(){try{const r=Object.keys(ae),{data:i}=yield fe({page:1,rows:999}),m=i.rows||[];c.useProjectData=[],m.filter(G=>r.includes(G.appKey)).forEach(G=>{c.useProjectData.push(k(x({},G),{label:G.appName,value:G.id}))})}catch(r){}}),p=()=>g(this,null,function*(){try{c.loading=!0;const r=k(x({},c.searchForm),{userId:c.searchForm.sourceType&&c.searchForm.sourceType=="PERSON"?c.searchForm.userId:null,organizationRoleId:c.searchForm.sourceType&&c.searchForm.sourceType=="ORG"?c.searchForm.userId:null}),{data:i}=yield ke(k(x(x({},c.pagination),r),{addAppId:f.appId}));c.pagination.pageTotal=Number(i.total),c.dataList=i.rows||[]}catch(r){}c.loading=!1}),w=z(),L=()=>{var r;y.value=[],(r=w.value)==null||r.submit()},E=()=>{var r;(r=w.value)==null||r.reset()},V=()=>{c.pagination.page=1,p()},O=()=>g(this,null,function*(){if(c.selectRowData.length==0){T.error("\u672A\u9009\u62E9\u66F2\u76EE");return}const r=[];for(let i=0;i<c.selectRowData.length;i++){const m=c.selectRowData[i];if(m.musicTagIds.length<=0){T.error("\u66F2\u76EE\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A");return}if(m.recommendFlag==null){T.error("\u8BF7\u9009\u62E9\u662F\u5426\u63A8\u8350");return}if(!m.projectMusicCategoryId){T.error("\u4E50\u8C31\u6559\u6750\u4E0D\u80FD\u4E3A\u7A7A");return}if(!m.paymentType){T.error("\u6536\u8D39\u65B9\u5F0F\u4E0D\u80FD\u4E3A\u7A7A");return}if(m.scoreType==null){T.error("\u9ED8\u8BA4\u8C31\u9762\u4E0D\u80FD\u4E3A\u7A7A");return}if(m.isConvertibleScore==null){T.error("\u662F\u5426\u652F\u6301\u8F6C\u8C31\u4E0D\u80FD\u4E3A\u7A7A");return}if(m.status==null){T.error("\u662F\u5426\u542F\u7528\u4E0D\u80FD\u4E3A\u7A7A");return}m.sortNo||(m.sortNo=0),r.push(k(x({},m),{musicSheetId:m.id,musicSheetCategoryId:m.projectMusicCategoryId,applicationId:f.appId,musicTagIds:m.musicTagIds?m.musicTagIds.join(","):"",id:null}))}t.value=!0;try{const i=yield Re(r);i&&i.code=="200"&&(T.success("\u6DFB\u52A0\u6210\u529F"),a("getList"),a("close"))}catch(i){}t.value=!1}),o=[{type:"selection"},{title:"\u66F2\u76EE\u7F16\u53F7",key:"id"},{title:"\u5C01\u9762\u56FE",key:"titleImg",render(r){return e(ce,{width:40,height:40,src:r.musicCover},null)}},{title:"\u53EF\u7528\u58F0\u90E8",key:"subjectNames",render:r=>e(M,{content:r.subjectNames},null)},{title:"\u66F2\u76EE\u540D\u79F0",key:"name"},{title:"\u97F3\u4E50\u4EBA",key:"composer"},{title:"\u66F2\u76EE\u6765\u6E90",key:"sourceType",render(r){return $(r.sourceType,new Map(Object.entries(q)))}},{title:"\u6240\u5C5E\u4EBA",key:"userName",render:r=>e(M,{content:he(r.musicSheetExtend,r.sourceType)},null)}],n=()=>o,s=()=>{const r=be(o);return r.splice(0,1),r.push({title(i){return e(S,null,{default:()=>[b("\u66F2\u76EE\u6807\u7B7E"),e(v,{type:"primary",size:"small",text:!0,onClick:()=>{c.musicSheetTagListKt.forEach(m=>{m.disabled=!1}),I.create({title:"\u8BF7\u9009\u62E9\u66F2\u76EE\u6807\u7B7E",showIcon:!1,content:()=>C("div",{class:"flex flex-col justify-center items-center text-14px"},[C(d,{onUpdateValue(m){c.musicTagIds=m,c.musicSheetTagListKt.forEach(j=>{var G,ye;((G=c.musicTagIds)==null?void 0:G.length)>=3?(ye=c.musicTagIds)!=null&&ye.includes(j.id)?j.disabled=!1:j.disabled=!0:j.disabled=!1})},multiple:!0,maxTagCount:2,clearable:!0,options:c.musicSheetTagListKt})]),positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>{for(let m=0;m<c.selectRowData.length;m++){const j=c.selectRowData[m];j.musicTagIds=c.musicTagIds}},onNegativeClick:()=>{}})}},{default:()=>[e(A,{size:15,style:"padding-left: 5px;margin-top:4px"},{default:()=>[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e("path",{d:"M2 26h28v2H2z",fill:"currentColor"},null),e("path",{d:"M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z",fill:"currentColor"},null)])]})]})]})},key:"musicTagIds",width:200,render:i=>e(d,{placeholder:"\u8BF7\u9009\u62E9\u66F2\u76EE\u6807\u7B7E",value:i.musicTagIds,options:c.musicSheetTagListKt,clearable:!0,multiple:!0,maxTagCount:1,"onUpdate:show":m=>{c.musicSheetTagListKt.forEach(j=>{var G,ye;((G=i.musicTagIds)==null?void 0:G.length)>=3?(ye=i.musicTagIds)!=null&&ye.includes(j.id)?j.disabled=!1:j.disabled=!0:j.disabled=!1})},"onUpdate:value":m=>{i.musicTagIds=m,c.musicSheetTagListKt.forEach(j=>{var G,ye;((G=i.musicTagIds)==null?void 0:G.length)>=3?(ye=i.musicTagIds)!=null&&ye.includes(j.id)?j.disabled=!1:j.disabled=!0:j.disabled=!1})}},null)}),r.push({title(i){return e(S,null,{default:()=>[b("\u662F\u5426\u63A8\u8350"),e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.create({title:"\u8BF7\u9009\u62E9\u662F\u5426\u63A8\u8350",showIcon:!1,content:()=>C("div",{class:"flex flex-col justify-center items-center text-14px"},[C(d,{onUpdateValue(m){c.recommendFlag=m},clearable:!0,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]})]),positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>{for(let m=0;m<c.selectRowData.length;m++){const j=c.selectRowData[m];j.recommendFlag=c.recommendFlag}}})}},{default:()=>[e(A,{size:15,style:"padding-left: 5px;margin-top:4px"},{default:()=>[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e("path",{d:"M2 26h28v2H2z",fill:"currentColor"},null),e("path",{d:"M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z",fill:"currentColor"},null)])]})]})]})},key:"recommendFlag",width:200,render:i=>e(d,{placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u63A8\u8350",value:i.recommendFlag,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}],clearable:!0,onUpdateValue:m=>{i.recommendFlag=m}},null)}),r.push({title(i){return e(S,null,{default:()=>[b("\u4E50\u8C31\u6559\u6750"),e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.create({title:"\u8BF7\u9009\u62E9\u4E50\u8C31\u6559\u6750",showIcon:!1,content:()=>C("div",{class:"flex flex-col justify-center items-center text-14px"},[C(ve,{onUpdateValue(m){c.projectMusicCategoryId=m},valueField:"id",labelField:"name",childrenField:"children",placeholderField:"\u8BF7\u9009\u62E9\u4E50\u8C31\u6559\u6750",filterable:!0,options:c.musicSheetCategories})]),positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>{for(let m=0;m<c.selectRowData.length;m++){const j=c.selectRowData[m];j.projectMusicCategoryId=c.projectMusicCategoryId}}})}},{default:()=>[e(A,{size:15,style:"padding-left: 5px;margin-top:4px"},{default:()=>[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e("path",{d:"M2 26h28v2H2z",fill:"currentColor"},null),e("path",{d:"M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z",fill:"currentColor"},null)])]})]})]})},key:"projectMusicCategoryId",width:200,render:i=>e(ve,{valueField:"id",labelField:"name","children-field":"children",placeholder:"\u8BF7\u9009\u62E9\u66F2\u76EE\u5206\u7C7B",checkStrategy:"child",value:i.projectMusicCategoryId,options:c.musicSheetCategories,onUpdateValue:m=>{i.projectMusicCategoryId=m},filterable:!0,clearable:!0},null)}),r.push({title(i){return e(S,null,{default:()=>[b("\u6536\u8D39\u65B9\u5F0F"),e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.create({title:"\u8BF7\u9009\u62E9\u6536\u8D39\u65B9\u5F0F",showIcon:!1,content:()=>C("div",{class:"flex flex-col justify-center items-center text-14px"},[C(d,{onUpdateValue(m){c.globalPaymentType=m},clearable:!0,options:[{label:"\u514D\u8D39",value:"FREE"},{label:"\u4F1A\u5458",value:"VIP"}]})]),positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>{for(let m=0;m<c.selectRowData.length;m++){const j=c.selectRowData[m];j.paymentType=c.globalPaymentType}}})}},{default:()=>[e(A,{size:15,style:"padding-left: 5px;margin-top:4px"},{default:()=>[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e("path",{d:"M2 26h28v2H2z",fill:"currentColor"},null),e("path",{d:"M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z",fill:"currentColor"},null)])]})]})]})},key:"paymentType",width:200,render:i=>e(d,{placeholder:"\u8BF7\u9009\u62E9\u6536\u8D39\u65B9\u5F0F",value:i.paymentType,options:[{label:"\u514D\u8D39",value:"FREE"},{label:"\u4F1A\u5458",value:"VIP"}],clearable:!0,onUpdateValue:m=>{i.paymentType=m}},null)}),r.push({title(i){return e(S,null,{default:()=>[b("\u9ED8\u8BA4\u8C31\u9762"),e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.create({title:"\u8BF7\u9009\u62E9\u9ED8\u8BA4\u8C31\u9762",showIcon:!1,content:()=>C("div",{class:"flex flex-col justify-center items-center text-14px"},[C(d,{onUpdateValue(m){c.scoreType=m},options:U(Z)})]),positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>{for(let m=0;m<c.selectRowData.length;m++){const j=c.selectRowData[m];j.scoreType=c.scoreType}}})}},{default:()=>[e(A,{size:15,style:"padding-left: 5px;margin-top:4px"},{default:()=>[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e("path",{d:"M2 26h28v2H2z",fill:"currentColor"},null),e("path",{d:"M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z",fill:"currentColor"},null)])]})]})]})},key:"scoreType",width:200,render:i=>e(d,{placeholder:"\u8BF7\u9009\u62E9\u9ED8\u8BA4\u8C31\u9762",value:i.scoreType,options:U(Z),onUpdateValue:m=>{i.scoreType=m},clearable:!0},null)}),r.push({title(i){return e(S,null,{default:()=>[b("\u662F\u5426\u652F\u6301\u8F6C\u8C31"),e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.create({title:"\u662F\u5426\u652F\u6301\u8F6C\u8C31",showIcon:!1,content:()=>C("div",{class:"flex flex-col justify-center items-center text-14px"},[C(d,{onUpdateValue(m){c.isConvertibleScore=m},options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]})]),positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>{for(let m=0;m<c.selectRowData.length;m++){const j=c.selectRowData[m];j.isConvertibleScore=c.isConvertibleScore}}})}},{default:()=>[e(A,{size:15,style:"padding-left: 5px;margin-top:4px"},{default:()=>[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e("path",{d:"M2 26h28v2H2z",fill:"currentColor"},null),e("path",{d:"M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z",fill:"currentColor"},null)])]})]})]})},key:"isConvertibleScore",width:200,render:i=>e(d,{value:i.isConvertibleScore,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}],onUpdateValue:m=>{i.isConvertibleScore=m},filterable:!0,clearable:!0},null)}),r.push({title(i){return e(S,null,{default:()=>[b("\u662F\u5426\u542F\u7528"),e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.create({title:"\u662F\u5426\u542F\u7528",showIcon:!1,content:()=>C("div",{class:"flex flex-col justify-center items-center text-14px"},[C(d,{onUpdateValue(m){c.status=m},options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]})]),positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>{for(let m=0;m<c.selectRowData.length;m++){const j=c.selectRowData[m];j.status=c.status}}})}},{default:()=>[e(A,{size:15,style:"padding-left: 5px;margin-top:4px"},{default:()=>[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e("path",{d:"M2 26h28v2H2z",fill:"currentColor"},null),e("path",{d:"M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z",fill:"currentColor"},null)])]})]})]})},key:"status",width:200,render:i=>e(d,{value:i.status,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}],onUpdateValue:m=>{i.status=m},filterable:!0,clearable:!0},null)}),r.push({title(i){return e(S,null,{default:()=>[b("\u6392\u5E8F"),e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.create({title:"\u8BF7\u8F93\u5165\u6392\u5E8F\u8D77\u59CB\u503C",showIcon:!1,content:()=>C("div",{class:"flex flex-col justify-center items-center text-14px"},[C(_,{onUpdateValue(m){c.startSortNum=m},min:0,max:9999})]),positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>{if(c.startSortNum)for(let m=0;m<c.selectRowData.length;m++){const j=c.selectRowData[m];j.sortNo=c.startSortNum+m}}})}},{default:()=>[e(A,{size:15,style:"padding-left: 5px;margin-top:4px"},{default:()=>[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e("path",{d:"M2 26h28v2H2z",fill:"currentColor"},null),e("path",{d:"M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z",fill:"currentColor"},null)])]})]})]})},key:"sortNo",width:150,render:i=>C(_,{value:i.sortNo,min:0,max:9999,defaultValue:0,onUpdateValue(m){i.sortNo=m}})}),r.push({title:"\u64CD\u4F5C",key:"operation",fixed:"right",render(i){return e(S,null,{default:()=>[e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.warning({title:"\u63D0\u793A",content:"\u662F\u5426\u5220\u9664\u8BE5\u6570\u636E\uFF1F",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>g(this,null,function*(){try{const m=c.selectRowData.findIndex(G=>{if(G.id==i.id)return!0});m>-1&&c.selectRowData.splice(m,1),y.value.findIndex(G=>{if(G==i.id)return!0})>-1&&y.value.splice(m,1)}catch(m){}})})}},{default:()=>[b("\u79FB\u9664")]})]})}}),r},y=z([]),l=r=>{y.value=r,c.dataList.forEach(i=>{y.value.includes(i.id)&&(c.selectRowData.find(j=>j.id===i.id)||(i.musicTagIds=[],i.status=!1,i.recommendFlag=!1,c.selectRowData.push(i)))}),c.selectRowData=c.selectRowData.filter(i=>y.value.includes(i.id))},u=r=>g(this,null,function*(){if(!!c.searchForm.applicationId&&(c.userIdData=[],c.searchForm.userId=null,r&&r!=="PLATFORM")){const{data:i}=yield me({page:1,rows:9999,sourceType:r,applicationId:c.searchForm.applicationId});(i.rows||[]).forEach(j=>{c.userIdData.push(k(x({},j),{label:r==="PERSON"?j.userName:j.organizationRole,value:r==="PERSON"?j.userId:j.organizationRoleId}))})}});return()=>e("div",{class:"system-menu-container"},[e(S,{vertical:!0,size:"medium"},{default:()=>[e(Se,{current:c.currentStep,style:"margin-bottom: 10px;margin-top: 10px"},{default:()=>[e(se,{title:"\u9009\u62E9\u66F2\u76EE",description:""},null),e(se,{title:"\u8BBE\u7F6E\u66F2\u76EE\u4FE1\u606F",description:""},null)]})]}),c.currentStep===1&&e("div",{class:"system-menu-container"},[e(pe,{ref:w,model:c.searchForm,onSubmit:V,onSetModel:r=>c.searchForm=r},{default:()=>[e(h,{label:"\u5173\u952E\u8BCD",path:"keyword"},{default:()=>[e(W,{value:c.searchForm.keyword,"onUpdate:value":r=>c.searchForm.keyword=r,placeholder:"\u8BF7\u8F93\u5165\u66F2\u76EE\u540D\u79F0/\u7F16\u53F7",clearable:!0},null)]}),e(h,{label:"\u53EF\u7528\u58F0\u90E8",path:"musicSubject"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u53EF\u7528\u58F0\u90E8",value:c.searchForm.subjectId,"onUpdate:value":r=>c.searchForm.subjectId=r,options:c.subjectList,clearable:!0,filterable:!0},null)]}),e(h,{label:"\u97F3\u4E50\u4EBA",path:"composer"},{default:()=>[e(W,{placeholder:"\u8BF7\u9009\u62E9\u97F3\u4E50\u4EBA",value:c.searchForm.composer,"onUpdate:value":r=>c.searchForm.composer=r,clearable:!0},null)]}),e(h,{label:"\u66F2\u76EE\u6765\u6E90",path:"sourceType"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u66F2\u76EE\u6765\u6E90",value:c.searchForm.sourceType,"onUpdate:value":r=>c.searchForm.sourceType=r,options:U(q),onUpdateValue:r=>g(this,null,function*(){c.userIdData=[],c.searchForm.userId=null,r&&r!=="PLATFORM"?(yield u(r),c.userIdDisable=!1):c.userIdDisable=!0}),clearable:!0},null)]}),e(h,{label:"\u6240\u5C5E\u9879\u76EE",path:"applicationId"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u9879\u76EE",value:c.searchForm.applicationId,"onUpdate:value":r=>c.searchForm.applicationId=r,options:c.useProjectData,clearable:!0,onUpdateValue:r=>g(this,null,function*(){c.searchForm.applicationId=r,r?(yield u(c.searchForm.sourceType),c.userIdDisable=!(c.searchForm.sourceType&&c.searchForm.sourceType!=="PLATFORM")):(c.searchForm.userId=null,c.userIdDisable=!0,c.userIdData=[])})},null)]}),e(h,{label:"\u6240\u5C5E\u4EBA",path:"author"},{default:()=>[e(d,{filterable:!0,placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u4EBA",disabled:c.userIdDisable||!c.searchForm.applicationId&&!c.searchForm.sourceType,value:c.searchForm.userId,"onUpdate:value":r=>c.searchForm.userId=r,options:c.userIdData,clearable:!0},null)]}),e(h,null,{default:()=>[e(S,null,{default:()=>[e(v,{type:"primary",onClick:L},{default:()=>[b("\u641C\u7D22")]}),e(v,{type:"default",onClick:E},{default:()=>[b("\u91CD\u7F6E")]})]})]})]}),e("p",{style:{paddingBottom:"12px"}},[b("\u4F60\u9009\u62E9\u4E86"),e("span",{style:"color:red;padding:0 8px"},[c.selectRowData.length]),b("\u6761\u66F2\u76EE")]),e(Q,{loading:c.loading,columns:n(),data:c.dataList,rowKey:r=>r.id,onUpdateCheckedRowKeys:l,checkedRowKeys:y.value,"onUpdate:checkedRowKeys":r=>y.value=r},null),e(de,{page:c.pagination.page,"onUpdate:page":r=>c.pagination.page=r,pageSize:c.pagination.rows,"onUpdate:pageSize":r=>c.pagination.rows=r,pageTotal:c.pagination.pageTotal,"onUpdate:pageTotal":r=>c.pagination.pageTotal=r,onList:p,sync:!0},null)]),c.currentStep===2&&e("div",{class:"system-menu-container",style:"margin-top: 15px;"},[e(Q,{loading:c.loading,columns:s(),data:c.selectRowData,rowKey:r=>r.id,maxHeight:500,scrollX:2500},null)]),e(S,{justify:"end",style:"margin-top:10px"},{default:()=>[e(v,{type:"default",onClick:()=>{c.currentStep>1?c.currentStep=c.currentStep-1:a("close")}},{default:()=>[c.currentStep===1?"\u53D6\u6D88":"\u4E0A\u4E00\u6B65"]}),e(v,{type:"primary",onClick:()=>{if(c.currentStep<2){if(c.selectRowData.length==0){T.warning("\u8BF7\u9009\u62E9\u66F2\u76EE");return}c.currentStep=c.currentStep+1}else O()},loading:t.value,disabled:t.value},{default:()=>[c.currentStep===2?"\u786E\u5B9A":"\u4E0B\u4E00\u6B65"]})]})])}}),rt=X({name:"project-music-cooleshow-edu-updateMusic",props:{appId:{type:String,required:!0},rowData:{type:Object,required:!0},musicSheetCategories:{type:Array,default:()=>[]}},emits:["close","getList"],setup(f,{slots:P,attrs:D,emit:a}){const I=ee(),T=z(!1),t=H({musicSheetCategoryId:null,sortNo:null,paymentType:null,isConvertibleScore:null,status:null,scoreType:null,musicTagIds:[],recommendFlag:!1}),c=z(),F=H({rowData:null,musicSheetTagListKt:[],musicSheetCategories:[]}),R=()=>g(this,null,function*(){try{const{data:w}=yield Ie({applicationId:f.appId});w&&w.length>0&&w.forEach(L=>{F.musicSheetTagListKt.push(k(x({},L),{label:L.name,value:L.id}))})}catch(w){}});Y(()=>g(this,null,function*(){F.rowData=f.rowData,Ve(f.musicSheetCategories),F.musicSheetCategories=f.musicSheetCategories,yield R();const{data:w}=yield Le({musicSheetId:F.rowData.id,applicationId:f.appId});if(!w){I.error("\u52A0\u8F7D\u5E94\u7528\u5931\u8D25");return}t.musicTagIds=w[0].musicTagIds?w[0].musicTagIds.split(","):[],t.recommendFlag=w[0].recommendFlag,t.musicSheetCategoryId=w[0].musicSheetCategoryId,t.sortNo=w[0].sortNo,t.paymentType=w[0].paymentType,t.isConvertibleScore=w[0].isConvertibleScore,t.scoreType=w[0].scoreType,t.status=w[0].status}));const p=()=>g(this,null,function*(){c.value.validate(w=>g(this,null,function*(){if(w)return!1;T.value=!0;try{const L=yield Pe(k(x({},t),{musicTagIds:t.musicTagIds?t.musicTagIds.join(","):"",musicSheetId:F.rowData.id,applicationId:f.appId}));L&&L.code===200&&(a("close"),a("getList"))}catch(L){}T.value=!1}))});return()=>e("div",{style:"background: #fff; padding-top: 12px"},[e(xe,{ref:c,labelPlacement:"top",model:t,"label-placement":"left","label-width":"auto"},{default:()=>[e(h,{label:"\u66F2\u76EE\u6807\u7B7E",path:"musicTagIds",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u66F2\u76EE\u6807\u7B7E"}]},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u66F2\u76EE\u6807\u7B7E",value:t.musicTagIds,options:F.musicSheetTagListKt,clearable:!0,multiple:!0,maxTagCount:2,"onUpdate:show":w=>{F.musicSheetTagListKt.forEach(L=>{var E,V;((E=t.musicTagIds)==null?void 0:E.length)>=3?(V=t.musicTagIds)!=null&&V.includes(L.id)?L.disabled=!1:L.disabled=!0:L.disabled=!1})},"onUpdate:value":w=>{t.musicTagIds=w,F.musicSheetTagListKt.forEach(L=>{var E,V;((E=t.musicTagIds)==null?void 0:E.length)>=3?(V=t.musicTagIds)!=null&&V.includes(L.id)?L.disabled=!1:L.disabled=!0:L.disabled=!1})}},null)]}),e(h,{label:"\u662F\u5426\u63A8\u8350",path:"recommendFlag",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u63A8\u8350",type:"boolean"}]},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u63A8\u8350",value:t.recommendFlag,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}],clearable:!0,onUpdateValue:w=>{t.recommendFlag=w}},null)]}),e(h,{label:"\u4E50\u8C31\u6559\u6750",path:"musicSheetCategoryId",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u4E50\u8C31\u6559\u6750"}]},{default:()=>[e(ve,{valueField:"id",labelField:"name","children-field":"children",placeholder:"\u8BF7\u9009\u62E9\u4E50\u8C31\u6559\u6750",value:t.musicSheetCategoryId,options:F.musicSheetCategories,checkStrategy:"child",onUpdateValue:w=>{t.musicSheetCategoryId=w},clearable:!0},null)]}),e(h,{label:"\u6536\u8D39\u65B9\u5F0F",path:"paymentType",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u6536\u8D39\u65B9\u5F0F"}]},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u6536\u8D39\u65B9\u5F0F",options:[{label:"\u514D\u8D39",value:"FREE"},{label:"\u4F1A\u5458",value:"VIP"}],value:t.paymentType,"onUpdate:value":w=>t.paymentType=w,clearable:!0},null)]}),e(h,{label:"\u9ED8\u8BA4\u8C31\u9762",path:"scoreType",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u9ED8\u8BA4\u8C31\u9762"}]},{default:()=>[e(d,{value:t.scoreType,"onUpdate:value":w=>t.scoreType=w,placeholder:"\u8BF7\u9009\u62E9\u9ED8\u8BA4\u8C31\u9762",options:U(Z),clearable:!0},null)]}),e(h,{label:"\u652F\u6301\u8F6C\u8C31",path:"isConvertibleScore",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u652F\u6301\u8F6C\u8C31",trigger:["input","blur"],type:"boolean"}]},{default:()=>[e(d,{value:t.isConvertibleScore,"onUpdate:value":w=>t.isConvertibleScore=w,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}],placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u652F\u6301\u8F6C\u8C31",onUpdateValue:w=>g(this,null,function*(){}),clearable:!0},null)]}),e(h,{label:"\u662F\u5426\u542F\u7528",path:"status",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u542F\u7528"}]},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u542F\u7528",options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}],value:t.status,"onUpdate:value":w=>t.status=w,clearable:!0},null)]}),e(h,{label:"\u6392\u5E8F\u503C",path:"sortNo"},{default:()=>[e(_,{value:t.sortNo,"onUpdate:value":w=>t.sortNo=w,placeholder:"\u8BF7\u8F93\u5165\u6392\u5E8F\u503C",clearable:!0,precision:0,min:0,max:9999,style:{width:"100%"}},null)]})]}),e(S,{justify:"end"},{default:()=>[e(v,{onClick:()=>a("close")},{default:()=>[b("\u53D6\u6D88")]}),e(v,{type:"primary",onClick:p,loading:T.value,disabled:T.value},{default:()=>[b("\u4FDD\u5B58")]})]})])}}),Me=X({name:"musicPreView",props:{item:{type:Object,default:()=>{}},scoreType:{type:String,default:"staff"},isMove:{type:Number,default:0,required:!1}},setup(f,{emit:P}){const a=Je().getToken,I={dev:"https://dev.kt.colexiu.com",test:"https://test.lexiaoya.cn",online:"https://mec.colexiu.com"},T=location.origin.includes("//dev")?"dev":location.origin.includes("//test")?"test":location.origin.includes("//mec.colexiu")?"online":"dev",t=I[T];let F=(/(localhost|192)/.test(location.host)?"https://dev.kt.colexiu.com/":t)+`/instrument/?_t=${Date.now()}&id=${f.item.id}&modelType=practise&modeType=json&Authorization=${a}&isCbs=true`;return F=f.isMove==1?F+"&isMove=1":F,F+="&musicRenderType="+f.scoreType,()=>e("div",null,[e("iframe",{width:"667px",height:"375px",frameborder:"0",src:F},null)])}}),ot="_musicPreviewModal_199ul_1",Ne={musicPreviewModal:ot};function Ke(f){return typeof f=="function"||Object.prototype.toString.call(f)==="[object Object]"&&!De(f)}const ut=X({name:"project-music-sheet-KT",props:{appKey:{type:String,default:"KT"}},setup(f){const P=ne(),D=ee(),a=H({loading:!1,appId:null,pagination:{page:1,rows:10,pageTotal:0},searchForm:{keyword:null,subjectId:null,subjectIds:null,musicCategoryIds:null,clientStatus:null,status:null,sourceType:null,paymentType:null,userId:null,musicCategoryId:null,times:null,musicTagIds:null,recommendFlag:null,audioType:null,exquisiteFlag:null,topFlag:null,availableType:null,appAuditFlag:null,detailFlag:null,applicationId:null,audioPlayTypes:null,extendApplicationId:null},subjectList:[],dataList:[],musicSheetCategories:[],showAddDialog:!1,showEditDialog:!1,userIdDisable:!0,userIdData:[],updateRow:{},applicationId:null,musicPreview:!1,musicPreviewScoreType:"staff",musicScore:null,useProjectData:[]}),I=z([]),T=()=>g(this,null,function*(){try{const{data:s}=yield Ie({applicationId:a.applicationId});s&&s.length>0&&s.forEach(y=>{I.value.push(k(x({},y),{label:y.name,value:y.id}))})}catch(s){}});Y(()=>g(this,null,function*(){a.loading=!0;try{const y=(yield fe({page:1,rows:1,appKey:f.appKey})).data.rows||[];if(!y||y.length==0){a.loading=!1,D.error("\u52A0\u8F7D\u9879\u76EE\u4FE1\u606F\u5931\u8D25");return}a.appId=y[0].id,a.applicationId=y[0].id;const{data:l}=yield ze({applicationId:a.applicationId}),u=l||[];u.forEach(i=>{i.label=i.subjectName,i.value=i.subjectId}),a.subjectList=u;const r=yield Te({applicationIds:a.appId});r.data&&r.data.length>0&&(a.musicSheetCategories=r.data[0].musicSheetCategories)}catch(s){}yield T(),t(),L()}));const t=()=>g(this,null,function*(){try{const s=Object.keys(ae),{data:y}=yield fe({page:1,rows:999}),l=y.rows||[];a.useProjectData=[],l.filter(r=>s.includes(r.appKey)).forEach(r=>{a.useProjectData.push(k(x({},r),{label:r.appName,value:r.id}))})}catch(s){}}),c=z(),F=()=>{var s;w.value=[],(s=c.value)==null||s.submit()},R=()=>{var s;(s=c.value)==null||s.reset()},p=()=>{a.pagination.page=1,L()},w=z([]),L=()=>g(this,null,function*(){a.loading=!0;try{const s=a.searchForm.sourceType,y=a.searchForm.audioPlayTypes,l=k(x(k(x(x({},a.pagination),a.searchForm),{musicTagIds:a.searchForm.musicTagIds?a.searchForm.musicTagIds.join(","):"",userId:s&&s==="PERSON"?a.searchForm.userId:null,organizationRoleId:s&&s==="ORG"?a.searchForm.userId:null}),Ae(a.searchForm.times,["startTime","endTime"])),{applicationId:a.applicationId,audioPlayTypes:[]});y&&(y==="PLAY_SING"?l.audioPlayTypes=["PLAY","SING"]:l.audioPlayTypes=[y]);const{data:u}=yield je(l);a.pagination.pageTotal=Number(u.total);const r=u.rows||[];r.forEach(i=>{i.audioPlayTypeArray=i.audioPlayTypes?i.audioPlayTypes.split(","):[]}),a.dataList=r}catch(s){}a.loading=!1}),E=s=>{const y=s.clientStatus?"\u505C\u7528":"\u542F\u7528";P.warning({title:"\u63D0\u793A",content:`\u662F\u5426${y}\uFF1F`,positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>g(this,null,function*(){try{yield ie({ids:s.applicationExtendId,status:!s.clientStatus}),L(),D.success(`${y}\u6210\u529F`)}catch(l){}})})},V=s=>{const y=w.value.length;y==0&&D.warning("\u672A\u9009\u62E9\u6570\u636E");const l=s?"\u542F\u7528":"\u505C\u7528";P.warning({title:"\u63D0\u793A",content:`\u662F\u5426${l}`+y+"\u6761\u6570\u636E\uFF1F",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>g(this,null,function*(){try{yield ie({ids:w.value.join(","),status:s}),L(),D.success(`${l}\u6210\u529F`)}catch(u){}})})},O=s=>g(this,null,function*(){if(!!a.searchForm.extendApplicationId&&(a.userIdData=[],a.searchForm.userId=null,s&&s!=="PLATFORM")){const{data:y}=yield me({page:1,rows:9999,sourceType:s,applicationId:a.searchForm.extendApplicationId});(y.rows||[]).forEach(u=>{a.userIdData.push(k(x({},u),{label:s==="PERSON"?u.userName:u.organizationRole,value:s==="PERSON"?u.userId:u.organizationRoleId}))})}}),o=s=>{P.warning({title:"\u63D0\u793A",content:"\u5220\u9664\u66F2\u76EE\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>g(this,null,function*(){try{yield Ue(s.applicationExtendId),L(),D.success("\u5220\u9664\u6210\u529F")}catch(y){}})})},n=()=>[{type:"selection"},{title:"\u66F2\u76EE\u540D\u79F0",key:"id",render:s=>e(oe,null,[e(re,{labelPlacement:"left",column:1},{default:()=>[e(B,{label:"\u66F2\u76EE\u540D\u79F0"},{default:()=>[e(M,{content:s.name},null)," "]}),e(B,{label:"\u66F2\u76EE\u7F16\u53F7"},{default:()=>[e("div",{onDblclick:()=>{Ee(D,s.id)}},[e(M,{content:s.id},null)])]})]})])},{title:"\u5C01\u9762\u56FE",key:"musicCover",render(s){return e(ce,{width:60,height:60,src:s.musicCover},null)}},{title:"\u66F2\u76EE\u4FE1\u606F",key:"musicSheetCategoriesName",render:s=>{let y;return e(oe,null,[e(re,{labelPlacement:"left",column:1},{default:()=>[e(B,{label:"\u66F2\u76EE\u6765\u6E90"},Ke(y=$(s.sourceType,new Map(Object.entries(q))))?y:{default:()=>[y]}),e(B,{label:"\u6240\u5C5E\u4EBA"},{default:()=>[e(M,{content:he(s.musicSheetExtend,s.sourceType)},null)]}),e(B,{label:"\u53EF\u7528\u58F0\u90E8"},{default:()=>[e(M,{content:s.subjectNames},null)]})]})])}},{title:"\u4F34\u594F\u7C7B\u578B",key:"audioType",render:s=>e("div",null,[$(s.audioType,new Map(Object.entries(ue)))])},{title:"\u66F2\u76EE\u6807\u7B7E",key:"musicTagNames",render:s=>e(M,{content:s.musicTagNames},null)},{title:"\u662F\u5426\u63A8\u8350",key:"recommendFlag",render:s=>s.recommendFlag?"\u662F":"\u5426"},{title:"\u4E50\u8C31\u6559\u6750",key:"musicSheetCategoryName"},{title:"\u6536\u8D39\u65B9\u5F0F",key:"paymentType",render:s=>e("div",null,[$(s.paymentType,new Map(Object.entries(we)))])},{title:"\u4E0A\u4F20\u65F6\u95F4",minWidth:"150px",key:"composer",render(s){return s.createTime}},{title:"\u573A\u666F",key:"audioPlayTypes",render(s){let y;return e(S,null,Ke(y=s.audioPlayTypeArray.map(l=>{let u;return e(te,{type:l==="SING"?"warning":"success"},Ke(u=at(l))?u:{default:()=>[u]})}))?y:{default:()=>[y]})}},{title:"\u4E1A\u52A1\u66F2\u76EE\u72B6\u6001",key:"clientStatus",render(s){return e(te,{type:s.clientStatus?"primary":"default"},{default:()=>[s.clientStatus?"\u542F\u7528":"\u505C\u7528"]})}},{title:"\u5E73\u53F0\u66F2\u76EE\u72B6\u6001",key:"status",render(s){return e(te,{type:s.status?"primary":"default"},{default:()=>[s.status?"\u542F\u7528":"\u505C\u7528"]})}},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",render(s){return e(S,null,{default:()=>[e(v,{type:"primary",size:"small",text:!0,onClick:()=>{if(a.musicPreview=!0,a.musicScore=s,s.scoreType=="STAVE")a.musicPreviewScoreType="staff";else if(s.scoreType=="JIAN")a.musicPreviewScoreType="fixedTone";else if(s.scoreType=="FIRST")a.musicPreviewScoreType="firstTone";else return}},{default:()=>[b("\u9884\u89C8")]}),N(e(v,{type:"primary",size:"small",text:!0,onClick:()=>E(s)},{default:()=>[s.clientStatus?"\u505C\u7528":"\u542F\u7528"]}),[[K("auth"),"musicSheetApplicationExtend/status1751235210464198657"]]),N(e(v,{type:"primary",size:"small",text:!0,onClick:()=>{a.showEditDialog=!0,a.updateRow=s}},{default:()=>[b("\u4FEE\u6539")]}),[[K("auth"),"musicSheetApplicationExtend/update1751230252163530754"]]),N(e(v,{type:"primary",size:"small",text:!0,disabled:!!s.clientStatus,onClick:()=>o(s)},{default:()=>[b("\u5220\u9664")]}),[[K("auth"),"musicSheetApplicationExtend/del1770696070576254977"]])]})}}];return()=>e("div",{class:"system-menu-container"},[e(pe,{ref:c,model:a.searchForm,onSubmit:p,saveKey:"music-sheet-kt",onSetModel:s=>a.searchForm=s},{default:()=>[e(h,{label:"\u5173\u952E\u8BCD",path:"keyword"},{default:()=>[e(W,{placeholder:"\u8BF7\u8F93\u5165\u66F2\u76EE\u540D\u79F0/\u7F16\u53F7",value:a.searchForm.keyword,"onUpdate:value":s=>a.searchForm.keyword=s,clearable:!0},null)]}),e(h,{label:"\u66F2\u76EE\u6765\u6E90",path:"sourceType"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u66F2\u76EE\u6765\u6E90",value:a.searchForm.sourceType,"onUpdate:value":s=>a.searchForm.sourceType=s,options:U(q),onUpdateValue:s=>g(this,null,function*(){a.userIdData=[],a.searchForm.userId=null,s&&s!=="PLATFORM"?(yield O(s),a.userIdDisable=!a.searchForm.extendApplicationId):a.userIdDisable=!0}),clearable:!0},null)]}),e(h,{label:"\u6240\u5C5E\u9879\u76EE",path:"applicationId"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u9879\u76EE",value:a.searchForm.extendApplicationId,"onUpdate:value":s=>a.searchForm.extendApplicationId=s,options:a.useProjectData,clearable:!0,onUpdateValue:s=>g(this,null,function*(){a.searchForm.extendApplicationId=s,s?(yield O(a.searchForm.sourceType),a.userIdDisable=!(a.searchForm.sourceType&&a.searchForm.sourceType!=="PLATFORM")):(a.searchForm.userId=null,a.userIdDisable=!0,a.userIdData=[])})},null)]}),e(h,{label:"\u6240\u5C5E\u4EBA",path:"userId"},{default:()=>[e(d,{filterable:!0,placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u4EBA",disabled:a.userIdDisable,value:a.searchForm.userId,"onUpdate:value":s=>a.searchForm.userId=s,options:a.userIdData,clearable:!0},null)]}),e(h,{label:"\u4F34\u594F\u7C7B\u578B",path:"audioType"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u4F34\u594F\u7C7B\u578B",value:a.searchForm.audioType,"onUpdate:value":s=>a.searchForm.audioType=s,options:U(ue),clearable:!0},null)]}),e(h,{label:"\u53EF\u7528\u58F0\u90E8",path:"subjectId"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u53EF\u7528\u58F0\u90E8",value:a.searchForm.subjectId,"onUpdate:value":s=>a.searchForm.subjectId=s,options:a.subjectList,clearable:!0,filterable:!0},null)]}),e(h,{label:"\u4E50\u8C31\u6559\u6750",path:"musicCategoryId"},{default:()=>[e(ve,{valueField:"id",labelField:"name","children-field":"children",placeholder:"\u8BF7\u9009\u62E9\u4E50\u8C31\u6559\u6750",value:a.searchForm.musicCategoryId,"onUpdate:value":s=>a.searchForm.musicCategoryId=s,options:a.musicSheetCategories,clearable:!0},null)]}),e(h,{label:"\u6536\u8D39\u65B9\u5F0F",path:"paymentType"},{default:()=>[e(d,{value:a.searchForm.paymentType,"onUpdate:value":s=>a.searchForm.paymentType=s,placeholder:"\u8BF7\u9009\u62E9\u6536\u8D39\u65B9\u5F0F",options:[{label:"\u514D\u8D39",value:"FREE"},{label:"\u4F1A\u5458",value:"VIP"}],clearable:!0},null)]}),e(h,{label:"\u4E1A\u52A1\u66F2\u76EE\u72B6\u6001",path:"clientStatus"},{default:()=>[e(d,{value:a.searchForm.clientStatus,"onUpdate:value":s=>a.searchForm.clientStatus=s,placeholder:"\u8BF7\u9009\u62E9\u4E1A\u52A1\u66F2\u76EE\u72B6\u6001",options:[{label:"\u542F\u7528",value:!0},{label:"\u505C\u7528",value:!1}],clearable:!0},null)]}),e(h,{label:"\u5E73\u53F0\u66F2\u76EE\u72B6\u6001",path:"status"},{default:()=>[e(d,{value:a.searchForm.status,"onUpdate:value":s=>a.searchForm.status=s,placeholder:"\u8BF7\u9009\u62E9\u5E73\u53F0\u66F2\u76EE\u72B6\u6001",options:[{label:"\u542F\u7528",value:!0},{label:"\u505C\u7528",value:!1}],clearable:!0},null)]}),e(h,{label:"\u4E0A\u4F20\u65F6\u95F4",path:"authorFrom"},{default:()=>[e(Ce,{value:a.searchForm.times,"onUpdate:value":s=>a.searchForm.times=s,type:"daterange",clearable:!0,"value-format":"yyyy.MM.dd",startPlaceholder:"\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u7ED3\u675F\u65F6\u95F4"},null)]}),e(h,{label:"\u573A\u666F",path:"audioPlayTypes"},{default:()=>[e(d,{value:a.searchForm.audioPlayTypes,"onUpdate:value":s=>a.searchForm.audioPlayTypes=s,placeholder:"\u8BF7\u9009\u62E9\u573A\u666F",options:lt,clearable:!0},null)]}),e(h,{label:"\u66F2\u76EE\u6807\u7B7E",path:"musicTagIds"},{default:()=>[e(d,{value:a.searchForm.musicTagIds,"onUpdate:value":s=>a.searchForm.musicTagIds=s,placeholder:"\u8BF7\u9009\u62E9\u66F2\u76EE\u6807\u7B7E",options:I.value,clearable:!0,multiple:!0,maxTagCount:2},null)]}),e(h,{label:"\u662F\u5426\u63A8\u8350",path:"recommendFlag"},{default:()=>[e(d,{value:a.searchForm.recommendFlag,"onUpdate:value":s=>a.searchForm.recommendFlag=s,placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u63A8\u8350",options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}],clearable:!0},null)]}),e(h,null,{default:()=>[e(S,null,{default:()=>[e(v,{type:"primary",onClick:F},{default:()=>[b("\u641C\u7D22")]}),e(v,{type:"default",onClick:R},{default:()=>[b("\u91CD\u7F6E")]})]})]})]}),e("div",{class:["section-container"]},[e(S,{style:{paddingBottom:"12px"}},{default:()=>[N(e(v,{type:"primary",onClick:()=>{a.showAddDialog=!0}},{default:()=>[b("\u6DFB\u52A0\u66F2\u76EE")]}),[[K("auth"),"musicSheetApplicationExtend/saveBatch1751234344277508097"]]),N(e(v,{disabled:w.value.length==0,onClick:()=>{V(!1)}},{default:()=>[b("\u6279\u91CF\u505C\u7528")]}),[[K("auth"),"musicSheetApplicationExtend/status1751235210464198657"]]),N(e(v,{disabled:w.value.length==0,onClick:()=>{V(!0)}},{default:()=>[b("\u6279\u91CF\u542F\u7528")]}),[[K("auth"),"musicSheetApplicationExtend/status1751235210464198657"]])]}),e(Q,{loading:a.loading,columns:n(),data:a.dataList,rowKey:s=>s.applicationExtendId,checkedRowKeys:w.value,"onUpdate:checkedRowKeys":s=>w.value=s,scrollX:"1400"},null),e(de,{page:a.pagination.page,"onUpdate:page":s=>a.pagination.page=s,pageSize:a.pagination.rows,"onUpdate:pageSize":s=>a.pagination.rows=s,pageTotal:a.pagination.pageTotal,"onUpdate:pageTotal":s=>a.pagination.pageTotal=s,onList:L,sync:!0,saveKey:"music-sheet-kt"},null)]),e(J,{show:a.showAddDialog,"onUpdate:show":s=>a.showAddDialog=s,preset:"dialog",showIcon:!1,title:"\u6DFB\u52A0\u66F2\u76EE",style:{width:"1300px"}},{default:()=>[e(st,{onClose:()=>a.showAddDialog=!1,onGetList:()=>{a.pagination.page=1,L()},subjectList:a.subjectList,appId:a.appId,musicSheetCategories:a.musicSheetCategories},null)]}),e(J,{show:a.showEditDialog,"onUpdate:show":s=>a.showEditDialog=s,preset:"dialog",showIcon:!1,title:"\u4FEE\u6539\u66F2\u76EE",style:{width:"500px"}},{default:()=>[e(rt,{onClose:()=>a.showEditDialog=!1,onGetList:()=>{a.pagination.page=1,L()},rowData:a.updateRow,appId:a.appId,musicSheetCategories:a.musicSheetCategories},null)]}),e(J,{blockScroll:!0,show:a.musicPreview,"onUpdate:show":s=>a.musicPreview=s,preset:"card",showIcon:!1,title:"\u66F2\u76EE\u9884\u89C8",class:Ne.musicPreviewModal},{default:()=>[e(Me,{item:a.musicScore,scoreType:a.musicPreviewScoreType},null)]})])}}),it=X({name:"gym-addMusic",props:{appId:{type:String,required:!0},subjectList:{type:Array,default:()=>[]}},emits:["close","getList"],setup(f,{slots:P,attrs:D,emit:a}){const I=ne(),T=ee(),t=H({loading:!1,pagination:{page:1,rows:5,pageTotal:0},stepPagination:{page:1,rows:5,pageTotal:0},searchForm:{keyword:null,subjectId:null,sourceType:null,composer:null,userId:null,applicationId:null},subjectList:[],showAdd:!1,currentStep:1,dataList:[],selectRowData:[],musicSheetCategories:[],startSortNum:null,globalPaymentType:null,isConvertibleScore:null,status:!1,scoreType:null,userIdDisable:!0,userIdData:[],useProjectData:[]});Y(()=>g(this,null,function*(){t.searchForm.keyword=null,t.searchForm.subjectId=null,t.searchForm.sourceType=null,t.searchForm.composer=null,t.searchForm.userId=null,t.searchForm.applicationId=null,t.loading=!0,t.subjectList=f.subjectList;try{const{data:l}=yield Te({applicationIds:f.appId,enable:!0});l&&l.length>0&&(t.musicSheetCategories=l[0].musicSheetCategories)}catch(l){}yield c(),yield R()}));const c=()=>g(this,null,function*(){try{const l=Object.keys(ae),{data:u}=yield fe({page:1,rows:999}),r=u.rows||[];t.useProjectData=[],r.filter(m=>l.includes(m.appKey)).forEach(m=>{t.useProjectData.push(k(x({},m),{label:m.appName,value:m.id}))})}catch(l){}}),F=l=>g(this,null,function*(){if(!!t.searchForm.applicationId&&(t.userIdData=[],t.searchForm.userId=null,l&&l!=="PLATFORM")){const{data:u}=yield me({page:1,rows:9999,sourceType:l,applicationId:t.searchForm.applicationId});(u.rows||[]).forEach(i=>{t.userIdData.push(k(x({},i),{label:l==="PERSON"?i.userName:i.organizationRole,value:l==="PERSON"?i.userId:i.organizationRoleId}))})}}),R=()=>g(this,null,function*(){try{t.loading=!0;const l=t.searchForm.sourceType,{data:u}=yield ke(k(x(x({},t.pagination),t.searchForm),{userId:l&&l==="PERSON"?t.searchForm.userId:null,organizationRoleId:l&&l==="ORG"?t.searchForm.userId:null,addAppId:f.appId}));t.pagination.pageTotal=Number(u.total),t.dataList=u.rows||[]}catch(l){}t.loading=!1}),p=z(),w=()=>{var l;s.value=[],(l=p.value)==null||l.submit()},L=()=>{var l;(l=p.value)==null||l.reset()},E=()=>{t.pagination.page=1,R()},V=()=>g(this,null,function*(){if(t.selectRowData.length==0){T.error("\u672A\u9009\u62E9\u66F2\u76EE");return}const l=[];for(let r=0;r<t.selectRowData.length;r++){const i=t.selectRowData[r];if(i.scoreType==null){T.error("\u9ED8\u8BA4\u8C31\u9762\u4E0D\u80FD\u4E3A\u7A7A");return}if(i.isConvertibleScore==null){T.error("\u662F\u5426\u652F\u6301\u8F6C\u8C31\u4E0D\u80FD\u4E3A\u7A7A");return}if(i.status==null){T.error("\u662F\u5426\u542F\u7528\u4E0D\u80FD\u4E3A\u7A7A");return}l.push(k(x({},i),{musicSheetId:i.id,applicationId:f.appId,id:null}))}const u=yield Re(l);u&&u.code=="200"&&(T.success("\u6DFB\u52A0\u6210\u529F"),a("getList"),a("close"))}),O=[{type:"selection"},{title:"\u66F2\u76EE\u7F16\u53F7",key:"id"},{title:"\u5C01\u9762\u56FE",key:"titleImg",render(l){return e(ce,{width:40,height:40,src:l.musicCover},null)}},{title:"\u58F0\u90E8",key:"subjectNames",render:l=>e(M,{content:l.subjectNames},null)},{title:"\u66F2\u76EE\u540D\u79F0",key:"name"},{title:"\u97F3\u4E50\u4EBA",key:"composer"},{title:"\u66F2\u76EE\u5206\u7C7B",key:"musicCategoryName"},{title:"\u66F2\u76EE\u6765\u6E90",key:"sourceType",render(l){return $(l.sourceType,new Map(Object.entries(q)))}},{title:"\u6240\u5C5E\u4EBA",key:"userName",render:l=>e(M,{content:he(l.musicSheetExtend,l.sourceType)},null)}],o=()=>O,n=()=>{const l=be(O);return l.splice(0,1),l.push({title(u){return e(S,null,{default:()=>[b("\u6536\u8D39\u65B9\u5F0F"),e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.create({title:"\u8BF7\u9009\u62E9\u6536\u8D39\u65B9\u5F0F",showIcon:!1,content:()=>C("div",{class:"flex flex-col justify-center items-center text-14px"},[C(d,{onUpdateValue(r){t.globalPaymentType=r},clearable:!0,options:[{label:"\u514D\u8D39",value:"FREE"},{label:"\u6536\u8D39",value:"VIP"}]})]),positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>{for(let r=0;r<t.selectRowData.length;r++){const i=t.selectRowData[r];i.paymentType=t.globalPaymentType}}})}},{default:()=>[e(A,{size:15,style:"padding-left: 5px;margin-top:4px"},{default:()=>[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e("path",{d:"M2 26h28v2H2z",fill:"currentColor"},null),e("path",{d:"M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z",fill:"currentColor"},null)])]})]})]})},key:"paymentType",width:200,render:u=>e(d,{placeholder:"\u8BF7\u9009\u62E9\u6536\u8D39\u65B9\u5F0F",value:u.paymentType,options:[{label:"\u514D\u8D39",value:"FREE"},{label:"\u6536\u8D39",value:"VIP"}],clearable:!0,onUpdateValue:r=>{u.paymentType=r}},null)}),l.push({title(u){return e(S,null,{default:()=>[b("\u9ED8\u8BA4\u8C31\u9762"),e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.create({title:"\u8BF7\u9009\u62E9\u9ED8\u8BA4\u8C31\u9762",showIcon:!1,content:()=>C("div",{class:"flex flex-col justify-center items-center text-14px"},[C(d,{onUpdateValue(r){t.scoreType=r},options:U(Z)})]),positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>{for(let r=0;r<t.selectRowData.length;r++){const i=t.selectRowData[r];i.scoreType=t.scoreType}}})}},{default:()=>[e(A,{size:15,style:"padding-left: 5px;margin-top:4px"},{default:()=>[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e("path",{d:"M2 26h28v2H2z",fill:"currentColor"},null),e("path",{d:"M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z",fill:"currentColor"},null)])]})]})]})},key:"scoreType",width:200,render:u=>e(d,{placeholder:"\u8BF7\u9009\u62E9\u9ED8\u8BA4\u8C31\u9762",value:u.scoreType,options:U(Z),onUpdateValue:r=>{u.scoreType=r},clearable:!0},null)}),l.push({title(u){return e(S,null,{default:()=>[b("\u662F\u5426\u652F\u6301\u8F6C\u8C31"),e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.create({title:"\u662F\u5426\u652F\u6301\u8F6C\u8C31",showIcon:!1,content:()=>C("div",{class:"flex flex-col justify-center items-center text-14px"},[C(d,{onUpdateValue(r){t.isConvertibleScore=r},options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]})]),positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>{for(let r=0;r<t.selectRowData.length;r++){const i=t.selectRowData[r];i.isConvertibleScore=t.isConvertibleScore}}})}},{default:()=>[e(A,{size:15,style:"padding-left: 5px;margin-top:4px"},{default:()=>[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e("path",{d:"M2 26h28v2H2z",fill:"currentColor"},null),e("path",{d:"M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z",fill:"currentColor"},null)])]})]})]})},key:"isConvertibleScore",width:200,render:u=>e(d,{value:u.isConvertibleScore,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}],onUpdateValue:r=>{u.isConvertibleScore=r},filterable:!0,clearable:!0},null)}),l.push({title(u){return e(S,null,{default:()=>[b("\u662F\u5426\u542F\u7528"),e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.create({title:"\u662F\u5426\u542F\u7528",showIcon:!1,content:()=>C("div",{class:"flex flex-col justify-center items-center text-14px"},[C(d,{onUpdateValue(r){t.status=r},options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]})]),positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>{for(let r=0;r<t.selectRowData.length;r++){const i=t.selectRowData[r];i.status=t.status}}})}},{default:()=>[e(A,{size:15,style:"padding-left: 5px;margin-top:4px"},{default:()=>[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e("path",{d:"M2 26h28v2H2z",fill:"currentColor"},null),e("path",{d:"M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z",fill:"currentColor"},null)])]})]})]})},key:"status",width:200,render:u=>e(d,{value:u.status,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}],onUpdateValue:r=>{u.status=r},filterable:!0,clearable:!0},null)}),l.push({title(u){return e(S,null,{default:()=>[b("\u6392\u5E8F"),e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.create({title:"\u8BF7\u8F93\u5165\u6392\u5E8F\u8D77\u59CB\u503C",showIcon:!1,content:()=>C("div",{class:"flex flex-col justify-center items-center text-14px"},[C(_,{onUpdateValue(r){t.startSortNum=r},min:0,max:9999})]),positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>{if(t.startSortNum)for(let r=0;r<t.selectRowData.length;r++){const i=t.selectRowData[r];i.sortNo=t.startSortNum+r}}})}},{default:()=>[e(A,{size:15,style:"padding-left: 5px;margin-top:4px"},{default:()=>[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e("path",{d:"M2 26h28v2H2z",fill:"currentColor"},null),e("path",{d:"M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z",fill:"currentColor"},null)])]})]})]})},key:"sortNo",width:150,render:u=>C(_,{value:u.sortNo,min:0,max:9999,onUpdateValue(r){u.sortNo=r}})}),l.push({title:"\u64CD\u4F5C",key:"operation",fixed:"right",render(u){return e(S,null,{default:()=>[e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.warning({title:"\u63D0\u793A",content:"\u662F\u5426\u5220\u9664\u8BE5\u6570\u636E\uFF1F",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>g(this,null,function*(){try{const r=t.selectRowData.findIndex(m=>{if(m.id==u.id)return!0});r>-1&&t.selectRowData.splice(r,1),s.value.findIndex(m=>{if(m==u.id)return!0})>-1&&s.value.splice(r,1)}catch(r){}})})}},{default:()=>[b("\u79FB\u9664")]})]})}}),l},s=z([]),y=l=>{s.value=l,t.dataList.forEach(u=>{s.value.includes(u.id)&&(t.selectRowData.find(i=>i.id===u.id)||t.selectRowData.push(u))}),t.selectRowData=t.selectRowData.filter(u=>s.value.includes(u.id))};return()=>e("div",{class:"system-menu-container"},[e(S,{vertical:!0,size:"medium"},{default:()=>[e(Se,{current:t.currentStep,style:"margin-bottom: 10px;margin-top: 10px"},{default:()=>[e(se,{title:"\u9009\u62E9\u66F2\u76EE",description:""},null),e(se,{title:"\u8BBE\u7F6E\u66F2\u76EE\u4FE1\u606F",description:""},null)]})]}),t.currentStep===1&&e("div",{class:"system-menu-container"},[e(pe,{ref:p,model:t.searchForm,onSubmit:E,onSetModel:l=>t.searchForm=l},{default:()=>[e(h,{label:"\u5173\u952E\u8BCD",path:"keyword"},{default:()=>[e(W,{value:t.searchForm.keyword,"onUpdate:value":l=>t.searchForm.keyword=l,placeholder:"\u8BF7\u8F93\u5165\u66F2\u76EE\u540D\u79F0/\u7F16\u53F7",clearable:!0},null)]}),e(h,{label:"\u53EF\u7528\u58F0\u90E8",path:"musicSubject"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u53EF\u7528\u58F0\u90E8",value:t.searchForm.subjectId,"onUpdate:value":l=>t.searchForm.subjectId=l,options:t.subjectList,clearable:!0,filterable:!0},null)]}),e(h,{label:"\u97F3\u4E50\u4EBA",path:"composer"},{default:()=>[e(W,{placeholder:"\u8BF7\u9009\u62E9\u97F3\u4E50\u4EBA",value:t.searchForm.composer,"onUpdate:value":l=>t.searchForm.composer=l,clearable:!0},null)]}),e(h,{label:"\u66F2\u76EE\u6765\u6E90",path:"sourceType"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u66F2\u76EE\u6765\u6E90",value:t.searchForm.sourceType,"onUpdate:value":l=>t.searchForm.sourceType=l,options:U(q),onUpdateValue:l=>g(this,null,function*(){t.userIdData=[],t.searchForm.userId=null,l&&l!=="PLATFORM"?(yield F(l),t.userIdDisable=!1):t.userIdDisable=!0}),clearable:!0},null)]}),e(h,{label:"\u6240\u5C5E\u9879\u76EE",path:"applicationId"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u9879\u76EE",value:t.searchForm.applicationId,"onUpdate:value":l=>t.searchForm.applicationId=l,options:t.useProjectData,clearable:!0,onUpdateValue:l=>g(this,null,function*(){t.searchForm.applicationId=l,l?(yield F(t.searchForm.sourceType),t.userIdDisable=!(t.searchForm.sourceType&&t.searchForm.sourceType!=="PLATFORM")):(t.searchForm.userId=null,t.userIdDisable=!0,t.userIdData=[])})},null)]}),e(h,{label:"\u6240\u5C5E\u4EBA",path:"author"},{default:()=>[e(d,{filterable:!0,placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u4EBA",disabled:t.userIdDisable||!t.searchForm.applicationId&&!t.searchForm.sourceType,value:t.searchForm.userId,"onUpdate:value":l=>t.searchForm.userId=l,options:t.userIdData,clearable:!0},null)]}),e(h,null,{default:()=>[e(S,null,{default:()=>[e(v,{type:"primary",onClick:w},{default:()=>[b("\u641C\u7D22")]}),e(v,{type:"default",onClick:L},{default:()=>[b("\u91CD\u7F6E")]})]})]})]}),e("p",{style:{paddingBottom:"12px"}},[b("\u4F60\u9009\u62E9\u4E86"),e("span",{style:"color:red;padding:0 8px"},[t.selectRowData.length]),b("\u6761\u66F2\u76EE")]),e(Q,{loading:t.loading,columns:o(),data:t.dataList,rowKey:l=>l.id,checkedRowKeys:s.value,"onUpdate:checkedRowKeys":l=>s.value=l,onUpdateCheckedRowKeys:y},null),e(de,{page:t.pagination.page,"onUpdate:page":l=>t.pagination.page=l,pageSize:t.pagination.rows,"onUpdate:pageSize":l=>t.pagination.rows=l,pageTotal:t.pagination.pageTotal,"onUpdate:pageTotal":l=>t.pagination.pageTotal=l,onList:R,sync:!0},null)]),t.currentStep===2&&e("div",{class:"system-menu-container",style:"margin-top: 15px;"},[e(Q,{loading:t.loading,columns:n(),data:t.selectRowData,rowKey:l=>l.id,maxHeight:500,scrollX:1800},null)]),e(S,{justify:"end",style:"margin-top:10px"},{default:()=>[e(v,{type:"default",onClick:()=>{t.currentStep>1?t.currentStep=t.currentStep-1:a("close")}},{default:()=>[t.currentStep===1?"\u53D6\u6D88":"\u4E0A\u4E00\u6B65"]}),e(v,{type:"primary",onClick:()=>{if(t.currentStep<2){if(t.selectRowData.length==0){T.warning("\u8BF7\u9009\u62E9\u66F2\u76EE");return}t.currentStep=t.currentStep+1}else V()}},{default:()=>[t.currentStep===2?"\u786E\u5B9A":"\u4E0B\u4E00\u6B65"]})]})])}}),nt=X({name:"project-music-cooleshow-edu-updateMusic",props:{appId:{type:String,required:!0},rowData:{type:Object,required:!0},musicSheetCategories:{type:Array,default:()=>[]}},emits:["close","getList"],setup(f,{slots:P,attrs:D,emit:a}){const I=ee(),T=z(!1),t=H({sortNo:null,paymentType:null,isConvertibleScore:null,scoreType:null,status:null}),c=z(),F=H({rowData:null,musicSheetCategories:[]});Y(()=>g(this,null,function*(){F.rowData=f.rowData,Ve(f.musicSheetCategories),F.musicSheetCategories=f.musicSheetCategories;const{data:p}=yield Le({musicSheetId:F.rowData.id,applicationId:f.appId});if(!p){I.error("\u52A0\u8F7D\u5E94\u7528\u5931\u8D25");return}t.sortNo=p[0].sortNo,t.paymentType=p[0].paymentType,t.isConvertibleScore=p[0].isConvertibleScore,t.scoreType=p[0].scoreType,t.status=p[0].status}));const R=()=>g(this,null,function*(){c.value.validate(p=>g(this,null,function*(){if(p)return!1;T.value=!0;try{const w=yield Pe(k(x({},t),{musicSheetId:F.rowData.id,applicationId:f.appId}));w&&w.code===200&&(a("close"),a("getList"))}catch(w){}T.value=!1}))});return()=>e("div",{style:"background: #fff; padding-top: 12px"},[e(xe,{ref:c,labelPlacement:"top",model:t,"label-placement":"left","label-width":"auto"},{default:()=>[e(h,{label:"\u6536\u8D39\u65B9\u5F0F",path:"paymentType",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u6536\u8D39\u65B9\u5F0F"}]},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u6536\u8D39\u65B9\u5F0F",options:[{label:"\u514D\u8D39",value:"FREE"},{label:"\u6536\u8D39",value:"VIP"}],value:t.paymentType,"onUpdate:value":p=>t.paymentType=p,clearable:!0},null)]}),e(h,{label:"\u9ED8\u8BA4\u8C31\u9762",path:"scoreType",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u9ED8\u8BA4\u8C31\u9762"}]},{default:()=>[e(d,{value:t.scoreType,"onUpdate:value":p=>t.scoreType=p,placeholder:"\u8BF7\u9009\u62E9\u9ED8\u8BA4\u8C31\u9762",options:U(Z),clearable:!0},null)]}),e(h,{label:"\u652F\u6301\u8F6C\u7B80\u8C31",path:"isConvertibleScore",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u652F\u6301\u8F6C\u8C31",trigger:["input","blur"],type:"boolean"}]},{default:()=>[e(d,{value:t.isConvertibleScore,"onUpdate:value":p=>t.isConvertibleScore=p,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}],placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u652F\u6301\u8F6C\u8C31",onUpdateValue:p=>g(this,null,function*(){}),clearable:!0},null)]}),e(h,{label:"\u662F\u5426\u542F\u7528",path:"status",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u542F\u7528"}]},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u542F\u7528",options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}],value:t.status,"onUpdate:value":p=>t.status=p,clearable:!0},null)]}),e(h,{label:"\u6392\u5E8F\u503C",path:"sortNo"},{default:()=>[e(_,{value:t.sortNo,"onUpdate:value":p=>t.sortNo=p,placeholder:"\u8BF7\u8F93\u5165\u6392\u5E8F\u503C",clearable:!0,min:0,max:9999,style:{width:"100%"}},null)]})]}),e(S,{justify:"end"},{default:()=>[e(v,{onClick:()=>a("close")},{default:()=>[b("\u53D6\u6D88")]}),e(v,{type:"primary",onClick:R,loading:T.value,disabled:T.value},{default:()=>[b("\u4FDD\u5B58")]})]})])}});function ct(f){return typeof f=="function"||Object.prototype.toString.call(f)==="[object Object]"&&!De(f)}const pt=X({name:"project-music-sheet-mec",props:{appKey:{type:String,default:"GYT"}},setup(f){const P=ne(),D=ee(),a=H({loading:!1,appId:null,pagination:{page:1,rows:10,pageTotal:0},searchForm:{keyword:null,musicalInstrumentId:null,musicCategoryIds:null,clientStatus:null,status:null,sourceType:null,paymentType:null,userId:null,musicCategoryId:null,times:null,audioType:null,exquisiteFlag:null,topFlag:null,availableType:null,appAuditFlag:null,detailFlag:null,applicationId:null,extendApplicationId:null},subjectList:[],dataList:[],musicSheetCategories:[],showAddDialog:!1,showEditDialog:!1,userIdDisable:!0,userIdData:[],updateRow:{},applicationId:null,musicPreview:!1,musicPreviewScoreType:"staff",musicScore:null,useProjectData:[],subjectInstrumentMap:new Map,subjectId:null});Y(()=>g(this,null,function*(){a.loading=!0;try{const{data:o}=yield ge({page:1,rows:1,appKey:f.appKey}),n=o.rows||[];if(!n||n.length==0){a.loading=!1,D.error("\u52A0\u8F7D\u9879\u76EE\u4FE1\u606F\u5931\u8D25");return}a.appId=n[0].id,a.applicationId=n[0].id}catch(o){}try{const{data:o}=yield ze({applicationId:a.applicationId}),n=o||[];n.forEach(s=>{s.label=s.subjectName,s.value=s.subjectId,a.subjectInstrumentMap.set(s.subjectId,s.instrumentId)}),a.subjectList=n}catch(o){}try{const{data:o}=yield Te({applicationIds:a.appId});o&&o.length>0&&(a.musicSheetCategories=o[0].musicSheetCategories)}catch(o){}I(),p()}));const I=()=>g(this,null,function*(){try{const o=Object.keys(ae),{data:n}=yield ge({page:1,rows:999}),s=n.rows||[];a.useProjectData=[],s.filter(l=>o.includes(l.appKey)).forEach(l=>{a.useProjectData.push(k(x({},l),{label:l.appName,value:l.id}))})}catch(o){}}),T=z(),t=()=>{var o;R.value=[],(o=T.value)==null||o.submit()},c=()=>{var o;(o=T.value)==null||o.reset()},F=()=>{a.pagination.page=1,p()},R=z([]),p=()=>g(this,null,function*(){try{a.loading=!0,a.subjectId?a.searchForm.musicalInstrumentId=a.subjectInstrumentMap.get(a.subjectId):a.searchForm.musicalInstrumentId=null;const o=a.searchForm.sourceType,{data:n}=yield je(k(x(k(x(x({},a.pagination),a.searchForm),{userId:o&&o==="PERSON"?a.searchForm.userId:null,organizationRoleId:o&&o==="ORG"?a.searchForm.userId:null}),Ae(a.searchForm.times,["startTime","endTime"])),{applicationId:a.applicationId}));a.pagination.pageTotal=Number(n.total),a.dataList=n.rows||[]}catch(o){}a.loading=!1}),w=o=>{const n=o.clientStatus?"\u505C\u7528":"\u542F\u7528";P.warning({title:"\u63D0\u793A",content:`\u662F\u5426${n}\uFF1F`,positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>g(this,null,function*(){try{yield ie({ids:o.applicationExtendId,status:!o.clientStatus}),p(),D.success(`${n}\u6210\u529F`)}catch(s){}})})},L=o=>{const n=R.value.length;n==0&&D.warning("\u672A\u9009\u62E9\u6570\u636E");const s=o?"\u542F\u7528":"\u505C\u7528";P.warning({title:"\u63D0\u793A",content:`\u662F\u5426${s}`+n+"\u6761\u6570\u636E\uFF1F",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>g(this,null,function*(){try{yield ie({ids:R.value.join(","),status:o}),p(),D.success(`${s}\u6210\u529F`)}catch(y){}})})},E=o=>g(this,null,function*(){if(!!a.searchForm.extendApplicationId&&(a.userIdData=[],a.searchForm.userId=null,o&&o!=="PLATFORM")){const{data:n}=yield me({page:1,rows:9999,sourceType:o,applicationId:a.searchForm.extendApplicationId});(n.rows||[]).forEach(y=>{a.userIdData.push(k(x({},y),{label:o==="PERSON"?y.userName:y.organizationRole,value:o==="PERSON"?y.userId:y.organizationRoleId}))})}}),V=o=>{P.warning({title:"\u63D0\u793A",content:"\u5220\u9664\u66F2\u76EE\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>g(this,null,function*(){try{yield Ue(o.applicationExtendId),p(),D.success("\u5220\u9664\u6210\u529F")}catch(n){}})})},O=()=>[{type:"selection"},{title:"\u66F2\u76EE\u540D\u79F0",key:"id",render:o=>e(oe,null,[e(re,{labelPlacement:"left",column:1},{default:()=>[e(B,{label:"\u66F2\u76EE\u540D\u79F0"},{default:()=>[e(M,{content:o.name},null)," "]}),e(B,{label:"\u66F2\u76EE\u7F16\u53F7"},{default:()=>[e("div",{onDblclick:()=>{Ee(D,o.id)}},[e(M,{content:o.id},null)])]})]})])},{title:"\u5C01\u9762\u56FE",key:"musicCover",render(o){return e(ce,{width:60,height:60,src:o.musicCover},null)}},{title:"\u66F2\u76EE\u4FE1\u606F",key:"musicSheetCategoriesName",render:o=>{let n;return e(oe,null,[e(re,{labelPlacement:"left",column:1},{default:()=>[e(B,{label:"\u66F2\u76EE\u6765\u6E90"},ct(n=$(o.sourceType,new Map(Object.entries(q))))?n:{default:()=>[n]}),e(B,{label:"\u6240\u5C5E\u4EBA"},{default:()=>[e(M,{content:he(o.musicSheetExtend,o.sourceType)},null)]}),e(B,{label:"\u53EF\u7528\u58F0\u90E8"},{default:()=>[e(M,{content:o.subjectNames},null)]})]})])}},{title:"\u4F34\u594F\u7C7B\u578B",key:"audioType",render:o=>e("div",null,[$(o.audioType,new Map(Object.entries(ue)))])},{title:"\u66F2\u76EE\u5206\u7C7B",key:"musicSheetCategoryName"},{title:"\u6536\u8D39\u65B9\u5F0F",key:"paymentType",render:o=>e("div",null,[o.paymentType?o.paymentType=="VIP"?"\u6536\u8D39":"\u514D\u8D39":"--"])},{title:"\u4E0A\u4F20\u65F6\u95F4",minWidth:"150px",key:"composer",render(o){return o.createTime}},{title:"\u4E1A\u52A1\u66F2\u76EE\u72B6\u6001",key:"clientStatus",render(o){return e(te,{type:o.clientStatus?"primary":"default"},{default:()=>[o.clientStatus?"\u542F\u7528":"\u505C\u7528"]})}},{title:"\u5E73\u53F0\u66F2\u76EE\u72B6\u6001",key:"status",render(o){return e(te,{type:o.status?"primary":"default"},{default:()=>[o.status?"\u542F\u7528":"\u505C\u7528"]})}},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",render(o){return e(S,null,{default:()=>[e(v,{type:"primary",size:"small",text:!0,onClick:()=>{if(a.musicPreview=!0,a.musicScore=o,o.scoreType=="STAVE")a.musicPreviewScoreType="staff";else if(o.scoreType=="JIAN")a.musicPreviewScoreType="fixedTone";else if(o.scoreType=="FIRST")a.musicPreviewScoreType="firstTone";else return}},{default:()=>[b("\u9884\u89C8")]}),N(e(v,{type:"primary",size:"small",text:!0,onClick:()=>w(o)},{default:()=>[o.clientStatus?"\u505C\u7528":"\u542F\u7528"]}),[[K("auth"),"musicSheetApplicationExtend/status1751235150422736897"]]),N(e(v,{type:"primary",size:"small",text:!0,onClick:()=>{a.showEditDialog=!0,a.updateRow=o}},{default:()=>[b("\u4FEE\u6539")]}),[[K("auth"),"musicSheetApplicationExtend/update1751235534826504193"]]),N(e(v,{type:"primary",size:"small",text:!0,disabled:!!o.clientStatus,onClick:()=>V(o)},{default:()=>[b("\u5220\u9664")]}),[[K("auth"),"musicSheetApplicationExtend/del1770708555010191362"]])]})}}];return()=>e("div",{class:"system-menu-container"},[e(pe,{ref:T,model:a.searchForm,onSubmit:F,saveKey:"music-sheet-gym",onSetModel:o=>a.searchForm=o},{default:()=>[e(h,{label:"\u5173\u952E\u8BCD",path:"keyword"},{default:()=>[e(W,{placeholder:"\u8BF7\u8F93\u5165\u66F2\u76EE\u540D\u79F0/\u7F16\u53F7",value:a.searchForm.keyword,"onUpdate:value":o=>a.searchForm.keyword=o,clearable:!0},null)]}),e(h,{label:"\u66F2\u76EE\u6765\u6E90",path:"sourceType"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u66F2\u76EE\u6765\u6E90",value:a.searchForm.sourceType,"onUpdate:value":o=>a.searchForm.sourceType=o,options:U(q),onUpdateValue:o=>g(this,null,function*(){a.userIdData=[],a.searchForm.userId=null,o&&o!=="PLATFORM"?(yield E(o),a.userIdDisable=!a.searchForm.extendApplicationId):a.userIdDisable=!0}),clearable:!0},null)]}),e(h,{label:"\u6240\u5C5E\u9879\u76EE",path:"extendApplicationId"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u9879\u76EE",value:a.searchForm.extendApplicationId,"onUpdate:value":o=>a.searchForm.extendApplicationId=o,options:a.useProjectData,clearable:!0,onUpdateValue:o=>g(this,null,function*(){a.searchForm.extendApplicationId=o,o?(yield E(a.searchForm.sourceType),a.userIdDisable=!(a.searchForm.sourceType&&a.searchForm.sourceType!=="PLATFORM")):(a.searchForm.userId=null,a.userIdDisable=!0,a.userIdData=[])})},null)]}),e(h,{label:"\u6240\u5C5E\u4EBA",path:"userId"},{default:()=>[e(d,{filterable:!0,placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u4EBA",disabled:a.userIdDisable,value:a.searchForm.userId,"onUpdate:value":o=>a.searchForm.userId=o,options:a.userIdData,clearable:!0},null)]}),e(h,{label:"\u4F34\u594F\u7C7B\u578B",path:"audioType"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u4F34\u594F\u7C7B\u578B",value:a.searchForm.audioType,"onUpdate:value":o=>a.searchForm.audioType=o,options:U(ue),clearable:!0},null)]}),e(h,{label:"\u53EF\u7528\u58F0\u90E8",path:"musicalInstrumentId"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u53EF\u7528\u58F0\u90E8",value:a.subjectId,"onUpdate:value":o=>a.subjectId=o,options:a.subjectList,clearable:!0,filterable:!0},null)]}),e(h,{label:"\u66F2\u76EE\u5206\u7C7B",path:"musicCategoryId"},{default:()=>[e(ve,{valueField:"id",labelField:"name","children-field":"children",placeholder:"\u8BF7\u9009\u62E9\u66F2\u76EE\u5206\u7C7B",value:a.searchForm.musicCategoryId,"onUpdate:value":o=>a.searchForm.musicCategoryId=o,options:a.musicSheetCategories,clearable:!0,filterable:!0},null)]}),e(h,{label:"\u6536\u8D39\u65B9\u5F0F",path:"paymentType"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u6536\u8D39\u65B9\u5F0F",value:a.searchForm.paymentType,"onUpdate:value":o=>a.searchForm.paymentType=o,options:[{label:"\u514D\u8D39",value:"FREE"},{label:"\u6536\u8D39",value:"VIP"}],clearable:!0},null)]}),e(h,{label:"\u4E1A\u52A1\u66F2\u76EE\u72B6\u6001",path:"clientStatus"},{default:()=>[e(d,{value:a.searchForm.clientStatus,"onUpdate:value":o=>a.searchForm.clientStatus=o,placeholder:"\u8BF7\u9009\u62E9\u4E1A\u52A1\u66F2\u76EE\u72B6\u6001",options:[{label:"\u542F\u7528",value:!0},{label:"\u505C\u7528",value:!1}],clearable:!0},null)]}),e(h,{label:"\u5E73\u53F0\u66F2\u76EE\u72B6\u6001",path:"status"},{default:()=>[e(d,{value:a.searchForm.status,"onUpdate:value":o=>a.searchForm.status=o,placeholder:"\u8BF7\u9009\u62E9\u5E73\u53F0\u66F2\u76EE\u72B6\u6001",options:[{label:"\u542F\u7528",value:!0},{label:"\u505C\u7528",value:!1}],clearable:!0},null)]}),e(h,{label:"\u4E0A\u4F20\u65F6\u95F4",path:"authorFrom"},{default:()=>[e(Ce,{value:a.searchForm.times,"onUpdate:value":o=>a.searchForm.times=o,type:"daterange",clearable:!0,"value-format":"yyyy.MM.dd",startPlaceholder:"\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u7ED3\u675F\u65F6\u95F4"},null)]}),e(h,null,{default:()=>[e(S,null,{default:()=>[e(v,{type:"primary",onClick:t},{default:()=>[b("\u641C\u7D22")]}),e(v,{type:"default",onClick:c},{default:()=>[b("\u91CD\u7F6E")]})]})]})]}),e("div",{class:["section-container"]},[e(S,{style:{paddingBottom:"12px"}},{default:()=>[N(e(v,{type:"primary",onClick:()=>{a.showAddDialog=!0}},{default:()=>[b("\u6DFB\u52A0\u66F2\u76EE")]}),[[K("auth"),"musicSheetApplicationExtend/saveBatch1751234300275064833"]]),N(e(v,{disabled:R.value.length==0,onClick:()=>{L(!1)}},{default:()=>[b("\u6279\u91CF\u505C\u7528")]}),[[K("auth"),"musicSheetApplicationExtend/status1751235150422736897"]]),N(e(v,{disabled:R.value.length==0,onClick:()=>{L(!0)}},{default:()=>[b("\u6279\u91CF\u542F\u7528")]}),[[K("auth"),"musicSheetApplicationExtend/status1751235150422736897"]])]}),e(Q,{loading:a.loading,columns:O(),data:a.dataList,rowKey:o=>o.applicationExtendId,checkedRowKeys:R.value,"onUpdate:checkedRowKeys":o=>R.value=o,scrollX:"1400"},null),e(de,{page:a.pagination.page,"onUpdate:page":o=>a.pagination.page=o,pageSize:a.pagination.rows,"onUpdate:pageSize":o=>a.pagination.rows=o,pageTotal:a.pagination.pageTotal,"onUpdate:pageTotal":o=>a.pagination.pageTotal=o,onList:p,sync:!0,saveKey:"music-sheet-gym"},null)]),e(J,{show:a.showAddDialog,"onUpdate:show":o=>a.showAddDialog=o,preset:"dialog",showIcon:!1,title:"\u6DFB\u52A0\u66F2\u76EE",style:{width:"1300px"}},{default:()=>[e(it,{onClose:()=>a.showAddDialog=!1,onGetList:()=>{a.pagination.page=1,p()},subjectList:a.subjectList,appId:a.appId},null)]}),e(J,{show:a.showEditDialog,"onUpdate:show":o=>a.showEditDialog=o,preset:"dialog",showIcon:!1,title:"\u4FEE\u6539\u66F2\u76EE",style:{width:"500px"}},{default:()=>[e(nt,{onClose:()=>a.showEditDialog=!1,onGetList:()=>{a.pagination.page=1,p()},rowData:a.updateRow,appId:a.appId,musicSheetCategories:a.musicSheetCategories},null)]}),e(J,{blockScroll:!0,show:a.musicPreview,"onUpdate:show":o=>a.musicPreview=o,preset:"card",showIcon:!1,title:"\u66F2\u76EE\u9884\u89C8",class:Ne.musicPreviewModal},{default:()=>[e(Me,{item:a.musicScore,scoreType:a.musicPreviewScoreType},null)]})])}}),dt=X({name:"gyt-addMusic",props:{appId:{type:String,required:!0},subjectList:{type:Array,default:()=>[]},musicSheetCategories:{type:Array,default:()=>[]}},emits:["close","getList"],setup(f,{slots:P,attrs:D,emit:a}){const I=ne(),T=ee(),t=H({loading:!1,pagination:{page:1,rows:5,pageTotal:0},stepPagination:{page:1,rows:5,pageTotal:0},searchForm:{keyword:null,subjectId:null,sourceType:null,composer:null,userId:null,applicationId:null},subjectList:[],showAdd:!1,currentStep:1,dataList:[],selectRowData:[],musicSheetCategories:[],startSortNum:null,isConvertibleScore:null,status:!1,scoreType:null,useProjectData:[],userIdDisable:!0,userIdData:[],globalAvailableType:null});Y(()=>g(this,null,function*(){t.searchForm.keyword=null,t.searchForm.subjectId=null,t.searchForm.sourceType=null,t.searchForm.composer=null,t.searchForm.userId=null,t.searchForm.applicationId=null,t.loading=!0,t.subjectList=f.subjectList;try{const{data:l}=yield Te({applicationIds:f.appId,enable:!0});l&&l.length>0&&(t.musicSheetCategories=l[0].musicSheetCategories)}catch(l){}yield c(),yield F()}));const c=()=>g(this,null,function*(){try{const l=Object.keys(ae),{data:u}=yield fe({page:1,rows:999}),r=u.rows||[];t.useProjectData=[],r.filter(m=>l.includes(m.appKey)).forEach(m=>{t.useProjectData.push(k(x({},m),{label:m.appName,value:m.id}))})}catch(l){}}),F=()=>g(this,null,function*(){try{t.loading=!0;const l=k(x({},t.searchForm),{userId:t.searchForm.sourceType&&t.searchForm.sourceType=="PERSON"?t.searchForm.userId:null,organizationRoleId:t.searchForm.sourceType&&t.searchForm.sourceType=="ORG"?t.searchForm.userId:null}),{data:u}=yield ke(k(x(x({},t.pagination),l),{addAppId:f.appId}));t.pagination.pageTotal=Number(u.total),t.dataList=u.rows||[]}catch(l){}t.loading=!1}),R=z(),p=()=>{var l;s.value=[],(l=R.value)==null||l.submit()},w=()=>{var l;(l=R.value)==null||l.reset()},L=()=>{t.pagination.page=1,F()},E=l=>g(this,null,function*(){if(!!t.searchForm.applicationId&&(t.userIdData=[],t.searchForm.userId=null,l&&l!=="PLATFORM")){const{data:u}=yield me({page:1,rows:9999,sourceType:l,applicationId:t.searchForm.applicationId});(u.rows||[]).forEach(i=>{t.userIdData.push(k(x({},i),{label:l==="PERSON"?i.userName:i.organizationRole,value:l==="PERSON"?i.userId:i.organizationRoleId}))})}}),V=()=>g(this,null,function*(){if(t.selectRowData.length==0){T.error("\u672A\u9009\u62E9\u66F2\u76EE");return}const l=[];for(let r=0;r<t.selectRowData.length;r++){const i=t.selectRowData[r];if(!i.availableType){T.error("\u53EF\u7528\u9014\u5F84\u4E0D\u80FD\u4E3A\u7A7A");return}if(i.scoreType==null){T.error("\u9ED8\u8BA4\u8C31\u9762\u4E0D\u80FD\u4E3A\u7A7A");return}if(i.isConvertibleScore==null){T.error("\u662F\u5426\u652F\u6301\u8F6C\u8C31\u4E0D\u80FD\u4E3A\u7A7A");return}if(i.status==null){T.error("\u662F\u5426\u542F\u7528\u4E0D\u80FD\u4E3A\u7A7A");return}l.push(k(x({},i),{musicSheetId:i.id,availableType:i.availableType,applicationId:f.appId,id:null}))}const u=yield Re(l);u&&u.code=="200"&&(T.success("\u6DFB\u52A0\u6210\u529F"),a("getList"),a("close"))}),O=[{type:"selection"},{title:"\u66F2\u76EE\u7F16\u53F7",key:"id"},{title:"\u5C01\u9762\u56FE",key:"titleImg",render(l){return e(ce,{width:40,height:40,src:l.musicCover},null)}},{title:"\u53EF\u7528\u58F0\u90E8",key:"subjectNames",render:l=>e(M,{content:l.subjectNames},null)},{title:"\u66F2\u76EE\u540D\u79F0",key:"name"},{title:"\u97F3\u4E50\u4EBA",key:"composer"},{title:"\u66F2\u76EE\u5206\u7C7B",key:"musicCategoryName"},{title:"\u66F2\u76EE\u6765\u6E90",key:"sourceType",render(l){return $(l.sourceType,new Map(Object.entries(q)))}},{title:"\u6240\u5C5E\u4EBA",key:"userName",render:l=>e(M,{content:he(l.musicSheetExtend,l.sourceType)},null)}],o=()=>O,n=()=>{const l=be(O);return l.splice(0,1),l.push({title(u){return e(S,null,{default:()=>[b("\u53EF\u7528\u9014\u5F84"),e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.create({title:"\u8BF7\u9009\u62E9\u53EF\u7528\u9014\u5F84",showIcon:!1,content:()=>C("div",{class:"flex flex-col justify-center items-center text-14px"},[C(d,{onUpdateValue(r){t.globalAvailableType=r},clearable:!0,options:[{label:"\u5B66\u6821",value:"ORG"},{label:"\u5E73\u53F0",value:"PLATFORM"}]})]),positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>{for(let r=0;r<t.selectRowData.length;r++){const i=t.selectRowData[r];i.availableType=t.globalAvailableType}}})}},{default:()=>[e(A,{size:15,style:"padding-left: 5px;margin-top:4px"},{default:()=>[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e("path",{d:"M2 26h28v2H2z",fill:"currentColor"},null),e("path",{d:"M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z",fill:"currentColor"},null)])]})]})]})},key:"availableType",render:u=>e(d,{placeholder:"\u8BF7\u9009\u62E9\u53EF\u7528\u9014\u5F84",value:u.availableType,options:[{label:"\u5B66\u6821",value:"ORG"},{label:"\u5E73\u53F0",value:"PLATFORM"}],onUpdateValue:r=>{u.availableType=r},clearable:!0},null)}),l.push({title(u){return e(S,null,{default:()=>[b("\u9ED8\u8BA4\u8C31\u9762"),e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.create({title:"\u8BF7\u9009\u62E9\u9ED8\u8BA4\u8C31\u9762",showIcon:!1,content:()=>C("div",{class:"flex flex-col justify-center items-center text-14px"},[C(d,{onUpdateValue(r){t.scoreType=r},options:U(Z)})]),positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>{for(let r=0;r<t.selectRowData.length;r++){const i=t.selectRowData[r];i.scoreType=t.scoreType}}})}},{default:()=>[e(A,{size:15,style:"padding-left: 5px;margin-top:4px"},{default:()=>[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e("path",{d:"M2 26h28v2H2z",fill:"currentColor"},null),e("path",{d:"M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z",fill:"currentColor"},null)])]})]})]})},key:"scoreType",width:200,render:u=>e(d,{placeholder:"\u8BF7\u9009\u62E9\u9ED8\u8BA4\u8C31\u9762",value:u.scoreType,options:U(Z),onUpdateValue:r=>{u.scoreType=r},clearable:!0},null)}),l.push({title(u){return e(S,null,{default:()=>[b("\u662F\u5426\u652F\u6301\u8F6C\u8C31"),e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.create({title:"\u662F\u5426\u652F\u6301\u8F6C\u8C31",showIcon:!1,content:()=>C("div",{class:"flex flex-col justify-center items-center text-14px"},[C(d,{onUpdateValue(r){t.isConvertibleScore=r},options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]})]),positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>{for(let r=0;r<t.selectRowData.length;r++){const i=t.selectRowData[r];i.isConvertibleScore=t.isConvertibleScore}}})}},{default:()=>[e(A,{size:15,style:"padding-left: 5px;margin-top:4px"},{default:()=>[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e("path",{d:"M2 26h28v2H2z",fill:"currentColor"},null),e("path",{d:"M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z",fill:"currentColor"},null)])]})]})]})},key:"isConvertibleScore",width:200,render:u=>e(d,{value:u.isConvertibleScore,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}],onUpdateValue:r=>{u.isConvertibleScore=r},filterable:!0,clearable:!0},null)}),l.push({title(u){return e(S,null,{default:()=>[b("\u662F\u5426\u542F\u7528"),e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.create({title:"\u662F\u5426\u542F\u7528",showIcon:!1,content:()=>C("div",{class:"flex flex-col justify-center items-center text-14px"},[C(d,{onUpdateValue(r){t.status=r},options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]})]),positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>{for(let r=0;r<t.selectRowData.length;r++){const i=t.selectRowData[r];i.status=t.status}}})}},{default:()=>[e(A,{size:15,style:"padding-left: 5px;margin-top:4px"},{default:()=>[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e("path",{d:"M2 26h28v2H2z",fill:"currentColor"},null),e("path",{d:"M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z",fill:"currentColor"},null)])]})]})]})},key:"status",width:200,render:u=>e(d,{value:u.status,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}],onUpdateValue:r=>{u.status=r},filterable:!0,clearable:!0},null)}),l.push({title(u){return e(S,null,{default:()=>[b("\u6392\u5E8F"),e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.create({title:"\u8BF7\u8F93\u5165\u6392\u5E8F\u8D77\u59CB\u503C",showIcon:!1,content:()=>C("div",{class:"flex flex-col justify-center items-center text-14px"},[C(_,{onUpdateValue(r){t.startSortNum=r},min:0,max:9999})]),positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>{if(t.startSortNum)for(let r=0;r<t.selectRowData.length;r++){const i=t.selectRowData[r];i.sortNo=t.startSortNum+r}}})}},{default:()=>[e(A,{size:15,style:"padding-left: 5px;margin-top:4px"},{default:()=>[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e("path",{d:"M2 26h28v2H2z",fill:"currentColor"},null),e("path",{d:"M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z",fill:"currentColor"},null)])]})]})]})},key:"sortNo",width:150,render:u=>C(_,{value:u.sortNo,min:0,max:9999,onUpdateValue(r){u.sortNo=r}})}),l.push({title:"\u64CD\u4F5C",key:"operation",fixed:"right",render(u){return e(S,null,{default:()=>[e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.warning({title:"\u63D0\u793A",content:"\u662F\u5426\u5220\u9664\u8BE5\u6570\u636E\uFF1F",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>g(this,null,function*(){try{const r=t.selectRowData.findIndex(m=>{if(m.id==u.id)return!0});r>-1&&t.selectRowData.splice(r,1),s.value.findIndex(m=>{if(m==u.id)return!0})>-1&&s.value.splice(r,1)}catch(r){}})})}},{default:()=>[b("\u79FB\u9664")]})]})}}),l},s=z([]),y=l=>{s.value=l,t.dataList.forEach(u=>{s.value.includes(u.id)&&(t.selectRowData.find(i=>i.id===u.id)||(u.status=!1,t.selectRowData.push(u)))}),t.selectRowData=t.selectRowData.filter(u=>s.value.includes(u.id))};return()=>e("div",{class:"system-menu-container"},[e(S,{vertical:!0,size:"medium"},{default:()=>[e(Se,{current:t.currentStep,style:"margin-bottom: 10px;margin-top: 10px"},{default:()=>[e(se,{title:"\u9009\u62E9\u66F2\u76EE",description:""},null),e(se,{title:"\u8BBE\u7F6E\u66F2\u76EE\u4FE1\u606F",description:""},null)]})]}),t.currentStep===1&&e("div",{class:"system-menu-container"},[e(pe,{ref:R,model:t.searchForm,onSubmit:L,onSetModel:l=>t.searchForm=l},{default:()=>[e(h,{label:"\u5173\u952E\u8BCD",path:"keyword"},{default:()=>[e(W,{value:t.searchForm.keyword,"onUpdate:value":l=>t.searchForm.keyword=l,placeholder:"\u8BF7\u8F93\u5165\u66F2\u76EE\u540D\u79F0/\u7F16\u53F7",clearable:!0},null)]}),e(h,{label:"\u53EF\u7528\u58F0\u90E8",path:"musicSubject"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u53EF\u7528\u58F0\u90E8",value:t.searchForm.subjectId,"onUpdate:value":l=>t.searchForm.subjectId=l,options:t.subjectList,clearable:!0},null)]}),e(h,{label:"\u97F3\u4E50\u4EBA",path:"composer"},{default:()=>[e(W,{placeholder:"\u8BF7\u9009\u62E9\u97F3\u4E50\u4EBA",value:t.searchForm.composer,"onUpdate:value":l=>t.searchForm.composer=l,clearable:!0},null)]}),e(h,{label:"\u66F2\u76EE\u6765\u6E90",path:"sourceType"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u66F2\u76EE\u6765\u6E90",value:t.searchForm.sourceType,"onUpdate:value":l=>t.searchForm.sourceType=l,options:U(q),onUpdateValue:l=>g(this,null,function*(){t.userIdData=[],t.searchForm.userId=null,l&&l!=="PLATFORM"?(yield E(l),t.userIdDisable=!1):t.userIdDisable=!0}),clearable:!0},null)]}),e(h,{label:"\u6240\u5C5E\u9879\u76EE",path:"applicationId"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u9879\u76EE",value:t.searchForm.applicationId,"onUpdate:value":l=>t.searchForm.applicationId=l,options:t.useProjectData,clearable:!0,onUpdateValue:l=>g(this,null,function*(){t.searchForm.applicationId=l,l?(yield E(t.searchForm.sourceType),t.userIdDisable=!(t.searchForm.sourceType&&t.searchForm.sourceType!=="PLATFORM")):(t.searchForm.userId=null,t.userIdDisable=!0,t.userIdData=[])})},null)]}),e(h,{label:"\u6240\u5C5E\u4EBA",path:"author"},{default:()=>[e(d,{filterable:!0,placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u4EBA",disabled:t.userIdDisable||!t.searchForm.applicationId&&!t.searchForm.sourceType,value:t.searchForm.userId,"onUpdate:value":l=>t.searchForm.userId=l,options:t.userIdData,clearable:!0},null)]}),e(h,null,{default:()=>[e(S,null,{default:()=>[e(v,{type:"primary",onClick:p},{default:()=>[b("\u641C\u7D22")]}),e(v,{type:"default",onClick:w},{default:()=>[b("\u91CD\u7F6E")]})]})]})]}),e("p",{style:{paddingBottom:"12px"}},[b("\u4F60\u9009\u62E9\u4E86"),e("span",{style:"color:red;padding:0 8px"},[t.selectRowData.length]),b("\u6761\u66F2\u76EE")]),e(Q,{loading:t.loading,columns:o(),data:t.dataList,rowKey:l=>l.id,onUpdateCheckedRowKeys:y,checkedRowKeys:s.value,"onUpdate:checkedRowKeys":l=>s.value=l},null),e(de,{page:t.pagination.page,"onUpdate:page":l=>t.pagination.page=l,pageSize:t.pagination.rows,"onUpdate:pageSize":l=>t.pagination.rows=l,pageTotal:t.pagination.pageTotal,"onUpdate:pageTotal":l=>t.pagination.pageTotal=l,onList:F,sync:!0},null)]),t.currentStep===2&&e("div",{class:"system-menu-container",style:"margin-top: 15px;"},[e(Q,{loading:t.loading,columns:n(),data:t.selectRowData,rowKey:l=>l.id,maxHeight:500,scrollX:2e3},null)]),e(S,{justify:"end",style:"margin-top:10px"},{default:()=>[e(v,{type:"default",onClick:()=>{t.currentStep>1?t.currentStep=t.currentStep-1:a("close")}},{default:()=>[t.currentStep===1?"\u53D6\u6D88":"\u4E0A\u4E00\u6B65"]}),e(v,{type:"primary",onClick:()=>{if(t.currentStep<2){if(t.selectRowData.length==0){T.warning("\u8BF7\u9009\u62E9\u66F2\u76EE");return}t.currentStep=t.currentStep+1}else V()}},{default:()=>[t.currentStep===2?"\u786E\u5B9A":"\u4E0B\u4E00\u6B65"]})]})])}}),mt=X({name:"project-music-cooleshow-edu-updateMusic",props:{appId:{type:String,required:!0},rowData:{type:Object,required:!0},musicSheetCategories:{type:Array,default:()=>[]}},emits:["close","getList"],setup(f,{slots:P,attrs:D,emit:a}){const I=ee(),T=z(!1),t=H({musicSheetCategoryId:null,sortNo:null,availableType:null,isConvertibleScore:null,status:!1,scoreType:null}),c=z(),F=H({rowData:null,musicSheetCategories:[]});Y(()=>g(this,null,function*(){F.rowData=f.rowData,Ve(f.musicSheetCategories),F.musicSheetCategories=f.musicSheetCategories;const{data:p}=yield Le({musicSheetId:F.rowData.id,applicationId:f.appId});if(!p){I.error("\u52A0\u8F7D\u5E94\u7528\u5931\u8D25");return}t.musicSheetCategoryId=p[0].musicSheetCategoryId,t.sortNo=p[0].sortNo,t.availableType=p[0].availableType,t.isConvertibleScore=p[0].isConvertibleScore,t.scoreType=p[0].scoreType,t.status=p[0].status}));const R=()=>g(this,null,function*(){c.value.validate(p=>g(this,null,function*(){if(p)return!1;T.value=!0;try{const w=yield Pe(k(x({},t),{musicSheetId:F.rowData.id,applicationId:f.appId}));w&&w.code===200&&(a("close"),a("getList"))}catch(w){}T.value=!1}))});return()=>e("div",{style:"background: #fff; padding-top: 12px"},[e(xe,{ref:c,labelPlacement:"top",model:t,"label-placement":"left","label-width":"auto"},{default:()=>[e(h,{label:"\u53EF\u7528\u9014\u5F84",path:"availableType",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u53EF\u7528\u9014\u5F84"}]},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u53EF\u7528\u9014\u5F84",options:[{label:"\u5B66\u6821",value:"ORG"},{label:"\u5E73\u53F0",value:"PLATFORM"}],value:t.availableType,"onUpdate:value":p=>t.availableType=p,clearable:!0},null)]}),e(h,{label:"\u9ED8\u8BA4\u8C31\u9762",path:"scoreType",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u9ED8\u8BA4\u8C31\u9762"}]},{default:()=>[e(d,{value:t.scoreType,"onUpdate:value":p=>t.scoreType=p,placeholder:"\u8BF7\u9009\u62E9\u9ED8\u8BA4\u8C31\u9762",options:U(Z),clearable:!0},null)]}),e(h,{label:"\u652F\u6301\u8F6C\u8C31",path:"isConvertibleScore",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u652F\u6301\u8F6C\u8C31",trigger:["input","blur"],type:"boolean"}]},{default:()=>[e(d,{value:t.isConvertibleScore,"onUpdate:value":p=>t.isConvertibleScore=p,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}],placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u652F\u6301\u8F6C\u8C31",onUpdateValue:p=>g(this,null,function*(){}),clearable:!0},null)]}),e(h,{label:"\u662F\u5426\u542F\u7528",path:"status",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u542F\u7528"}]},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u542F\u7528",options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}],value:t.status,"onUpdate:value":p=>t.status=p,clearable:!0},null)]}),e(h,{label:"\u6392\u5E8F\u503C",path:"sortNo"},{default:()=>[e(_,{value:t.sortNo,"onUpdate:value":p=>t.sortNo=p,placeholder:"\u8BF7\u8F93\u5165\u6392\u5E8F\u503C",clearable:!0,min:0,max:9999,style:{width:"100%"}},null)]})]}),e(S,{justify:"end"},{default:()=>[e(v,{onClick:()=>a("close")},{default:()=>[b("\u53D6\u6D88")]}),e(v,{type:"primary",onClick:R,loading:T.value,disabled:T.value},{default:()=>[b("\u4FDD\u5B58")]})]})])}});function ht(f){return typeof f=="function"||Object.prototype.toString.call(f)==="[object Object]"&&!De(f)}const yt=X({name:"project-music-sheet-gyt",props:{appKey:{type:String,default:"GYT"}},setup(f){const P=ne(),D=ee(),a=H({loading:!1,appId:null,pagination:{page:1,rows:10,pageTotal:0},searchForm:{keyword:null,subjectId:null,subjectIds:null,musicCategoryIds:null,clientStatus:null,status:null,sourceType:null,paymentType:null,userId:null,musicCategoryId:null,times:null,audioType:null,exquisiteFlag:null,topFlag:null,availableType:null,appAuditFlag:null,detailFlag:null,applicationId:null,extendApplicationId:null},subjectList:[],dataList:[],musicSheetCategories:[],showAddDialog:!1,showEditDialog:!1,userIdDisable:!0,userIdData:[],updateRow:{},applicationId:null,musicPreview:!1,musicPreviewScoreType:"staff",musicScore:null,useProjectData:[]});Y(()=>g(this,null,function*(){a.loading=!0;try{const{data:o}=yield ge({page:1,rows:1,appKey:f.appKey}),n=o.rows||[];if(!n||n.length==0){a.loading=!1,D.error("\u52A0\u8F7D\u9879\u76EE\u4FE1\u606F\u5931\u8D25");return}a.appId=n[0].id,a.applicationId=n[0].id}catch(o){}try{const{data:o}=yield ze({applicationId:a.applicationId}),n=o||[];n.forEach(s=>{s.label=s.subjectName,s.value=s.subjectId}),a.subjectList=n}catch(o){}try{const{data:o}=yield Te({applicationIds:a.appId});o&&o.length>0&&(a.musicSheetCategories=o[0].musicSheetCategories)}catch(o){}F(),w()}));const I=z(),T=()=>{var o;p.value=[],(o=I.value)==null||o.submit()},t=()=>{var o;(o=I.value)==null||o.reset()},c=()=>{a.pagination.page=1,w()},F=()=>g(this,null,function*(){try{const o=Object.keys(ae),{data:n}=yield ge({page:1,rows:999}),s=n.rows||[];a.useProjectData=[],s.filter(l=>o.includes(l.appKey)).forEach(l=>{a.useProjectData.push(k(x({},l),{label:l.appName,value:l.id}))})}catch(o){}}),R=o=>g(this,null,function*(){if(!!a.searchForm.extendApplicationId&&(a.userIdData=[],a.searchForm.userId=null,o&&o!=="PLATFORM")){const{data:n}=yield me({page:1,rows:9999,sourceType:o,applicationId:a.searchForm.extendApplicationId});(n.rows||[]).forEach(y=>{a.userIdData.push(k(x({},y),{label:o==="PERSON"?y.userName:y.organizationRole,value:o==="PERSON"?y.userId:y.organizationRoleId}))})}}),p=z([]),w=()=>g(this,null,function*(){try{a.loading=!0;const o=a.searchForm.sourceType,{data:n}=yield je(k(x(k(x(x({},a.pagination),a.searchForm),{userId:o&&o==="PERSON"?a.searchForm.userId:null,organizationRoleId:o&&o==="ORG"?a.searchForm.userId:null}),Ae(a.searchForm.times,["startTime","endTime"])),{applicationId:a.applicationId}));a.pagination.pageTotal=Number(n.total),a.dataList=n.rows||[]}catch(o){}a.loading=!1}),L=o=>{const n=o.clientStatus?"\u505C\u7528":"\u542F\u7528";P.warning({title:"\u63D0\u793A",content:`\u662F\u5426${n}\uFF1F`,positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>g(this,null,function*(){try{yield ie({ids:o.applicationExtendId,status:!o.clientStatus}),w(),D.success(`${n}\u6210\u529F`)}catch(s){}})})},E=o=>{const n=p.value.length;n==0&&D.warning("\u672A\u9009\u62E9\u6570\u636E");const s=o?"\u542F\u7528":"\u505C\u7528";P.warning({title:"\u63D0\u793A",content:`\u662F\u5426${s}`+n+"\u6761\u6570\u636E\uFF1F",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>g(this,null,function*(){try{yield ie({ids:p.value.join(","),status:o}),w(),D.success(`${s}\u6210\u529F`)}catch(y){}})})},V=o=>{P.warning({title:"\u63D0\u793A",content:"\u5220\u9664\u66F2\u76EE\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>g(this,null,function*(){try{yield Ue(o.applicationExtendId),w(),D.success("\u5220\u9664\u6210\u529F")}catch(n){}})})},O=()=>[{type:"selection"},{title:"\u66F2\u76EE\u540D\u79F0",key:"id",render:o=>e(oe,null,[e(re,{labelPlacement:"left",column:1},{default:()=>[e(B,{label:"\u66F2\u76EE\u540D\u79F0"},{default:()=>[e(M,{content:o.name},null)," "]}),e(B,{label:"\u66F2\u76EE\u7F16\u53F7"},{default:()=>[e("div",{onDblclick:()=>{Ee(D,o.id)}},[e(M,{content:o.id},null)])]})]})])},{title:"\u5C01\u9762\u56FE",key:"musicCover",render(o){return e(ce,{width:60,height:60,src:o.musicCover},null)}},{title:"\u66F2\u76EE\u4FE1\u606F",key:"musicSheetCategoriesName",render:o=>{let n;return e(oe,null,[e(re,{labelPlacement:"left",column:1},{default:()=>[e(B,{label:"\u66F2\u76EE\u6765\u6E90"},ht(n=$(o.sourceType,new Map(Object.entries(q))))?n:{default:()=>[n]}),e(B,{label:"\u6240\u5C5E\u4EBA"},{default:()=>[e(M,{content:he(o.musicSheetExtend,o.sourceType)},null)]}),e(B,{label:"\u53EF\u7528\u58F0\u90E8"},{default:()=>[e(M,{content:o.subjectNames},null)]})]})])}},{title:"\u4F34\u594F\u7C7B\u578B",key:"audioType",render:o=>e("div",null,[$(o.audioType,new Map(Object.entries(ue)))])},{title:"\u66F2\u76EE\u5206\u7C7B",key:"musicSheetCategoryName"},{title:"\u4E0A\u4F20\u65F6\u95F4",minWidth:"150px",key:"composer",render(o){return o.createTime}},{title:"\u4E1A\u52A1\u66F2\u76EE\u72B6\u6001",key:"clientStatus",render(o){return e(te,{type:o.clientStatus?"primary":"default"},{default:()=>[o.clientStatus?"\u542F\u7528":"\u505C\u7528"]})}},{title:"\u5E73\u53F0\u66F2\u76EE\u72B6\u6001",key:"status",render(o){return e(te,{type:o.status?"primary":"default"},{default:()=>[o.status?"\u542F\u7528":"\u505C\u7528"]})}},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",render(o){return e(S,null,{default:()=>[e(v,{type:"primary",size:"small",text:!0,onClick:()=>{if(a.musicPreview=!0,a.musicScore=o,o.scoreType=="STAVE")a.musicPreviewScoreType="staff";else if(o.scoreType=="JIAN")a.musicPreviewScoreType="fixedTone";else if(o.scoreType=="FIRST")a.musicPreviewScoreType="firstTone";else return}},{default:()=>[b("\u9884\u89C8")]}),N(e(v,{type:"primary",size:"small",text:!0,onClick:()=>L(o)},{default:()=>[o.clientStatus?"\u505C\u7528":"\u542F\u7528"]}),[[K("auth"),"musicSheetApplicationExtend/status1751235279221424130"]]),N(e(v,{type:"primary",size:"small",text:!0,onClick:()=>{a.showEditDialog=!0,a.updateRow=o}},{default:()=>[b("\u4FEE\u6539")]}),[[K("auth"),"musicSheetApplicationExtend/update1751235625503162370"]]),N(e(v,{type:"primary",size:"small",text:!0,disabled:!!o.clientStatus,onClick:()=>V(o)},{default:()=>[b("\u5220\u9664")]}),[[K("auth"),"musicSheetApplicationExtend/del1770708605081792513"]])]})}}];return()=>e("div",{class:"system-menu-container"},[e(pe,{ref:I,model:a.searchForm,onSubmit:c,saveKey:"music-sheet-gyt",onSetModel:o=>a.searchForm=o},{default:()=>[e(h,{label:"\u5173\u952E\u8BCD",path:"keyword"},{default:()=>[e(W,{placeholder:"\u8BF7\u8F93\u5165\u66F2\u76EE\u540D\u79F0/\u7F16\u53F7",value:a.searchForm.keyword,"onUpdate:value":o=>a.searchForm.keyword=o,clearable:!0},null)]}),e(h,{label:"\u66F2\u76EE\u6765\u6E90",path:"sourceType"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u66F2\u76EE\u6765\u6E90",value:a.searchForm.sourceType,"onUpdate:value":o=>a.searchForm.sourceType=o,options:U(q),onUpdateValue:o=>g(this,null,function*(){a.userIdData=[],a.searchForm.userId=null,o&&o!=="PLATFORM"?(yield R(o),a.userIdDisable=!a.searchForm.extendApplicationId):a.userIdDisable=!0}),clearable:!0},null)]}),e(h,{label:"\u6240\u5C5E\u9879\u76EE",path:"applicationId"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u9879\u76EE",value:a.searchForm.extendApplicationId,"onUpdate:value":o=>a.searchForm.extendApplicationId=o,options:a.useProjectData,clearable:!0,onUpdateValue:o=>g(this,null,function*(){a.searchForm.extendApplicationId=o,o?(yield R(a.searchForm.sourceType),a.userIdDisable=!(a.searchForm.sourceType&&a.searchForm.sourceType!=="PLATFORM")):(a.searchForm.userId=null,a.userIdDisable=!0,a.userIdData=[])})},null)]}),e(h,{label:"\u6240\u5C5E\u4EBA",path:"userId"},{default:()=>[e(d,{filterable:!0,placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u4EBA",disabled:a.userIdDisable,value:a.searchForm.userId,"onUpdate:value":o=>a.searchForm.userId=o,options:a.userIdData,clearable:!0},null)]}),e(h,{label:"\u4F34\u594F\u7C7B\u578B",path:"audioType"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u4F34\u594F\u7C7B\u578B",value:a.searchForm.audioType,"onUpdate:value":o=>a.searchForm.audioType=o,options:U(ue),clearable:!0},null)]}),e(h,{label:"\u53EF\u7528\u58F0\u90E8",path:"subjectId"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u53EF\u7528\u58F0\u90E8",value:a.searchForm.subjectId,"onUpdate:value":o=>a.searchForm.subjectId=o,options:a.subjectList,clearable:!0,filterable:!0},null)]}),e(h,{label:"\u66F2\u76EE\u5206\u7C7B",path:"musicCategoryId"},{default:()=>[e(ve,{valueField:"id",labelField:"name","children-field":"children",placeholder:"\u8BF7\u9009\u62E9\u66F2\u76EE\u5206\u7C7B",value:a.searchForm.musicCategoryId,"onUpdate:value":o=>a.searchForm.musicCategoryId=o,options:a.musicSheetCategories,clearable:!0,filterable:!0},null)]}),e(h,{label:"\u4E1A\u52A1\u66F2\u76EE\u72B6\u6001",path:"clientStatus"},{default:()=>[e(d,{value:a.searchForm.clientStatus,"onUpdate:value":o=>a.searchForm.clientStatus=o,placeholder:"\u8BF7\u9009\u62E9\u4E1A\u52A1\u66F2\u76EE\u72B6\u6001",options:[{label:"\u542F\u7528",value:!0},{label:"\u505C\u7528",value:!1}],clearable:!0},null)]}),e(h,{label:"\u5E73\u53F0\u66F2\u76EE\u72B6\u6001",path:"status"},{default:()=>[e(d,{value:a.searchForm.status,"onUpdate:value":o=>a.searchForm.status=o,placeholder:"\u8BF7\u9009\u62E9\u5E73\u53F0\u66F2\u76EE\u72B6\u6001",options:[{label:"\u542F\u7528",value:!0},{label:"\u505C\u7528",value:!1}],clearable:!0},null)]}),e(h,{label:"\u4E0A\u4F20\u65F6\u95F4",path:"authorFrom"},{default:()=>[e(Ce,{value:a.searchForm.times,"onUpdate:value":o=>a.searchForm.times=o,type:"daterange",clearable:!0,"value-format":"yyyy.MM.dd",startPlaceholder:"\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u7ED3\u675F\u65F6\u95F4"},null)]}),e(h,null,{default:()=>[e(S,null,{default:()=>[e(v,{type:"primary",onClick:T},{default:()=>[b("\u641C\u7D22")]}),e(v,{type:"default",onClick:t},{default:()=>[b("\u91CD\u7F6E")]})]})]})]}),e("div",{class:["section-container"]},[e(S,{style:{paddingBottom:"12px"}},{default:()=>[N(e(v,{type:"primary",onClick:()=>{a.showAddDialog=!0}},{default:()=>[b("\u6DFB\u52A0\u66F2\u76EE")]}),[[K("auth"),"musicSheetApplicationExtend/saveBatch1751234383880126466"]]),N(e(v,{disabled:p.value.length==0,onClick:()=>{E(!1)}},{default:()=>[b("\u6279\u91CF\u505C\u7528")]}),[[K("auth"),"musicSheetApplicationExtend/status1751235279221424130"]]),N(e(v,{disabled:p.value.length==0,onClick:()=>{E(!0)}},{default:()=>[b("\u6279\u91CF\u542F\u7528")]}),[[K("auth"),"musicSheetApplicationExtend/status1751235279221424130"]])]}),e(Q,{loading:a.loading,columns:O(),data:a.dataList,rowKey:o=>o.applicationExtendId,checkedRowKeys:p.value,"onUpdate:checkedRowKeys":o=>p.value=o,scrollX:"1200"},null),e(de,{page:a.pagination.page,"onUpdate:page":o=>a.pagination.page=o,pageSize:a.pagination.rows,"onUpdate:pageSize":o=>a.pagination.rows=o,pageTotal:a.pagination.pageTotal,"onUpdate:pageTotal":o=>a.pagination.pageTotal=o,onList:w,sync:!0,saveKey:"music-sheet-gyt"},null)]),e(J,{show:a.showAddDialog,"onUpdate:show":o=>a.showAddDialog=o,preset:"dialog",showIcon:!1,title:"\u6DFB\u52A0\u66F2\u76EE",style:{width:"1300px"}},{default:()=>[e(dt,{onClose:()=>a.showAddDialog=!1,onGetList:()=>{a.pagination.page=1,w()},subjectList:a.subjectList,appId:a.appId,musicSheetCategories:a.musicSheetCategories},null)]}),e(J,{show:a.showEditDialog,"onUpdate:show":o=>a.showEditDialog=o,preset:"dialog",showIcon:!1,title:"\u4FEE\u6539\u66F2\u76EE",style:{width:"500px"}},{default:()=>[e(mt,{onClose:()=>a.showEditDialog=!1,onGetList:()=>{a.pagination.page=1,w()},rowData:a.updateRow,appId:a.appId,musicSheetCategories:a.musicSheetCategories},null)]}),e(J,{blockScroll:!0,show:a.musicPreview,"onUpdate:show":o=>a.musicPreview=o,preset:"card",showIcon:!1,title:"\u66F2\u76EE\u9884\u89C8",class:Ne.musicPreviewModal},{default:()=>[e(Me,{item:a.musicScore,scoreType:a.musicPreviewScoreType},null)]})])}}),ft=X({name:"klx-addMusic",props:{appId:{type:String,required:!0},subjectList:{type:Array,default:()=>[]},musicSheetTagList:{type:Array,default:()=>[]}},emits:["close","getList"],setup(f,{slots:P,attrs:D,emit:a}){const I=ne(),T=ee(),t=H({loading:!1,pagination:{page:1,rows:5,pageTotal:0},stepPagination:{page:1,rows:5,pageTotal:0},searchForm:{keyword:null,subjectId:null,sourceType:null,composer:null,userId:null,applicationId:null},subjectList:[],showAdd:!1,currentStep:1,dataList:[],selectRowData:[],musicSheetCategories:[],musicSheetTagList:[],useProjectData:[],userIdDisable:!0,userIdData:[],globalMusicTagIds:[],globalPaymentType:null,globalMusicPrice:null,globalAvailableType:null,globalTopFlag:null,globalExquisiteFlag:null,globalStartSortNum:null,isConvertibleScore:null,status:!1,scoreType:null});Y(()=>g(this,null,function*(){t.searchForm.keyword=null,t.searchForm.subjectId=null,t.searchForm.sourceType=null,t.searchForm.composer=null,t.searchForm.userId=null,t.searchForm.applicationId=null,t.loading=!0,t.subjectList=f.subjectList;try{const{data:l}=yield Ie({applicationId:f.appId,enable:!0});l&&l.length>0&&l.forEach(u=>{t.musicSheetTagList.push(k(x({},u),{label:u.name,value:u.id}))})}catch(l){}yield c(),yield F()}));const c=()=>g(this,null,function*(){try{const l=Object.keys(ae),{data:u}=yield fe({page:1,rows:999}),r=u.rows||[];t.useProjectData=[],r.filter(m=>l.includes(m.appKey)).forEach(m=>{t.useProjectData.push(k(x({},m),{label:m.appName,value:m.id}))})}catch(l){}}),F=()=>g(this,null,function*(){try{t.loading=!0;const l=k(x({},t.searchForm),{userId:t.searchForm.sourceType&&t.searchForm.sourceType=="PERSON"?t.searchForm.userId:null,organizationRoleId:t.searchForm.sourceType&&t.searchForm.sourceType=="ORG"?t.searchForm.userId:null}),{data:u}=yield ke(k(x(x({},t.pagination),l),{addAppId:f.appId}));t.pagination.pageTotal=Number(u.total),t.dataList=u.rows||[]}catch(l){}t.loading=!1}),R=z(),p=()=>{var l;s.value=[],(l=R.value)==null||l.submit()},w=()=>{var l;(l=R.value)==null||l.reset()},L=()=>{t.pagination.page=1,F()},E=l=>g(this,null,function*(){if(!!t.searchForm.applicationId&&(t.userIdData=[],t.searchForm.userId=null,l&&l!=="PLATFORM")){const{data:u}=yield me({page:1,rows:9999,sourceType:l,applicationId:t.searchForm.applicationId});(u.rows||[]).forEach(i=>{t.userIdData.push(k(x({},i),{label:l==="PERSON"?i.userName:i.organizationRole,value:l==="PERSON"?i.userId:i.organizationRoleId}))})}}),V=()=>g(this,null,function*(){if(t.selectRowData.length==0){T.error("\u672A\u9009\u62E9\u66F2\u76EE");return}const l=[];for(let r=0;r<t.selectRowData.length;r++){const i=t.selectRowData[r];if(!i.musicTagIds||i.musicTagIds.length==0){T.error("\u66F2\u76EE\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A");return}if(!i.paymentType){T.error("\u6536\u8D39\u65B9\u5F0F\u4E0D\u80FD\u4E3A\u7A7A");return}if(!i.paymentType.includes("CHARGE"))i.musicPrice=0;else if(i.musicPrice===null||i.musicPrice===void 0||i.musicPrice===""){T.error("\u66F2\u76EE\u4EF7\u683C\u4E0D\u80FD\u4E3A\u7A7A");return}if(typeof i.topFlag!="boolean"){T.error("\u662F\u5426\u7F6E\u9876\u4E0D\u80FD\u4E3A\u7A7A");return}if(typeof i.exquisiteFlag!="boolean"){T.error("\u662F\u5426\u7CBE\u54C1\u4E0D\u80FD\u4E3A\u7A7A");return}if(i.scoreType==null){T.error("\u9ED8\u8BA4\u8C31\u9762\u4E0D\u80FD\u4E3A\u7A7A");return}if(i.isConvertibleScore==null){T.error("\u662F\u5426\u652F\u6301\u8F6C\u8C31\u4E0D\u80FD\u4E3A\u7A7A");return}if(i.status==null){T.error("\u662F\u5426\u542F\u7528\u4E0D\u80FD\u4E3A\u7A7A");return}l.push(k(x({},i),{musicSheetId:i.id,applicationId:f.appId,paymentType:i.paymentType.join(","),musicTagIds:i.musicTagIds.join(","),id:null}))}const u=yield Re(l);u&&u.code=="200"&&(T.success("\u6DFB\u52A0\u6210\u529F"),a("getList"),a("close"))}),O=[{type:"selection"},{title:"\u66F2\u76EE\u7F16\u53F7",key:"id"},{title:"\u5C01\u9762\u56FE",key:"titleImg",render(l){return e(ce,{width:40,height:40,src:l.musicCover},null)}},{title:"\u53EF\u7528\u58F0\u90E8",key:"subjectNames",render:l=>e(M,{content:l.subjectNames},null)},{title:"\u66F2\u76EE\u540D\u79F0",key:"name"},{title:"\u97F3\u4E50\u4EBA",key:"composer"},{title:"\u66F2\u76EE\u6765\u6E90",key:"sourceType",render(l){return $(l.sourceType,new Map(Object.entries(q)))}},{title:"\u6240\u5C5E\u4EBA",key:"userName",render:l=>e(M,{content:he(l.musicSheetExtend,l.sourceType)},null)}],o=()=>O,n=()=>{const l=be(O);return l.splice(0,1),l.push({title(u){return e(S,null,{default:()=>[b("\u66F2\u76EE\u6807\u7B7E"),e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.create({title:"\u8BF7\u9009\u62E9\u66F2\u76EE\u6807\u7B7E",showIcon:!1,content:()=>C("div",{class:"flex flex-col justify-center items-center text-14px"},[C(d,{onUpdateValue(r){t.globalMusicTagIds=r},multiple:!0,clearable:!0,filterable:!0,options:t.musicSheetTagList})]),positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>{for(let r=0;r<t.selectRowData.length;r++){const i=t.selectRowData[r];i.musicTagIds=t.globalMusicTagIds}}})}},{default:()=>[e(A,{size:15,style:"padding-left: 5px;margin-top:4px"},{default:()=>[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e("path",{d:"M2 26h28v2H2z",fill:"currentColor"},null),e("path",{d:"M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z",fill:"currentColor"},null)])]})]})]})},key:"musicTagIds",width:"180px",render:u=>e(d,{placeholder:"\u8BF7\u9009\u62E9\u66F2\u76EE\u6807\u7B7E",value:u.musicTagIds,options:t.musicSheetTagList,clearable:!0,filterable:!0,multiple:!0,maxTagCount:1,onUpdateValue:r=>{u.musicTagIds=r}},null)}),l.push({title(u){return e(S,null,{default:()=>[b("\u6536\u8D39\u65B9\u5F0F"),e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.create({title:"\u8BF7\u9009\u62E9\u6536\u8D39\u65B9\u5F0F",showIcon:!1,content:()=>C("div",{class:"flex flex-col justify-center items-center text-14px"},[C(d,{value:t.globalPaymentType,onUpdateValue(r){t.globalPaymentType=r;const i="FREE";if(t.globalPaymentType[t.globalPaymentType.length-1]==i){t.globalPaymentType=[i];return}t.globalPaymentType.length>1&&t.globalPaymentType.includes(i)&&t.globalPaymentType.splice(t.globalPaymentType.indexOf(i),1)},multiple:!0,clearable:!0,options:U(we)})]),positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>{for(let r=0;r<t.selectRowData.length;r++){const i=t.selectRowData[r];i.paymentType=t.globalPaymentType,t.globalPaymentType.includes("CHARGE")||(i.musicPrice=0,i.musicPriceDisable=!0)}}})}},{default:()=>[e(A,{size:15,style:"padding-left: 5px;margin-top:4px"},{default:()=>[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e("path",{d:"M2 26h28v2H2z",fill:"currentColor"},null),e("path",{d:"M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z",fill:"currentColor"},null)])]})]})]})},key:"paymentType",width:"180px",render:u=>e(d,{placeholder:"\u8BF7\u9009\u62E9\u6536\u8D39\u65B9\u5F0F",value:u.paymentType,options:U(we),clearable:!0,multiple:!0,maxTagCount:1,"onUpdate:value":r=>{u.paymentType=r;const i="FREE";u.paymentType[u.paymentType.length-1]==i?u.paymentType=[i]:u.paymentType.length>1&&u.paymentType.includes(i)&&u.paymentType.splice(u.paymentType.indexOf(i),1),u.paymentType.includes("CHARGE")||(u.musicPrice=0)}},null)}),l.push({title(u){return e(S,null,{default:()=>[b("\u66F2\u76EE\u4EF7\u683C"),e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.create({title:"\u8BF7\u8F93\u5165\u66F2\u76EE\u4EF7\u683C",showIcon:!1,content:()=>C("div",{class:"flex flex-col justify-center items-center text-14px"},[C(_,{onUpdateValue(r){t.globalMusicPrice=r},min:0,max:9999})]),positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>{if(t.globalMusicPrice)for(let r=0;r<t.selectRowData.length;r++){const i=t.selectRowData[r];i.paymentType.includes("CHARGE")&&(i.musicPrice=t.globalMusicPrice)}}})}},{default:()=>[e(A,{size:15,style:"padding-left: 5px;margin-top:4px"},{default:()=>[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e("path",{d:"M2 26h28v2H2z",fill:"currentColor"},null),e("path",{d:"M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z",fill:"currentColor"},null)])]})]})]})},key:"musicPrice",render:u=>{var r;return C(_,{value:u.musicPrice,min:0,max:9999,disabled:!((r=u.paymentType)!=null&&r.includes("CHARGE")),onUpdateValue(i){u.musicPrice=i}})}}),l.push({title(u){return e(S,null,{default:()=>[b("\u662F\u5426\u7F6E\u9876"),e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.create({title:"\u8BF7\u9009\u62E9\u662F\u5426\u7F6E\u9876",showIcon:!1,content:()=>C("div",{class:"flex flex-col justify-center items-center text-14px"},[C(d,{onUpdateValue(r){t.globalTopFlag=r},options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]})]),positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>{for(let r=0;r<t.selectRowData.length;r++){const i=t.selectRowData[r];i.topFlag=t.globalTopFlag}}})}},{default:()=>[e(A,{size:15,style:"padding-left: 5px;margin-top:4px"},{default:()=>[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e("path",{d:"M2 26h28v2H2z",fill:"currentColor"},null),e("path",{d:"M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z",fill:"currentColor"},null)])]})]})]})},key:"topFlag",render:u=>e(d,{placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u7F6E\u9876",value:u.topFlag,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}],clearable:!0,onUpdateValue:r=>{u.topFlag=r}},null)}),l.push({title(u){return e(S,null,{default:()=>[b("\u662F\u5426\u7CBE\u54C1"),e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.create({title:"\u8BF7\u9009\u62E9\u662F\u5426\u7CBE\u54C1",showIcon:!1,content:()=>C("div",{class:"flex flex-col justify-center items-center text-14px"},[C(d,{onUpdateValue(r){t.globalExquisiteFlag=r},options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]})]),positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>{for(let r=0;r<t.selectRowData.length;r++){const i=t.selectRowData[r];i.exquisiteFlag=t.globalExquisiteFlag}}})}},{default:()=>[e(A,{size:15,style:"padding-left: 5px;margin-top:4px"},{default:()=>[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e("path",{d:"M2 26h28v2H2z",fill:"currentColor"},null),e("path",{d:"M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z",fill:"currentColor"},null)])]})]})]})},key:"exquisiteFlag",render:u=>e(d,{placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u7CBE\u54C1",value:u.exquisiteFlag,onUpdateValue:r=>{u.exquisiteFlag=r},options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}],clearable:!0},null)}),l.push({title(u){return e(S,null,{default:()=>[b("\u9ED8\u8BA4\u8C31\u9762"),e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.create({title:"\u8BF7\u9009\u62E9\u9ED8\u8BA4\u8C31\u9762",showIcon:!1,content:()=>C("div",{class:"flex flex-col justify-center items-center text-14px"},[C(d,{onUpdateValue(r){t.scoreType=r},options:U(Z)})]),positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>{for(let r=0;r<t.selectRowData.length;r++){const i=t.selectRowData[r];i.scoreType=t.scoreType}}})}},{default:()=>[e(A,{size:15,style:"padding-left: 5px;margin-top:4px"},{default:()=>[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e("path",{d:"M2 26h28v2H2z",fill:"currentColor"},null),e("path",{d:"M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z",fill:"currentColor"},null)])]})]})]})},key:"scoreType",width:200,render:u=>e(d,{placeholder:"\u8BF7\u9009\u62E9\u9ED8\u8BA4\u8C31\u9762",value:u.scoreType,options:U(Z),onUpdateValue:r=>{u.scoreType=r},clearable:!0},null)}),l.push({title(u){return e(S,null,{default:()=>[b("\u662F\u5426\u652F\u6301\u8F6C\u8C31"),e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.create({title:"\u662F\u5426\u652F\u6301\u8F6C\u8C31",showIcon:!1,content:()=>C("div",{class:"flex flex-col justify-center items-center text-14px"},[C(d,{onUpdateValue(r){t.isConvertibleScore=r},options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]})]),positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>{for(let r=0;r<t.selectRowData.length;r++){const i=t.selectRowData[r];i.isConvertibleScore=t.isConvertibleScore}}})}},{default:()=>[e(A,{size:15,style:"padding-left: 5px;margin-top:4px"},{default:()=>[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e("path",{d:"M2 26h28v2H2z",fill:"currentColor"},null),e("path",{d:"M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z",fill:"currentColor"},null)])]})]})]})},key:"isConvertibleScore",width:200,render:u=>e(d,{value:u.isConvertibleScore,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}],onUpdateValue:r=>{u.isConvertibleScore=r},filterable:!0,clearable:!0},null)}),l.push({title(u){return e(S,null,{default:()=>[b("\u662F\u5426\u542F\u7528"),e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.create({title:"\u662F\u5426\u542F\u7528",showIcon:!1,content:()=>C("div",{class:"flex flex-col justify-center items-center text-14px"},[C(d,{onUpdateValue(r){t.status=r},options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]})]),positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>{for(let r=0;r<t.selectRowData.length;r++){const i=t.selectRowData[r];i.status=t.status}}})}},{default:()=>[e(A,{size:15,style:"padding-left: 5px;margin-top:4px"},{default:()=>[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e("path",{d:"M2 26h28v2H2z",fill:"currentColor"},null),e("path",{d:"M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z",fill:"currentColor"},null)])]})]})]})},key:"status",width:200,render:u=>e(d,{value:u.status,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}],onUpdateValue:r=>{u.status=r},filterable:!0,clearable:!0},null)}),l.push({title(u){return e(S,null,{default:()=>[b("\u6392\u5E8F"),e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.create({title:"\u8BF7\u8F93\u5165\u6392\u5E8F\u8D77\u59CB\u503C",showIcon:!1,content:()=>C("div",{class:"flex flex-col justify-center items-center text-14px"},[C(_,{onUpdateValue(r){t.globalStartSortNum=r},min:0,max:9999})]),positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>{for(let r=0;r<t.selectRowData.length;r++){const i=t.selectRowData[r];i.sortNo=t.globalStartSortNum+r}}})}},{default:()=>[e(A,{size:15,style:"padding-left: 5px;margin-top:4px"},{default:()=>[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e("path",{d:"M2 26h28v2H2z",fill:"currentColor"},null),e("path",{d:"M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z",fill:"currentColor"},null)])]})]})]})},key:"sortNo",fixed:"right",width:150,render:u=>C(_,{value:u.sortNo,min:0,max:9999,onUpdateValue(r){u.sortNo=r}})}),l.push({title:"\u64CD\u4F5C",key:"operation",fixed:"right",render(u){return e(S,null,{default:()=>[e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.warning({title:"\u63D0\u793A",content:"\u662F\u5426\u5220\u9664\u8BE5\u6570\u636E\uFF1F",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>g(this,null,function*(){try{const r=t.selectRowData.findIndex(m=>{if(m.id==u.id)return!0});r>-1&&t.selectRowData.splice(r,1),s.value.findIndex(m=>{if(m==u.id)return!0})>-1&&s.value.splice(r,1)}catch(r){}})})}},{default:()=>[b("\u79FB\u9664")]})]})}}),l},s=z([]),y=l=>{s.value=l,t.dataList.forEach(u=>{s.value.includes(u.id)&&(t.selectRowData.find(i=>i.id===u.id)||t.selectRowData.push(k(x({},u),{paymentType:[],musicPriceDisable:!1})))}),t.selectRowData=t.selectRowData.filter(u=>s.value.includes(u.id))};return()=>e("div",{class:"system-menu-container"},[e(S,{vertical:!0,size:"medium"},{default:()=>[e(Se,{current:t.currentStep,style:"margin-bottom: 10px;margin-top: 10px"},{default:()=>[e(se,{title:"\u9009\u62E9\u66F2\u76EE",description:""},null),e(se,{title:"\u8BBE\u7F6E\u66F2\u76EE\u4FE1\u606F",description:""},null)]})]}),t.currentStep===1&&e("div",{class:"system-menu-container"},[e(pe,{ref:R,model:t.searchForm,onSubmit:L,saveKey:"klx-addMusic",onSetModel:l=>t.searchForm=l},{default:()=>[e(h,{label:"\u5173\u952E\u8BCD",path:"keyword"},{default:()=>[e(W,{value:t.searchForm.keyword,"onUpdate:value":l=>t.searchForm.keyword=l,placeholder:"\u8BF7\u8F93\u5165\u66F2\u76EE\u540D\u79F0/\u7F16\u53F7",clearable:!0},null)]}),e(h,{label:"\u53EF\u7528\u58F0\u90E8",path:"musicSubject"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u53EF\u7528\u58F0\u90E8",value:t.searchForm.subjectId,"onUpdate:value":l=>t.searchForm.subjectId=l,options:t.subjectList,clearable:!0,filterable:!0},null)]}),e(h,{label:"\u97F3\u4E50\u4EBA",path:"composer"},{default:()=>[e(W,{placeholder:"\u8BF7\u9009\u62E9\u97F3\u4E50\u4EBA",value:t.searchForm.composer,"onUpdate:value":l=>t.searchForm.composer=l,clearable:!0},null)]}),e(h,{label:"\u66F2\u76EE\u6765\u6E90",path:"sourceType"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u66F2\u76EE\u6765\u6E90",value:t.searchForm.sourceType,"onUpdate:value":l=>t.searchForm.sourceType=l,options:U(q),onUpdateValue:l=>g(this,null,function*(){t.userIdData=[],t.searchForm.userId=null,l&&l!=="PLATFORM"?(yield E(l),t.userIdDisable=!1):t.userIdDisable=!0}),clearable:!0},null)]}),e(h,{label:"\u6240\u5C5E\u9879\u76EE",path:"applicationId"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u9879\u76EE",value:t.searchForm.applicationId,"onUpdate:value":l=>t.searchForm.applicationId=l,options:t.useProjectData,clearable:!0,onUpdateValue:l=>g(this,null,function*(){t.searchForm.applicationId=l,l?(yield E(t.searchForm.sourceType),t.userIdDisable=!(t.searchForm.sourceType&&t.searchForm.sourceType!=="PLATFORM")):(t.searchForm.userId=null,t.userIdDisable=!0,t.userIdData=[])})},null)]}),e(h,{label:"\u6240\u5C5E\u4EBA",path:"author"},{default:()=>[e(d,{filterable:!0,placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u4EBA",disabled:t.userIdDisable||!t.searchForm.applicationId&&!t.searchForm.sourceType,value:t.searchForm.userId,"onUpdate:value":l=>t.searchForm.userId=l,options:t.userIdData,clearable:!0},null)]}),e(h,null,{default:()=>[e(S,null,{default:()=>[e(v,{type:"primary",onClick:p},{default:()=>[b("\u641C\u7D22")]}),e(v,{type:"default",onClick:w},{default:()=>[b("\u91CD\u7F6E")]})]})]})]}),e("p",{style:{paddingBottom:"12px"}},[b("\u4F60\u9009\u62E9\u4E86"),e("span",{style:"color:red;padding:0 8px"},[t.selectRowData.length]),b("\u6761\u66F2\u76EE")]),e(Q,{loading:t.loading,columns:o(),data:t.dataList,rowKey:l=>l.id,onUpdateCheckedRowKeys:y,checkedRowKeys:s.value,"onUpdate:checkedRowKeys":l=>s.value=l},null),e(de,{page:t.pagination.page,"onUpdate:page":l=>t.pagination.page=l,pageSize:t.pagination.rows,"onUpdate:pageSize":l=>t.pagination.rows=l,pageTotal:t.pagination.pageTotal,"onUpdate:pageTotal":l=>t.pagination.pageTotal=l,onList:F,sync:!0,saveKey:"klx-addMusic"},null)]),t.currentStep===2&&e("div",{class:"system-menu-container",style:"margin-top: 15px;"},[e(Q,{loading:t.loading,columns:n(),data:t.selectRowData,rowKey:l=>l.id,maxHeight:500,scrollX:2500},null)]),e(S,{justify:"end",style:"margin-top:10px"},{default:()=>[e(v,{type:"default",onClick:()=>{t.currentStep>1?t.currentStep=t.currentStep-1:a("close")}},{default:()=>[t.currentStep===1?"\u53D6\u6D88":"\u4E0A\u4E00\u6B65"]}),e(v,{type:"primary",onClick:()=>{if(t.currentStep<2){if(t.selectRowData.length==0){T.warning("\u8BF7\u9009\u62E9\u66F2\u76EE");return}t.currentStep=t.currentStep+1}else V()}},{default:()=>[t.currentStep===2?"\u786E\u5B9A":"\u4E0B\u4E00\u6B65"]})]})])}}),gt=X({name:"project-music-cooleshow-edu-updateMusic",props:{appId:{type:String,required:!0},rowData:{type:Object,required:!0},musicSheetTagList:{type:Array,default:()=>[]}},emits:["close","getList"],setup(f,{slots:P,attrs:D,emit:a}){const I=ee(),T=z(!1),t=H({musicTagIds:[],sortNo:null,paymentType:[],musicPrice:null,availableType:null,topFlag:null,exquisiteFlag:null,isConvertibleScore:null,status:null,scoreType:null}),c=z(),F=H({rowData:null,musicSheetTagList:[]});Y(()=>g(this,null,function*(){var w,L;F.rowData=f.rowData,F.musicSheetTagList=f.musicSheetTagList,F.musicSheetTagList.map(E=>{E.disabled=!E.enable});const{data:p}=yield Le({musicSheetId:F.rowData.id,applicationId:f.appId});if(!p){I.error("\u52A0\u8F7D\u5E94\u7528\u5931\u8D25");return}t.musicTagIds=(w=p[0].musicTagIds)==null?void 0:w.split(","),t.sortNo=p[0].sortNo,t.paymentType=(L=p[0].paymentType)==null?void 0:L.split(","),t.musicPrice=p[0].musicPrice,t.availableType=p[0].availableType,t.topFlag=p[0].topFlag,t.exquisiteFlag=p[0].exquisiteFlag,t.isConvertibleScore=p[0].isConvertibleScore,t.scoreType=p[0].scoreType,t.status=p[0].status}));const R=()=>g(this,null,function*(){c.value.validate(p=>g(this,null,function*(){if(p)return!1;T.value=!0;try{const w=yield Pe(k(x({},t),{musicSheetId:F.rowData.id,musicTagIds:t.musicTagIds.join(","),paymentType:t.paymentType.join(","),applicationId:f.appId}));w&&w.code===200&&(a("close"),a("getList"))}catch(w){}T.value=!1}))});return()=>e("div",{style:"background: #fff; padding-top: 12px"},[e(xe,{ref:c,labelPlacement:"top",model:t,"label-placement":"left","label-width":"auto"},{default:()=>[e(h,{label:"\u66F2\u76EE\u6807\u7B7E",path:"musicTagIds",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u66F2\u76EE\u6807\u7B7E"}]},{default:()=>[e(d,{multiple:!0,placeholder:"\u8BF7\u9009\u62E9\u66F2\u76EE\u6807\u7B7E",options:F.musicSheetTagList,value:t.musicTagIds,"onUpdate:value":p=>t.musicTagIds=p,clearable:!0},null)]}),e(h,{label:"\u6536\u8D39\u65B9\u5F0F",path:"paymentType",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u6536\u8D39\u65B9\u5F0F"}]},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u6536\u8D39\u65B9\u5F0F",options:U(we),value:t.paymentType,"onUpdate:value":[p=>t.paymentType=p,()=>{const p="FREE";t.paymentType[t.paymentType.length-1]==p?t.paymentType=[p]:t.paymentType.length>1&&t.paymentType.includes(p)&&t.paymentType.splice(t.paymentType.indexOf(p),1),t.paymentType.includes("CHARGE")||(t.musicPrice=0)}],multiple:!0,clearable:!0},null)]}),t.paymentType.includes("CHARGE")&&e(h,{label:"\u66F2\u76EE\u4EF7\u683C",path:"musicPrice",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u66F2\u76EE\u4EF7\u683C"}]},{default:()=>[e(_,{style:"width:100%",placeholder:"\u8BF7\u8F93\u5165\u66F2\u76EE\u4EF7\u683C",value:t.musicPrice,"onUpdate:value":p=>t.musicPrice=p,clearable:!0},null)]}),e(h,{label:"\u53EF\u7528\u9014\u5F84",path:"availableType",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u53EF\u7528\u9014\u5F84"}]},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u53EF\u7528\u9014\u5F84",options:U(qe),value:t.availableType,"onUpdate:value":p=>t.availableType=p,clearable:!0},null)]}),e(h,{label:"\u662F\u5426\u7F6E\u9876",path:"topFlag",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u7F6E\u9876"}]},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u7F6E\u9876",options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}],value:t.topFlag,"onUpdate:value":p=>t.topFlag=p,clearable:!0},null)]}),e(h,{label:"\u662F\u5426\u7CBE\u54C1",path:"exquisiteFlag",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u7CBE\u54C1"}]},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u7CBE\u54C1",options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}],value:t.exquisiteFlag,"onUpdate:value":p=>t.exquisiteFlag=p,clearable:!0},null)]}),e(h,{label:"\u9ED8\u8BA4\u8C31\u9762",path:"scoreType",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u9ED8\u8BA4\u8C31\u9762"}]},{default:()=>[e(d,{value:t.scoreType,"onUpdate:value":p=>t.scoreType=p,placeholder:"\u8BF7\u9009\u62E9\u9ED8\u8BA4\u8C31\u9762",options:U(Z),clearable:!0},null)]}),e(h,{label:"\u652F\u6301\u8F6C\u8C31",path:"isConvertibleScore",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u652F\u6301\u8F6C\u8C31",trigger:["input","blur"],type:"boolean"}]},{default:()=>[e(d,{value:t.isConvertibleScore,"onUpdate:value":p=>t.isConvertibleScore=p,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}],placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u652F\u6301\u8F6C\u8C31",onUpdateValue:p=>g(this,null,function*(){}),clearable:!0},null)]}),e(h,{label:"\u662F\u5426\u542F\u7528",path:"status",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u542F\u7528"}]},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u542F\u7528",options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}],value:t.status,"onUpdate:value":p=>t.status=p,clearable:!0},null)]}),e(h,{label:"\u6392\u5E8F\u503C",path:"sortNo"},{default:()=>[e(_,{value:t.sortNo,"onUpdate:value":p=>t.sortNo=p,placeholder:"\u8BF7\u8F93\u5165\u6392\u5E8F\u503C",clearable:!0,min:0,max:9999,style:{width:"100%"}},null)]})]}),e(S,{justify:"end"},{default:()=>[e(v,{onClick:()=>a("close")},{default:()=>[b("\u53D6\u6D88")]}),e(v,{type:"primary",onClick:R,loading:T.value,disabled:T.value},{default:()=>[b("\u4FDD\u5B58")]})]})])}});function vt(f){return typeof f=="function"||Object.prototype.toString.call(f)==="[object Object]"&&!De(f)}const bt=X({name:"music-sheet-KLX",props:{appKey:{type:String,default:"KLX"}},setup(f){const P=ne(),D=ee(),a=H({loading:!1,appId:null,pagination:{page:1,rows:10,pageTotal:0},searchForm:{keyword:null,subjectId:null,subjectIds:null,clientStatus:null,status:null,sourceType:null,paymentType:null,userId:null,musicCategoryId:null,times:null,audioType:null,exquisiteFlag:null,topFlag:null,availableType:null,appAuditFlag:null,detailFlag:null,musicTagIds:[],applicationId:null,extendApplicationId:null},subjectList:[],dataList:[],showAddDialog:!1,showEditDialog:!1,userIdDisable:!0,userIdData:[],updateRow:{},musicTagList:[],applicationId:null,musicPreview:!1,musicPreviewScoreType:"staff",musicScore:null,useProjectData:[]});Y(()=>g(this,null,function*(){a.loading=!0;try{const{data:n}=yield ge({page:1,rows:1,appKey:f.appKey}),s=n.rows||[];if(!s||s.length==0){a.loading=!1,D.error("\u52A0\u8F7D\u9879\u76EE\u4FE1\u606F\u5931\u8D25");return}a.appId=s[0].id,a.applicationId=s[0].id}catch(n){}try{const{data:n}=yield ze({applicationId:a.applicationId}),s=n||[];s.forEach(y=>{y.label=y.subjectName,y.value=y.subjectId}),a.subjectList=s}catch(n){}try{const{data:n}=yield Ie({applicationId:a.appId});n&&n.length>0&&n.forEach(s=>{a.musicTagList.push(k(x({},s),{label:s.name,value:s.id}))})}catch(n){}F(),p()}));const I=z(),T=()=>{var n;R.value=[],(n=I.value)==null||n.submit()},t=()=>{var n;(n=I.value)==null||n.reset()},c=()=>{a.pagination.page=1,p()},F=()=>g(this,null,function*(){try{const n=Object.keys(ae),{data:s}=yield ge({page:1,rows:999}),y=s.rows||[];a.useProjectData=[],y.filter(u=>n.includes(u.appKey)).forEach(u=>{a.useProjectData.push(k(x({},u),{label:u.appName,value:u.id}))})}catch(n){}}),R=z([]),p=()=>g(this,null,function*(){var n;try{a.loading=!0;const s=a.searchForm.sourceType;let y=a.searchForm.userId,l=null;s&&s==="ORG"&&(l=be(y),y=null);const{data:u}=yield je(k(x(k(x(x({},a.pagination),a.searchForm),{userId:s&&s==="PERSON"?a.searchForm.userId:null,organizationRoleId:s&&s==="ORG"?a.searchForm.userId:null,musicTagIds:(n=a.searchForm.musicTagIds)==null?void 0:n.join(",")}),Ae(a.searchForm.times,["startTime","endTime"])),{applicationId:a.applicationId}));a.pagination.pageTotal=Number(u.total),a.dataList=u.rows||[]}catch(s){}a.loading=!1}),w=n=>{const s=n.clientStatus?"\u505C\u7528":"\u542F\u7528";P.warning({title:"\u63D0\u793A",content:`\u662F\u5426${s}\uFF1F`,positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>g(this,null,function*(){try{yield ie({ids:n.applicationExtendId,status:!n.clientStatus}),p(),D.success(`${s}\u6210\u529F`)}catch(y){}})})},L=n=>{const s=R.value.length;s==0&&D.warning("\u672A\u9009\u62E9\u6570\u636E");const y=n?"\u542F\u7528":"\u505C\u7528";P.warning({title:"\u63D0\u793A",content:`\u662F\u5426${y}`+s+"\u6761\u6570\u636E\uFF1F",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>g(this,null,function*(){try{yield ie({ids:R.value.join(","),status:n}),p(),D.success(`${y}\u6210\u529F`)}catch(l){}})})},E=n=>{const s=[];if(n&&n.length>0)for(let y=0;y<n.length;y++){const l=$(n[y],new Map(Object.entries(we)));s.push(l)}return s.join(",")},V=n=>g(this,null,function*(){if(!!a.searchForm.extendApplicationId&&(a.userIdData=[],a.searchForm.userId=null,n&&n!=="PLATFORM")){const{data:s}=yield me({page:1,rows:9999,sourceType:n,applicationId:a.searchForm.extendApplicationId});(s.rows||[]).forEach(l=>{a.userIdData.push(k(x({},l),{label:n==="PERSON"?l.userName:l.organizationRole,value:n==="PERSON"?l.userId:l.organizationRoleId}))})}}),O=n=>{P.warning({title:"\u63D0\u793A",content:"\u5220\u9664\u66F2\u76EE\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>g(this,null,function*(){try{yield Ue(n.applicationExtendId),p(),D.success("\u5220\u9664\u6210\u529F")}catch(s){}})})},o=()=>[{type:"selection"},{title:"\u66F2\u76EE\u540D\u79F0",key:"id",render:n=>e(oe,null,[e(re,{labelPlacement:"left",column:1},{default:()=>[e(B,{label:"\u66F2\u76EE\u540D\u79F0"},{default:()=>[e(M,{content:n.name},null)," "]}),e(B,{label:"\u66F2\u76EE\u7F16\u53F7"},{default:()=>[e("div",{onDblclick:()=>{Ee(D,n.id)}},[e(M,{content:n.id},null)])]})]})])},{title:"\u5C01\u9762\u56FE",key:"musicCover",render(n){return e(ce,{width:60,height:60,src:n.musicCover},null)}},{title:"\u66F2\u76EE\u4FE1\u606F",key:"musicSheetCategoriesName",render:n=>{let s;return e(oe,null,[e(re,{labelPlacement:"left",column:1},{default:()=>[e(B,{label:"\u66F2\u76EE\u6765\u6E90"},vt(s=$(n.sourceType,new Map(Object.entries(q))))?s:{default:()=>[s]}),e(B,{label:"\u6240\u5C5E\u4EBA"},{default:()=>[e(M,{content:he(n.musicSheetExtend,n.sourceType)},null)]}),e(B,{label:"\u53EF\u7528\u58F0\u90E8"},{default:()=>[e(M,{content:n.subjectNames},null)]})]})])}},{title:"\u4F34\u594F\u7C7B\u578B",key:"audioType",render:n=>e("div",null,[$(n.audioType,new Map(Object.entries(ue)))])},{title:"\u66F2\u76EE\u6807\u7B7E",key:"musicTagNames"},{title:"\u53EF\u7528\u9014\u5F84",key:"applicationAvailableType",render:n=>e("div",null,[$(n.applicationAvailableType,new Map(Object.entries(qe)))])},{title:"\u662F\u5426\u7F6E\u9876",key:"topFlag",render:n=>e("div",null,[n.topFlag?"\u662F":"\u5426"])},{title:"\u662F\u5426\u7CBE\u54C1",key:"exquisiteFlag",render:n=>e("div",null,[n.topFlag?"\u662F":"\u5426"])},{title:"\u6536\u8D39\u65B9\u5F0F",key:"paymentType",render:n=>{var s;return e("div",null,[E((s=n.paymentType)==null?void 0:s.split(","))])}},{title:"\u66F2\u76EE\u4EF7\u683C",key:"musicPrice"},{title:"\u4E0A\u4F20\u65F6\u95F4",minWidth:"150px",key:"composer",render(n){return n.createTime}},{title:"\u4E1A\u52A1\u66F2\u76EE\u72B6\u6001",key:"clientStatus",render(n){return e(te,{type:n.clientStatus?"primary":"default"},{default:()=>[n.clientStatus?"\u542F\u7528":"\u505C\u7528"]})}},{title:"\u5E73\u53F0\u66F2\u76EE\u72B6\u6001",key:"status",render(n){return e(te,{type:n.status?"primary":"default"},{default:()=>[n.status?"\u542F\u7528":"\u505C\u7528"]})}},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",render(n){return e(S,null,{default:()=>[e(v,{type:"primary",size:"small",text:!0,onClick:()=>{if(a.musicPreview=!0,a.musicScore=n,n.scoreType=="STAVE")a.musicPreviewScoreType="staff";else if(n.scoreType=="JIAN")a.musicPreviewScoreType="fixedTone";else if(n.scoreType=="FIRST")a.musicPreviewScoreType="firstTone";else return}},{default:()=>[b("\u9884\u89C8")]}),N(e(v,{type:"primary",size:"small",text:!0,onClick:()=>w(n)},{default:()=>[n.clientStatus?"\u505C\u7528":"\u542F\u7528"]}),[[K("auth"),"musicSheetApplicationExtend/status1751229794627878914"]]),N(e(v,{type:"primary",size:"small",text:!0,onClick:()=>{a.showEditDialog=!0,a.updateRow=n}},{default:()=>[b("\u4FEE\u6539")]}),[[K("auth"),"musicSheetApplicationExtend/update1751235573456044033"]]),N(e(v,{type:"primary",size:"small",text:!0,disabled:!!n.clientStatus,onClick:()=>O(n)},{default:()=>[b("\u5220\u9664")]}),[[K("auth"),"musicSheetApplicationExtend/del1770708473623916546"]])]})}}];return()=>e("div",{class:"system-menu-container"},[e(pe,{ref:I,model:a.searchForm,onSubmit:c,saveKey:"music-sheet-klx",onSetModel:n=>a.searchForm=n},{default:()=>[e(h,{label:"\u5173\u952E\u8BCD",path:"keyword"},{default:()=>[e(W,{placeholder:"\u8BF7\u8F93\u5165\u66F2\u76EE\u540D\u79F0/\u7F16\u53F7",value:a.searchForm.keyword,"onUpdate:value":n=>a.searchForm.keyword=n,clearable:!0},null)]}),e(h,{label:"\u66F2\u76EE\u6765\u6E90",path:"sourceType"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u66F2\u76EE\u6765\u6E90",value:a.searchForm.sourceType,"onUpdate:value":n=>a.searchForm.sourceType=n,options:U(q),onUpdateValue:n=>g(this,null,function*(){a.userIdData=[],a.searchForm.userId=null,n&&n!=="PLATFORM"?(yield V(n),a.userIdDisable=!a.searchForm.extendApplicationId):a.userIdDisable=!0}),clearable:!0},null)]}),e(h,{label:"\u6240\u5C5E\u9879\u76EE",path:"applicationId"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u9879\u76EE",value:a.searchForm.extendApplicationId,"onUpdate:value":n=>a.searchForm.extendApplicationId=n,options:a.useProjectData,clearable:!0,onUpdateValue:n=>g(this,null,function*(){a.searchForm.extendApplicationId=n,n?(yield V(a.searchForm.sourceType),a.userIdDisable=!(a.searchForm.sourceType&&a.searchForm.sourceType!=="PLATFORM")):(a.searchForm.userId=null,a.userIdDisable=!0,a.userIdData=[])})},null)]}),e(h,{label:"\u6240\u5C5E\u4EBA",path:"userId"},{default:()=>[e(d,{filterable:!0,placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u4EBA",disabled:a.userIdDisable,value:a.searchForm.userId,"onUpdate:value":n=>a.searchForm.userId=n,options:a.userIdData,clearable:!0},null)]}),e(h,{label:"\u4F34\u594F\u7C7B\u578B",path:"audioType"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u4F34\u594F\u7C7B\u578B",value:a.searchForm.audioType,"onUpdate:value":n=>a.searchForm.audioType=n,options:U(ue),clearable:!0},null)]}),e(h,{label:"\u53EF\u7528\u58F0\u90E8",path:"subjectId"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u53EF\u7528\u58F0\u90E8",value:a.searchForm.subjectId,"onUpdate:value":n=>a.searchForm.subjectId=n,options:a.subjectList,clearable:!0,filterable:!0},null)]}),e(h,{label:"\u66F2\u76EE\u6807\u7B7E",path:"musicTagIds"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u66F2\u76EE\u6807\u7B7E",value:a.searchForm.musicTagIds,"onUpdate:value":n=>a.searchForm.musicTagIds=n,options:a.musicTagList,multiple:!0,maxTagCount:2,clearable:!0,filterable:!0},null)]}),e(h,{label:"\u6536\u8D39\u65B9\u5F0F",path:"paymentType"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u6536\u8D39\u65B9\u5F0F",value:a.searchForm.paymentType,"onUpdate:value":n=>a.searchForm.paymentType=n,options:U(we),clearable:!0},null)]}),e(h,{label:"\u4E1A\u52A1\u66F2\u76EE\u72B6\u6001",path:"clientStatus"},{default:()=>[e(d,{value:a.searchForm.clientStatus,"onUpdate:value":n=>a.searchForm.clientStatus=n,placeholder:"\u8BF7\u9009\u62E9\u4E1A\u52A1\u66F2\u76EE\u72B6\u6001",options:[{label:"\u542F\u7528",value:!0},{label:"\u505C\u7528",value:!1}],clearable:!0},null)]}),e(h,{label:"\u5E73\u53F0\u66F2\u76EE\u72B6\u6001",path:"status"},{default:()=>[e(d,{value:a.searchForm.status,"onUpdate:value":n=>a.searchForm.status=n,placeholder:"\u8BF7\u9009\u62E9\u5E73\u53F0\u66F2\u76EE\u72B6\u6001",options:[{label:"\u542F\u7528",value:!0},{label:"\u505C\u7528",value:!1}],clearable:!0},null)]}),e(h,{label:"\u4E0A\u4F20\u65F6\u95F4",path:"authorFrom"},{default:()=>[e(Ce,{value:a.searchForm.times,"onUpdate:value":n=>a.searchForm.times=n,type:"daterange",clearable:!0,"value-format":"yyyy.MM.dd",startPlaceholder:"\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u7ED3\u675F\u65F6\u95F4"},null)]}),e(h,null,{default:()=>[e(S,null,{default:()=>[e(v,{type:"primary",onClick:T},{default:()=>[b("\u641C\u7D22")]}),e(v,{type:"default",onClick:t},{default:()=>[b("\u91CD\u7F6E")]})]})]})]}),e("div",{class:["section-container"]},[e(S,{style:{paddingBottom:"12px"}},{default:()=>[N(e(v,{type:"primary",onClick:()=>{a.showAddDialog=!0}},{default:()=>[b("\u6DFB\u52A0\u66F2\u76EE")]}),[[K("auth"),"musicSheetApplicationExtend/saveBatch1751227277370195969"]]),N(e(v,{disabled:R.value.length==0,onClick:()=>{L(!1)}},{default:()=>[b("\u6279\u91CF\u505C\u7528")]}),[[K("auth"),"musicSheetApplicationExtend/status1751229794627878914"]]),N(e(v,{disabled:R.value.length==0,onClick:()=>{L(!0)}},{default:()=>[b("\u6279\u91CF\u542F\u7528")]}),[[K("auth"),"musicSheetApplicationExtend/status1751229794627878914"]])]}),e(Q,{loading:a.loading,columns:o(),data:a.dataList,rowKey:n=>n.applicationExtendId,checkedRowKeys:R.value,"onUpdate:checkedRowKeys":n=>R.value=n,scrollX:"2000"},null),e(de,{page:a.pagination.page,"onUpdate:page":n=>a.pagination.page=n,pageSize:a.pagination.rows,"onUpdate:pageSize":n=>a.pagination.rows=n,pageTotal:a.pagination.pageTotal,"onUpdate:pageTotal":n=>a.pagination.pageTotal=n,onList:p,sync:!0,saveKey:"music-sheet-klx"},null)]),e(J,{show:a.showAddDialog,"onUpdate:show":n=>a.showAddDialog=n,preset:"dialog",showIcon:!1,title:"\u6DFB\u52A0\u66F2\u76EE",style:{width:"1300px"}},{default:()=>[e(ft,{onClose:()=>a.showAddDialog=!1,onGetList:c,subjectList:a.subjectList,appId:a.appId,musicSheetTagList:a.musicTagList},null)]}),e(J,{show:a.showEditDialog,"onUpdate:show":n=>a.showEditDialog=n,preset:"dialog",showIcon:!1,title:"\u4FEE\u6539\u66F2\u76EE",style:{width:"500px"}},{default:()=>[e(gt,{onClose:()=>a.showEditDialog=!1,onGetList:()=>{a.pagination.page=1,p()},rowData:a.updateRow,appId:a.appId,musicSheetTagList:a.musicTagList},null)]}),e(J,{blockScroll:!0,show:a.musicPreview,"onUpdate:show":n=>a.musicPreview=n,preset:"card",showIcon:!1,title:"\u66F2\u76EE\u9884\u89C8",class:Ne.musicPreviewModal},{default:()=>[e(Me,{item:a.musicScore,scoreType:a.musicPreviewScoreType},null)]})])}}),wt=X({name:"klx-addMusic",props:{appId:{type:String,required:!0},subjectList:{type:Array,default:()=>[]},musicSheetTagList:{type:Array,default:()=>[]}},emits:["close","getList"],setup(f,{slots:P,attrs:D,emit:a}){const I=ne(),T=ee(),t=H({loading:!1,pagination:{page:1,rows:5,pageTotal:0},stepPagination:{page:1,rows:5,pageTotal:0},searchForm:{keyword:null,subjectId:null,sourceType:null,composer:null,userId:null,applicationId:null},subjectList:[],showAdd:!1,currentStep:1,dataList:[],selectRowData:[],musicSheetCategories:[],musicSheetTagList:[],useProjectData:[],userIdDisable:!0,userIdData:[],globalStartSortNum:null,status:!1,isConvertibleScore:null,scoreType:null});Y(()=>g(this,null,function*(){t.searchForm.keyword=null,t.searchForm.subjectId=null,t.searchForm.sourceType=null,t.searchForm.composer=null,t.searchForm.userId=null,t.searchForm.applicationId=null,t.loading=!0,t.subjectList=f.subjectList;try{const{data:l}=yield Ie({applicationId:f.appId,enable:!0});l&&l.length>0&&l.forEach(u=>{t.musicSheetTagList.push(k(x({},u),{label:u.name,value:u.id}))})}catch(l){}yield c(),yield F()}));const c=()=>g(this,null,function*(){try{const l=Object.keys(ae),{data:u}=yield fe({page:1,rows:999}),r=u.rows||[];t.useProjectData=[],r.filter(m=>l.includes(m.appKey)).forEach(m=>{t.useProjectData.push(k(x({},m),{label:m.appName,value:m.id}))})}catch(l){}}),F=()=>g(this,null,function*(){try{t.loading=!0;const l=k(x({},t.searchForm),{userId:t.searchForm.sourceType&&t.searchForm.sourceType=="PERSON"?t.searchForm.userId:null,organizationRoleId:t.searchForm.sourceType&&t.searchForm.sourceType=="ORG"?t.searchForm.userId:null}),{data:u}=yield ke(k(x(x({},t.pagination),l),{addAppId:f.appId}));t.pagination.pageTotal=Number(u.total),t.dataList=u.rows||[]}catch(l){}t.loading=!1}),R=z(),p=()=>{var l;s.value=[],(l=R.value)==null||l.submit()},w=()=>{var l;(l=R.value)==null||l.reset()},L=()=>{t.pagination.page=1,F()},E=l=>g(this,null,function*(){if(!!t.searchForm.applicationId&&(t.userIdData=[],t.searchForm.userId=null,l&&l!=="PLATFORM")){const{data:u}=yield me({page:1,rows:9999,sourceType:l,applicationId:t.searchForm.applicationId});(u.rows||[]).forEach(i=>{t.userIdData.push(k(x({},i),{label:l==="PERSON"?i.userName:i.organizationRole,value:l==="PERSON"?i.userId:i.organizationRoleId}))})}}),V=()=>g(this,null,function*(){if(t.selectRowData.length==0){T.error("\u672A\u9009\u62E9\u66F2\u76EE");return}const l=[];for(let r=0;r<t.selectRowData.length;r++){const i=t.selectRowData[r];if(i.scoreType==null){T.error("\u9ED8\u8BA4\u8C31\u9762\u4E0D\u80FD\u4E3A\u7A7A");return}if(i.isConvertibleScore==null){T.error("\u662F\u5426\u652F\u6301\u8F6C\u8C31\u4E0D\u80FD\u4E3A\u7A7A");return}l.push(k(x({},i),{musicSheetId:i.id,applicationId:f.appId,id:null}))}const u=yield Re(l);u&&u.code=="200"&&(T.success("\u6DFB\u52A0\u6210\u529F"),a("getList"),a("close"))}),O=[{type:"selection"},{title:"\u66F2\u76EE\u7F16\u53F7",key:"id"},{title:"\u5C01\u9762\u56FE",key:"titleImg",render(l){return e(ce,{width:40,height:40,src:l.musicCover},null)}},{title:"\u53EF\u7528\u58F0\u90E8",key:"subjectNames",render:l=>e(M,{content:l.subjectNames},null)},{title:"\u66F2\u76EE\u540D\u79F0",key:"name"},{title:"\u97F3\u4E50\u4EBA",key:"composer"},{title:"\u66F2\u76EE\u6765\u6E90",key:"sourceType",render(l){return $(l.sourceType,new Map(Object.entries(q)))}},{title:"\u6240\u5C5E\u4EBA",key:"userName",render:l=>e(M,{content:he(l.musicSheetExtend,l.sourceType)},null)}],o=()=>O,n=()=>{const l=be(O);return l.splice(0,1),l.push({title(u){return e(S,null,{default:()=>[b("\u9ED8\u8BA4\u8C31\u9762"),e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.create({title:"\u8BF7\u9009\u62E9\u9ED8\u8BA4\u8C31\u9762",showIcon:!1,content:()=>C("div",{class:"flex flex-col justify-center items-center text-14px"},[C(d,{onUpdateValue(r){t.scoreType=r},options:U(Z)})]),positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>{for(let r=0;r<t.selectRowData.length;r++){const i=t.selectRowData[r];i.scoreType=t.scoreType}}})}},{default:()=>[e(A,{size:15,style:"padding-left: 5px;margin-top:4px"},{default:()=>[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e("path",{d:"M2 26h28v2H2z",fill:"currentColor"},null),e("path",{d:"M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z",fill:"currentColor"},null)])]})]})]})},key:"scoreType",width:200,render:u=>e(d,{placeholder:"\u8BF7\u9009\u62E9\u9ED8\u8BA4\u8C31\u9762",value:u.scoreType,options:U(Z),onUpdateValue:r=>{u.scoreType=r},clearable:!0},null)}),l.push({title(u){return e(S,null,{default:()=>[b("\u662F\u5426\u652F\u6301\u8F6C\u8C31"),e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.create({title:"\u662F\u5426\u652F\u6301\u8F6C\u8C31",showIcon:!1,content:()=>C("div",{class:"flex flex-col justify-center items-center text-14px"},[C(d,{onUpdateValue(r){t.isConvertibleScore=r},options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]})]),positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>{for(let r=0;r<t.selectRowData.length;r++){const i=t.selectRowData[r];i.isConvertibleScore=t.isConvertibleScore}}})}},{default:()=>[e(A,{size:15,style:"padding-left: 5px;margin-top:4px"},{default:()=>[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e("path",{d:"M2 26h28v2H2z",fill:"currentColor"},null),e("path",{d:"M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z",fill:"currentColor"},null)])]})]})]})},key:"isConvertibleScore",width:200,render:u=>e(d,{value:u.isConvertibleScore,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}],onUpdateValue:r=>{u.isConvertibleScore=r},filterable:!0,clearable:!0},null)}),l.push({title(u){return e(S,null,{default:()=>[b("\u662F\u5426\u542F\u7528"),e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.create({title:"\u662F\u5426\u542F\u7528",showIcon:!1,content:()=>C("div",{class:"flex flex-col justify-center items-center text-14px"},[C(d,{onUpdateValue(r){t.status=r},options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]})]),positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>{for(let r=0;r<t.selectRowData.length;r++){const i=t.selectRowData[r];i.status=t.status}}})}},{default:()=>[e(A,{size:15,style:"padding-left: 5px;margin-top:4px"},{default:()=>[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e("path",{d:"M2 26h28v2H2z",fill:"currentColor"},null),e("path",{d:"M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z",fill:"currentColor"},null)])]})]})]})},key:"status",width:200,render:u=>e(d,{value:u.status,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}],onUpdateValue:r=>{u.status=r},filterable:!0,clearable:!0},null)}),l.push({title(u){return e(S,null,{default:()=>[b("\u6392\u5E8F"),e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.create({title:"\u8BF7\u8F93\u5165\u6392\u5E8F\u8D77\u59CB\u503C",showIcon:!1,content:()=>C("div",{class:"flex flex-col justify-center items-center text-14px"},[C(_,{onUpdateValue(r){t.globalStartSortNum=r},min:0,max:9999})]),positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>{for(let r=0;r<t.selectRowData.length;r++){const i=t.selectRowData[r];i.sortNo=t.globalStartSortNum+r}}})}},{default:()=>[e(A,{size:15,style:"padding-left: 5px;margin-top:4px"},{default:()=>[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e("path",{d:"M2 26h28v2H2z",fill:"currentColor"},null),e("path",{d:"M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z",fill:"currentColor"},null)])]})]})]})},key:"sortNo",fixed:"right",width:150,render:u=>C(_,{value:u.sortNo,min:0,max:9999,onUpdateValue(r){u.sortNo=r}})}),l.push({title:"\u64CD\u4F5C",key:"operation",fixed:"right",render(u){return e(S,null,{default:()=>[e(v,{type:"primary",size:"small",text:!0,onClick:()=>{I.warning({title:"\u63D0\u793A",content:"\u662F\u5426\u5220\u9664\u8BE5\u6570\u636E\uFF1F",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>g(this,null,function*(){try{const r=t.selectRowData.findIndex(m=>{if(m.id==u.id)return!0});r>-1&&t.selectRowData.splice(r,1),s.value.findIndex(m=>{if(m==u.id)return!0})>-1&&s.value.splice(r,1)}catch(r){}})})}},{default:()=>[b("\u79FB\u9664")]})]})}}),l},s=z([]),y=l=>{s.value=l,t.dataList.forEach(u=>{s.value.includes(u.id)&&(t.selectRowData.find(i=>i.id===u.id)||t.selectRowData.push(k(x({},u),{status:!1,paymentType:[],musicPriceDisable:!1})))}),t.selectRowData=t.selectRowData.filter(u=>s.value.includes(u.id))};return()=>e("div",{class:"system-menu-container"},[e(S,{vertical:!0,size:"medium"},{default:()=>[e(Se,{current:t.currentStep,style:"margin-bottom: 10px;margin-top: 10px"},{default:()=>[e(se,{title:"\u9009\u62E9\u66F2\u76EE",description:""},null),e(se,{title:"\u8BBE\u7F6E\u66F2\u76EE\u4FE1\u606F",description:""},null)]})]}),t.currentStep===1&&e("div",{class:"system-menu-container"},[e(pe,{ref:R,model:t.searchForm,onSubmit:L,saveKey:"klx-addMusic",onSetModel:l=>t.searchForm=l},{default:()=>[e(h,{label:"\u5173\u952E\u8BCD",path:"keyword"},{default:()=>[e(W,{value:t.searchForm.keyword,"onUpdate:value":l=>t.searchForm.keyword=l,placeholder:"\u8BF7\u8F93\u5165\u66F2\u76EE\u540D\u79F0/\u7F16\u53F7",clearable:!0},null)]}),e(h,{label:"\u53EF\u7528\u58F0\u90E8",path:"musicSubject"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u53EF\u7528\u58F0\u90E8",value:t.searchForm.subjectId,"onUpdate:value":l=>t.searchForm.subjectId=l,options:t.subjectList,clearable:!0,filterable:!0},null)]}),e(h,{label:"\u97F3\u4E50\u4EBA",path:"composer"},{default:()=>[e(W,{placeholder:"\u8BF7\u9009\u62E9\u97F3\u4E50\u4EBA",value:t.searchForm.composer,"onUpdate:value":l=>t.searchForm.composer=l,clearable:!0},null)]}),e(h,{label:"\u66F2\u76EE\u6765\u6E90",path:"sourceType"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u66F2\u76EE\u6765\u6E90",value:t.searchForm.sourceType,"onUpdate:value":l=>t.searchForm.sourceType=l,options:U(q),onUpdateValue:l=>g(this,null,function*(){t.userIdData=[],t.searchForm.userId=null,l&&l!=="PLATFORM"?(yield E(l),t.userIdDisable=!1):t.userIdDisable=!0}),clearable:!0},null)]}),e(h,{label:"\u6240\u5C5E\u9879\u76EE",path:"applicationId"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u9879\u76EE",value:t.searchForm.applicationId,"onUpdate:value":l=>t.searchForm.applicationId=l,options:t.useProjectData,clearable:!0,onUpdateValue:l=>g(this,null,function*(){t.searchForm.applicationId=l,l?(yield E(t.searchForm.sourceType),t.userIdDisable=!(t.searchForm.sourceType&&t.searchForm.sourceType!=="PLATFORM")):(t.searchForm.userId=null,t.userIdDisable=!0,t.userIdData=[])})},null)]}),e(h,{label:"\u6240\u5C5E\u4EBA",path:"author"},{default:()=>[e(d,{filterable:!0,placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u4EBA",disabled:t.userIdDisable||!t.searchForm.applicationId&&!t.searchForm.sourceType,value:t.searchForm.userId,"onUpdate:value":l=>t.searchForm.userId=l,options:t.userIdData,clearable:!0},null)]}),e(h,null,{default:()=>[e(S,null,{default:()=>[e(v,{type:"primary",onClick:p},{default:()=>[b("\u641C\u7D22")]}),e(v,{type:"default",onClick:w},{default:()=>[b("\u91CD\u7F6E")]})]})]})]}),e("p",{style:{paddingBottom:"12px"}},[b("\u4F60\u9009\u62E9\u4E86"),e("span",{style:"color:red;padding:0 8px"},[t.selectRowData.length]),b("\u6761\u66F2\u76EE")]),e(Q,{loading:t.loading,columns:o(),data:t.dataList,rowKey:l=>l.id,onUpdateCheckedRowKeys:y,checkedRowKeys:s.value,"onUpdate:checkedRowKeys":l=>s.value=l},null),e(de,{page:t.pagination.page,"onUpdate:page":l=>t.pagination.page=l,pageSize:t.pagination.rows,"onUpdate:pageSize":l=>t.pagination.rows=l,pageTotal:t.pagination.pageTotal,"onUpdate:pageTotal":l=>t.pagination.pageTotal=l,onList:F,sync:!0,saveKey:"klx-addMusic"},null)]),t.currentStep===2&&e("div",{class:"system-menu-container",style:"margin-top: 15px;"},[e(Q,{loading:t.loading,columns:n(),data:t.selectRowData,rowKey:l=>l.id,maxHeight:500,scrollX:2500},null)]),e(S,{justify:"end",style:"margin-top:10px"},{default:()=>[e(v,{type:"default",onClick:()=>{t.currentStep>1?t.currentStep=t.currentStep-1:a("close")}},{default:()=>[t.currentStep===1?"\u53D6\u6D88":"\u4E0A\u4E00\u6B65"]}),e(v,{type:"primary",onClick:()=>{if(t.currentStep<2){if(t.selectRowData.length==0){T.warning("\u8BF7\u9009\u62E9\u66F2\u76EE");return}t.currentStep=t.currentStep+1}else V()}},{default:()=>[t.currentStep===2?"\u786E\u5B9A":"\u4E0B\u4E00\u6B65"]})]})])}}),Tt=X({name:"project-music-cooleshow-edu-updateMusic",props:{appId:{type:String,required:!0},rowData:{type:Object,required:!0},musicSheetTagList:{type:Array,default:()=>[]}},emits:["close","getList"],setup(f,{slots:P,attrs:D,emit:a}){const I=ee(),T=z(!1),t=H({sortNo:null,isConvertibleScore:null,status:null,scoreType:null}),c=z(),F=H({rowData:null,musicSheetTagList:[]});Y(()=>g(this,null,function*(){F.rowData=f.rowData,F.musicSheetTagList=f.musicSheetTagList,F.musicSheetTagList.map(w=>{w.disabled=!w.enable});const{data:p}=yield Le({musicSheetId:F.rowData.id,applicationId:f.appId});if(!p){I.error("\u52A0\u8F7D\u5E94\u7528\u5931\u8D25");return}t.sortNo=p[0].sortNo,t.isConvertibleScore=p[0].isConvertibleScore,t.scoreType=p[0].scoreType,t.status=p[0].status}));const R=()=>g(this,null,function*(){c.value.validate(p=>g(this,null,function*(){if(p)return!1;T.value=!0;try{const w=yield Pe(k(x({},t),{musicSheetId:F.rowData.id,applicationId:f.appId}));w&&w.code===200&&(a("close"),a("getList"))}catch(w){}T.value=!1}))});return()=>e("div",{style:"background: #fff; padding-top: 12px"},[e(xe,{ref:c,labelPlacement:"top",model:t,"label-placement":"left","label-width":"auto"},{default:()=>[e(h,{label:"\u9ED8\u8BA4\u8C31\u9762",path:"scoreType",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u9ED8\u8BA4\u8C31\u9762"}]},{default:()=>[e(d,{value:t.scoreType,"onUpdate:value":p=>t.scoreType=p,placeholder:"\u8BF7\u9009\u62E9\u9ED8\u8BA4\u8C31\u9762",options:U(Z),clearable:!0},null)]}),e(h,{label:"\u652F\u6301\u8F6C\u8C31",path:"isConvertibleScore",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u652F\u6301\u8F6C\u8C31",trigger:["input","blur"],type:"boolean"}]},{default:()=>[e(d,{value:t.isConvertibleScore,"onUpdate:value":p=>t.isConvertibleScore=p,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}],placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u652F\u6301\u8F6C\u8C31",onUpdateValue:p=>g(this,null,function*(){}),clearable:!0},null)]}),e(h,{label:"\u662F\u5426\u542F\u7528",path:"status",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u542F\u7528"}]},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u542F\u7528",options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}],value:t.status,"onUpdate:value":p=>t.status=p,clearable:!0},null)]}),e(h,{label:"\u6392\u5E8F\u503C",path:"sortNo"},{default:()=>[e(_,{value:t.sortNo,"onUpdate:value":p=>t.sortNo=p,placeholder:"\u8BF7\u8F93\u5165\u6392\u5E8F\u503C",clearable:!0,min:0,max:9999,style:{width:"100%"}},null)]})]}),e(S,{justify:"end"},{default:()=>[e(v,{onClick:()=>a("close")},{default:()=>[b("\u53D6\u6D88")]}),e(v,{type:"primary",onClick:R,loading:T.value,disabled:T.value},{default:()=>[b("\u4FDD\u5B58")]})]})])}});function It(f){return typeof f=="function"||Object.prototype.toString.call(f)==="[object Object]"&&!De(f)}const Ft=X({name:"music-sheet-KLX",props:{appKey:{type:String,default:"KLX"}},setup(f){const P=ne(),D=ee(),a=H({loading:!1,appId:null,pagination:{page:1,rows:10,pageTotal:0},searchForm:{keyword:null,subjectId:null,subjectIds:null,clientStatus:null,status:null,sourceType:null,paymentType:null,userId:null,musicCategoryId:null,times:null,audioType:null,exquisiteFlag:null,topFlag:null,availableType:null,appAuditFlag:null,detailFlag:null,applicationId:null,extendApplicationId:null},subjectList:[],dataList:[],showAddDialog:!1,showEditDialog:!1,userIdDisable:!0,userIdData:[],updateRow:{},musicTagList:[],applicationId:null,musicPreview:!1,musicPreviewScoreType:"staff",musicScore:null,useProjectData:[],musicSheetCategories:[]}),I=()=>g(this,null,function*(){try{const{data:s}=yield tt({});a.musicSheetCategories=s||[],T(a.musicSheetCategories)}catch(s){}}),T=s=>{for(let y=0;y<s.length;y++)s[y].musicSheetCategoriesList.length<1?s[y].musicSheetCategoriesList=null:T(s[y].musicSheetCategoriesList)};Y(()=>g(this,null,function*(){a.loading=!0,console.log(f.appKey,"appKey");try{const{data:s}=yield ge({page:1,rows:1,hiddenFlag:!0}),y=s.rows||[];if(!y||y.length==0){a.loading=!1,D.error("\u52A0\u8F7D\u9879\u76EE\u4FE1\u606F\u5931\u8D25");return}y.forEach(l=>{l.appKey===f.appKey&&(a.appId=l.id,a.applicationId=l.id)})}catch(s){}try{const{data:s}=yield ze({applicationId:a.applicationId}),y=s||[];y.forEach(l=>{l.label=l.subjectName,l.value=l.subjectId}),a.subjectList=y}catch(s){}I(),p(),L()}));const t=z(),c=()=>{var s;w.value=[],(s=t.value)==null||s.submit()},F=()=>{var s;(s=t.value)==null||s.reset()},R=()=>{a.pagination.page=1,L()},p=()=>g(this,null,function*(){try{const s=Object.keys(ae),{data:y}=yield ge({page:1,rows:999}),l=y.rows||[];a.useProjectData=[],l.filter(r=>s.includes(r.appKey)).forEach(r=>{a.useProjectData.push(k(x({},r),{label:r.appName,value:r.id}))})}catch(s){}}),w=z([]),L=()=>g(this,null,function*(){try{a.loading=!0;const s=a.searchForm.sourceType;let y=a.searchForm.userId,l=null;s&&s==="ORG"&&(l=be(y),y=null);const{data:u}=yield je(k(x(k(x(x({},a.pagination),a.searchForm),{userId:s&&s==="PERSON"?a.searchForm.userId:null,organizationRoleId:s&&s==="ORG"?a.searchForm.userId:null}),Ae(a.searchForm.times,["startTime","endTime"])),{applicationId:a.applicationId}));a.pagination.pageTotal=Number(u.total),a.dataList=u.rows||[]}catch(s){}a.loading=!1}),E=s=>{const y=s.clientStatus?"\u505C\u7528":"\u542F\u7528";P.warning({title:"\u63D0\u793A",content:`\u662F\u5426${y}\uFF1F`,positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>g(this,null,function*(){try{yield ie({ids:s.applicationExtendId,status:!s.clientStatus}),L(),D.success(`${y}\u6210\u529F`)}catch(l){}})})},V=s=>{const y=w.value.length;y==0&&D.warning("\u672A\u9009\u62E9\u6570\u636E");const l=s?"\u542F\u7528":"\u505C\u7528";P.warning({title:"\u63D0\u793A",content:`\u662F\u5426${l}`+y+"\u6761\u6570\u636E\uFF1F",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>g(this,null,function*(){try{yield ie({ids:w.value.join(","),status:s}),L(),D.success(`${l}\u6210\u529F`)}catch(u){}})})},O=s=>g(this,null,function*(){if(!!a.searchForm.extendApplicationId&&(a.userIdData=[],a.searchForm.userId=null,s&&s!=="PLATFORM")){const{data:y}=yield me({page:1,rows:9999,sourceType:s,applicationId:a.searchForm.extendApplicationId});(y.rows||[]).forEach(u=>{a.userIdData.push(k(x({},u),{label:s==="PERSON"?u.userName:u.organizationRole,value:s==="PERSON"?u.userId:u.organizationRoleId}))})}}),o=s=>{P.warning({title:"\u63D0\u793A",content:"\u5220\u9664\u66F2\u76EE\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>g(this,null,function*(){try{yield Ue(s.applicationExtendId),L(),D.success("\u5220\u9664\u6210\u529F")}catch(y){}})})},n=()=>[{type:"selection"},{title:"\u66F2\u76EE\u540D\u79F0",key:"id",render:s=>e(oe,null,[e(re,{labelPlacement:"left",column:1},{default:()=>[e(B,{label:"\u66F2\u76EE\u540D\u79F0"},{default:()=>[e(M,{content:s.name},null)," "]}),e(B,{label:"\u66F2\u76EE\u7F16\u53F7"},{default:()=>[e("div",{onDblclick:()=>{Ee(D,s.id)}},[e(M,{content:s.id},null)])]})]})])},{title:"\u5C01\u9762\u56FE",key:"musicCover",render(s){return e(ce,{width:60,height:60,src:s.musicCover},null)}},{title:"\u66F2\u76EE\u4FE1\u606F",key:"musicSheetCategoriesName",render:s=>{let y;return e(oe,null,[e(re,{labelPlacement:"left",column:1},{default:()=>[e(B,{label:"\u66F2\u76EE\u6765\u6E90"},It(y=$(s.sourceType,new Map(Object.entries(q))))?y:{default:()=>[y]}),e(B,{label:"\u6240\u5C5E\u4EBA"},{default:()=>[e(M,{content:he(s.musicSheetExtend,s.sourceType)},null)]}),e(B,{label:"\u53EF\u7528\u58F0\u90E8"},{default:()=>[e(M,{content:s.subjectNames},null)]})]})])}},{title:"\u4F34\u594F\u7C7B\u578B",key:"audioType",render:s=>e("div",null,[$(s.audioType,new Map(Object.entries(ue)))])},{title:"\u66F2\u76EE\u5206\u7C7B",key:"musicSheetCategoryName"},{title:"\u4E0A\u4F20\u65F6\u95F4",minWidth:"150px",key:"createTime",render(s){return s.createTime}},{title:"\u4E1A\u52A1\u66F2\u76EE\u72B6\u6001",key:"clientStatus",render(s){return e(te,{type:s.clientStatus?"primary":"default"},{default:()=>[s.clientStatus?"\u542F\u7528":"\u505C\u7528"]})}},{title:"\u5E73\u53F0\u66F2\u76EE\u72B6\u6001",key:"status",render(s){return e(te,{type:s.status?"primary":"default"},{default:()=>[s.status?"\u542F\u7528":"\u505C\u7528"]})}},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",render(s){return e(S,null,{default:()=>[e(v,{type:"primary",size:"small",text:!0,onClick:()=>{if(a.musicPreview=!0,a.musicScore=s,s.scoreType=="STAVE")a.musicPreviewScoreType="staff";else if(s.scoreType=="JIAN")a.musicPreviewScoreType="fixedTone";else if(s.scoreType=="FIRST")a.musicPreviewScoreType="firstTone";else return}},{default:()=>[b("\u9884\u89C8")]}),N(e(v,{type:"primary",size:"small",text:!0,onClick:()=>E(s)},{default:()=>[s.clientStatus?"\u505C\u7528":"\u542F\u7528"]}),[[K("auth"),"musicSheetApplicationExtend/status1828741083419410433"]]),N(e(v,{type:"primary",size:"small",text:!0,onClick:()=>{a.showEditDialog=!0,a.updateRow=s}},{default:()=>[b("\u4FEE\u6539")]}),[[K("auth"),"musicSheetApplicationExtend/update1828741129602891777"]]),N(e(v,{type:"primary",size:"small",text:!0,disabled:!!s.clientStatus,onClick:()=>o(s)},{default:()=>[b("\u5220\u9664")]}),[[K("auth"),"musicSheetApplicationExtend/del1828741276168650753"]])]})}}];return()=>e("div",{class:"system-menu-container"},[e(pe,{ref:t,model:a.searchForm,onSubmit:R,saveKey:"music-sheet-klx_jg",onSetModel:s=>a.searchForm=s},{default:()=>[e(h,{label:"\u5173\u952E\u8BCD",path:"keyword"},{default:()=>[e(W,{placeholder:"\u8BF7\u8F93\u5165\u66F2\u76EE\u540D\u79F0/\u7F16\u53F7",value:a.searchForm.keyword,"onUpdate:value":s=>a.searchForm.keyword=s,clearable:!0},null)]}),e(h,{label:"\u66F2\u76EE\u6765\u6E90",path:"sourceType"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u66F2\u76EE\u6765\u6E90",value:a.searchForm.sourceType,"onUpdate:value":s=>a.searchForm.sourceType=s,options:U(q),onUpdateValue:s=>g(this,null,function*(){a.userIdData=[],a.searchForm.userId=null,s&&s!=="PLATFORM"?(yield O(s),a.userIdDisable=!a.searchForm.extendApplicationId):a.userIdDisable=!0}),clearable:!0},null)]}),e(h,{label:"\u6240\u5C5E\u9879\u76EE",path:"applicationId"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u9879\u76EE",value:a.searchForm.extendApplicationId,"onUpdate:value":s=>a.searchForm.extendApplicationId=s,options:a.useProjectData,clearable:!0,onUpdateValue:s=>g(this,null,function*(){a.searchForm.extendApplicationId=s,s?(yield O(a.searchForm.sourceType),a.userIdDisable=!(a.searchForm.sourceType&&a.searchForm.sourceType!=="PLATFORM")):(a.searchForm.userId=null,a.userIdDisable=!0,a.userIdData=[])})},null)]}),e(h,{label:"\u6240\u5C5E\u4EBA",path:"userId"},{default:()=>[e(d,{filterable:!0,placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u4EBA",disabled:a.userIdDisable,value:a.searchForm.userId,"onUpdate:value":s=>a.searchForm.userId=s,options:a.userIdData,clearable:!0},null)]}),e(h,{label:"\u4F34\u594F\u7C7B\u578B",path:"audioType"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u4F34\u594F\u7C7B\u578B",value:a.searchForm.audioType,"onUpdate:value":s=>a.searchForm.audioType=s,options:U(ue),clearable:!0},null)]}),e(h,{label:"\u53EF\u7528\u58F0\u90E8",path:"subjectId"},{default:()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u53EF\u7528\u58F0\u90E8",value:a.searchForm.subjectId,"onUpdate:value":s=>a.searchForm.subjectId=s,options:a.subjectList,clearable:!0,filterable:!0},null)]}),e(h,{label:"\u66F2\u76EE\u5206\u7C7B",path:"musicTagIds"},{default:()=>[e(ve,{valueField:"id",labelField:"name","children-field":"musicSheetCategoriesList",placeholder:"\u8BF7\u9009\u62E9\u66F2\u76EE\u5206\u7C7B",value:a.searchForm.musicCategoryId,"onUpdate:value":s=>a.searchForm.musicCategoryId=s,options:a.musicSheetCategories,clearable:!0},null)]}),e(h,{label:"\u4E1A\u52A1\u66F2\u76EE\u72B6\u6001",path:"clientStatus"},{default:()=>[e(d,{value:a.searchForm.clientStatus,"onUpdate:value":s=>a.searchForm.clientStatus=s,placeholder:"\u8BF7\u9009\u62E9\u4E1A\u52A1\u66F2\u76EE\u72B6\u6001",options:[{label:"\u542F\u7528",value:!0},{label:"\u505C\u7528",value:!1}],clearable:!0},null)]}),e(h,{label:"\u5E73\u53F0\u66F2\u76EE\u72B6\u6001",path:"status"},{default:()=>[e(d,{value:a.searchForm.status,"onUpdate:value":s=>a.searchForm.status=s,placeholder:"\u8BF7\u9009\u62E9\u5E73\u53F0\u66F2\u76EE\u72B6\u6001",options:[{label:"\u542F\u7528",value:!0},{label:"\u505C\u7528",value:!1}],clearable:!0},null)]}),e(h,{label:"\u4E0A\u4F20\u65F6\u95F4",path:"times"},{default:()=>[e(Ce,{value:a.searchForm.times,"onUpdate:value":s=>a.searchForm.times=s,type:"daterange",clearable:!0,"value-format":"yyyy.MM.dd",startPlaceholder:"\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u7ED3\u675F\u65F6\u95F4"},null)]}),e(h,null,{default:()=>[e(S,null,{default:()=>[e(v,{type:"primary",onClick:c},{default:()=>[b("\u641C\u7D22")]}),e(v,{type:"default",onClick:F},{default:()=>[b("\u91CD\u7F6E")]})]})]})]}),e("div",{class:["section-container"]},[e(S,{style:{paddingBottom:"12px"}},{default:()=>[N(e(v,{type:"primary",onClick:()=>{a.showAddDialog=!0}},{default:()=>[b("\u6DFB\u52A0\u66F2\u76EE")]}),[[K("auth"),"musicSheetApplicationExtend/saveBatch1828740811787894786"]]),N(e(v,{disabled:w.value.length==0,onClick:()=>{V(!1)}},{default:()=>[b("\u6279\u91CF\u505C\u7528")]}),[[K("auth"),"musicSheetApplicationExtend/status1828741083419410433"]]),N(e(v,{disabled:w.value.length==0,onClick:()=>{V(!0)}},{default:()=>[b("\u6279\u91CF\u542F\u7528")]}),[[K("auth"),"musicSheetApplicationExtend/status1828741083419410433"]])]}),e(Q,{loading:a.loading,columns:n(),data:a.dataList,rowKey:s=>s.applicationExtendId,checkedRowKeys:w.value,"onUpdate:checkedRowKeys":s=>w.value=s,scrollX:"2000"},null),e(de,{page:a.pagination.page,"onUpdate:page":s=>a.pagination.page=s,pageSize:a.pagination.rows,"onUpdate:pageSize":s=>a.pagination.rows=s,pageTotal:a.pagination.pageTotal,"onUpdate:pageTotal":s=>a.pagination.pageTotal=s,onList:L,sync:!0,saveKey:"music-sheet-klx_jg"},null)]),e(J,{show:a.showAddDialog,"onUpdate:show":s=>a.showAddDialog=s,preset:"dialog",showIcon:!1,title:"\u6DFB\u52A0\u66F2\u76EE",style:{width:"1300px"}},{default:()=>[e(wt,{onClose:()=>a.showAddDialog=!1,onGetList:R,subjectList:a.subjectList,appId:a.appId,musicSheetTagList:a.musicTagList},null)]}),e(J,{show:a.showEditDialog,"onUpdate:show":s=>a.showEditDialog=s,preset:"dialog",showIcon:!1,title:"\u4FEE\u6539\u66F2\u76EE",style:{width:"500px"}},{default:()=>[e(Tt,{onClose:()=>a.showEditDialog=!1,onGetList:()=>{a.pagination.page=1,L()},rowData:a.updateRow,appId:a.appId},null)]}),e(J,{blockScroll:!0,show:a.musicPreview,"onUpdate:show":s=>a.musicPreview=s,preset:"card",showIcon:!1,title:"\u66F2\u76EE\u9884\u89C8",class:Ne.musicPreviewModal},{default:()=>[e(Me,{item:a.musicScore,scoreType:a.musicPreviewScoreType},null)]})])}}),Bt=X({name:"project-music-sheet",setup(){const f=H({tabName:"KLX",appKeyList:[],appNameList:[]}),P=z();Ze(I=>{I.form.tabName&&(f.tabName=I.form.tabName,He(()=>{var T;return(T=P.value)==null?void 0:T.syncBarPosition()}))});const D=We(),a=I=>{et(I,"tabName",D)};return Y(()=>g(this,null,function*(){const I=Object.keys(ae),{data:T}=yield fe({page:1,rows:99,parentId:0,hiddenFlag:!0});(T.rows||[]).forEach(c=>{I.includes(c.appKey)&&(f.appKeyList.push(c.appKey),f.appNameList.push(c.appName))}),le("musicSheet/pageByApplication1751225218734489601")?f.tabName="KLX":le("musicSheet/pageByApplication1828630545792307201")?f.tabName="KLX_JG":le("musicSheet/pageByApplication1751225314930851842")?f.tabName="GYM":le("musicSheet/pageByApplication1751225386909302786")?f.tabName="KT":le("musicSheet/pageByApplication1751225483038556162")&&(f.tabName="GYT"),He(()=>{var c;return(c=P.value)==null?void 0:c.syncBarPosition()})})),()=>e("div",{class:"system-menu-container"},[e("div",{class:["section-container"],style:"padding-top: 0"},[e(Qe,{ref:P,type:"line",size:"large",value:f.tabName,"onUpdate:value":[I=>f.tabName=I,I=>a(I)]},{default:()=>[le("musicSheet/pageByApplication1751225218734489601")&&e(Fe,{name:"KLX",tab:"\u9177\u4E50\u79C0"},{default:()=>[e(bt,{appKey:"KLX"},null)]}),le("musicSheet/pageByApplication1828630545792307201")&&e(Fe,{name:"KLX_JG",tab:"\u9177\u4E50\u79C0\u673A\u6784"},{default:()=>[e(Ft,{appKey:"KLX_JG"},null)]}),le("musicSheet/pageByApplication1751225314930851842")&&e(Fe,{name:"GYM",tab:"\u7BA1\u4E50\u8FF7"},{default:()=>[e(pt,{appKey:"GYM"},null)]}),le("musicSheet/pageByApplication1751225386909302786")&&e(Fe,{name:"KT",tab:"\u97F3\u4E50\u6570\u5B57\u8BFE\u5802"},{default:()=>[e(ut,{appKey:"KT"},null)]}),le("musicSheet/pageByApplication1751225483038556162")&&e(Fe,{name:"GYT",tab:"\u7BA1\u4E50\u56E2"},{default:()=>[e(yt,{appKey:"GYT"},null)]})]})])])}});export{Bt as default};
|