var re=Object.defineProperty,me=Object.defineProperties;var ce=Object.getOwnPropertyDescriptors;var W=Object.getOwnPropertySymbols;var de=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable;var P=(e,m,t)=>m in e?re(e,m,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[m]=t,S=(e,m)=>{for(var t in m||(m={}))de.call(m,t)&&P(e,t,m[t]);if(W)for(var t of W(m))ue.call(m,t)&&P(e,t,m[t]);return e},j=(e,m)=>me(e,ce(m));var Y=(e,m,t)=>new Promise((_,y)=>{var s=u=>{try{o(t.next(u))}catch(a){y(a)}},k=u=>{try{o(t.throw(u))}catch(a){y(a)}},o=u=>u.done?_(u.value):Promise.resolve(u.value).then(s,k);o((t=t.apply(e,m)).next())});import{e as ve,_ as be,l as ye,a as he}from"./confirmDialog.fd7bb6bf.js";import{M as C,d as fe,y as ge,k as _e,u as we,r as v,O as w,o as ke,R as xe,f as b,g,c as F,v as r,n as R,w as p,e as n,F as B,p as D,Y as Fe,b as T,t as Ce,Z as Te,h as V,A as Ne,i as Ye}from"./index.091505b9.js";import{u as De}from"./useExportExc.124fd3d9.js";import{u as $e}from"./useTreeSelectData.bbae3661.js";import"./uploadAction.5867e466.js";function Oe(e){let m="",t="\u4EDF\u4F70\u62FE\u4EBF\u4EDF\u4F70\u62FE\u4E07\u4EDF\u4F70\u62FE\u5143\u89D2\u5206";e+="00";const _=e.indexOf(".");_>=0&&(e=e.substring(0,_)+e.substr(_+1,2)),t=t.substr(t.length-e.length);for(let y=0;y` \u5B81\u8FBE\u79DF\u8F66\u8FD0\u8425\u7BA1\u7406\u7CFB\u7EDF-\u7ED3\u7B97\u5355

\u676D\u5DDE\u5B81\u8FBE\u79D1\u6280\u6709\u9650\u516C\u53F8

\u6570\u636E\u7ED3\u7B97\u786E\u8BA4\u5355

\u5BA2\u6237\u540D\u79F0\uFF1A ${e.companyName}
\u9879\u76EE\u7F16\u53F7\uFF1A ${e.projectNum||"-"}
\u9879\u76EE\u540D\u79F0\uFF1A ${e.projectName}
\u9879\u76EE\u8D1F\u8D23\u4EBA\uFF1A ${e.projectLeader||"-"}
\u6240\u5C5E\u65F6\u95F4\uFF1A ${C(e.startTime).format("YYYY-MM-DD")}\u81F3${C(e.endTime).format("YYYY-MM-DD")}

\u79DF\u8F66\u8D39\uFF08\u5143\uFF09\uFF1A ${e.carTotalFee}

\u8D85\u65F6\u8D39\uFF08\u5143\uFF09\uFF1A ${e.workingOvertimeFee}

\u4E0B\u53BF\u8865\u8D34\uFF08\u5143\uFF09\uFF1A ${e.countySubsidyFee}

\u505C\u8F66\u8D39\uFF08\u5143\uFF09\uFF1A ${e.parkingFee}

\u5176\u4ED6\u8D39\u7528\uFF08\u5143\uFF09\uFF1A ${e.otherCost}

\u7A0E\u8D39\uFF08\u5143\uFF09\uFF1A ${e.taxFee}

\u91CC\u7A0B\u8D39\uFF08\u5143\uFF09\uFF1A ${e.totalOilCost}

\u591C\u73ED\u8D39\uFF08\u5143\uFF09\uFF1A ${e.nightWorkingFee}

\u9AD8\u901F\u8D39\uFF08\u5143\uFF09\uFF1A ${e.expresswayFee}

\u9644\u52A0\u8D39\uFF08\u5143\uFF09\uFF1A ${e.surcharge}

\u6574\u4F53\u7528\u8F66\u8D39\uFF08\u5143\uFF09\uFF1A ${e.totalFee}

\u5E73\u53F0\u670D\u52A1\u8D39\uFF08\u542B\u7A0E\uFF09\uFF08\u5143\uFF09\uFF1A ${e.serviceFee}

\u5408\u8BA1\uFF1A \u5927\u5199\uFF1A${Oe(Number(e.totalFee)+Number(e.taxFee)+Number(e.serviceFee))} \u5C0F\u5199\uFF1A${Number(e.totalFee)+Number(e.taxFee)+Number(e.serviceFee)}

\u4EE5\u4E0A\u5185\u5BB9\u8BF7\u4E88\u4EE5\u786E\u8BA4\uFF1A

\u7532\u65B9\u7B7E\u5B57\uFF08\u76D6\u7AE0\uFF09\uFF1A

\u65E5\u671F\uFF1A

\u4E59\u65B9\u7B7E\u5B57\uFF08\u76D6\u7AE0\uFF09\uFF1A

\u65E5\u671F\uFF1A

\u8BF7\u5C06\u4E0A\u8FF0\u6B3E\u9879\u4ED8\u81F3\u4E00\u4E0B\u8D26\u6237\uFF1A

\u676D\u5DDE\u5B81\u8FBE\u79D1\u6280\u6709\u9650\u516C\u53F8

\u5F00\u6237\u884C\uFF1A xxx

\u8D26\u53F7\uFF1A xxx

`,Ve={class:"statementList"},Me=T("div",{style:{height:"0",width:"0",overflow:"hidden"}},[T("iframe",{id:"printContent"})],-1),Ie=V("\u67E5\u8BE2"),je=V("\u91CD\u7F6E"),Be={class:"flex justify-between items-center"},Ee=T("span",null,"\u7ED3\u7B97\u5355\u5217\u8868",-1),Ue=V(" \u5BFC\u51FA "),ze=V(" \u91CD\u65B0\u751F\u6210\u4E0A\u6708\u7ED3\u7B97\u5355 "),qe=["onClick"],Le=["onClick"],We=["onClick"],Pe=fe({name:"statementList"}),He=Object.assign(Pe,{props:{state:String},setup(e,{expose:m}){const t=e,{proxy:_}=Ye(),y=ge.userStore.userBaseInfo,s=_e(),k=we(),o=v({}),u=v(!1),a={statementToBeConfirmed:1,pendingPaymentSettlementDoc:2,settlementDocToBeInvoiced:3,invoicedSettlementDocument:4,personalSettlementForm:5},$=v(),M=v(0),G=v([{label:"\u5E8F\u53F7",type:"index",width:"80"},{label:"\u6240\u5C5E\u4F01\u4E1A",key:"companyName",prop:"companyName",minWidth:"180",showOverflowTooltip:!0},{label:"\u6240\u5C5E\u9879\u76EE",key:"projectName",prop:"projectName",minWidth:"180",showOverflowTooltip:!0},{label:"\u5F00\u59CB\u65F6\u95F4",key:"startTime",render:l=>w("span",C(l.startTime).format("YYYY-MM-DD")),width:"140"},{label:"\u7ED3\u675F\u65F6\u95F4",key:"endTime",render:l=>w("span",C(l.endTime).format("YYYY-MM-DD")),width:"140"},{label:"\u5E94\u4ED8\u79DF\u8F66\u8D39\uFF08\u5143\uFF09",key:"carTotalFee",prop:"carTotalFee",width:"160"},{label:"\u5E94\u4ED8\u91CC\u7A0B\u8D39\uFF08\u5143\uFF09",key:"totalOilCost",prop:"totalOilCost",width:"160"},{label:"\u5E94\u4ED8\u8D85\u65F6\u8D39\uFF08\u5143\uFF09",key:"workingOvertimeFee",prop:"workingOvertimeFee",width:"160"},{label:"\u5E94\u4ED8\u591C\u73ED\u8D39\uFF08\u5143\uFF09",key:"nightWorkingFee",prop:"nightWorkingFee",width:"160"},{label:"\u5E94\u4ED8\u4E0B\u53BF\u8865\u8D34\uFF08\u5143\uFF09",key:"countySubsidyFee",prop:"countySubsidyFee",width:"160"},{label:"\u5E94\u4ED8\u9AD8\u901F\u8D39\uFF08\u5143\uFF09",key:"expresswayFee",prop:"expresswayFee",width:"160"},{label:"\u5E94\u4ED8\u505C\u8F66\u8D39\uFF08\u5143\uFF09",key:"parkingFee",prop:"parkingFee",width:"160"},{label:"\u5E94\u4ED8\u9644\u52A0\u8D39\uFF08\u5143\uFF09",key:"surcharge",prop:"surcharge",width:"160"},{label:"\u5E94\u4ED8\u5176\u4ED6\u8D39\u7528\uFF08\u5143\uFF09",key:"otherCost",prop:"otherCost",width:"160"},{label:"\u5E94\u4ED8\u670D\u52A1\u8D39\uFF08\u5143\uFF09",key:"serviceFee",prop:"serviceFee",width:"140",fixed:"right"},{label:"\u603B\u8BA1\u8D39\u7528\uFF08\u5143\uFF09",key:"totalFee",prop:"totalFee",width:"140",fixed:"right"},{label:(a[s.name]||a[t.state])===4?"\u5DF2\u786E\u8BA4\u7ED3\u7B97\u5355":"\u5DF2\u7B7E\u5B57\u76D6\u7AE0\u7ED3\u7B97\u5355",key:"examineFile",render:l=>w("a",{class:"text-primary",onclick(){const i=k.resolve({path:"/fileView",query:{id:l.examineFile}});window.open(i.href,"_blank")}},"\u67E5\u770B"),hidden:[2,3,4].every(l=>l!==(a[s.name]||a[t.state])),width:"160"},{label:"\u6536\u6B3E\u8BC1\u660E",key:"collectionFile",render:l=>w("a",{class:"text-primary",onclick(){const i=k.resolve({path:"/fileView",query:{id:l.collectionFile}});window.open(i.href,"_blank")}},"\u67E5\u770B"),hidden:[3,4].every(l=>l!==(a[s.name]||a[t.state])),width:"160"},{label:"\u53D1\u7968",key:"invoiceFile",render:l=>w("a",{class:"text-primary",onclick(){const i=k.resolve({path:"/fileView",query:{id:l.invoiceFile}});window.open(i.href,"_blank")}},"\u67E5\u770B"),hidden:(a[s.name]||a[t.state])!==4,width:"160"},{label:"\u64CD\u4F5C",key:"action",slot:"action",width:(a[s.name]||a[t.state])===1?"240":(a[s.name]||a[t.state])===4?"120":"160",fixed:"right"}]),E=v([]),{cascaderProps:A}=$e(),Q=v([{label:"\u5E8F\u53F7",type:"index",width:"80"},{label:"\u59D3\u540D",key:"companyName",prop:"companyName",width:"120"},{label:"\u5F00\u59CB\u65F6\u95F4",key:"startTime",render:l=>w("span",C(l.startTime).format("YYYY-MM-DD")),width:"140"},{label:"\u7ED3\u675F\u65F6\u95F4",key:"endTime",render:l=>w("span",C(l.endTime).format("YYYY-MM-DD")),width:"140"},{label:"\u624B\u673A\u53F7",key:"phoneNo",prop:"phoneNo",width:"180"},{label:"\u6240\u5C5E\u533A\u57DF",key:"regionDisplayName",prop:"regionDisplayName",minWidth:"180",showOverflowTooltip:!0},{label:"\u8BA2\u5355\u6570",key:"carTotalFee",prop:"carTotalFee",width:"160"},{label:"\u5E94\u4ED8\u8D39\u7528\uFF08\u5143\uFF09",key:"totalOilCost",prop:"totalOilCost",width:"160"},{label:"\u64CD\u4F5C",key:"action",slot:"action",width:"120",fixed:"right"}]),U=v([]),x=(...i)=>Y(this,[...i],function*(l=$.value.pageParams){var h,f;const d=yield ye(a[s.name]||a[t.state],j(S(S({},l),o.value),{pageSize:a[s.name]?l.pageSize:5,startTime:(h=o.value.times)==null?void 0:h[0],endTime:(f=o.value.times)==null?void 0:f[1],times:void 0}));M.value=d.data.total,U.value=d.data.records}),X=()=>{x()},Z=()=>{o.value={},$.value.pageParams.pageNumber=1,$.value.pageParams.pageSize=10,x()},{exportLoading:H,exportData:J}=De(),K=l=>{const i=s.name.toString();k.push({name:"orderListInSettlementDoc",query:{companyName:l.companyName,times:[l.startTime,l.endTime],activeMenu:i,isOrder:1,projectId:l.projectId,settlementId:a[s.name]===1?l.id:""}})},ee=l=>Y(this,null,function*(){const i=Se(l);yield Ne();let d=document.getElementById("printContent");d.contentDocument.write(i),d.contentDocument.close(),d.contentWindow.onload=()=>{d.contentWindow.print(),d=null}}),z=v(),I=v(!1),ae=l=>{z.value=l,I.value=!0},te=l=>{I.value=!1,l&&x()},le=()=>Y(this,null,function*(){try{u.value=!0,yield he(),x(),_.$message.success("\u91CD\u65B0\u751F\u6210\u4E0A\u6708\u7ED3\u7B97\u5355\u6210\u529F\uFF01")}finally{u.value=!1}});return ke(()=>Y(this,null,function*(){s.name==="personalSettlementForm"&&(E.value=(yield xe()).data),x()})),m({total:M}),(l,i)=>{const d=b("el-input"),h=b("el-form-item"),f=b("el-col"),se=b("el-cascader"),ne=b("el-date-picker"),O=b("el-button"),oe=b("el-row"),ie=b("el-form"),q=b("el-card"),pe=b("table-list");return g(),F("div",Ve,[Me,a[r(s).name]?(g(),R(q,{key:0,shadow:"never",class:"search mb-16"},{default:p(()=>[n(ie,{"label-suffix":":",model:o.value,size:"small"},{default:p(()=>[n(oe,{gutter:16},{default:p(()=>[r(s).name!=="personalSettlementForm"?(g(),F(B,{key:0},[n(f,{span:6},{default:p(()=>[n(h,{label:"\u6240\u5C5E\u4F01\u4E1A"},{default:p(()=>[n(d,{modelValue:o.value.companyName,"onUpdate:modelValue":i[0]||(i[0]=c=>o.value.companyName=c),maxlength:"10",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),n(f,{span:6},{default:p(()=>[n(h,{label:"\u6240\u5C5E\u9879\u76EE"},{default:p(()=>[n(d,{modelValue:o.value.projectName,"onUpdate:modelValue":i[1]||(i[1]=c=>o.value.projectName=c),maxlength:"10",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1})],64)):(g(),F(B,{key:1},[n(f,{span:6},{default:p(()=>[n(h,{label:"\u59D3\u540D"},{default:p(()=>[n(d,{modelValue:o.value.name,"onUpdate:modelValue":i[2]||(i[2]=c=>o.value.name=c),maxlength:"10",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),n(f,{span:6},{default:p(()=>[n(h,{label:"\u6240\u5C5E\u533A\u57DF"},{default:p(()=>[n(se,{modelValue:o.value.regionCode,"onUpdate:modelValue":i[3]||(i[3]=c=>o.value.regionCode=c),props:r(A),options:E.value,clearable:"",class:"w-full"},null,8,["modelValue","props","options"])]),_:1})]),_:1})],64)),n(f,{span:7},{default:p(()=>[n(h,{label:"\u65F6\u95F4\u8303\u56F4"},{default:p(()=>[n(ne,{modelValue:o.value.times,"onUpdate:modelValue":i[4]||(i[4]=c=>o.value.times=c),format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",type:"daterange","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4"},null,8,["modelValue"])]),_:1})]),_:1}),n(f,{span:5},{default:p(()=>[n(h,{class:"btn"},{default:p(()=>[n(O,{type:"primary",onClick:X},{default:p(()=>[Ie]),_:1}),n(O,{type:"info",onClick:Z},{default:p(()=>[je]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})):D("",!0),n(q,{shadow:"never",class:Te(a[r(s).name]?"":"noCardStyle")},Fe({default:p(()=>[n(pe,{ref_key:"tableListRef",ref:$,column:r(s).name!=="personalSettlementForm"?G.value:Q.value,data:U.value,total:M.value,pagination:Boolean(a[r(s).name]),"empty-temp":Boolean(a[r(s).name]),onGetTableData:x},{action:p(({scope:c})=>[T("a",{class:"text-primary",onClick:N=>K(c.row)},"\u8BA2\u5355\u8BE6\u60C5",8,qe),r(s).name!=="personalSettlementForm"?(g(),F(B,{key:0},[(a[r(s).name]||a[t.state])!==4?(g(),F("a",{key:0,class:"text-primary",onClick:N=>ae(c.row)},Ce((a[r(s).name]||a[t.state])===1?"\u786E\u8BA4\u7ED3\u7B97\u5355":(a[r(s).name]||a[t.state])===2?"\u786E\u8BA4\u6536\u6B3E":(a[r(s).name]||a[t.state])===3?"\u786E\u8BA4\u5F00\u7968":""),9,Le)):D("",!0),(a[r(s).name]||a[t.state])===1?(g(),F("a",{key:1,class:"text-primary",onClick:N=>ee(c.row)},"\u7ED3\u7B97\u5355\u4E0B\u8F7D",8,We)):D("",!0)],64)):D("",!0)]),_:1},8,["column","data","total","pagination","empty-temp"])]),_:2},[a[r(s).name]?{name:"header",fn:p(()=>[T("div",Be,[Ee,T("div",null,[n(O,{loading:r(H),type:"primary",plain:"",icon:"Download",size:"small",onClick:i[5]||(i[5]=c=>r(J)(()=>{var N,L;return r(ve)(j(S({},o.value),{startTime:(N=o.value.times)==null?void 0:N[0],endTime:(L=o.value.times)==null?void 0:L[1],times:void 0,status:(a[r(s).name]||a[t.state])&&["TO_BE_CONFIRM","TO_BE_PAY","TO_BE_INVOICING","INVOICING"][(a[r(s).name]||a[t.state])-1]}))}))},{default:p(()=>[Ue]),_:1},8,["loading"]),[1,5].includes(a[r(s).name])&&r(y).role==="super_admin"?(g(),R(O,{key:0,loading:u.value,type:"primary",plain:"",size:"small",onClick:le},{default:p(()=>[ze]),_:1},8,["loading"])):D("",!0)])])]),key:"0"}:void 0]),1032,["class"]),n(be,{visible:I.value,data:z.value,onClose:te},null,8,["visible","data"])])}}});export{He as default};