import{u as F}from"./useFormEdit-fb8b8504-1782729249161v=1.0.0.js";import{g as G,a as E}from"./materialApi-cc5250b8-1782729249161v=1.0.0.js";import{b as I,a as T,_ as V}from"./index-b309bf9f-1782729249161v=1.0.0.js";import{u as $}from"./useGetGroupTerm-aa499933-1782729249161v=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-1e24e3ad-1782729249161v=1.0.0.js";import{u as J}from"./useTable-cf8e962b-1782729249161v=1.0.0.js";import{u as j}from"./useHandleData-54f3fb4d-1782729249161v=1.0.0.js";import"./keepAlive-20a782c5-1782729249161v=1.0.0.js";import"./eleVendor-5008d1ec-1782729249161v=1.0.0.js";import"./eventGroupAndTermApi-7b02c2ee-1782729249161v=1.0.0.js";import"./notData-926f7286-1782729249161v=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};
