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