import{u as F}from"./useFormEdit-e67d5b61-1782572373740v=1.0.0.js";import{g as G,a as E}from"./materialApi-cb1cbd85-1782572373740v=1.0.0.js";import{b as I,a as T,_ as V}from"./index-f6f689f9-1782572373740v=1.0.0.js";import{u as $}from"./useGetGroupTerm-2c81d695-1782572373740v=1.0.0.js";import{r as n,y as M,m as U,al as i,z as d,I as g,J as l,R as _,u as e,M as A,O as x}from"./vendor-866bb149-1782572373740v=1.0.0.js";import{u as J}from"./useTable-34acff72-1782572373740v=1.0.0.js";import{u as j}from"./useHandleData-64cc6aad-1782572373740v=1.0.0.js";import"./keepAlive-0ac97bbd-1782572373740v=1.0.0.js";import"./eleVendor-48a7d3b8-1782572373740v=1.0.0.js";import"./eventGroupAndTermApi-31c30359-1782572373740v=1.0.0.js";import"./notData-cef8761e-1782572373740v=1.0.0.js";const K=()=>{I(),T();const{eventGroupTermList:v,getEventGroupTermListData:p}=$(sessionStorage.getItem("eventId"));p();const r=n([{prop:"name",label:"\u641C\u7D22",search:{el:"input",placeholder:"\u8BF7\u8F93\u5165\u53C2\u8D5B\u4EBA\u5458\u540D\u79F0"}},{prop:"eventTermId",label:"\u7EC4\u522B\u5C0F\u9879",search:{el:"cascader",placeholder:"\u8BF7\u9009\u62E9\u7EC4\u522B\u5C0F\u9879"},enum:v},{label:"\u9886\u53D6\u72B6\u6001",prop:"status",search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u9886\u53D6\u72B6\u6001"},enum:[{label:"\u672A\u9886\u53D6",value:0},{label:"\u5DF2\u9886\u53D6",value:1}]}]),m=n([{type:"index",label:"\u5E8F\u53F7",width:70,fixed:"left"},{label:"\u7EC4\u522B",prop:"eventGroupName"},{label:"\u5C0F\u9879",prop:"eventTermName"},{label:"\u7528\u6237\u540D/\u5355\u4F4D\u540D/\u9886\u961F\u540D",prop:"tsIdsCn"},{label:"\u9886\u53D6\u7269\u54C1",prop:"eventMaterialName"},{label:"\u9886\u53D6\u72B6\u6001",prop:"statusCn"},{label:"\u9886\u53D6\u65F6\u95F4",prop:"updateTime"},{label:"\u9886\u53D6\u65B9\u5F0F",prop:"receiveTypeCn"},{label:"\u64CD\u4F5C",prop:"operation",fixed:"right",width:200}]);return{columns:r,tableColumns:m,dataCallBack:t=>t,paramCallBack:t=>{var u;return((u=t.eventTermId)==null?void 0:u.length)>0&&(t.eventTermId=t.eventTermId[t.eventTermId.length-1]),t}}},O=K,Q=M({name:"materialDetail"}),W=M({...Q,setup(v){n({xs:24,sm:22,md:20,lg:14,xl:23}),n({xs:24,sm:24,md:12,lg:12,xl:12}),n({xs:24,sm:22,md:18,lg:16,xl:8}),F(),I();const p=n({}),r=T(),m=n(""),{tableColumns:b,columns:C,dataCallBack:t,paramCallBack:u}=O(),{tableData:D,pageable:s,baseParam:z,searchParam:B,totalParam:X,pageParam:Y,handleSizeChange:S,handleCurrentChange:P,getTableList:f,search:H,reset:w,loading:L}=J(G,t,u),h=async(y,a)=>{let c=a==="receive"?"\u9886\u53D6":"\u53D6\u6D88\u9886\u53D6";await j(E,{eventMaterialRecordId:y.eventMaterialRecordId,eventMaterialId:r.query.eventMaterialId,receiveOperation:a},c),f()};return U(()=>{r.query.id&&(m.value=r.query.id,p.value.eventMaterialId=r.query.id),z.value.eventMaterialId=r.query.eventMaterialId,f()}),(y,a)=>{const c=i("HZSearchForm"),k=i("el-link"),N=i("HZProTable"),R=i("el-pagination"),Z=i("HZPageLayout");return d(),g(Z,{title:e(r).meta.title,isBack:!0},{searchForm:l(()=>[_(c,{"search-param":e(B),columns:e(C),search:e(H),reset:e(w)},null,8,["search-param","columns","search","reset"])]),pagination:l(()=>[_(R,{"current-page":e(s).page,"onUpdate:currentPage":a[0]||(a[0]=o=>e(s).page=o),"page-size":e(s).size,"onUpdate:pageSize":a[1]||(a[1]=o=>e(s).size=o),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:e(s).count,onSizeChange:e(S),onCurrentChange:e(P)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),default:l(()=>[_(N,{columns:e(b),data:e(D),isFlex:!1,loading:e(L)},{tableHeader:l(()=>a[2]||(a[2]=[])),toolButton:l(()=>[A(' <el-button type="primary" @click="handleAdd"> \u65B0\u589E </el-button> ')]),operation:l(o=>[o.row.status===0?(d(),g(k,{key:0,type:"primary",onClick:q=>h(o.row,"receive")},{default:l(()=>a[3]||(a[3]=[x(" \u9886\u53D6 ",-1)])),_:2,__:[3]},1032,["onClick"])):(d(),g(k,{key:1,type:"primary",onClick:q=>h(o.row,"cancel")},{default:l(()=>a[4]||(a[4]=[x(" \u53D6\u6D88\u9886\u53D6 ",-1)])),_:2,__:[4]},1032,["onClick"]))]),_:1},8,["columns","data","loading"])]),_:1},8,["title"])}}});const me=V(W,[["__scopeId","data-v-f9203a57"]]);export{me as default};
