123456789101112131415161718 |
- import{_ as $,d as O,x as D,aV as W,bG as X,m as a,ah as I,cD as K,bO as Y,a0 as Z,r as b,aD as ee,o as f,c as m,H as se,a as y,l as s,D as t,h as e,N as te,L as u,M as c,bI as le,cS as ae,F as g,E as ue,G as ne,cE as oe,cF as ie,Q as ce,R as re}from"./index.js";const de={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"},_e={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"},pe={purchase:_e,sale:de};const o=F=>(ce("data-v-66dd4d81"),F=F(),re(),F),ve={key:0,"w-full":"","h-200px":""},fe={key:1,class:"InvoiceTmpDiv"},be={class:"flex justify-center w-full"},me=o(()=>e("span",{class:"label title-label"},"\u53D1\u7968\u4EE3\u7801",-1)),ye={class:"content"},he=o(()=>e("span",{class:"label title-label"},"\u53D1\u7968\u53F7\u7801",-1)),Fe={class:"content"},xe=o(()=>e("span",{class:"label title-label"},"\u5F00\u7968\u65E5\u671F",-1)),Ae={class:"content"},De=o(()=>e("span",{class:"label title-label"},"\u6821\u9A8C\u7801",-1)),Ee={class:"content"},Be=o(()=>e("ul",{class:"tc"},[e("li",null,"\u8D2D"),e("li",null,"\u4E70"),e("li",null,"\u65B9")],-1)),ke={flex:"","mb-1":""},ge=o(()=>e("div",{class:"label",style:{width:"75px"}},"\u540D\u79F0",-1)),Ce={class:"content",style:{display:"flex","justify-content":"space-between",width:"100%"}},we={flex:"","mb-1":""},Ie=o(()=>e("div",{class:"label"},"\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",-1)),Ne={class:"content"},Te={flex:"","mb-1":""},Se=o(()=>e("div",{class:"label",style:{width:"75px"}},"\u5730\u5740\u3001\u7535\u8BDD",-1)),Me={class:"content"},Le={flex:"","mb-1":""},Pe=o(()=>e("div",{class:"label",style:{width:"105px"}},"\u5F00\u6237\u884C\u53CA\u8D26\u53F7",-1)),Re={class:"content"},Ve=o(()=>e("ul",{class:"tc",style:{height:"30px"}},[e("li",null,"\u9500"),e("li",null,"\u552E"),e("li",null,"\u65B9")],-1)),qe={flex:"","mb-1":""},Qe=o(()=>e("div",{class:"label",style:{width:"75px"}},"\u540D\u79F0",-1)),ze={class:"content",style:{display:"flex","justify-content":"space-between",width:"100%"}},Ue={flex:"","mb-1":""},je=o(()=>e("div",{class:"label"},"\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",-1)),Ge={class:"content"},He={flex:"","mb-1":""},Je=o(()=>e("div",{class:"label",style:{width:"75px"}},"\u5730\u5740\u3001\u7535\u8BDD",-1)),$e={class:"content"},Oe={flex:"","mb-1":""},We=o(()=>e("div",{class:"label",style:{width:"95px"}},"\u5F00\u6237\u884C\u53CA\u8D26\u53F7",-1)),Xe={class:"content"},Ke={class:"row-div"},Ye=o(()=>e("div",{class:"tc"},"\u8D27\u7269\u6216\u5E94\u7A0E\u52B3\u52A1\u3001\u670D\u52A1\u540D\u79F0",-1)),Ze=o(()=>e("div",{class:"tc"},"\u89C4\u683C\u578B\u53F7",-1)),es=o(()=>e("div",{class:"tc"},"\u5355\u4F4D",-1)),ss=o(()=>e("div",{class:"tc"},"\u6570\u91CF",-1)),ts=o(()=>e("div",{class:"tc"},"\u5355\u4EF7",-1)),ls=o(()=>e("div",{class:"tc"},"\u91D1\u989D",-1)),as=o(()=>e("div",{class:"tc"},"\u7A0E\u7387",-1)),us=o(()=>e("div",{class:"tc"},"\u7A0E\u989D",-1)),ns={key:0,style:{"border-bottom":"1px solid #b16363"}},os={class:"tc"},is={class:"tc"},cs={class:"tc"},rs={class:"tc"},ds={class:"tc"},_s={class:"tc"},ps={class:"tc"},vs={class:"tc"},fs=o(()=>e("div",{class:"tc"},"\u5408\u8BA1",-1)),bs=o(()=>e("div",{class:"tc"},"\xA0",-1)),ms=o(()=>e("div",{class:"tc"},"\xA0",-1)),ys=o(()=>e("div",{class:"tc"},"\xA0",-1)),hs=o(()=>e("div",{class:"tc"},"\xA0",-1)),Fs={class:"tc"},xs=o(()=>e("div",{class:"tc"},"\xA0",-1)),As={class:"tc"},Ds=o(()=>e("ul",{class:"tc"},[e("li",null,"\u5907"),e("li",null,"\u6CE8")],-1)),Es={key:2,"text-xl":"","font-bold":"","text-center":"","w-full":""},Bs=O({__name:"index",props:{invNo:{type:String,required:!1},type:{type:String,required:!0},invNumber:{type:[String,null],required:!0},data:{type:null,required:!1}},emits:["getInvoiceData"],setup(F,{expose:S,emit:M}){const _=F,n=D({}),E=D(!1),B=D(!1),x=W(_,"data"),C=D(null),w=D(null),L={companyNo:[{required:!0,message:"\u4E70\u5165\u65B9\u516C\u53F8\u4E0D\u80FD\u4E3A\u7A7A",trigger:"change"}],supplierNo:[{required:!0,message:"\u5356\u51FA\u65B9\u516C\u53F8\u4E0D\u80FD\u4E3A\u7A7A",trigger:"change"}]},{isError:A,data:i,run:P,loading:k,setData:R}=X({initalData:{},noMessage:!0,success:(p=[])=>{p.length===0&&A.value===!1&&(A.value=!0),M("getInvoiceData",a(i))}}),V=I(()=>{var l;const p={0:"\u5F85\u9A8C\u8BC1",1:"\u6B63\u5E38",2:"\u4F5C\u5E9F",3:"\u5DF2\u7EA2\u51B2"},r=(l=i.value)==null?void 0:l.status;return p[String(r)]}),q=I(()=>{var l;const p={0:"#dedfe0",1:"#67c23a",2:"#909399",3:"#f56c6c"},r=(l=i.value)==null?void 0:l.status;return p[String(r)]}),Q=I(()=>{var l,v;const{type:p}=_,r=a(i);return p==="sale"?((l=K.find(h=>h.value===r.inv_type))==null?void 0:l.label)||"\u7535\u5B50\u53D1\u7968\uFF08\u589E\u503C\u7A0E\u666E\u901A\u53D1\u7968\uFF09":(v=Y.find(h=>h.value===r.type))==null?void 0:v.label});function z(){const p=_.type==="purchase"?oe:ie;n.value=pe[_.type],P(p({number:_.invNumber,..._.invNo?{invNo:_.invNo}:{}}))}return Z(()=>{if(R({}),!_.invNumber)return A.value=!0;z()}),S({initialData(){setTimeout(()=>{!w.value||!C.value||(w.value.initalData({company_name:_.data.companyName}),C.value.initalData({name:_.data.supplierName}))},500)}}),(p,r)=>{const l=b("el-col"),v=b("el-row"),h=b("ElFormItem"),N=b("ElCol"),U=b("ElRow"),j=b("ElForm"),T=b("ElButton"),G=b("el-scrollbar"),H=ee("loading");return f(),m(g,null,[a(k)?se((f(),m("div",ve,null,512)),[[H,a(k)]]):y("v-if",!0),!a(A)&&!a(k)?(f(),m("div",fe,[s(v,null,{default:t(()=>[s(l,{span:6},{default:t(()=>[e("div",be,[e("p",{style:te([{"font-size":"27px"},{color:a(q)}]),class:"font-bold"},u(a(V)),5)])]),_:1}),s(l,{span:12,class:"title no-border"},{default:t(()=>[c(u(a(Q)),1)]),_:1}),s(l,{span:6,class:"extra no-border"},{default:t(()=>[e("div",null,[me,c("\uFF1A"),e("span",ye,u(a(i)[n.value.code]),1)]),e("div",null,[he,c("\uFF1A"),e("span",Fe,u(a(i)[n.value.number]),1)]),e("div",null,[xe,c("\uFF1A"),e("span",Ae,u(a(i)[n.value.openTime]),1)]),e("div",null,[De,c("\uFF1A"),e("span",Ee,u(a(i)[n.value.checkNumber]),1)])]),_:1})]),_:1}),s(j,{rules:L,model:a(x)},{default:t(()=>[s(U,{gutter:10},{default:t(()=>[s(N,{span:12},{default:t(()=>[s(h,{label:"\u4E70\u5165\u65B9\u516C\u53F8",prop:"companyNo"},{default:t(()=>[s(a(le),{ref_key:"businessQueryRef",ref:w,modelValue:a(x).companyNo,"onUpdate:modelValue":r[0]||(r[0]=d=>a(x).companyNo=d),style:{width:"100%"},size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),s(N,{span:12},{default:t(()=>[s(h,{label:"\u5356\u51FA\u65B9\u516C\u53F8",prop:"supplierNo"},{default:t(()=>[s(a(ae),{ref_key:"supplierQueryRef",ref:C,modelValue:a(x).supplierNo,"onUpdate:modelValue":r[1]||(r[1]=d=>a(x).supplierNo=d),style:{width:"100%"},size:"small"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"]),s(v,{class:"row height84"},{default:t(()=>[s(l,{span:1,class:"no-border"},{default:t(()=>[Be]),_:1}),s(l,{span:11,style:{padding:"5px"}},{default:t(()=>[e("div",ke,[ge,c("\uFF1A"),e("div",Ce,[e("span",null,u(a(i)[n.value.buyerTitle]),1),s(T,{link:"",size:"small",type:"primary",onClick:r[2]||(r[2]=d=>E.value=!E.value)},{default:t(()=>[c(u(E.value?"\u6536\u8D77":"\u5C55\u793A\u66F4\u591A"),1)]),_:1})])]),e("div",we,[Ie,c("\uFF1A"),e("span",Ne,u(a(i)[n.value.buyerCode]),1)]),E.value?(f(),m(g,{key:0},[e("div",Te,[Se,c("\uFF1A"),e("span",Me,u(a(i)[n.value.buyerAddr])+" "+u(a(i)[n.value.buyerMobile]),1)]),e("div",Le,[Pe,c("\uFF1A"),e("span",Re,u(a(i)[n.value.buyerBank])+" "+u(a(i)[n.value.buyerBankNo]),1)])],64)):y("v-if",!0)]),_:1}),s(l,{span:1,class:"no-border"},{default:t(()=>[Ve]),_:1}),s(l,{span:11,style:{padding:"5px"}},{default:t(()=>[e("div",qe,[Qe,c("\uFF1A"),e("div",ze,[e("span",null,u(a(i)[n.value.sellerTitle]),1),s(T,{link:"",size:"small",type:"primary",onClick:r[3]||(r[3]=d=>B.value=!B.value)},{default:t(()=>[c(u(B.value?"\u6536\u8D77":"\u5C55\u793A\u66F4\u591A"),1)]),_:1})])]),e("div",Ue,[je,c("\uFF1A"),e("span",Ge,u(a(i)[n.value.sellerCode]),1)]),B.value?(f(),m(g,{key:0},[e("div",He,[Je,c("\uFF1A"),e("span",$e,u(a(i)[n.value.sellerAddr])+" "+u(a(i)[n.value.sellerMobile]),1)]),e("div",Oe,[We,c("\uFF1A"),e("span",Xe,u(a(i)[n.value.sellerBank])+" "+u(a(i)[n.value.sellerBankNo]),1)])],64)):y("v-if",!0)]),_:1})]),_:1}),e("div",Ke,[s(v,null,{default:t(()=>[s(l,{span:8,class:"no-border"},{default:t(()=>[Ye]),_:1}),s(l,{span:3},{default:t(()=>[Ze]),_:1}),s(l,{span:1},{default:t(()=>[es]),_:1}),s(l,{span:2},{default:t(()=>[ss]),_:1}),s(l,{span:3},{default:t(()=>[ts]),_:1}),s(l,{span:3},{default:t(()=>[ls]),_:1}),s(l,{span:1},{default:t(()=>[as]),_:1}),s(l,{span:3},{default:t(()=>[us]),_:1})]),_:1}),a(i)&&a(i)[n.value.goodList]?(f(),m("div",ns,[s(G,{"max-height":"200px",always:""},{default:t(()=>[(f(!0),m(g,null,ue(a(i)[n.value.goodList],(d,J)=>(f(),ne(v,{key:J},{default:t(()=>[s(l,{span:8,class:"no-border"},{default:t(()=>[e("div",os,u(d[n.value.listInfo.name]),1)]),_:2},1024),s(l,{span:3},{default:t(()=>[e("div",is,u(d[n.value.listInfo.spec]),1)]),_:2},1024),s(l,{span:1},{default:t(()=>[e("div",cs,u(d[n.value.listInfo.unit]),1)]),_:2},1024),s(l,{span:2},{default:t(()=>[e("div",rs,u(d[n.value.listInfo.num]),1)]),_:2},1024),s(l,{span:3},{default:t(()=>[e("div",ds,u(d[n.value.listInfo.goodPrice]),1)]),_:2},1024),s(l,{span:3},{default:t(()=>[e("div",_s,u(d[n.value.listInfo.totalPrice]),1)]),_:2},1024),s(l,{span:1},{default:t(()=>[e("div",ps,u(d[n.value.listInfo.taxRate]),1)]),_:2},1024),s(l,{span:3},{default:t(()=>[e("div",vs,u(d[n.value.listInfo.tax]),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})])):y("v-if",!0),s(v,null,{default:t(()=>[s(l,{span:8,class:"no-border"},{default:t(()=>[fs]),_:1}),s(l,{span:3},{default:t(()=>[bs]),_:1}),s(l,{span:1},{default:t(()=>[ms]),_:1}),s(l,{span:2},{default:t(()=>[ys]),_:1}),s(l,{span:3},{default:t(()=>[hs]),_:1}),s(l,{span:3},{default:t(()=>[e("div",Fs,u(a(i)[n.value.amountPrice]),1)]),_:1}),s(l,{span:1},{default:t(()=>[xs]),_:1}),s(l,{span:3},{default:t(()=>[e("div",As,u(a(i)[n.value.amountTax]),1)]),_:1})]),_:1})]),s(v,{class:"row con"},{default:t(()=>[s(l,{span:8,class:"no-border tc"},{default:t(()=>[c(" \u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09 ")]),_:1}),s(l,{span:9,class:"no-border tl"},{default:t(()=>[c(u(a(i)[n.value.TotalIncludingTax_C]),1)]),_:1}),s(l,{span:7,class:"no-border tc"},{default:t(()=>[c("\uFF08\u5C0F\u5199\uFF09"),e("span",null,u(a(i)[n.value.TotalIncludingTax_L]),1)]),_:1})]),_:1}),s(v,{class:"row height84",style:{"border-bottom":"1px solid #b15b16"}},{default:t(()=>[s(l,{span:1},{default:t(()=>[Ds]),_:1}),s(l,{span:23},{default:t(()=>[c(u(a(i)[n.value.remarks]),1)]),_:1})]),_:1}),y(` <el-row class="last-row">\r
- <el-col :span="6" class="no-border">\r
- <span>\u6536\u6B3E\u4EBA\uFF1A</span>\r
- <span class="content">{{ invoiceDetail[prop.payee] }}</span>\r
- </el-col>\r
- <el-col :span="6" class="no-border">\r
- <span>\u590D\u6838\uFF1A</span>\r
- <span class="content">{{ invoiceDetail[prop.reviewer] }}</span>\r
- </el-col>\r
- <el-col :span="6" class="no-border">\r
- <span>\u5F00\u7968\u4EBA\uFF1A</span>\r
- <span class="content">{{ invoiceDetail[prop.drawer] }}</span>\r
- </el-col>\r
- <el-col :span="5" class="no-border">\r
- <span>\u9500\u552E\u65B9\uFF1A</span>\r
- <span class="content">{{ invoiceDetail[prop.seller] }}</span>\r
- </el-col>\r
- </el-row> `)])):y("v-if",!0),a(A)&&!a(k)?(f(),m("div",Es," \u672A\u627E\u5230\u53D1\u7968\u6570\u636E ")):y("v-if",!0)],64)}}});var gs=$(Bs,[["__scopeId","data-v-66dd4d81"],["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/components/InvoiceCompanyUpdate/src/index.vue"]]);export{gs as I};
|