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