1 |
- import{a1 as m,aQ as b,_ as O,d as y,n as I,ab as R,w as k,r as a,o as P,G as N,C as l,j as r,l as C,M as p,J as B}from"./index.js";import{u as V}from"./use-page-search.89126f99.js";import{N as M,n as z}from"./index.25a9af.js";import{O as S,o as T}from"./index.a8b833.js";import{b as $}from"./index.c2b73126.js";import{t as j,s as U,a as D,m as G}from"./shared.2f92e8a7.js";import{x as H}from"./status.21dece30.js";import{u as v,w as J}from"./execl-upload.771c22af.js";const L=[{label:"\u4E1A\u52A1\u7F16\u53F7",prop:"invoiceCode",width:150},{label:"\u7C7B\u578B",width:80,cellRenderer({row:u}){return m(b,{type:"primary",size:"small"},{default:()=>{var o;return(o=j.find(t=>t.value==u.type))==null?void 0:o.label}})}},{label:"\u6570\u636E\u6765\u6E90",width:90,cellRenderer({row:u}){return m(b,{type:"primary",size:"small"},{default:()=>{var o;return(o=U.find(t=>t.value==u.source))==null?void 0:o.label}})}},{label:"\u72B6\u6001",width:90,cellRenderer({row:u}){var o;return m(b,{type:(o=D.find(t=>t.value==u.status))==null?void 0:o.type,size:"small"},{default:()=>{var t;return(t=D.find(w=>w.value==u.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:u}){return u.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:u}){var o;return(o=H.find(t=>t.value===u.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:u}){return m(b,{size:"small",type:u.cat_diff=="0"?"danger":"success"},{default:()=>u.cat_diff=="0"?"\u4E0D\u4E00\u81F4":"\u4E00\u81F4"})}},{label:"\u7A0E\u7387\u72B6\u6001",prop:"TODO",width:100,cellRenderer({row:u}){return m(b,{size:"small",type:u.tax_diff=="0"?"danger":"success"},{default:()=>u.tax_diff=="0"?"\u4E0D\u4E00\u81F4":"\u4E00\u81F4"})}},{label:"\u5907\u6CE8",prop:"remark",width:100},{label:"\u4E1A\u52A1\u7C7B\u578B",width:100,cellRenderer({row:u}){var o;return(o=G.find(t=>t.value==u.manager_status))==null?void 0:o.label}},{label:"\u5173\u8054\u5546\u54C1ID",prop:"goodNo",width:80,cellRenderer({row:u}){return u.ProductRela.length===0?null:u.ProductRela[0].id}},{label:"\u5173\u8054\u5546\u54C1\u540D\u79F0",prop:"goodName",width:100,cellRenderer({row:u}){return u.ProductRela.length===0?null:u.ProductRela[0].goodName}},{label:"\u64CD\u4F5C",fixed:"right",width:50,slot:"operation"}],Q={columns:L,title:"\u5546\u54C1\u7BA1\u7406",permissions:["007"],apis:{httpList:$,httpAdd:!0}},h={formItems:[]},q="inOutManager",K=y({__name:"index",setup(u){const o=I(),t=R({orderImportVisible:!1,notOrderImportVisible:!1}),w={pageSearchHook:()=>V(void 0,void 0,h)},c=k(null),g={content:{create:()=>o.push("/invoiceInOut/productManagerDetail"),preview:({id:d})=>o.push("/invoiceInOut/inOutManagerDetail?id="+d)}};function _(d="notOrder"){const e=d==="notOrder"?z:T,f=d==="notOrder"?"\u975E\u8BA2\u5355\u5546\u54C1\u6A21\u677F.xlsx":"\u8BA2\u5355\u5546\u54C1\u6A21\u677F.xlsx",i=v.book_new(),E=v.json_to_sheet(e);v.book_append_sheet(i,E,"sheet"),J(i,f,{bookType:"xlsx"})}return(d,e)=>{const f=a("ElButton"),i=a("ElDropdownItem"),E=a("ElDropdownMenu"),F=a("ElDropdown"),A=a("PageContainer"),x=a("PageAuth");return P(),N(x,{pageName:q},{default:l(()=>[r(A,{hooks:w,events:g,searchConfig:C(h),contentConfig:C(Q),"get-content-ref":n=>c.value=n},{content_header:l(()=>[r(F,null,{dropdown:l(()=>[r(E,null,{default:l(()=>[r(i,{onClick:e[0]||(e[0]=n=>t.orderImportVisible=!0)},{default:l(()=>e[9]||(e[9]=[p("\u8BA2\u5355\u5546\u54C1")])),_:1}),r(i,{onClick:e[1]||(e[1]=n=>t.notOrderImportVisible=!0)},{default:l(()=>e[10]||(e[10]=[p("\u975E\u8BA2\u5355\u5546\u54C1")])),_:1})]),_:1})]),default:l(()=>[r(f,{size:"small",type:"primary",style:{"margin-right":"10px","margin-top":"1px"},icon:C(B)("arrow-up-line")},{default:l(()=>e[8]||(e[8]=[p("\u5546\u54C1\u5BFC\u5165 ")])),_:1},8,["icon"])]),_:1}),r(F,null,{dropdown:l(()=>[r(E,null,{default:l(()=>[r(i,{onClick:e[2]||(e[2]=n=>_("order"))},{default:l(()=>e[12]||(e[12]=[p("\u8BA2\u5355\u5546\u54C1")])),_:1}),r(i,{onClick:e[3]||(e[3]=n=>_("notOrder"))},{default:l(()=>e[13]||(e[13]=[p("\u975E\u8BA2\u5355\u5546\u54C1")])),_:1})]),_:1})]),default:l(()=>[r(f,{size:"small",style:{"margin-right":"10px","margin-top":"1px"},icon:C(B)("arrow-down-line")},{default:l(()=>e[11]||(e[11]=[p("\u5546\u54C1\u5BFC\u5165\u6A21\u677F\u4E0B\u8F7D")])),_:1},8,["icon"])]),_:1})]),_:1},8,["searchConfig","contentConfig","get-content-ref"]),r(S,{visible:t.orderImportVisible,"onUpdate:visible":e[4]||(e[4]=n=>t.orderImportVisible=n),onRefresh:e[5]||(e[5]=n=>{var s;return(s=c.value)==null?void 0:s.onSearch()})},null,8,["visible"]),r(M,{visible:t.notOrderImportVisible,"onUpdate:visible":e[6]||(e[6]=n=>t.notOrderImportVisible=n),onRefresh:e[7]||(e[7]=n=>{var s;return(s=c.value)==null?void 0:s.onSearch()})},null,8,["visible"])]),_:1})}}});var le=O(K,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/inOutManager/index.vue"]]);export{le as default};
|