import{_ as c,d as s,o as p,A as d,i as r,ca as b,a as m}from"./index.js";const o=[{label:"\u5206\u7EC4",minWidth:"80px",prop:"group",required:!0},{label:"\u53D1\u7968\u7C7B\u578B",minWidth:"140px",prop:"invtype",required:!0},{label:"\u7535\u5B50\u90AE\u7BB1",minWidth:"140px",prop:"email",required:!0},{label:"\u8BA2\u5355\u7F16\u53F7",minWidth:"140px",prop:"sequenceNo",required:!0},{label:"\u8BA2\u5355\u5E73\u53F0\u7C7B\u578B",minWidth:"120px",prop:"platform_type",required:!0},{label:"\u5F00\u7968\u91D1\u989D",minWidth:"160px",prop:"inv_fee",required:!0},{label:"\u5E73\u53F0\u91C7\u8D2DPO",minWidth:"160px",prop:"poCode",required:!0},{label:"\u72B6\u6001",minWidth:"100px",prop:"status",required:!1},{label:"\u5907\u6CE8",minWidth:"160px",prop:"remark",required:!1}],y=[{prop:"index",width:"50",fixed:"left",label:"\u5E8F\u53F7"},...o],h=i=>{var e;return(e=o.find(u=>u.label===i))==null?void 0:e.prop},k=o.filter(({required:i})=>!!i),A=o.reduce((i,e)=>({...i,[e.prop]:e.label}),{}),v=[{label:"\u62AC\u5934",span:24,field:"invoice_title"},{label:"\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",span:24,field:"invoice_code"}],E=i=>{const{company_address:e,mobile:u,company_license:n,bank_name:a,bankNo:t,company_name:l}=i;return{invoice_addr:e,invoice_mobile:u,invoice_code:n,invoice_bank:a,invoice_bankNo:t,invoice_title:l}},F=i=>{const{invoice_addr:e,invoice_mobile:u,invoice_code:n,invoice_bank:a,invoice_bankNo:t,invoice_title:l}=i;return{invoice_code:n,invoice_title:l,addrAndmobile:e+" "+u,bankAndBankNo:a+" "+t}},q=[{type:"info",label:"\u5F85\u521B\u5EFA",value:0},{type:"",label:"\u521B\u5EFA\u4E2D",value:1},{type:"success",label:"\u521B\u5EFA\u6210\u529F",value:2},{type:"danger",label:"\u521B\u5EFA\u5931\u8D25",value:3}],_=s({__name:"InvoiceTitle",props:{detail:{type:Object,required:!0}},setup(i){return(e,u)=>Object.keys(e.detail||{}).length!==0?(p(),d(r(b),{key:0,columns:r(v),"label-width":"130","col-number":1,data:e.detail},null,8,["columns","data"])):m("v-if",!0)}});var B=c(_,[["__file","D:/work/jiesuan/settle-vue3/src/views/InvoiceSales/batchImportYunlong/InvoiceTitle.vue"]]),x=Object.freeze(Object.defineProperty({__proto__:null,default:B},Symbol.toStringTag,{value:"Module"}));export{B as I,y as a,E as b,F as c,x as d,h as g,o as i,A as m,k as r,q as s};
