import{aF as b,ab as f,ac as C,aZ as h,_ as g,d as A,n as B,W as D,w as O,r as d,o as I,G as w,C as R,j as l,l as m}from"./index.js";import{u as P}from"./use-page-search.c6a73876.js";import y from"./index.bdcf42.js";import V from"./index.674a5d.js";import{r as i}from"./columnRenderHelper.c9666c60.js";import{a as c}from"./shared.b2aeacac.js";import"./execl-upload.765cd18b.js";import"./index.81d51bb0.js";import"./status.0f771e9a.js";const{VITE_PROXY_DOMAIN_REAL:H,VITE_PROXY_USER_REAL:K,VITE_WORKORDER_REAL:x}=f(),N=x,k=t=>b.request("post",`${N}/cxinv/FinancialManager/list`,{data:t}),L=[{label:"\u53D1\u7968\u660E\u7EC6ID",prop:"inv_item_id",width:90},{label:"\u4E1A\u52A1\u7F16\u53F7",minWidth:150,prop:"invoiceCode"},{label:"\u8D2D\u4E70\u65B9\u516C\u53F8",width:150,...i("buyer_code","buyer_name","\u9500\u552E\u65B9\u516C\u53F8\u7EB3\u7A0E\u53F7:")},{label:"\u9500\u552E\u65B9\u516C\u53F8",prop:"seller_code",width:150,...i("seller_code","seller_name","\u9500\u552E\u65B9\u516C\u53F8\u7EB3\u7A0E\u53F7:")},{label:"\u5546\u54C1\u540D\u79F0",prop:"goodName",minWidth:140,...i("goodNo","goodName","\u5546\u54C1\u7F16\u53F7:")},{label:"\u5546\u54C1\u6570\u91CF",prop:"num",width:100},{label:"\u7A0E\u524D\u5355\u4EF7",prop:"inv_subprice",width:120},{label:"\u7A0E\u540E\u5355\u4EF7",prop:"inv_price",width:120},{label:"\u53D1\u7968\u8D2D\u4E70\u65B9\u516C\u53F8",width:120,...i("inv_buyer_code","inv_buyer_name","\u8D2D\u4E70\u65B9\u516C\u53F8\u540D\u79F0\u7EB3\u7A0E\u53F7:")},{label:"\u53D1\u7968\u9500\u552E\u65B9\u516C\u53F8",width:180,...i("inv_seller_code","inv_seller_name","\u53D1\u7968\u9500\u552E\u65B9\u516C\u53F8\u7EB3\u7A0E\u53F7:")},{label:"\u72B6\u6001",width:80,cellRenderer({row:t}){var r;return C(h,{size:"small",type:(r=c.find(e=>t.status==e.value))==null?void 0:r.type},{default:()=>{var e;return(e=c.find(a=>t.status==a.value))==null?void 0:e.label}})}},{label:"\u521B\u5EFA\u4EBA",prop:"apply_name",width:120},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time",width:120},{label:"\u64CD\u4F5C",fixed:"right",slot:"operation",width:45}],M={columns:L,title:"\u5546\u54C1\u7BA1\u7406",permissions:["007"],companyProp:"inv_seller_code",apis:{httpList:(t={})=>k({...t,manager_status:"2"}),httpAdd:!0}},_={formItems:[{field:"timer",type:"date_picker",span:7,label:"\u521B\u5EFA\u65F6\u95F4",otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u7ED3\u675F\u65F6\u95F4"}}]},S="inOutManager",T=A({__name:"index",setup(t){const r=B(),e=D({orderImportVisible:!1,notOrderImportVisible:!1}),a={pageSearchHook:()=>P(void 0,void 0,_)},s=O(null),v={content:{create:()=>r.push("/invoiceInOut/provisionOutDetail"),preview:({id:p})=>r.push("/invoiceInOut/provisionOutDetail?id="+p)}};return(p,u)=>{const E=d("PageContainer"),F=d("PageAuth");return I(),w(F,{pageName:S},{default:R(()=>[l(E,{hooks:a,events:v,searchConfig:m(_),contentConfig:m(M),"get-content-ref":o=>s.value=o},null,8,["searchConfig","contentConfig","get-content-ref"]),l(V,{visible:e.orderImportVisible,"onUpdate:visible":u[0]||(u[0]=o=>e.orderImportVisible=o),onRefresh:u[1]||(u[1]=o=>{var n;return(n=s.value)==null?void 0:n.onSearch()})},null,8,["visible"]),l(y,{visible:e.notOrderImportVisible,"onUpdate:visible":u[2]||(u[2]=o=>e.notOrderImportVisible=o),onRefresh:u[3]||(u[3]=o=>{var n;return(n=s.value)==null?void 0:n.onSearch()})},null,8,["visible"])]),_:1})}}});var Z=g(T,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/provisionOut/index.vue"]]);export{Z as default};