1 |
- import{ac as b,aZ as E,_,d as V,n as N,W as R,w as z,a4 as S,r as B,o as v,G as w,C as t,j as l,l as n,b2 as x,M as s,aR as g,J as I,a as h}from"./index.js";import{u as T}from"./use-page-search.09da52b8.js";import{O as $,o as U}from"./index.04fda8.js";import{N as L,n as M}from"./index.aef2b4.js";import{a as j}from"./index.7cda3ff0.js";import{t as G,a as D}from"./shared.e62a6d9e.js";import{u as H}from"./status.0f771e9a.js";import{r as A}from"./columnRenderHelper.ece2dbdf.js";import{u as c,w as J}from"./execl-upload.5fcb0d75.js";import"./index.b0107100.js";const W=[{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:i}){return b(E,{size:"small"},{default:()=>{var o;return((o=G.find(u=>u.value==i.type))==null?void 0:o.label)||"--"}})}},{label:"\u72B6\u6001",width:80,cellRenderer({row:i}){var o;return b(E,{size:"small",type:((o=D.find(u=>u.value==i.status))==null?void 0:o.type)||"warning"},{default:()=>{var u;return((u=D.find(f=>f.value==i.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:i}){return b(E,{size:"small"},{default:()=>{var o;return((o=H.find(u=>u.value==i.platform_type))==null?void 0:o.label)||"--"}})}},{label:"\u9500\u552E\u65B9\u516C\u53F8",width:160,...A("seller_code","seller_name","\u9500\u552E\u65B9\u516C\u53F8\u7F16\u53F7:")},{label:"\u8D2D\u4E70\u65B9\u516C\u53F8",width:160,...A("buyer_code","buyer_name","\u8D2D\u4E70\u65B9\u516C\u53F8\u7F16\u53F7:")},{label:"\u5546\u54C1\u540D\u79F0",width:160,...A("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"}],Z={columns:W,title:"\u5546\u54C1\u7BA1\u7406",permissions:["007"],apis:{httpList:(i={})=>j({...i,channel:[3]}),httpAdd:!0}},O={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"}]},q="inOutManager",K=V({__name:"index",setup(i){const o=N(),u=R({orderImportVisible:!1,notOrderImportVisible:!1}),f={pageSearchHook:()=>T(void 0,void 0,O)},F=z(null),{isSuperUser:y}=S(),P={content:{create:()=>o.push("/invoiceInOut/clinetCDetail"),preview:({id:p})=>o.push("/invoiceInOut/clinetCDetail?id="+p)}};function k(p=!1){const e=p?U:M,a=p?"C\u7AEF\u65E0\u53D1\u7968\u8BA2\u5355\u51FA\u5E93\u6A21\u677F.xlsx":"C\u7AEF\u65E0\u53D1\u7968\u975E\u8BA2\u5355\u51FA\u5E93\u6A21\u677F.xlsx",m=c.book_new(),C=c.json_to_sheet(e);c.book_append_sheet(m,C,"sheet"),J(m,a,{bookType:"xlsx"})}return(p,e)=>{const a=B("ElDropdownItem"),m=B("PageContainer"),C=B("PageAuth");return v(),w(C,{pageName:q},{default:t(()=>[l(m,{hooks:f,events:P,searchConfig:n(O),contentConfig:n(Z),"get-content-ref":r=>F.value=r},{content_header:t(()=>[l(n(x),null,{dropdown:t(()=>[l(a,{onClick:e[0]||(e[0]=r=>u.orderImportVisible=!0)},{default:t(()=>e[10]||(e[10]=[s("\u8BA2\u5355\u5BFC\u5165")])),_:1}),l(a,{onClick:e[1]||(e[1]=r=>u.notOrderImportVisible=!0)},{default:t(()=>e[11]||(e[11]=[s("\u975E\u8BA2\u5355\u5BFC\u5165")])),_:1})]),default:t(()=>[n(y)?h("v-if",!0):(v(),w(n(g),{key:0,size:"small",type:"primary",style:{"margin-right":"10px","margin-top":"1px"},icon:n(I)("arrow-up-line")},{default:t(()=>e[9]||(e[9]=[s("C\u7AEF\u65E0\u53D1\u7968\u8BA2\u5355\u51FA\u5E93\u5BFC\u5165 ")])),_:1},8,["icon"]))]),_:1}),l(n(x),null,{dropdown:t(()=>[l(a,{onClick:e[2]||(e[2]=r=>k(!0))},{default:t(()=>e[13]||(e[13]=[s("\u8BA2\u5355\u5BFC\u5165")])),_:1}),l(a,{onClick:e[3]||(e[3]=r=>k(!1))},{default:t(()=>e[14]||(e[14]=[s("\u975E\u8BA2\u5355\u5BFC\u5165")])),_:1})]),default:t(()=>[l(n(g),{size:"small",style:{"margin-right":"10px","margin-top":"1px"},icon:n(I)("arrow-down-line")},{default:t(()=>e[12]||(e[12]=[s(" C\u7AEF\u65E0\u53D1\u7968\u8BA2\u5355\u51FA\u5E93\u6A21\u677F ")])),_:1},8,["icon"])]),_:1}),n(y)?h("v-if",!0):(v(),w(n(g),{key:0,size:"small",type:"primary",onClick:e[4]||(e[4]=r=>n(o).push("/invoiceInOut/clinetCDetail"))},{default:t(()=>e[15]||(e[15]=[s(" \u6279\u91CF\u5BA1\u6838 ")])),_:1}))]),_:1},8,["searchConfig","contentConfig","get-content-ref"]),l($,{visible:u.orderImportVisible,"onUpdate:visible":e[5]||(e[5]=r=>u.orderImportVisible=r),onRefresh:e[6]||(e[6]=r=>{var d;return(d=F.value)==null?void 0:d.onSearch()})},null,8,["visible"]),l(L,{visible:u.notOrderImportVisible,"onUpdate:visible":e[7]||(e[7]=r=>u.notOrderImportVisible=r),onRefresh:e[8]||(e[8]=r=>{var d;return(d=F.value)==null?void 0:d.onSearch()})},null,8,["visible"])]),_:1})}}});var ie=_(K,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/clientC/index.vue"]]);export{ie as default};
|