var be=Object.defineProperty,fe=Object.defineProperties;var ge=Object.getOwnPropertyDescriptors;var Q=Object.getOwnPropertySymbols;var _e=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable;var X=(e,c,l)=>c in e?be(e,c,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[c]=l,j=(e,c)=>{for(var l in c||(c={}))_e.call(c,l)&&X(e,l,c[l]);if(Q)for(var l of Q(c))we.call(c,l)&&X(e,l,c[l]);return e},L=(e,c)=>fe(e,ge(c));var M=(e,c,l)=>new Promise((_,f)=>{var n=h=>{try{p(l.next(h))}catch(t){f(t)}},T=h=>{try{p(l.throw(h))}catch(t){f(t)}},p=h=>h.done?_(h.value):Promise.resolve(h.value).then(n,T);p((l=l.apply(e,c)).next())});import{e as ke,l as xe,a as Fe}from"./settlementDocManage.389bb02a.js";import{M as D,d as Ce,y as Te,k as Ne,u as Ye,r as v,O as x,o as De,R as Se,f as y,g as b,c as Y,v as r,n as B,w as i,e as o,F as W,p as F,Y as $e,b as C,t as Ve,Z as Me,h as S,A as Oe,E as Ie,i as je}from"./index.5459e2ad.js";import Be from"./confirmDialog.821596de.js";import{u as Ee}from"./useExportExc.5867a959.js";import{u as Ue}from"./useTreeSelectData.6082ee36.js";import ze from"./mergeDialog.419ebc4f.js";import"./uploadAction.7e1f76bc.js";function qe(e){let c="",l="\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)),l=l.substr(l.length-e.length);for(let f=0;f` \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 ${D(e.startTime).format("YYYY-MM-DD")}\u81F3${D(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${qe(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

`;const We={class:"statementList"},Pe=C("div",{style:{height:"0",width:"0",overflow:"hidden"}},[C("iframe",{id:"printContent"})],-1),Re=S("\u67E5\u8BE2"),Ge=S("\u91CD\u7F6E"),Ae={class:"flex items-center"},Qe=C("span",{style:{"margin-right":"20px"}},"\u7ED3\u7B97\u5355\u5217\u8868",-1),Xe=S("\u5408\u5E76\u7ED3\u7B97\u5355"),Ze=S("\u786E\u8BA4\u5408\u5E76"),He=C("div",{style:{flex:"1"}},null,-1),Je=S(" \u5BFC\u51FA "),Ke=S(" \u91CD\u65B0\u751F\u6210\u4E0A\u6708\u7ED3\u7B97\u5355 "),ea=["onClick"],aa=["onClick"],ta=["onClick"],la=Ce({name:"statementList"}),da=Object.assign(la,{props:{state:String},setup(e,{expose:c}){const l=e,{proxy:_}=je(),f=Te.userStore.userBaseInfo,n=Ne(),T=Ye(),p=v({}),h=v(!1),t={statementToBeConfirmed:1,pendingPaymentSettlementDoc:2,settlementDocToBeInvoiced:3,invoicedSettlementDocument:4,personalSettlementForm:5},$=v(),E=v(0),U=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:a=>x("span",D(a.startTime).format("YYYY-MM-DD")),width:"140"},{label:"\u6708\u5C3E\u65E5\u671F",key:"endTime",render:a=>x("span",D(a.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:(t[n.name]||t[l.state])===4?"\u5DF2\u786E\u8BA4\u7ED3\u7B97\u5355":"\u5DF2\u7B7E\u5B57\u76D6\u7AE0\u7ED3\u7B97\u5355",key:"examineFile",render:a=>x("a",{class:"text-primary",onclick(){const s=T.resolve({path:"/fileView",query:{id:a.examineFile}});window.open(s.href,"_blank")}},"\u67E5\u770B"),hidden:[2,3,4].every(a=>a!==(t[n.name]||t[l.state])),width:"160"},{label:"\u6536\u6B3E\u8BC1\u660E",key:"collectionFile",render:a=>x("a",{class:"text-primary",onclick(){const s=T.resolve({path:"/fileView",query:{id:a.collectionFile}});window.open(s.href,"_blank")}},"\u67E5\u770B"),hidden:[3,4].every(a=>a!==(t[n.name]||t[l.state])),width:"160"},{label:"\u53D1\u7968",key:"invoiceFile",render:a=>x("a",{class:"text-primary",onclick(){const s=T.resolve({path:"/fileView",query:{id:a.invoiceFile}});window.open(s.href,"_blank")}},"\u67E5\u770B"),hidden:(t[n.name]||t[l.state])!==4,width:"160"},{label:"\u64CD\u4F5C",key:"action",slot:"action",width:(t[n.name]||t[l.state])===1?"240":(t[n.name]||t[l.state])===4?"120":"160",fixed:"right"}]),P=v([]),{cascaderProps:Z}=Ue(),H=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:a=>x("span",D(a.startTime).format("YYYY-MM-DD")),width:"140"},{label:"\u7ED3\u675F\u65F6\u95F4",key:"endTime",render:a=>x("span",D(a.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"}]),R=v([]),w=(...s)=>M(this,[...s],function*(a=$.value.pageParams){var d,g;const m=yield xe(t[n.name]||t[l.state],L(j(j({},a),p.value),{pageSize:t[n.name]?a.pageSize:5,startTime:(d=p.value.times)==null?void 0:d[0],endTime:(g=p.value.times)==null?void 0:g[1],times:void 0}));E.value=m.data.total,R.value=m.data.records}),J=()=>{w()},K=()=>{p.value={},$.value.pageParams.pageNumber=1,$.value.pageParams.pageSize=10,w()},{exportLoading:ee,exportData:ae}=Ee(),te=a=>{const s=n.name.toString();T.push({name:"orderListInSettlementDoc",query:{companyName:a.companyName,times:[a.startTime,a.endTime],activeMenu:s,isOrder:1,projectId:a.projectId,settlementId:t[n.name]===1?a.id:""}})},le=a=>M(this,null,function*(){const s=Le(a);yield Oe();let m=document.getElementById("printContent");m.contentDocument.write(s),m.contentDocument.close(),m.contentWindow.onload=()=>{m.contentWindow.print(),m=null}}),O=v(),z=v(!1),ne=a=>{O.value=a,z.value=!0},se=a=>{z.value=!1,a&&w()},q=v(!1),oe=a=>{q.value=!1,k=[],I.value=!1,U.value.shift(),$.value.clearSelection(),a&&w()},ie=()=>M(this,null,function*(){try{h.value=!0,yield Fe(),w(),_.$message.success("\u91CD\u65B0\u751F\u6210\u4E0A\u6708\u7ED3\u7B97\u5355\u6210\u529F\uFF01")}finally{h.value=!1}});De(()=>M(this,null,function*(){n.name==="personalSettlementForm"&&(P.value=(yield Se()).data),w()})),c({total:E});const I=v(!1);function re(){I.value=!0,U.value.unshift({label:"",reserveSelection:!0,type:"selection",width:"50"})}function pe(){if(k.length<2){Ie.warning("\u8BF7\u81F3\u5C11\u9009\u62E9\u4E24\u4E2A\u8981\u5408\u5E76\u7684\u7ED3\u7B97\u5355");return}O.value=k,q.value=!0}function ce(a){if(k.length>0){let s=!0;for(let m=0;m{const m=y("el-input"),d=y("el-form-item"),g=y("el-col"),de=y("el-cascader"),ue=y("el-date-picker"),N=y("el-button"),ve=y("el-row"),he=y("el-form"),G=y("el-card"),ye=y("table-list");return b(),Y("div",We,[Pe,t[r(n).name]?(b(),B(G,{key:0,shadow:"never",class:"search mb-16"},{default:i(()=>[o(he,{"label-suffix":":",model:p.value,size:"small"},{default:i(()=>[o(ve,{gutter:16},{default:i(()=>[r(n).name!=="personalSettlementForm"?(b(),Y(W,{key:0},[o(g,{span:6},{default:i(()=>[o(d,{label:"\u6240\u5C5E\u4F01\u4E1A"},{default:i(()=>[o(m,{modelValue:p.value.companyName,"onUpdate:modelValue":s[0]||(s[0]=u=>p.value.companyName=u),maxlength:"10",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),o(g,{span:6},{default:i(()=>[o(d,{label:"\u6240\u5C5E\u9879\u76EE"},{default:i(()=>[o(m,{modelValue:p.value.projectName,"onUpdate:modelValue":s[1]||(s[1]=u=>p.value.projectName=u),maxlength:"10",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1})],64)):(b(),Y(W,{key:1},[o(g,{span:6},{default:i(()=>[o(d,{label:"\u59D3\u540D"},{default:i(()=>[o(m,{modelValue:p.value.name,"onUpdate:modelValue":s[2]||(s[2]=u=>p.value.name=u),maxlength:"10",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),o(g,{span:6},{default:i(()=>[o(d,{label:"\u6240\u5C5E\u533A\u57DF"},{default:i(()=>[o(de,{modelValue:p.value.regionCode,"onUpdate:modelValue":s[3]||(s[3]=u=>p.value.regionCode=u),props:r(Z),options:P.value,clearable:"",class:"w-full"},null,8,["modelValue","props","options"])]),_:1})]),_:1})],64)),o(g,{span:7},{default:i(()=>[o(d,{label:"\u65F6\u95F4\u8303\u56F4"},{default:i(()=>[o(ue,{modelValue:p.value.times,"onUpdate:modelValue":s[4]||(s[4]=u=>p.value.times=u),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}),o(g,{span:5},{default:i(()=>[o(d,{class:"btn"},{default:i(()=>[o(N,{type:"primary",onClick:J},{default:i(()=>[Re]),_:1}),o(N,{type:"info",onClick:K},{default:i(()=>[Ge]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})):F("",!0),o(G,{shadow:"never",class:Me(t[r(n).name]?"":"noCardStyle")},$e({default:i(()=>[o(ye,{ref_key:"tableListRef",ref:$,class:"hide-selection-all",column:r(n).name!=="personalSettlementForm"?U.value:H.value,data:R.value,selectable:ce,total:E.value,"row-key":"id",pagination:Boolean(t[r(n).name]),"empty-temp":Boolean(t[r(n).name]),onSelectionChange:me,onGetTableData:w},{action:i(({scope:u})=>[C("a",{class:"text-primary",onClick:V=>te(u.row)},"\u8BA2\u5355\u8BE6\u60C5",8,ea),r(n).name!=="personalSettlementForm"?(b(),Y(W,{key:0},[(t[r(n).name]||t[l.state])!==4?(b(),Y("a",{key:0,class:"text-primary",onClick:V=>ne(u.row)},Ve((t[r(n).name]||t[l.state])===1?"\u786E\u8BA4\u7ED3\u7B97\u5355":(t[r(n).name]||t[l.state])===2?"\u786E\u8BA4\u6536\u6B3E":(t[r(n).name]||t[l.state])===3?"\u786E\u8BA4\u5F00\u7968":""),9,aa)):F("",!0),(t[r(n).name]||t[l.state])===1?(b(),Y("a",{key:1,class:"text-primary",onClick:V=>le(u.row)},"\u7ED3\u7B97\u5355\u4E0B\u8F7D",8,ta)):F("",!0)],64)):F("",!0)]),_:1},8,["column","data","total","pagination","empty-temp"])]),_:2},[t[r(n).name]?{name:"header",fn:i(()=>[C("div",Ae,[Qe,!I.value&&t[r(n).name]===1?(b(),B(N,{key:0,type:"primary",onClick:re},{default:i(()=>[Xe]),_:1})):F("",!0),I.value&&t[r(n).name]===1?(b(),B(N,{key:1,type:"primary",onClick:pe},{default:i(()=>[Ze]),_:1})):F("",!0),He,C("div",null,[o(N,{loading:r(ee),type:"primary",plain:"",icon:"Download",size:"small",onClick:s[5]||(s[5]=u=>r(ae)(()=>{var V,A;return r(ke)(L(j({},p.value),{startTime:(V=p.value.times)==null?void 0:V[0],endTime:(A=p.value.times)==null?void 0:A[1],times:void 0,status:(t[r(n).name]||t[l.state])&&["TO_BE_CONFIRM","TO_BE_PAY","TO_BE_INVOICING","INVOICING"][(t[r(n).name]||t[l.state])-1]}))}))},{default:i(()=>[Je]),_:1},8,["loading"]),[1,5].includes(t[r(n).name])&&r(f).role==="super_admin"?(b(),B(N,{key:0,loading:h.value,type:"primary",plain:"",size:"small",onClick:ie},{default:i(()=>[Ke]),_:1},8,["loading"])):F("",!0)])])]),key:"0"}:void 0]),1032,["class"]),o(Be,{visible:z.value,data:O.value,onClose:se},null,8,["visible","data"]),o(ze,{visible:q.value,data:O.value,onClose:oe},null,8,["visible","data"])])}}});export{da as default};