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