1 |
- import{am as a,cJ as b,aR as i,cK as f,cL as B,bY as E,J as s,bO as D,aT as d,cq as n,bz as A}from"./index.js";const _=[{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:"10",label:"\u9A8C\u7968\u6210\u529F\uFF0C\u5F85\u5173\u8054\u8BA2\u5355",type:"warning"},{value:"11",label:"\u5F85\u8D22\u52A1\u5BA1\u6279\u5173\u8054\u4FE1\u606F",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"},{value:"9",label:"\u53D1\u7968\u5173\u8054\u8BA2\u5355\u8D22\u52A1\u9A73\u56DE",type:"warning"}],y=[{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 a(i,{type:(u=b.find(r=>r.value===String(e)))==null?void 0:u.type},{default:()=>{var r;return((r=b.find(t=>t.value===String(e)))==null?void 0:r.label)||"--"}})}},{label:"\u9500\u552E\u65B9\u62AC\u5934\u72B6\u6001",field:"buyer_check",render(e){var u;return a(i,{type:(u=f.find(r=>r.value===String(e)))==null?void 0:u.type},{default:()=>{var r;return((r=f.find(t=>t.value===String(e)))==null?void 0:r.label)||"--"}})}},{field:"status",label:"\u5F00\u7968\u72B6\u6001",render(e,{status:u,check_remark:r}){return a("div",{},{default:()=>{var t;return[a(i,{type:(t=F.find(o=>o.value===e))==null?void 0:t.type},{default:()=>{var o;return((o=F.find(l=>l.value===e))==null?void 0:o.label)||"--"}}),String(u)!=="5"?null:a(B,{placement:"top",content:`\u5F02\u5E38\u539F\u56E0 : ${r}`,width:"300px"},{reference:()=>a(E,{link:!0,icon:s("information-line")})})]}})}},{field:"inv_type",label:"\u53D1\u7968\u7C7B\u578B",render(e,u){return a(i,null,{default:()=>{var r;return((r=D.find(t=>t.value===String(e)))==null?void 0:r.label)||"--"}})}},{field:"open_type",label:"\u5F00\u7968\u65B9\u5F0F",render(e){return a(i,null,{default:()=>{var u;return((u=_.find(r=>r.value===String(e)))==null?void 0:u.label)||"--"}})}},{field:"is_ticket",label:"\u662F\u5426\u652F\u6301\u91D1\u7A0E",render(e){return a(i,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})=>d(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})=>d(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})=>d(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})=>d(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})=>d(e,"\u9500\u552E\u65B9\u8D26\u6237 : "+u,300)},{field:"buyer_bank",label:"\u8D2D\u4E70\u65B9\u94F6\u884C",span:12,render:(e,{buyer_bankNo:u})=>d(e,"\u8D2D\u4E70\u65B9\u8D26\u6237 : "+u,300)},{field:"seller_addr",label:"\u9500\u552E\u65B9\u5730\u5740",span:12,render:(e,{seller_mobile:u})=>d(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})=>d(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:r=[]}){const t=r.reduce((l,p)=>({[p.name]:p,...l}),{});Object.keys(t).forEach(l=>{const{totalPrice:p,goodNum:v,goodPrice:c}=u[l];t[l].cancel_fee=p||0,t[l].inv_num=v||0,t[l].goodPrice=c||0});const o=Object.keys(t).reduce((l,p)=>[...l,t[p]],[]);return a(A,{data:o,border:!0,size:"small",width:"100%"},{default:()=>[a(n,{prop:"sequenceNo",label:"\u8BA2\u5355\u7F16\u7801",width:"150px",fixed:"left",showOverflowTooltip:!0}),a(n,{prop:"goodName",label:"\u5546\u54C1\u540D\u79F0","min-width":"110px",showOverflowTooltip:!0}),a(n,{prop:"tax",showOverflowTooltip:!0,label:"\u7A0E\u7387",width:"50px"},{default:({row:l})=>l.tax+"%"}),a(n,{showOverflowTooltip:!0,label:"\u7C7B\u76EE\u7F16\u7801",width:"120px"},{default:({row:l})=>l.orderTax&&!Array.isArray(l.orderTax)?l.orderTax.cat_code:"--"}),a(n,{showOverflowTooltip:!0,label:"\u8D27\u7269\u548C\u52B3\u52A1\u540D\u79F0",width:"130px"},{default:({row:l})=>l.orderTax&&!Array.isArray(l.orderTax)?l.orderTax.cat_name:"--"}),a(n,{showOverflowTooltip:!0,label:"\u5546\u54C1\u548C\u670D\u52A1\u5206\u7C7B\u7B80\u79F0",width:"130px"},{default:({row:l})=>l.orderTax&&!Array.isArray(l.orderTax)?l.orderTax.short_name:"--"}),a(n,{showOverflowTooltip:!0,label:"\u5F00\u7968\u5546\u54C1\u540D\u79F0",width:"130px"},{default:({row:l})=>l.orderTax&&!Array.isArray(l.orderTax)?l.orderTax.inv_good_name:"--"}),a(n,{showOverflowTooltip:!0,label:"\u5F00\u7968\u7A0E\u7387",width:"130px"},{default:({row:l})=>l.orderTax&&!Array.isArray(l.orderTax)?l.orderTax.tax:"--"}),a(n,{showOverflowTooltip:!0,label:"\u5F00\u7968\u7C7B\u578B",width:"90px"},{default:({row:l})=>l.open_type=="1"?"\u539F\u5546\u54C1\u5F00\u7968":l.open_type=="2"?"\u5B50\u5546\u54C1\u5F00\u7968":""}),a(n,{prop:"goodPrice",label:"\u5546\u54C1\u5355\u4EF7","min-width":"100px",showOverflowTooltip:!0}),a(n,{prop:"goodNum",label:"\u5546\u54C1\u603B\u6570\u91CF","min-width":"100px",showOverflowTooltip:!0}),a(n,{prop:"ainv_num",label:"\u5DF2\u5F00\u7968\u6570\u91CF","min-width":"100px",showOverflowTooltip:!0}),a(n,{prop:"inv_num",label:"\u6B64\u6B21\u5F00\u7968\u6570\u91CF","min-width":"100px",showOverflowTooltip:!0}),a(n,{prop:"totalPrice",label:"\u8BA2\u5355\u603B\u91D1\u989D","min-width":"100px",showOverflowTooltip:!0}),a(n,{prop:"ainv_fee",label:"\u5DF2\u5F00\u7968\u91D1\u989D","min-width":"100px",showOverflowTooltip:!0}),a(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}],C=[{field:"invNo",label:"\u53D1\u7968\u7F16\u7801"},{field:"inv_value",label:"\u53D1\u7968\u91D1\u989D"},{field:"buyer_title",label:"\u5F00\u7968\u516C\u53F8",render:(e,{inv_out:u})=>d(e,"\u5F00\u7968\u516C\u53F8\u7F16\u7801 : "+u,360)},{field:"apply_name",label:"\u7533\u8BF7\u4EBA"},{field:"status",label:"\u5F00\u7968\u72B6\u6001",render(e){return a("div",{},{default:()=>{var u;return[a(i,{type:(u=F.find(r=>r.value===e))==null?void 0:u.type},{default:()=>{var r;return((r=F.find(t=>t.value===e))==null?void 0:r.label)||"--"}}),a(B,{placement:"top",content:"111px",width:"200px"},{reference:()=>a(E,{link:!0,icon:s("information-line")})})]}})}},{field:"inv_type",label:"\u53D1\u7968\u7C7B\u578B",render(e){return a(i,null,{default:()=>{var u;return((u=D.find(r=>r.value===e))==null?void 0:u.label)||"--"}})}},{field:"open_type",label:"\u5F00\u7968\u65B9\u5F0F",render(e){return a(i,null,{default:()=>{var u;return((u=_.find(r=>r.value===e))==null?void 0:u.label)||"--"}})}},{field:"is_ticket",label:"\u662F\u5426\u652F\u6301\u91D1\u7A0E",render(e){return a(i,null,{default:()=>e==="0"?"\u4E0D\u652F\u6301":"\u652F\u6301"})}},{field:"exam_remark",label:"\u5BA1\u6838\u5907\u6CE8"},{field:"remark",label:"\u5907\u6CE8"},{field:"email",label:"\u7535\u5B50\u90AE\u7BB1"},{field:"winv_fee",label:"\u672A\u5F00\u7968"},{field:"ainv_fee",label:"\u5DF2\u5F00\u7968"},{field:"post_fee",label:"\u5FEB\u9012\u8D39"},{field:"post_code",label:"\u5FEB\u9012\u7F16\u7801"},{field:"post_company",label:"\u5FEB\u9012\u516C\u53F8"}];export{y as I,C as O,F as a};
|