/* empty css                  *//* empty css                        *//* empty css                    *//* empty css                  *//* empty css               */import{P as A}from"./index-C__Mp2q5.js";/* empty css                                                              *//* empty css                        */import{S as b}from"./index-uoQNNTW0.js";import{T as f}from"./index-BqhCx7JE.js";/* empty css                 */import{d as _,I as l,r as P,c as N,b as e,u as d,w as r,ad as S,o as w,i as v,e as m,af as x,t as p}from"./index-hZHbf6Qq.js";/* empty css                  *//* empty css                             *//* empty css                      */const h={class:"page-container"},H=_({__name:"index",setup(y){const i=l({keyword:"",dateRange:[],deptId:""}),u=[{field:"deptId",label:"下单部门",options:[{label:"全部",value:""},{label:"人事部",value:"1"},{label:"行政部",value:"2"},{label:"设计部",value:"3"},{label:"技术部",value:"4"}]}],a=l({page:1,pageSize:10,total:100}),s=P([{deptName:"人事部",orderPerson:"李世海",orderAmount:2115.97,completedAmount:2115.97,pendingAmount:2115.97},{deptName:"行政部",orderPerson:"李书萍",orderAmount:4476.12,completedAmount:4476.12,pendingAmount:4476.12},{deptName:"人事部",orderPerson:"邓文锦",orderAmount:7751.34,completedAmount:7751.34,pendingAmount:7751.34},{deptName:"设计部",orderPerson:"王凡宏",orderAmount:7936.37,completedAmount:7936.37,pendingAmount:7936.37},{deptName:"技术部",orderPerson:"赵昊艳",orderAmount:3931.45,completedAmount:3931.45,pendingAmount:3931.45},{deptName:"人事部",orderPerson:"钱君霞",orderAmount:6132.75,completedAmount:6132.75,pendingAmount:6132.75},{deptName:"行政部",orderPerson:"周静",orderAmount:3189.56,completedAmount:3189.56,pendingAmount:3189.56},{deptName:"行政部",orderPerson:"吴彦琛",orderAmount:993.66,completedAmount:993.66,pendingAmount:993.66},{deptName:"设计部",orderPerson:"钱慧倩",orderAmount:2763.35,completedAmount:2763.35,pendingAmount:2763.35},{deptName:"技术部",orderPerson:"孙银茹",orderAmount:9286.45,completedAmount:9286.45,pendingAmount:9286.45}]);return(z,o)=>{const g=v,n=x,c=S;return w(),N("div",h,[e(d(A),{title:"部门采购金额"}),e(d(b),{form:i,filters:u},{extra:r(()=>[e(g,{type:"danger",style:{"margin-left":"auto"}},{default:r(()=>[...o[2]||(o[2]=[m("导出",-1)])]),_:1})]),_:1},8,["form"]),e(c,{data:s.value,border:"",style:{width:"100%"}},{default:r(()=>[e(n,{type:"index",label:"序号",width:"60",align:"center"}),e(n,{prop:"deptName",label:"部门名称",width:"120",align:"center"}),e(n,{prop:"orderPerson",label:"下单人",width:"100",align:"center"}),e(n,{prop:"orderAmount",label:"下单金额","min-width":"120",align:"center"},{default:r(({row:t})=>[m("¥"+p(t.orderAmount.toLocaleString()),1)]),_:1}),e(n,{prop:"completedAmount",label:"已完成订单金额","min-width":"140",align:"center"},{default:r(({row:t})=>[m("¥"+p(t.completedAmount.toLocaleString()),1)]),_:1}),e(n,{prop:"pendingAmount",label:"待完成订单金额","min-width":"140",align:"center"},{default:r(({row:t})=>[m("¥"+p(t.pendingAmount.toLocaleString()),1)]),_:1})]),_:1},8,["data"]),e(d(f),{page:a.page,"onUpdate:page":o[0]||(o[0]=t=>a.page=t),pageSize:a.pageSize,"onUpdate:pageSize":o[1]||(o[1]=t=>a.pageSize=t),total:a.total},null,8,["page","pageSize","total"])])}}});export{H as default};
