index.c6a3dfa8.js 93 KB

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