import{I as e}from"./IndexPagePro-44077094-1780912037814v=1.0.0.js";import{h as a}from"./annualTaskManage-c01021da-1780912037814v=1.0.0.js";import{_ as l}from"./index.vue_vue_type_script_setup_true_name_SearchForm_lang-9271318d-1780912037814v=1.0.0.js";import{d as t,r as n,J as r,o,a as p,b as i,c as s,w as c,e as u,f as d,j as _,H as m,l as g,k as b}from"./index-d052b22f-1780912037814v=1.0.0.js";const f={class:"flx-row flx-center"},y={class:"flx-center"},v=t({__name:"index",setup(t){const v=n(!1);n(!1);const k=n([]);n(null);const h=n(0),x=r(),w=n([{label:"年份",prop:"year",search:{el:"date-picker",props:{type:"year",format:"YYYY",valueFormat:"YYYY"},placeholder:"请选择年份"}}]),C=n({}),Y=({project_task_id:e},a)=>{x.push({name:"annualTaskSetDetail",query:{project_task_id:a?e:"",op:a||"add"}})},j=n(1),z=n(10);n({name:"",des:"",file_type_id:""});const F=async()=>{v.value=!0;const{data:e}=await a({page:j.value,size:z.value,...C.value});v.value=!1,k.value=e.list,h.value=e.count},S=()=>{j.value=1,F()},P=()=>{j.value=1,C.value={},F()};return o((()=>{F()})),(a,t)=>{const n=p("el-button"),r=p("el-table-column"),o=p("QuestionFilled"),x=p("el-icon"),I=p("el-tooltip"),T=p("el-table"),U=p("el-pagination");return i(),s(e,null,{searchForm:c((()=>[u(l,{"search-param":d(C),columns:d(w),search:S,reset:P},null,8,["search-param","columns"])])),toolButton:c((()=>[u(n,{type:"primary",onClick:Y},{default:c((()=>t[2]||(t[2]=[_("新增")]))),_:1})])),pagination:c((()=>[u(U,{"current-page":d(j),"onUpdate:currentPage":t[0]||(t[0]=e=>m(j)?j.value=e:null),"page-size":d(z),"onUpdate:pageSize":t[1]||(t[1]=e=>m(z)?z.value=e:null),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:d(h),onSizeChange:F,onCurrentChange:F},null,8,["current-page","page-size","total"])])),default:c((()=>[u(T,{data:d(k),border:"",loading:d(v),style:{width:"100%"}},{default:c((()=>[u(r,{type:"index",label:"序号",width:"80",align:"center"}),u(r,{prop:"year",label:"年份",align:"center"}),g(' <el-table-column prop="name" label="绩效考核对象" align="center" /> '),u(r,{prop:"name",label:"任务名称",align:"center"}),u(r,{prop:"type_str",label:"任务级别",align:"center"}),u(r,{prop:"task_id_str",label:"关联上级任务",align:"center"}),u(r,{prop:"task_prime_order_money",label:"上级任务资金(万元)",align:"center"}),u(r,{prop:"prime_order_money",label:"下达资金(万元)",align:"center"},{header:c((()=>[b("div",f,[t[3]||(t[3]=b("div",{class:"mr5"},"下达资金(万元)",-1)),b("div",y,[u(I,{class:"box-item",effect:"dark",content:"下达资金=划拨资金+省级配套资金",placement:"right-start"},{default:c((()=>[u(x,null,{default:c((()=>[u(o)])),_:1})])),_:1})])])])),_:1}),u(r,{prop:"transfer_order_money",label:"划拨资金(万元)",align:"center"}),u(r,{prop:"fund_channel_first_money",label:"省级配套资金(万元)",align:"center"}),u(r,{prop:"des",label:"绩效指标摘要",align:"center"}),u(r,{prop:"relate_file_count",label:"文件附件",align:"center"}),u(r,{prop:"operator",label:"创建人",align:"center"}),u(r,{label:"操作",align:"center"},{default:c((e=>[u(n,{type:"primary",link:"",onClick:a=>Y(e.row,"detail")},{default:c((()=>t[4]||(t[4]=[_("查看")]))),_:2},1032,["onClick"]),u(n,{type:"primary",link:"",onClick:a=>Y(e.row,"edit")},{default:c((()=>t[5]||(t[5]=[_("编辑")]))),_:2},1032,["onClick"]),g(' <el-button type="primary" link @click="handleOperation(scope.row, 2)">删除</el-button> ')])),_:1})])),_:1},8,["data","loading"])])),_:1})}}});export{v as default};
