index.4f356d.js 4.2 KB

1
  1. import{ac as p,aY as d,_,d as x,n as k,W as I,w as O,r as b,o as P,G as D,C as l,j as i,l as r,aR as m,J as g,M as F}from"./index.js";import{u as R}from"./use-page-search.64c4cb3a.js";import{O as z,o as N}from"./index.76ffe1.js";import{a as V}from"./index.3c772538.js";import{t as T,a as A}from"./shared.e62a6d9e.js";import{u as S}from"./status.4e0ebdbc.js";import{r as c}from"./columnRenderHelper.6fd631b0.js";import{u as f,w as L}from"./execl-upload.5dfdadc6.js";import"./index.e9006de7.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 u;return((u=T.find(t=>t.value==o.type))==null?void 0:u.label)||"--"}})}},{label:"\u72B6\u6001",width:80,cellRenderer({row:o}){var u;return p(d,{size:"small",type:((u=A.find(t=>t.value==o.status))==null?void 0:u.type)||"warning"},{default:()=>{var t;return((t=A.find(s=>s.value==o.status))==null?void 0:t.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 u;return((u=S.find(t=>t.value==o.platform_type))==null?void 0:u.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={})=>V({...o,channel:[3]}),httpAdd:!0}},w={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"}},{field:"orderCode",placeholder:"\u9500\u552E\u5355\u7F16\u53F7",type:"input"},{field:"goodNo",placeholder:"\u8BA2\u5355\u5546\u54C1\u7F16\u53F7",type:"input"}]},$="inOutManager",U=x({__name:"index",setup(o){const u=k(),t=I({orderImportVisible:!1,notOrderImportVisible:!1}),s={pageSearchHook:()=>R(void 0,void 0,w)},C=O(null),B={content:{create:()=>u.push("/invoiceInOut/clinetCDetail"),preview:({id:a})=>u.push("/invoiceInOut/clinetCDetail?id="+a)}};function E(){const a=f.book_new(),e=f.json_to_sheet(N);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=b("PageContainer"),y=b("PageAuth");return P(),D(y,{pageName:$},{default:l(()=>[i(v,{hooks:s,events:B,searchConfig:r(w),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=>t.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(u).push("/invoiceInOut/clinetCDetail"))},{default:l(()=>e[6]||(e[6]=[F("\u6279\u91CF\u5BA1\u6838 ")])),_:1})]),_:1},8,["searchConfig","contentConfig","get-content-ref"]),i(z,{visible:t.orderImportVisible,"onUpdate:visible":e[2]||(e[2]=n=>t.orderImportVisible=n),onRefresh:e[3]||(e[3]=n=>{var h;return(h=C.value)==null?void 0:h.onSearch()})},null,8,["visible"])]),_:1})}}});var Z=_(U,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/clientC/index.vue"]]);export{Z as default};