import{b as q,d as C}from"./settlement-nuKCE_0O.js";import{I as k,r as m,c as s,d as R,e as U,k as B,f as e,h as l,m as u,y as i,v as F}from"./index-CB6zHFTD.js";const L={class:"app-container"},N={class:"settlementDetail"},S=k({__name:"details",setup(I){const{proxy:_}=F(),b=_.$route.query.id||"";m(!1);const f=m(!0),h=m([]),w=m(0),r=m({snum:"",channel:"",name:"",id_no:"",settlement_id:_.$route.query.id,page:1,limit:10}),t=m({});function V(){b&&q({id:b}).then(({data:o})=>{t.value={code:o.id,name:o.name,channel:o.channel,createTime:o.createTime,amount:o.amount,total:o.total,state:o.state,submitTime:o.submitTime,billDate:o.billDate},t.value.state=="new"?t.value.state="新建":t.value.state=="submit"&&(t.value.state="提交")})}function v(){f.value=!0,C(r.value).then(o=>{h.value=o.data,w.value=o.count,f.value=!1})}function g(){r.value.page=1,v()}function D(){_.resetForm("queryRef"),g()}return v(),V(),(o,p)=>{const c=s("el-input"),a=s("el-form-item"),x=s("el-button"),y=s("el-form"),n=s("el-table-column"),T=s("el-table");return R(),U("div",L,[B("div",N,[e(y,{model:r.value,ref:"queryRef",inline:!0,style:{"margin-left":"10%"}},{default:l(()=>[e(a,{label:"姓名",prop:"name"},{default:l(()=>[e(c,{modelValue:r.value.name,"onUpdate:modelValue":p[0]||(p[0]=d=>r.value.name=d),placeholder:"",clearable:"",style:{width:"200px"}},null,8,["modelValue"])]),_:1}),e(a,{label:"证件号码",prop:"id_no"},{default:l(()=>[e(c,{modelValue:r.value.id_no,"onUpdate:modelValue":p[1]||(p[1]=d=>r.value.id_no=d),placeholder:"",clearable:"",style:{width:"200px"}},null,8,["modelValue"])]),_:1}),e(a,{label:"序号",prop:"snum"},{default:l(()=>[e(c,{modelValue:r.value.snum,"onUpdate:modelValue":p[2]||(p[2]=d=>r.value.snum=d),placeholder:"",clearable:"",style:{width:"200px"}},null,8,["modelValue"])]),_:1}),e(a,{label:"代理人",prop:"channel"},{default:l(()=>[e(c,{modelValue:r.value.channel,"onUpdate:modelValue":p[3]||(p[3]=d=>r.value.channel=d),placeholder:"",clearable:"",style:{width:"200px"}},null,8,["modelValue"])]),_:1}),e(a,null,{default:l(()=>[e(x,{type:"primary",icon:"Search",onClick:g},{default:l(()=>[u("搜索")]),_:1}),e(x,{icon:"Refresh",onClick:D},{default:l(()=>[u("重置")]),_:1})]),_:1})]),_:1},8,["model"]),e(y,{inline:!0,"label-position":"right","label-width":"130px",model:t.value,style:{"max-width":"90%"},ref:"ruleFormRef",class:"ruleFormRef"},{default:l(()=>[e(a,{label:"结算单编号",prop:"code"},{default:l(()=>[u(i(t.value.code),1)]),_:1}),e(a,{label:"结算单名称",prop:"name"},{default:l(()=>[u(i(t.value.name),1)]),_:1}),e(a,{label:"渠道",prop:"channel"},{default:l(()=>[u(i(t.value.channel),1)]),_:1}),e(a,{label:"创建时间",prop:"createTime"},{default:l(()=>[u(i(t.value.createTime),1)]),_:1}),e(a,{label:"雇员数量",prop:"amount"},{default:l(()=>[u(i(t.value.amount),1)]),_:1}),e(a,{label:"总金额",prop:"total"},{default:l(()=>[u(i(t.value.total),1)]),_:1}),e(a,{label:"提交状态",prop:"state"},{default:l(()=>[u(i(t.value.state),1)]),_:1}),e(a,{label:"提交时间",prop:"submitTime"},{default:l(()=>[u(i(t.value.submitTime),1)]),_:1}),e(a,{label:"月份",prop:"billDate"},{default:l(()=>[u(i(t.value.billDate),1)]),_:1}),e(a,{label:"雇员列表",style:{width:"100%"},prop:"price_policy"},{default:l(()=>[e(T,{data:h.value},{default:l(()=>[e(n,{label:"序号",align:"center",prop:"snum",width:"60px"}),e(n,{label:"月份",align:"center",prop:"bill_date",width:"80px"}),e(n,{label:"入职企业",align:"center",prop:"manufacturer",width:"100px"}),e(n,{label:"姓名",align:"center",prop:"name",width:"80px"}),e(n,{label:"身份证号",align:"center",prop:"id_no",width:"170px"}),e(n,{label:"入职时间",align:"center",prop:"entry_date",width:"120px"}),e(n,{label:"离职时间",align:"center",prop:"quit_date",width:"120px"}),e(n,{label:"工时",align:"center",prop:"hours",width:"50px"}),e(n,{label:"加班时间",align:"center",prop:"overhours",width:"80px"}),e(n,{label:"供应商政策",align:"center",prop:"channel_policy"}),e(n,{label:"金额",align:"center",prop:"money",width:"100px"}),e(n,{label:"税点",align:"center",prop:"tax_rate",width:"100px"}),e(n,{label:"税后利润",align:"center",prop:"profit",width:"100px"}),e(n,{label:"代理人",align:"center",prop:"channel",width:"100px"})]),_:1},8,["data"])]),_:1})]),_:1},8,["model"])])])}}});export{S as default};
