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