import{a1 as p,aP as d,_ as y,d as x,n as k,ab as I,w as P,r as h,o as O,G as D,C as l,j as i,l as r,aJ as m,J as g,M as F}from"./index.js";import{u as z}from"./use-page-search.98f4d8c5.js";import{O as R,o as V}from"./index.76ffe1.js";import{a as N}from"./index.88627bd5.js";import{t as T,a as w}from"./shared.e62a6d9e.js";import{u as S}from"./status.d3ab78fb.js";import{r as c}from"./columnRenderHelper.1a68f3ef.js";import{u as f,w as L}from"./execl-upload.1cb51bca.js";import"./index.6a949acb.js";const j=[{label:"\u786E\u8BA4\u5355\u7F16\u53F7",prop:"orderCode",width:150},{label:"\u9500\u552E\u4E3B\u5355\u53F7",prop:"cxCode",width:150},{label:"\u4E1A\u52A1\u7C7B\u578B",prop:"type",width:80,cellRenderer({row:o}){return p(d,{size:"small"},{default:()=>{var t;return((t=T.find(u=>u.value==o.type))==null?void 0:t.label)||"--"}})}},{label:"\u72B6\u6001",width:80,cellRenderer({row:o}){var t;return p(d,{size:"small",type:((t=w.find(u=>u.value==o.status))==null?void 0:t.type)||"warning"},{default:()=>{var u;return((u=w.find(s=>s.value==o.status))==null?void 0:u.label)||"--"}})}},{label:"\u5F02\u5E38\u539F\u56E0",width:120,prop:"error_remark"},{label:"\u5E73\u53F0\u8BA2\u5355\u53F7",prop:"poCode",width:100},{label:"\u5E73\u53F0\u7C7B\u578B",width:80,cellRenderer({row:o}){return p(d,{size:"small"},{default:()=>{var t;return((t=S.find(u=>u.value==o.platform_type))==null?void 0:t.label)||"--"}})}},{label:"\u5356\u51FA\u65B9\u516C\u53F8",width:160,...c("seller_code","seller_name","\u5356\u51FA\u65B9\u516C\u53F8\u7F16\u53F7\uFF1A")},{label:"\u5BA2\u6237\u516C\u53F8",width:160,...c("buyer_code","buyer_name","\u5BA2\u6237\u516C\u53F8\u7F16\u53F7:")},{label:"\u5546\u54C1\u540D\u79F0",width:160,...c("goodNo","goodName","\u5546\u54C1\u7F16\u53F7:")},{label:"\u4E0B\u5355\u6570\u91CF",prop:"num",width:100},{label:"\u9500\u552E\u5355\u4EF7",prop:"goodPrice",width:100},{label:"\u9500\u552E\u5408\u8BA1",prop:"totalPrice",width:100},{label:"\u51FA\u5E93\u65F6\u95F4",prop:"fz_date",width:100},{label:"\u64CD\u4F5C",fixed:"right",width:50,slot:"operation"}],M={columns:j,title:"\u5546\u54C1\u7BA1\u7406",permissions:["007"],apis:{httpList:(o={})=>N({...o,channel:[3]}),httpAdd:!0}},A={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"}}]},$="inOutManager",J=x({__name:"index",setup(o){const t=k(),u=I({orderImportVisible:!1,notOrderImportVisible:!1}),s={pageSearchHook:()=>z(void 0,void 0,A)},C=P(null),B={content:{create:()=>t.push("/invoiceInOut/clinetCDetail"),preview:({id:a})=>t.push("/invoiceInOut/clinetCDetail?id="+a)}};function E(){const a=f.book_new(),e=f.json_to_sheet(V);f.book_append_sheet(a,e,"sheet"),L(a,"C\u7AEF\u65E0\u53D1\u7968\u8BA2\u5355\u51FA\u5E93\u6A21\u677F.xlsx",{bookType:"xlsx"})}return(a,e)=>{const v=h("PageContainer"),_=h("PageAuth");return O(),D(_,{pageName:$},{default:l(()=>[i(v,{hooks:s,events:B,searchConfig:r(A),contentConfig:r(M),"get-content-ref":n=>C.value=n},{content_header:l(()=>[i(r(m),{size:"small",type:"primary",style:{"margin-right":"10px","margin-top":"1px"},icon:r(g)("arrow-up-line"),onClick:e[0]||(e[0]=n=>u.orderImportVisible=!0)},{default:l(()=>e[4]||(e[4]=[F("C\u7AEF\u65E0\u53D1\u7968\u8BA2\u5355\u51FA\u5E93\u5BFC\u5165 ")])),_:1},8,["icon"]),i(r(m),{size:"small",style:{"margin-right":"10px","margin-top":"1px"},onClick:E,icon:r(g)("arrow-down-line")},{default:l(()=>e[5]||(e[5]=[F("C\u7AEF\u65E0\u53D1\u7968\u8BA2\u5355\u51FA\u5E93\u6A21\u677F ")])),_:1},8,["icon"]),i(r(m),{size:"small",type:"primary",onClick:e[1]||(e[1]=n=>r(t).push("/invoiceInOut/clinetCDetail"))},{default:l(()=>e[6]||(e[6]=[F("\u6279\u91CF\u5BA1\u6838 ")])),_:1})]),_:1},8,["searchConfig","contentConfig","get-content-ref"]),i(R,{visible:u.orderImportVisible,"onUpdate:visible":e[2]||(e[2]=n=>u.orderImportVisible=n),onRefresh:e[3]||(e[3]=n=>{var b;return(b=C.value)==null?void 0:b.onSearch()})},null,8,["visible"])]),_:1})}}});var Z=y(J,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/clientC/index.vue"]]);export{Z as default};
