index.50dbfda0.js 10 KB

1
  1. import{_ as L,d as M,w as P,bv as R,u as l,ag as x,a0 as q,r as A,aC as V,o as b,c as f,H as j,a as F,l as t,C as a,b as e,N as z,L as o,M as i,F as B,D as H,G as J,Q as U,R as G}from"./index.fd765376.js";import{h as Q,a as W}from"./invoice.89a3db62.js";import{i as X}from"./status.0f05917e.js";const K={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:"tax_fee",amountPrice:"inv_subtotal",TotalIncludingTax_C:"total_in_words",TotalIncludingTax_L:"inv_total",payee:"reciver",reviewer:"reviewer",drawer:"issuer",seller:"",remarks:"remark"},O={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:"subtotal_tax",amountPrice:"subtotal_amount",TotalIncludingTax_C:"total_in_words",TotalIncludingTax_L:"total",payee:"receiver",reviewer:"reviewer",drawer:"issuer",seller:"",remarks:"remarks"},Y={purchase:O,sale:K};const u=h=>(U("data-v-3c24aa05"),h=h(),G(),h),Z={key:0,"w-full":"","h-200px":""},$={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={class:"content"},ae=u(()=>e("span",{class:"label title-label"},"\u53D1\u7968\u53F7\u7801",-1)),le={class:"content"},ne=u(()=>e("span",{class:"label title-label"},"\u5F00\u7968\u65E5\u671F",-1)),oe={class:"content"},ue=u(()=>e("span",{class:"label title-label"},"\u6821\u9A8C\u7801",-1)),ce={class:"content"},ie=u(()=>e("ul",{class:"tc"},[e("li",null,"\u8D2D"),e("li",null,"\u4E70"),e("li",null,"\u65B9")],-1)),_e={flex:"","mb-1":""},de=u(()=>e("span",{class:"label"},"\u540D\u79F0",-1)),re={class:"content"},pe={flex:"","mb-1":""},ve=u(()=>e("span",{class:"label"},"\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",-1)),be={class:"content"},fe={flex:"","mb-1":""},he=u(()=>e("span",{class:"label"},"\u5730\u5740\u3001\u7535\u8BDD",-1)),me={class:"content"},Fe={flex:"","mb-1":""},ye=u(()=>e("span",{class:"label"},"\u5F00\u6237\u884C\u53CA\u8D26\u53F7",-1)),xe={class:"content"},Ae=u(()=>e("ul",{class:"tc"},[e("li",null,"\u5BC6"),e("li",null,"\u7801"),e("li",null,"\u533A")],-1)),Be={class:"row-div"},De=u(()=>e("div",{class:"tc"},"\u8D27\u7269\u6216\u5E94\u7A0E\u52B3\u52A1\u3001\u670D\u52A1\u540D\u79F0",-1)),ke=u(()=>e("div",{class:"tc"},"\u89C4\u683C\u578B\u53F7",-1)),Ee=u(()=>e("div",{class:"tc"},"\u5355\u4F4D",-1)),Ce=u(()=>e("div",{class:"tc"},"\u6570\u91CF",-1)),ge=u(()=>e("div",{class:"tc"},"\u5355\u4EF7",-1)),Ie=u(()=>e("div",{class:"tc"},"\u91D1\u989D",-1)),Te=u(()=>e("div",{class:"tc"},"\u7A0E\u7387",-1)),we=u(()=>e("div",{class:"tc"},"\u7A0E\u989D",-1)),Ne={key:0,style:{"border-bottom":"1px solid #b16363"}},Se={class:"tc"},Le={class:"tc"},Me={class:"tc"},Pe={class:"tc"},Re={class:"tc"},qe={class:"tc"},Ve={class:"tc"},je={class:"tc"},ze=u(()=>e("div",{class:"tc"},"\u5408\u8BA1",-1)),He=u(()=>e("div",{class:"tc"},"\xA0",-1)),Je=u(()=>e("div",{class:"tc"},"\xA0",-1)),Ue=u(()=>e("div",{class:"tc"},"\xA0",-1)),Ge=u(()=>e("div",{class:"tc"},"\xA0",-1)),Qe={class:"tc"},We=u(()=>e("div",{class:"tc"},"\xA0",-1)),Xe={class:"tc"},Ke=u(()=>e("ul",{class:"tc"},[e("li",null,"\u9500"),e("li",null,"\u552E"),e("li",null,"\u65B9")],-1)),Oe={flex:"","mb-1":""},Ye=u(()=>e("span",{class:"label"},"\u540D\u79F0",-1)),Ze={class:"content"},$e={flex:"","mb-1":""},es=u(()=>e("span",{class:"label"},"\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",-1)),ss={class:"content"},ts={flex:"","mb-1":""},as=u(()=>e("span",{class:"label"},"\u5730\u5740\u3001\u7535\u8BDD",-1)),ls={class:"content"},ns={flex:"","mb-1":""},os=u(()=>e("span",{class:"label"},"\u5F00\u6237\u884C\u53CA\u8D26\u53F7",-1)),us={class:"content"},cs=u(()=>e("ul",{class:"tc"},[e("li",null,"\u5907"),e("li",null,"\xA0"),e("li",null,"\u6CE8")],-1)),is=u(()=>e("span",null,"\u6536\u6B3E\u4EBA\uFF1A",-1)),_s={class:"content"},ds=u(()=>e("span",null,"\u590D\u6838\uFF1A",-1)),rs={class:"content"},ps=u(()=>e("span",null,"\u5F00\u7968\u4EBA\uFF1A",-1)),vs={class:"content"},bs=u(()=>e("span",null,"\u9500\u552E\u65B9\uFF1A",-1)),fs={class:"content"},hs={key:2,"text-xl":"","font-bold":"","text-center":"","w-full":""},ms=M({__name:"index",props:{type:{type:String,required:!0},invNo:{type:String,required:!1},invNumber:{type:[String,null],required:!0}},emits:["getInvoiceData"],setup(h,{emit:D}){const p=h,n=P({}),{isError:y,data:c,run:k,loading:m,setData:E}=R({initalData:{},noMessage:!0,success:()=>D("getInvoiceData",l(c))}),C=x(()=>{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=x(()=>{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=x(()=>{var s;const{type:d}=p,v=l(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"?Q:W;n.value=Y[p.type],k(d({number:p.invNumber,...p.invNo?{invNo:p.invNo}:{}}))}return q(()=>{if(E({}),!p.invNumber)return y.value=!0;T()}),(d,v)=>{const s=A("el-col"),_=A("el-row"),w=A("el-scrollbar"),N=V("loading");return b(),f(B,null,[l(m)?j((b(),f("div",Z,null,512)),[[N,l(m)]]):F("v-if",!0),!l(y)&&!l(m)?(b(),f("div",$,[t(_,null,{default:a(()=>[t(s,{span:6},{default:a(()=>[e("div",ee,[e("p",{style:z([{"font-size":"27px"},{color:l(g)}]),class:"font-bold"},o(l(C)),5)])]),_:1}),t(s,{span:12,class:"title no-border"},{default:a(()=>[i(o(l(I)),1)]),_:1}),t(s,{span:6,class:"extra no-border"},{default:a(()=>[e("div",null,[se,i("\uFF1A"),e("span",te,o(l(c)[n.value.code]),1)]),e("div",null,[ae,i("\uFF1A"),e("span",le,o(l(c)[n.value.number]),1)]),e("div",null,[ne,i("\uFF1A"),e("span",oe,o(l(c)[n.value.openTime]),1)]),e("div",null,[ue,i("\uFF1A"),e("span",ce,o(l(c)[n.value.checkNumber]),1)])]),_:1})]),_:1}),t(_,{class:"row height84"},{default:a(()=>[t(s,{span:1,class:"no-border"},{default:a(()=>[ie]),_:1}),t(s,{span:15},{default:a(()=>[e("div",_e,[de,i("\uFF1A"),e("span",re,o(l(c)[n.value.buyerTitle]),1)]),e("div",pe,[ve,i("\uFF1A"),e("span",be,o(l(c)[n.value.buyerCode]),1)]),e("div",fe,[he,i("\uFF1A"),e("span",me,o(l(c)[n.value.buyerAddr])+" "+o(l(c)[n.value.buyerMobile]),1)]),e("div",Fe,[ye,i("\uFF1A"),e("span",xe,o(l(c)[n.value.buyerBank])+" "+o(l(c)[n.value.buyerBankNo]),1)])]),_:1}),t(s,{span:1},{default:a(()=>[Ae]),_:1}),t(s,{span:7})]),_:1}),e("div",Be,[t(_,null,{default:a(()=>[t(s,{span:8,class:"no-border"},{default:a(()=>[De]),_:1}),t(s,{span:3},{default:a(()=>[ke]),_:1}),t(s,{span:1},{default:a(()=>[Ee]),_:1}),t(s,{span:2},{default:a(()=>[Ce]),_:1}),t(s,{span:3},{default:a(()=>[ge]),_:1}),t(s,{span:3},{default:a(()=>[Ie]),_:1}),t(s,{span:1},{default:a(()=>[Te]),_:1}),t(s,{span:3},{default:a(()=>[we]),_:1})]),_:1}),l(c)&&l(c)[n.value.goodList]?(b(),f("div",Ne,[t(w,{"max-height":"200px",always:""},{default:a(()=>[(b(!0),f(B,null,H(l(c)[n.value.goodList],(r,S)=>(b(),J(_,{key:S},{default:a(()=>[t(s,{span:8,class:"no-border"},{default:a(()=>[e("div",Se,o(r[n.value.listInfo.name]),1)]),_:2},1024),t(s,{span:3},{default:a(()=>[e("div",Le,o(r[n.value.listInfo.spec]),1)]),_:2},1024),t(s,{span:1},{default:a(()=>[e("div",Me,o(r[n.value.listInfo.unit]),1)]),_:2},1024),t(s,{span:2},{default:a(()=>[e("div",Pe,o(r[n.value.listInfo.num]),1)]),_:2},1024),t(s,{span:3},{default:a(()=>[e("div",Re,o(r[n.value.listInfo.goodPrice]),1)]),_:2},1024),t(s,{span:3},{default:a(()=>[e("div",qe,o(r[n.value.listInfo.totalPrice]),1)]),_:2},1024),t(s,{span:1},{default:a(()=>[e("div",Ve,o(r[n.value.listInfo.taxRate]),1)]),_:2},1024),t(s,{span:3},{default:a(()=>[e("div",je,o(r[n.value.listInfo.tax]),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})])):F("v-if",!0),t(_,null,{default:a(()=>[t(s,{span:8,class:"no-border"},{default:a(()=>[ze]),_:1}),t(s,{span:3},{default:a(()=>[He]),_:1}),t(s,{span:1},{default:a(()=>[Je]),_:1}),t(s,{span:2},{default:a(()=>[Ue]),_:1}),t(s,{span:3},{default:a(()=>[Ge]),_:1}),t(s,{span:3},{default:a(()=>[e("div",Qe,o(l(c)[n.value.amountPrice]),1)]),_:1}),t(s,{span:1},{default:a(()=>[We]),_:1}),t(s,{span:3},{default:a(()=>[e("div",Xe,o(l(c)[n.value.amountTax]),1)]),_:1})]),_:1})]),t(_,{class:"row con"},{default:a(()=>[t(s,{span:8,class:"no-border tc"},{default:a(()=>[i("\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09")]),_:1}),t(s,{span:9,class:"no-border tl"},{default:a(()=>[i(o(l(c)[n.value.TotalIncludingTax_C]),1)]),_:1}),t(s,{span:7,class:"no-border tc"},{default:a(()=>[i("\uFF08\u5C0F\u5199\uFF09"),e("span",null,o(l(c)[n.value.TotalIncludingTax_L]),1)]),_:1})]),_:1}),t(_,{class:"row height84"},{default:a(()=>[t(s,{span:1,class:"no-border"},{default:a(()=>[Ke]),_:1}),t(s,{span:15},{default:a(()=>[e("div",Oe,[Ye,i("\uFF1A"),e("span",Ze,o(l(c)[n.value.sellerTitle]),1)]),e("div",$e,[es,i("\uFF1A"),e("span",ss,o(l(c)[n.value.sellerCode]),1)]),e("div",ts,[as,i("\uFF1A"),e("span",ls,o(l(c)[n.value.sellerAddr])+" "+o(l(c)[n.value.sellerMobile]),1)]),e("div",ns,[os,i("\uFF1A"),e("span",us,o(l(c)[n.value.sellerBank])+" "+o(l(c)[n.value.sellerBankNo]),1)])]),_:1}),t(s,{span:1},{default:a(()=>[cs]),_:1}),t(s,{span:7},{default:a(()=>[i(o(l(c)[n.value.remarks]),1)]),_:1})]),_:1}),t(_,{class:"last-row"},{default:a(()=>[t(s,{span:6,class:"no-border"},{default:a(()=>[is,e("span",_s,o(l(c)[n.value.payee]),1)]),_:1}),t(s,{span:6,class:"no-border"},{default:a(()=>[ds,e("span",rs,o(l(c)[n.value.reviewer]),1)]),_:1}),t(s,{span:6,class:"no-border"},{default:a(()=>[ps,e("span",vs,o(l(c)[n.value.drawer]),1)]),_:1}),t(s,{span:5,class:"no-border"},{default:a(()=>[bs,e("span",fs,o(l(c)[n.value.seller]),1)]),_:1})]),_:1})])):F("v-if",!0),l(y)&&!l(m)?(b(),f("div",hs," \u672A\u627E\u5230\u53D1\u7968\u6570\u636E ")):F("v-if",!0)],64)}}});var As=L(ms,[["__scopeId","data-v-3c24aa05"],["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/components/Invoice/src/index.vue"]]);export{As as I};