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