import{u as C,_ as B}from"./use-page-search.1049548b.js";import{P as y}from"./page-content.c2f07d62.js";import{i as _}from"./status.a5cd00d1.js";import{aG as E,aH as w,ah as D,aE as b,aX as p,_ as g,q as A,B as c,C as Y,aQ as k,r as P,o as R,n as x,t as a,H as d,p as M,v as t,bw as I}from"./index.f0f7bda7.js";import{I as V}from"./index.6b7669ff.js";import"./basic-form.01660164.js";import"./global.9ad647c8.js";import"./hooks.01f19009.js";import"./index.c99c665e.js";import"./responseHandle.c0bb750f.js";import"./use-response-handle.e77e146e.js";import"./invoice.278cc381.js";import"./status.b8063a0d.js";const N={formItems:[{field:"invNo",type:"input",placeholder:"\u8BF7\u8F93\u5165\u53D1\u7968\u7533\u8BF7\u7F16\u53F7"},{field:"inv_out",type:"input",placeholder:"\u4E1A\u52A1\u4F01\u4E1A\u516C\u53F8\u7F16\u53F7"},{field:"timer",type:"date_picker",otherOptions:{type:"daterange",startPlaceholder:"\u7533\u8BF7\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u7533\u8BF7\u7ED3\u675F\u65F6\u95F4"}},{field:"inv_type",type:"select",placeholder:"\u8BF7\u9009\u62E9\u53D1\u7968\u7C7B\u578B",options:_}]},{VITE_PROXY_DOMAIN_REAL:ne,VITE_PROXY_USER_REAL:S}=w(),H=S+"/admin/",O=e=>E.request("post",`${H}orderinvlist`,{data:{...e,status:"3"}}),L=[{type:"selection",width:55,hide:({checkList:e})=>!e.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",width:70,hide:({checkList:e})=>!e.includes("\u5E8F\u53F7\u5217")},{label:"\u53D1\u7968\u7533\u8BF7\u7F16\u53F7",prop:"invNo",width:200},{label:"\u4E1A\u52A1\u4F01\u4E1A\u7F16\u53F7",prop:"inv_out",width:200},{label:"\u4E1A\u52A1\u516C\u53F8\u540D\u79F0",prop:"inv_company",width:200},{prop:"buyer_title",label:"\u5BA2\u6237\u53D1\u7968\u62AC\u5934",width:200},{label:"\u7A0E\u540E\u91D1\u989D",prop:"inv_value",width:110},{label:"\u53D1\u7968\u7C7B\u578B",width:130,cellRenderer({row:e}){const o=_.find(i=>i.value===e.inv_type);return D(b,{type:o.type},{default:()=>o.label})}},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name"},{label:"\u7533\u8BF7\u65F6\u95F4",width:170,prop:"addtime",formatter:({addtime:e})=>e?p(e).format("YYYY-MM-DD HH:mm:ss"):""},{label:"\u64CD\u4F5C",fixed:"right",width:55,slot:"operation"}],r={title:"\u53D1\u7968\u516C\u6D77\u6C60",powers:["001","002","003","004","005","006","007","008"],inv:!0,columns:L,apis:{httpList:O}};const T={class:"main role"},U={"w-full":""},X={name:"invoicePool"},$=A({...X,setup(e){const o=c(!1),i=c(""),m=({timer:l})=>{const[u,s]=l;return{result:{start:u?p(u).format("YYYY-MM-DD"):"",end:s?p(s).format("YYYY-MM-DD"):""},deleteProps:["timer"]}};async function f(l){o.value=!0,i.value=l}const{pageContentRef:v,handleResetClick:F,handleSearchClick:h}=C(m);return Y(()=>r.powers=k().getMenuActions("invoicePool")),(l,u)=>{const s=P("el-dialog");return R(),x("div",T,[a(I,{"is-show":t(r).powers.some(n=>n==="001")},{default:d(()=>[M("div",U,[a(t(B),{"form-config":t(N),onSearchBtnClick:t(h),onResetBtnClick:t(F)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),a(t(y),{ref_key:"pageContentRef",ref:v,"content-config":t(r),onPreviewBtnClick:u[0]||(u[0]=({inv_number:n})=>f(n))},null,8,["content-config"])]),a(s,{width:"1040px",modelValue:o.value,"onUpdate:modelValue":u[1]||(u[1]=n=>o.value=n)},{default:d(()=>[a(t(V),{"inv-number":i.value,type:"sale"},null,8,["inv-number"])]),_:1},8,["modelValue"])]),_:1},8,["is-show"])])}}});var ae=g($,[["__scopeId","data-v-cb998ea2"]]);export{ae as default};