1 |
- import{_ as L,d as P,E as M,b3 as q,u as o,af as m,a9 as R,x as F,aA as V,o as h,c as b,O as j,a as x,y as t,K as l,b as e,V as z,T as n,W as i,L as B,M as J,N as U,$ as W,a0 as H}from"./index.1417328f.js";import{h as K,a as O}from"./invoice.d2c04353.js";import{i as X}from"./status.727086c1.js";const $={title:"title",code:"inv_code",number:"inv_number",openTime:"open_date",checkNumber:"check_code",buyerTitle:"buyer_title",buyerCode:"buyer_id",buyerAddr:"buyer_addr",buyerMobile:"buyer_mobile",buyerBank:"buyer_bank",buyerBankNo:"buyer_bankNo",sellerTitle:"seller_title",sellerCode:"seller_id",sellerAddr:"seller_addr",sellerMobile:"seller_mobile",sellerBank:"seller_bank",sellerBankNo:"seller_bankNo",goodList:"item",listInfo:{name:"XMMC",spec:"",unit:"DW",num:"SPSL",goodPrice:"DJ",totalPrice:"JE",taxRate:"SL",tax:"SE"},amountTax:"inv_total",amountPrice:"",TotalIncludingTax_C:"total_in_words",TotalIncludingTax_L:"",payee:"reciver",reviewer:"reviewer",drawer:"issuer",seller:"",remarks:"remark"},G={title:"title",code:"code",number:"number",openTime:"issue_date",checkNumber:"check_code",buyerTitle:"buyer_name",buyerCode:"buyer_id",buyerAddr:"buyer_address",buyerMobile:"",buyerBank:"buyer_bank",buyerBankNo:"",sellerTitle:"seller_name",sellerCode:"seller_id",sellerAddr:"seller_address",sellerMobile:"",sellerBank:"seller_bank",sellerBankNo:"",goodList:"item_list",listInfo:{name:"name",spec:"specification",unit:"unit",num:"quantity",goodPrice:"unit_price",totalPrice:"amount",taxRate:"tax_rate",tax:"tax"},amountTax:"",amountPrice:"",TotalIncludingTax_C:"total_in_words",TotalIncludingTax_L:"total",payee:"receiver",reviewer:"reviewer",drawer:"issuer",seller:"",remarks:"remarks"},Q={purchase:G,sale:$};const u=f=>(W("data-v-61794bb6"),f=f(),H(),f),Y={key:0,"w-full":"","h-200px":""},Z={key:1,class:"InvoiceTmpDiv"},ee={class:"flex justify-center w-full"},se=u(()=>e("span",{class:"label title-label"},"\u53D1\u7968\u4EE3\u7801",-1)),te=i("\uFF1A"),le={class:"content"},ae=u(()=>e("span",{class:"label title-label"},"\u53D1\u7968\u53F7\u7801",-1)),oe=i("\uFF1A"),ne={class:"content"},ue=u(()=>e("span",{class:"label title-label"},"\u5F00\u7968\u65E5\u671F",-1)),ce=i("\uFF1A"),ie={class:"content"},_e=u(()=>e("span",{class:"label title-label"},"\u6821\u9A8C\u7801",-1)),de=i("\uFF1A"),re={class:"content"},pe=u(()=>e("ul",{class:"tc"},[e("li",null,"\u8D2D"),e("li",null,"\u4E70"),e("li",null,"\u65B9")],-1)),ve={flex:"","mb-1":""},he=u(()=>e("span",{class:"label"},"\u540D\u79F0",-1)),be=i("\uFF1A"),fe={class:"content"},me={flex:"","mb-1":""},Fe=u(()=>e("span",{class:"label"},"\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",-1)),ye=i("\uFF1A"),Ae={class:"content"},xe={flex:"","mb-1":""},Be=u(()=>e("span",{class:"label"},"\u5730\u5740\u3001\u7535\u8BDD",-1)),De=i("\uFF1A"),ke={class:"content"},Ee={flex:"","mb-1":""},Ce=u(()=>e("span",{class:"label"},"\u5F00\u6237\u884C\u53CA\u8D26\u53F7",-1)),ge=i("\uFF1A"),Ie={class:"content"},Te=u(()=>e("ul",{class:"tc"},[e("li",null,"\u5BC6"),e("li",null,"\u7801"),e("li",null,"\u533A")],-1)),we={class:"row-div"},Ne=u(()=>e("div",{class:"tc"},"\u8D27\u7269\u6216\u5E94\u7A0E\u52B3\u52A1\u3001\u670D\u52A1\u540D\u79F0",-1)),Se=u(()=>e("div",{class:"tc"},"\u89C4\u683C\u578B\u53F7",-1)),Le=u(()=>e("div",{class:"tc"},"\u5355\u4F4D",-1)),Pe=u(()=>e("div",{class:"tc"},"\u6570\u91CF",-1)),Me=u(()=>e("div",{class:"tc"},"\u5355\u4EF7",-1)),qe=u(()=>e("div",{class:"tc"},"\u91D1\u989D",-1)),Re=u(()=>e("div",{class:"tc"},"\u7A0E\u7387",-1)),Ve=u(()=>e("div",{class:"tc"},"\u7A0E\u989D",-1)),je={key:0,style:{"border-bottom":"1px solid #b16363"}},ze={class:"tc"},Je={class:"tc"},Ue={class:"tc"},We={class:"tc"},He={class:"tc"},Ke={class:"tc"},Oe={class:"tc"},Xe={class:"tc"},$e=u(()=>e("div",{class:"tc"},"\u5408\u8BA1",-1)),Ge=u(()=>e("div",{class:"tc"},"\xA0",-1)),Qe=u(()=>e("div",{class:"tc"},"\xA0",-1)),Ye=u(()=>e("div",{class:"tc"},"\xA0",-1)),Ze=u(()=>e("div",{class:"tc"},"\xA0",-1)),es={class:"tc"},ss=u(()=>e("div",{class:"tc"},"\xA0",-1)),ts={class:"tc"},ls=i("\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"),as=i("\uFF08\u5C0F\u5199\uFF09"),os=u(()=>e("ul",{class:"tc"},[e("li",null,"\u9500"),e("li",null,"\u552E"),e("li",null,"\u65B9")],-1)),ns={flex:"","mb-1":""},us=u(()=>e("span",{class:"label"},"\u540D\u79F0",-1)),cs=i("\uFF1A"),is={class:"content"},_s={flex:"","mb-1":""},ds=u(()=>e("span",{class:"label"},"\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",-1)),rs=i("\uFF1A"),ps={class:"content"},vs={flex:"","mb-1":""},hs=u(()=>e("span",{class:"label"},"\u5730\u5740\u3001\u7535\u8BDD",-1)),bs=i("\uFF1A"),fs={class:"content"},ms={flex:"","mb-1":""},Fs=u(()=>e("span",{class:"label"},"\u5F00\u6237\u884C\u53CA\u8D26\u53F7",-1)),ys=i("\uFF1A"),As={class:"content"},xs=u(()=>e("ul",{class:"tc"},[e("li",null,"\u5907"),e("li",null,"\xA0"),e("li",null,"\u6CE8")],-1)),Bs=u(()=>e("span",null,"\u6536\u6B3E\u4EBA\uFF1A",-1)),Ds={class:"content"},ks=u(()=>e("span",null,"\u590D\u6838\uFF1A",-1)),Es={class:"content"},Cs=u(()=>e("span",null,"\u5F00\u7968\u4EBA\uFF1A",-1)),gs={class:"content"},Is=u(()=>e("span",null,"\u9500\u552E\u65B9\uFF1A",-1)),Ts={class:"content"},ws={key:2,"text-xl":"","font-bold":"","text-center":"","w-full":""},Ns=P({__name:"index",props:{type:{type:String,required:!0},invNo:{type:String,required:!1},invNumber:{type:[String,null],required:!0}},emits:["getInvoiceData"],setup(f,{emit:D}){const p=f,a=M({}),{isError:y,data:c,run:k,loading:A,setData:E}=q({initalData:{},noMessage:!0,success:()=>D("getInvoiceData",o(c))}),C=m(()=>{var s;const d={0:"\u5F85\u9A8C\u8BC1",1:"\u6B63\u5E38",2:"\u4F5C\u5E9F",3:"\u5DF2\u7EA2\u51B2"},v=(s=c.value)==null?void 0:s.status;return d[String(v)]}),g=m(()=>{var s;const d={0:"#dedfe0",1:"#67c23a",2:"#909399",3:"#f56c6c"},v=(s=c.value)==null?void 0:s.status;return d[String(v)]}),I=m(()=>{var s;const{type:d}=p,v=o(c);return d==="sale"?v.invtype_name:(s=X.find(_=>_.value===v.type))==null?void 0:s.label});function T(){const d=p.type==="purchase"?K:O;a.value=Q[p.type],k(d({number:p.invNumber,...p.invNo?{invNo:p.invNo}:{}}))}return R(()=>{if(E({}),!p.invNumber)return y.value=!0;T()}),(d,v)=>{const s=F("el-col"),_=F("el-row"),w=F("el-scrollbar"),N=V("loading");return h(),b(B,null,[o(A)?j((h(),b("div",Y,null,512)),[[N,o(A)]]):x("v-if",!0),o(y)?(h(),b("div",ws,"\u672A\u627E\u5230\u53D1\u7968\u6570\u636E")):(h(),b("div",Z,[t(_,null,{default:l(()=>[t(s,{span:6},{default:l(()=>[e("div",ee,[e("p",{style:z([{"font-size":"27px"},{color:o(g)}]),class:"font-bold"},n(o(C)),5)])]),_:1}),t(s,{span:12,class:"title no-border"},{default:l(()=>[i(n(o(I)),1)]),_:1}),t(s,{span:6,class:"extra no-border"},{default:l(()=>[e("div",null,[se,te,e("span",le,n(o(c)[a.value.code]),1)]),e("div",null,[ae,oe,e("span",ne,n(o(c)[a.value.number]),1)]),e("div",null,[ue,ce,e("span",ie,n(o(c)[a.value.openTime]),1)]),e("div",null,[_e,de,e("span",re,n(o(c)[a.value.checkNumber]),1)])]),_:1})]),_:1}),t(_,{class:"row height84"},{default:l(()=>[t(s,{span:1,class:"no-border"},{default:l(()=>[pe]),_:1}),t(s,{span:15},{default:l(()=>[e("div",ve,[he,be,e("span",fe,n(o(c)[a.value.buyerTitle]),1)]),e("div",me,[Fe,ye,e("span",Ae,n(o(c)[a.value.buyerCode]),1)]),e("div",xe,[Be,De,e("span",ke,n(o(c)[a.value.buyerAddr])+" "+n(o(c)[a.value.buyerMobile]),1)]),e("div",Ee,[Ce,ge,e("span",Ie,n(o(c)[a.value.buyerBank])+" "+n(o(c)[a.value.buyerBankNo]),1)])]),_:1}),t(s,{span:1},{default:l(()=>[Te]),_:1}),t(s,{span:7})]),_:1}),e("div",we,[t(_,null,{default:l(()=>[t(s,{span:8,class:"no-border"},{default:l(()=>[Ne]),_:1}),t(s,{span:3},{default:l(()=>[Se]),_:1}),t(s,{span:1},{default:l(()=>[Le]),_:1}),t(s,{span:2},{default:l(()=>[Pe]),_:1}),t(s,{span:3},{default:l(()=>[Me]),_:1}),t(s,{span:3},{default:l(()=>[qe]),_:1}),t(s,{span:1},{default:l(()=>[Re]),_:1}),t(s,{span:3},{default:l(()=>[Ve]),_:1})]),_:1}),o(c)&&o(c)[a.value.goodList]?(h(),b("div",je,[t(w,{"max-height":"200px",always:""},{default:l(()=>[(h(!0),b(B,null,J(o(c)[a.value.goodList],(r,S)=>(h(),U(_,{key:S},{default:l(()=>[t(s,{span:8,class:"no-border"},{default:l(()=>[e("div",ze,n(r[a.value.listInfo.name]),1)]),_:2},1024),t(s,{span:3},{default:l(()=>[e("div",Je,n(r[a.value.listInfo.spec]),1)]),_:2},1024),t(s,{span:1},{default:l(()=>[e("div",Ue,n(r[a.value.listInfo.unit]),1)]),_:2},1024),t(s,{span:2},{default:l(()=>[e("div",We,n(r[a.value.listInfo.num]),1)]),_:2},1024),t(s,{span:3},{default:l(()=>[e("div",He,n(r[a.value.listInfo.goodPrice]),1)]),_:2},1024),t(s,{span:3},{default:l(()=>[e("div",Ke,n(r[a.value.listInfo.totalPrice]),1)]),_:2},1024),t(s,{span:1},{default:l(()=>[e("div",Oe,n(r[a.value.listInfo.taxRate]),1)]),_:2},1024),t(s,{span:3},{default:l(()=>[e("div",Xe,n(r[a.value.listInfo.tax]),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})])):x("v-if",!0),t(_,null,{default:l(()=>[t(s,{span:8,class:"no-border"},{default:l(()=>[$e]),_:1}),t(s,{span:3},{default:l(()=>[Ge]),_:1}),t(s,{span:1},{default:l(()=>[Qe]),_:1}),t(s,{span:2},{default:l(()=>[Ye]),_:1}),t(s,{span:3},{default:l(()=>[Ze]),_:1}),t(s,{span:3},{default:l(()=>[e("div",es,n(o(c)[a.value.amountTax]),1)]),_:1}),t(s,{span:1},{default:l(()=>[ss]),_:1}),t(s,{span:3},{default:l(()=>[e("div",ts,n(o(c)[a.value.amountPrice]),1)]),_:1})]),_:1})]),t(_,{class:"row con"},{default:l(()=>[t(s,{span:8,class:"no-border tc"},{default:l(()=>[ls]),_:1}),t(s,{span:9,class:"no-border tl"},{default:l(()=>[i(n(o(c)[a.value.TotalIncludingTax_C]),1)]),_:1}),t(s,{span:7,class:"no-border tc"},{default:l(()=>[as,e("span",null,n(o(c)[a.value.TotalIncludingTax_L]),1)]),_:1})]),_:1}),t(_,{class:"row height84"},{default:l(()=>[t(s,{span:1,class:"no-border"},{default:l(()=>[os]),_:1}),t(s,{span:15},{default:l(()=>[e("div",ns,[us,cs,e("span",is,n(o(c)[a.value.sellerTitle]),1)]),e("div",_s,[ds,rs,e("span",ps,n(o(c)[a.value.sellerCode]),1)]),e("div",vs,[hs,bs,e("span",fs,n(o(c)[a.value.sellerAddr])+" "+n(o(c)[a.value.sellerMobile]),1)]),e("div",ms,[Fs,ys,e("span",As,n(o(c)[a.value.sellerBank])+" "+n(o(c)[a.value.sellerBankNo]),1)])]),_:1}),t(s,{span:1},{default:l(()=>[xs]),_:1}),t(s,{span:7},{default:l(()=>[i(n(o(c)[a.value.remarks]),1)]),_:1})]),_:1}),t(_,{class:"last-row"},{default:l(()=>[t(s,{span:6,class:"no-border"},{default:l(()=>[Bs,e("span",Ds,n(o(c)[a.value.payee]),1)]),_:1}),t(s,{span:6,class:"no-border"},{default:l(()=>[ks,e("span",Es,n(o(c)[a.value.reviewer]),1)]),_:1}),t(s,{span:6,class:"no-border"},{default:l(()=>[Cs,e("span",gs,n(o(c)[a.value.drawer]),1)]),_:1}),t(s,{span:5,class:"no-border"},{default:l(()=>[Is,e("span",Ts,n(o(c)[a.value.seller]),1)]),_:1})]),_:1})]))],64)}}});var Ms=L(Ns,[["__scopeId","data-v-61794bb6"],["__file","/Users/apple/Desktop/Company Projects/accout-vue3-ui/src/components/invoice/src/index.vue"]]);export{Ms as I};
|