index.875b91.js 6.8 KB

1
  1. import{a1 as b,aQ as E,_ as y,d as k,n as I,ab as R,w as N,r as a,o as V,G as M,C as l,j as n,l as f,M as p,J as c}from"./index.js";import{u as P}from"./use-page-search.4f487e2f.js";import{N as T,n as z}from"./index.a712f1.js";import{O as S,o as $}from"./index.81f840.js";import{a as j}from"./index.54c70d49.js";import{t as U,s as G,a as D,m as H}from"./shared.6241f91b.js";import{x as J}from"./status.21dece30.js";import{u as v,w as L}from"./execl-upload.2ba69270.js";import"./index.4a9af8a9.js";const Q=[{label:"\u4E1A\u52A1\u7F16\u53F7",prop:"invoiceCode",width:150},{label:"\u7C7B\u578B",width:80,cellRenderer({row:e}){return b(E,{type:"primary",size:"small"},{default:()=>{var o;return(o=U.find(t=>t.value==e.type))==null?void 0:o.label}})}},{label:"\u6570\u636E\u6765\u6E90",width:90,cellRenderer({row:e}){return b(E,{type:"primary",size:"small"},{default:()=>{var o;return(o=G.find(t=>t.value==e.source))==null?void 0:o.label}})}},{label:"\u72B6\u6001",width:80,cellRenderer({row:e}){var o;return b(E,{type:(o=D.find(t=>t.value==e.status))==null?void 0:o.type,size:"small"},{default:()=>{var t;return(t=D.find(w=>w.value==e.status))==null?void 0:t.label}})}},{label:"\u9500\u552E\u65B9\u516C\u53F8\u7EB3\u7A0E\u8BC6\u522B\u53F7",prop:"seller_code",width:150},{label:"\u9500\u552E\u65B9\u516C\u53F8",prop:"seller_name",width:150},{label:"\u8BA2\u5355\u7F16\u53F7",prop:"orderCode",width:160},{label:"\u8BA2\u5355\u4E3B\u7F16\u53F7",prop:"cxCode",width:160},{label:"\u5546\u54C1\u7F16\u53F7",prop:"goodNo",width:120},{label:"\u5546\u54C1\u540D\u79F0",prop:"goodName",width:120},{label:"\u5355\u4F4D",prop:"unit",width:60},{label:"\u5546\u54C1\u6570\u91CF",prop:"num",width:100},{label:"\u5546\u54C1\u5355\u4EF7",prop:"goodPrice",width:100},{label:"\u8BA2\u5355\u603B\u91D1\u989D",prop:"totalPrice",width:120},{label:"\u7A0E\u76EE",prop:"cat_code",width:120},{label:"\u7A0E\u7387",width:60,cellRenderer({row:e}){return e.tax*100+"%"}},{label:"\u5173\u8054\u91D1\u989D",prop:"inv_fee",width:120},{label:"\u8D2D\u4E70\u65B9\u516C\u53F8\u540D\u79F0",prop:"buyer_name",width:120},{label:"\u8D2D\u4E70\u65B9\u516C\u53F8\u7EB3\u7A0E\u53F7",prop:"buyer_code",width:120},{label:"\u53D1\u7968\u53F7\u7801",prop:"inv_number",width:100},{label:"\u53D1\u7968\u7C7B\u578B",width:180,cellRenderer({row:e}){var o;return(o=J.find(t=>t.value===e.inv_type))==null?void 0:o.label}},{label:"\u9500\u552E\u65B9\u516C\u53F8",prop:"inv_seller_code",width:180},{label:"\u9500\u552E\u65B9\u516C\u53F8\u7EB3\u7A0E\u53F7",prop:"inv_seller_name",width:180},{label:"\u53D1\u7968\u660E\u7EC6ID",prop:"inv_item_id",width:100},{label:"\u8D27\u7269\u6216\u5E94\u7A0E\u52B3\u52A1\u3001\u670D\u52A1\u540D\u79F0",prop:"inv_good_name",width:170},{label:"\u7C7B\u76EE\u7F16\u53F7",prop:"cat_code",width:100},{label:"\u89C4\u683C\u578B\u53F7",prop:"inv_spec",width:80},{label:"\u53D1\u7968\u5546\u54C1\u5355\u4F4D",prop:"inv_unit",width:100},{label:"\u53D1\u7968\u5546\u54C1\u6570\u91CF",prop:"inv_num",width:100},{label:"\u7A0E\u524D\u5355\u4EF7",prop:"inv_subprice",width:100},{label:"\u7A0E\u524D\u603B\u4EF7",prop:"inv_subtotal",width:100},{label:"\u53D1\u7968\u7A0E\u7387",prop:"inv_tax",width:80},{label:"\u53D1\u7968\u7A0E\u989D",prop:"inv_tax_total",width:80},{label:"\u7A0E\u540E\u5355\u4EF7",prop:"inv_price",width:100},{label:"\u7A0E\u540E\u603B\u989D",prop:"inv_total",width:100},{label:"\u7C7B\u76EE\u7F16\u53F7\u72B6\u6001",width:100,cellRenderer({row:e}){return b(E,{size:"small",type:e.cat_diff=="0"?"danger":"success"},{default:()=>e.cat_diff=="0"?"\u4E0D\u4E00\u81F4":"\u4E00\u81F4"})}},{label:"\u7A0E\u7387\u72B6\u6001",prop:"TODO",width:100,cellRenderer({row:e}){return b(E,{size:"small",type:e.tax_diff=="0"?"danger":"success"},{default:()=>e.tax_diff=="0"?"\u4E0D\u4E00\u81F4":"\u4E00\u81F4"})}},{label:"\u5907\u6CE8",prop:"remark",width:100},{label:"\u4E1A\u52A1\u7C7B\u578B",width:100,cellRenderer({row:e}){var o;return(o=H.find(t=>t.value==e.manager_status))==null?void 0:o.label}},{label:"\u5546\u54C1\u7F16\u53F7",prop:"goodNo",width:100},{label:"\u5546\u54C1\u540D\u79F0",prop:"goodName",width:100},{label:"\u64CD\u4F5C",fixed:"right",width:75,slot:"operation"}],q={columns:Q,title:"\u5546\u54C1\u7BA1\u7406",permissions:["007"],apis:{httpList:j,httpAdd:!0}},h={formItems:[]},K="inOutManager",W=k({__name:"index",setup(e){const o=I(),t=R({orderImportVisible:!1,notOrderImportVisible:!1}),w={pageSearchHook:()=>P(void 0,void 0,h)},_=N(null),g={content:{create:()=>o.push("/invoiceInOut/productManagerDetail"),preview:({id:s})=>o.push("/invoiceInOut/inOutManagerDetail?id="+s)}};function F(s="notOrder"){const u=s==="notOrder"?z:$,d=s==="notOrder"?"\u975E\u8BA2\u5355\u5546\u54C1\u6A21\u677F.xlsx":"\u8BA2\u5355\u5546\u54C1\u6A21\u677F.xlsx",i=v.book_new(),C=v.json_to_sheet(u);v.book_append_sheet(i,C,"sheet"),L(i,d,{bookType:"xlsx"})}return(s,u)=>{const d=a("ElButton"),i=a("ElDropdownItem"),C=a("ElDropdownMenu"),B=a("ElDropdown"),A=a("ElTooltip"),x=a("PageContainer"),O=a("PageAuth");return V(),M(O,{pageName:K},{default:l(()=>[n(x,{hooks:w,events:g,searchConfig:f(h),contentConfig:f(q),"get-content-ref":r=>_.value=r},{content_header:l(()=>[n(B,null,{dropdown:l(()=>[n(C,null,{default:l(()=>[n(i,{onClick:u[0]||(u[0]=r=>t.orderImportVisible=!0)},{default:l(()=>u[9]||(u[9]=[p("\u8BA2\u5355\u5546\u54C1")])),_:1}),n(i,{onClick:u[1]||(u[1]=r=>t.notOrderImportVisible=!0)},{default:l(()=>u[10]||(u[10]=[p("\u975E\u8BA2\u5355\u5546\u54C1")])),_:1})]),_:1})]),default:l(()=>[n(d,{size:"small",type:"primary",style:{"margin-right":"10px","margin-top":"1px"},icon:f(c)("arrow-up-line")},{default:l(()=>u[8]||(u[8]=[p("\u5546\u54C1\u5BFC\u5165 ")])),_:1},8,["icon"])]),_:1}),n(B,null,{dropdown:l(()=>[n(C,null,{default:l(()=>[n(i,{onClick:u[2]||(u[2]=r=>F("order"))},{default:l(()=>u[12]||(u[12]=[p("\u8BA2\u5355\u5546\u54C1")])),_:1}),n(i,{onClick:u[3]||(u[3]=r=>F("notOrder"))},{default:l(()=>u[13]||(u[13]=[p("\u975E\u8BA2\u5355\u5546\u54C1")])),_:1})]),_:1})]),default:l(()=>[n(d,{size:"small",style:{"margin-right":"10px","margin-top":"1px"},icon:f(c)("arrow-down-line")},{default:l(()=>u[11]||(u[11]=[p("\u5546\u54C1\u5BFC\u5165\u6A21\u677F\u4E0B\u8F7D")])),_:1},8,["icon"])]),_:1})]),content_action:l(()=>[n(A,{content:"\u53D6\u6D88\u64CD\u4F5C",placement:"top"},{default:l(()=>[n(d,{icon:f(c)("delete"),type:"danger",link:""},null,8,["icon"])]),_:1})]),_:1},8,["searchConfig","contentConfig","get-content-ref"]),n(S,{visible:t.orderImportVisible,"onUpdate:visible":u[4]||(u[4]=r=>t.orderImportVisible=r),onRefresh:u[5]||(u[5]=r=>{var m;return(m=_.value)==null?void 0:m.onSearch()})},null,8,["visible"]),n(T,{visible:t.notOrderImportVisible,"onUpdate:visible":u[6]||(u[6]=r=>t.notOrderImportVisible=r),onRefresh:u[7]||(u[7]=r=>{var m;return(m=_.value)==null?void 0:m.onSearch()})},null,8,["visible"])]),_:1})}}});var ru=y(W,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/inOutManager/index.vue"]]);export{ru as default};