1 |
- import{al as r,a$ as p,b3 as c,b2 as _,J as D,bO as n,aV as v,_ as m,d as w,o as A,G as h,l as s}from"./index.js";import{d as C,u as y}from"./types.ebfbff8f.js";import{c as o}from"./tootip.e1d72495.js";import{e as f,f as b,i as g}from"./status.151ccddb.js";import{B as x}from"./basic-descriptions.64fbdf9d.js";const O=[{value:"1",label:"\u91D1\u7A0E\u5F00\u7968"},{value:"2",label:"\u91D1\u7A0E\u7EBF\u4E0B"},{value:"3",label:"\u7EAF\u7EBF\u4E0B"}],F=[{value:"1",label:"\u5F85\u8D22\u52A1\u5BA1\u6838",type:"warning"},{value:"2",label:"\u5F85\u4E0A\u4F20\u53D1\u7968",type:"warning"},{value:"3",label:"\u5F00\u7968\u9A8C\u7968\u4E2D",type:"warning"},{value:"4",label:"\u5F00\u7968\u5B8C\u6210",type:"warning"},{value:"5",label:"\u5F00\u7968\u5F02\u5E38 ",type:"warning"},{value:"6",label:"\u5DF2\u9000\u7968\u6216\u5DF2\u4F5C\u5E9F",type:"warning"},{value:"7",label:"\u5DF2\u53D6\u6D88\u7533\u8BF7",type:"warning"},{value:"8",label:"\u8D22\u52A1\u9A73\u56DE",type:"warning"},{value:"9",label:"\u9A8C\u7968\u5931\u8D25",type:"warning"}],T=[{field:"invNo",label:"\u53D1\u7968\u7F16\u7801",labelWidth:"100px"},{field:"inv_value",label:"\u53D1\u7968\u91D1\u989D"},{label:"\u8D2D\u4E70\u65B9\u62AC\u5934\u72B6\u6001",field:"seller_check",render(e){var u;return r(p,{type:(u=f.find(l=>l.value===String(e)))==null?void 0:u.type},{default:()=>{var l;return((l=f.find(a=>a.value===String(e)))==null?void 0:l.label)||"--"}})}},{label:"\u9500\u552E\u65B9\u62AC\u5934\u72B6\u6001",field:"buyer_check",render(e){var u;return r(p,{type:(u=b.find(l=>l.value===String(e)))==null?void 0:u.type},{default:()=>{var l;return((l=b.find(a=>a.value===String(e)))==null?void 0:l.label)||"--"}})}},{field:"status",label:"\u5F00\u7968\u72B6\u6001",render(e,{status:u,check_remark:l}){return r("div",{},{default:()=>{var a;return[r(p,{type:(a=F.find(i=>i.value===e))==null?void 0:a.type},{default:()=>{var i;return((i=F.find(t=>t.value===e))==null?void 0:i.label)||"--"}}),String(u)!=="5"?null:r(c,{placement:"top",content:`\u5F02\u5E38\u539F\u56E0 : ${l}`,width:"300px"},{reference:()=>r(_,{link:!0,icon:D("information-line")})})]}})}},{field:"inv_type",label:"\u53D1\u7968\u7C7B\u578B",render(e,u){return r(p,null,{default:()=>{var l;return((l=g.find(a=>a.value===String(e)))==null?void 0:l.label)||"--"}})}},{field:"open_type",label:"\u5F00\u7968\u65B9\u5F0F",render(e){return r(p,null,{default:()=>{var u;return((u=O.find(l=>l.value===String(e)))==null?void 0:u.label)||"--"}})}},{field:"is_ticket",label:"\u662F\u5426\u652F\u6301\u91D1\u7A0E",render(e){return r(p,null,{default:()=>String(e)==="2"?"\u4E0D\u652F\u6301":String(e)==="1"?"\u652F\u6301":"--"})}},{field:"inv_company",label:"\u9500\u552E\u65B9\u516C\u53F8\u7F16\u7801",span:12,render:(e,{inv_out:u})=>o(e,"\u9500\u552E\u65B9\u516C\u53F8\u7F16\u7801 : "+u,300)},{field:"email",label:"\u7535\u5B50\u90AE\u7BB1"},{field:"post_code",label:"\u5FEB\u9012\u7F16\u7801",render:(e,{post_company:u})=>o(e,"\u5FEB\u9012\u516C\u53F8 : "+u,300)},{field:"apply_name",label:"\u7533\u8BF7\u4EBA"},{field:"addtime",label:"\u521B\u5EFA\u65F6\u95F4"},{label:"\u53D1\u7968\u53F7\u7801",field:"",render(e,{invinfo:u}){return u?u.inv_number:""}},{label:"\u53D1\u7968\u4EE3\u7801",field:"",render(e,{invinfo:u}){return u?u.inv_code:""}},{label:"\u53D1\u7968\u6821\u9A8C\u7801",field:"",render(e,{invinfo:u}){return u?u.check_code:""}},{label:"\u7A0E\u524D\u91D1\u989D",field:"",render(e,{invinfo:u}){return u?u.inv_subtotal:""}},{label:"\u7A0E\u540E\u91D1\u989D",field:"",render(e,{invinfo:u}){return u?u.inv_total:""}},{label:"\u5F00\u7968\u65E5\u671F",field:"",render(e,{invinfo:u}){return u?u.open_date:""}},{field:"seller_title",label:"\u9500\u552E\u65B9\u62AC\u5934",span:12,render:(e,{seller_code:u})=>o(e,"\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7 : "+u,300)},{field:"buyer_title",label:"\u8D2D\u4E70\u65B9\u62AC\u5934",span:12,render:(e,{buyer_code:u})=>o(e,"\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7 : "+u,300)},{field:"seller_bank",label:"\u9500\u552E\u65B9\u94F6\u884C",span:12,render:(e,{seller_bankNo:u})=>o(e,"\u9500\u552E\u65B9\u8D26\u6237 : "+u,300)},{field:"buyer_bank",label:"\u8D2D\u4E70\u65B9\u94F6\u884C",span:12,render:(e,{buyer_bankNo:u})=>o(e,"\u8D2D\u4E70\u65B9\u8D26\u6237 : "+u,300)},{field:"seller_addr",label:"\u9500\u552E\u65B9\u5730\u5740",span:12,render:(e,{seller_mobile:u})=>o(e,"\u9500\u552E\u65B9\u8054\u7CFB\u65B9\u5F0F : "+u,300)},{field:"buyer_addr",label:"\u8D2D\u4E70\u65B9\u5730\u5740",span:12,render:(e,{buyer_mobile:u})=>o(e,"\u8D2D\u4E70\u65B9\u8054\u7CFB\u65B9\u5F0F : "+u,300)},{field:"voider",label:"\u4F5C\u5E9F\u4EBA"},{field:"payee",label:"\u6536\u6B3E\u4EBA"},{field:"drawer",label:"\u5F00\u7968\u4EBA"},{field:"reviewer",label:"\u590D\u6838\u4EBA"},{field:"cancel_fee",label:"\u8BA2\u5355\u4FE1\u606F:",span:24,render(e,{goodList:u=[],orderinfo:l=[]}){const a=l.reduce((t,d)=>({[d.name]:d,...t}),{});Object.keys(a).forEach(t=>{const{totalPrice:d,goodNum:B,goodPrice:E}=u[t];a[t].cancel_fee=d||0,a[t].inv_num=B||0,a[t].goodPrice=E||0});const i=Object.keys(a).reduce((t,d)=>[...t,a[d]],[]);return r(v,{data:i,border:!0,size:"small",width:"100%"},{default:()=>[r(n,{prop:"sequenceNo",label:"\u8BA2\u5355\u7F16\u7801",width:"150px",fixed:"left",showOverflowTooltip:!0}),r(n,{prop:"goodName",label:"\u5546\u54C1\u540D\u79F0","min-width":"110px",showOverflowTooltip:!0}),r(n,{prop:"tax",showOverflowTooltip:!0,label:"\u7A0E\u7387",width:"50px"},{default:({row:t})=>t.tax+"%"}),r(n,{prop:"goodPrice",label:"\u5546\u54C1\u5355\u4EF7","min-width":"100px",showOverflowTooltip:!0}),r(n,{prop:"goodNum",label:"\u5546\u54C1\u603B\u6570\u91CF","min-width":"100px",showOverflowTooltip:!0}),r(n,{prop:"ainv_num",label:"\u5DF2\u5F00\u7968\u6570\u91CF","min-width":"100px",showOverflowTooltip:!0}),r(n,{prop:"inv_num",label:"\u6B64\u6B21\u5F00\u7968\u6570\u91CF","min-width":"100px",showOverflowTooltip:!0}),r(n,{prop:"totalPrice",label:"\u8BA2\u5355\u603B\u91D1\u989D","min-width":"100px",showOverflowTooltip:!0}),r(n,{prop:"ainv_fee",label:"\u5DF2\u5F00\u7968\u91D1\u989D","min-width":"100px",showOverflowTooltip:!0}),r(n,{prop:"cancel_fee",label:"\u6B64\u6B21\u5F00\u7968\u91D1\u989D","min-width":"100px",showOverflowTooltip:!0})]})}},{field:"remark",label:"\u53D1\u7968\u5907\u6CE8",span:24},{field:"exam_remark",label:"\u5BA1\u6838\u5907\u6CE8",span:24}],k=w({__name:"inv-open",props:C,emits:["map-offset-top"],setup(e){const u=e,{data:l,code:a,defaultRef:i}=y(u);return(t,d)=>(A(),h(s(x),{show:s(a)==="0",ref_key:"defaultRef",ref:i,data:s(l),columns:s(T)},null,8,["show","data","columns"]))}});var R=m(k,[["__file","C:/Users/Administrator/Desktop/projects/purchase-vue3/src/views/search/standBook/details/inv-open.vue"]]);export{R as default};
|