1 |
- import{ac as s,aY as p,_ as O,d as P,n as D,W as N,w as R,a4 as V,r as w,o as d,G as m,C as l,j as F,l as o,aR as c,J as v,M as f,a as B}from"./index.js";import{u as z}from"./use-page-search.0088a7fd.js";import{O as S,o as T}from"./index.76ffe1.js";import{a as L}from"./index.f515ddec.js";import{t as U,a as E}from"./shared.e62a6d9e.js";import{u as j}from"./status.4e0ebdbc.js";import{r as C}from"./columnRenderHelper.e53c11ea.js";import{u as h,w as M}from"./execl-upload.0e9ffc49.js";import"./index.00d6e041.js";const $=[{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:r}){return s(p,{size:"small"},{default:()=>{var t;return((t=U.find(u=>u.value==r.type))==null?void 0:t.label)||"--"}})}},{label:"\u72B6\u6001",width:80,cellRenderer({row:r}){var t;return s(p,{size:"small",type:((t=E.find(u=>u.value==r.status))==null?void 0:t.type)||"warning"},{default:()=>{var u;return((u=E.find(i=>i.value==r.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:r}){return s(p,{size:"small"},{default:()=>{var t;return((t=j.find(u=>u.value==r.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"}],G={columns:$,title:"\u5546\u54C1\u7BA1\u7406",permissions:["007"],apis:{httpList:(r={})=>L({...r,channel:[3]}),httpAdd:!0}},y={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"}]},H="inOutManager",J=P({__name:"index",setup(r){const t=D(),u=N({orderImportVisible:!1,notOrderImportVisible:!1}),i={pageSearchHook:()=>z(void 0,void 0,y)},b=R(null),{isSuperUser:g}=V(),_={content:{create:()=>t.push("/invoiceInOut/clinetCDetail"),preview:({id:a})=>t.push("/invoiceInOut/clinetCDetail?id="+a)}};function k(){const a=h.book_new(),e=h.json_to_sheet(T);h.book_append_sheet(a,e,"sheet"),M(a,"C\u7AEF\u65E0\u53D1\u7968\u8BA2\u5355\u51FA\u5E93\u6A21\u677F.xlsx",{bookType:"xlsx"})}return(a,e)=>{const x=w("PageContainer"),I=w("PageAuth");return d(),m(I,{pageName:H},{default:l(()=>[F(x,{hooks:i,events:_,searchConfig:o(y),contentConfig:o(G),"get-content-ref":n=>b.value=n},{content_header:l(()=>[o(g)?B("v-if",!0):(d(),m(o(c),{key:0,size:"small",type:"primary",style:{"margin-right":"10px","margin-top":"1px"},icon:o(v)("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"])),F(o(c),{size:"small",style:{"margin-right":"10px","margin-top":"1px"},onClick:k,icon:o(v)("arrow-down-line")},{default:l(()=>e[5]||(e[5]=[f("C\u7AEF\u65E0\u53D1\u7968\u8BA2\u5355\u51FA\u5E93\u6A21\u677F ")])),_:1},8,["icon"]),o(g)?B("v-if",!0):(d(),m(o(c),{key:1,size:"small",type:"primary",onClick:e[1]||(e[1]=n=>o(t).push("/invoiceInOut/clinetCDetail"))},{default:l(()=>e[6]||(e[6]=[f("\u6279\u91CF\u5BA1\u6838 ")])),_:1}))]),_:1},8,["searchConfig","contentConfig","get-content-ref"]),F(S,{visible:u.orderImportVisible,"onUpdate:visible":e[2]||(e[2]=n=>u.orderImportVisible=n),onRefresh:e[3]||(e[3]=n=>{var A;return(A=b.value)==null?void 0:A.onSearch()})},null,8,["visible"])]),_:1})}}});var ue=O(J,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/clientC/index.vue"]]);export{ue as default};
|