index.53d2c2c9.js 5.7 KB

1
  1. import{_ as k,u as b,w as S}from"./index.61ae944c.js";import{aa as R,aD as T,aU as N,_ as P,r as q,z as I,D as z,v as f,o as U,p as Y,w as e,J as u,q as O,x as t,bm as V,bn as $,W as d,R as B,Q as j,bs as L}from"./index.fcd627f4.js";import{u as M}from"./use-page-search.e79064d3.js";import{e as J,f as Q,g as W}from"./configs.31d4dcd5.js";import{c as G}from"./index.339fc05b.js";import{a as H}from"./tragelog.dfd18fc6.js";import{x as K,c as X}from"./status.4f7e5409.js";import{u as Z}from"./use-permission.e411f1b6.js";const C={formItems:[{field:"status",type:"select",placeholder:"\u8BA4\u9886\u72B6\u6001",options:J},{field:"bank",type:"input",placeholder:"\u4EA4\u6613\u94F6\u884C"},{field:"create_timer",type:"date_picker",otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u4EA4\u6613\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u4EA4\u6613\u7ED3\u675F\u65F6\u95F4"}}]},ee=[{type:"selection",width:55,hide:({checkList:o})=>!o.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",width:70,hide:({checkList:o})=>!o.includes("\u5E8F\u53F7\u5217")},{type:"expand",slot:"expand"},{label:"\u8D44\u91D1\u7F16\u53F7",prop:"tradNo",width:160},{label:"\u72B6\u6001",prop:"status",width:100,cellRenderer:({row:o,props:h})=>R(T,{size:h.size},{default:()=>{var c;return((c=(o.logNo?H:Q).find(_=>o.status===_.value))==null?void 0:c.label)||"--"}})},{label:"\u4ED8\u6B3E\u5355\u4F4D\u8D26\u53F7",prop:"trade_account",width:160},{label:"\u4ED8\u6B3E\u94F6\u884C\u5355\u4F4D\u540D\u79F0",prop:"trade_out",width:160},{label:"\u4EA4\u6613\u65F6\u95F4",prop:"trade_time",width:120,cellRenderer:({row:o})=>N(o.trade_time).format("YYYY-MM-DD")},{label:"\u4EA4\u6613\u91D1\u989D",prop:"total_fee",width:110},{label:"\u4EA4\u6613\u94F6\u884C",prop:"trade_bank",width:130},{label:"\u6536\u6B3E\u5355\u4F4D\u540D\u79F0",prop:"trade_in"},{label:"\u672A\u8BA4\u9886",prop:"balance",width:80},{label:"\u5DF2\u8BA4\u9886",prop:"used_fee",width:80},{label:"\u64CD\u4F5C",fixed:"right",width:60,slot:"operation"}],E={title:"\u8D44\u91D1\u8BA4\u9886\u7BA1\u7406",columns:ee,apis:{httpList:G},showExpand:o=>o.child.length>0,isTree:!0,powers:["001","002","003","004","005","006","007","008"]},ue={\u6536\u6B3E\u65B9\u516C\u53F8\u7F16\u53F7:"",\u6536\u6B3E\u65B9\u516C\u53F8\u540D\u79F0:"",\u6536\u6B3E\u65B9\u8D26\u6237:"",\u4EA4\u6613\u65F6\u95F4:"",\u6536\u5165\u91D1\u989D:"",\u8D26\u53F7\u4F59\u989D:"",\u4EA4\u6613\u884C\u540D:"",\u5BF9\u65B9\u7701\u5E02:"",\u5BF9\u65B9\u8D26\u53F7:"",\u5BF9\u65B9\u6237\u540D:"",\u4EA4\u6613\u7528\u9014:""};const te={class:"main role"},oe={"w-full":""},le=d("\u4E0B\u8F7D\u6A21\u677F"),ae=d("\u5BFC\u5165\u6570\u636E "),se={name:"invoiceheader"},ne=q({...se,setup(o){const{push:h}=I(),F=z(null),{pageContentRef:c,handleResetClick:_,handleSearchClick:v}=M(void 0,void 0,C);function A(){const n=b.book_new(),a=b.json_to_sheet([ue]);b.book_append_sheet(n,a,"sheet"),S(n,"\u8D44\u91D1\u8BA4\u9886\u6A21\u677F.xlsx",{bookType:"xlsx"})}function D({tradNo:n,logNo:a}){h({path:"/InvoiceSales/capitalClaimDetail",query:{id:a||n}})}const{permission:g,contentConfigRef:x}=Z({pageName:"capitalClaim",contentConfig:E,callback:n=>E.powers=n});return(n,a)=>{const m=f("el-button"),l=f("el-table-column"),w=f("el-tag"),y=f("el-table");return U(),Y("div",te,[e(L,{"is-show":t(g).list},{default:u(()=>[O("div",oe,[e(t(V),{"form-config":t(C),onSearchBtnClick:t(v),onResetBtnClick:t(_)},{action:u(()=>[e(m,{onClick:A},{default:u(()=>[le]),_:1}),e(m,{type:"primary",onClick:a[0]||(a[0]=()=>F.value.onDisplay())},{default:u(()=>[ae]),_:1})]),_:1},8,["form-config","onSearchBtnClick","onResetBtnClick"]),e(t($),{ref_key:"pageContentRef",ref:c,"content-config":t(x),onPreviewBtnClick:a[1]||(a[1]=i=>D(i))},{expand:u(i=>[e(y,{size:"small",data:i.child,border:"",style:{width:"100%","padding-left":"45px","padding-top":"10px","padding-bottom":"10px"}},{default:u(()=>[e(l,{label:"\u8D44\u91D1\u8BA4\u9886\u7F16\u53F7",prop:"logNo",width:"160","show-overflow-tooltip":""}),e(l,{label:"\u8BA2\u5355\u7F16\u53F7",prop:"orderCode",width:"160","show-overflow-tooltip":""}),e(l,{label:"\u5546\u54C1\u7F16\u53F7",prop:"goodNo",width:"160","show-overflow-tooltip":""}),e(l,{label:"\u5546\u54C1\u540D\u79F0",prop:"goodName",width:"180","show-overflow-tooltip":""}),e(l,{label:"\u8BA4\u9886\u72B6\u6001",prop:"status",width:"90","show-overflow-tooltip":""},{default:u(({$index:p})=>[e(w,null,{default:u(()=>{var s;return[d(B(((s=t(W).find(r=>r.value===i.child[p].status))==null?void 0:s.label)||"--"),1)]}),_:2},1024)]),_:2},1024),e(l,{label:"\u8BA2\u5355\u6765\u6E90",prop:"qrdSource",width:"90","show-overflow-tooltip":""},{default:u(({$index:p})=>[e(w,null,{default:u(()=>{var s;return[d(B((s=t(K).find(r=>r.value===i.child[p].qrdSource))==null?void 0:s.label),1)]}),_:2},1024)]),_:2},1024),e(l,{label:"\u5546\u54C1\u6765\u6E90",prop:"qrdType",width:"80","show-overflow-tooltip":""},{default:u(({$index:p})=>[e(w,null,{default:u(()=>{var s;return[d(B((s=t(X).find(r=>r.value===i.child[p].qrdType))==null?void 0:s.label),1)]}),_:2},1024)]),_:2},1024),e(l,{label:"\u8D44\u91D1\u521B\u5EFA\u4EBA",prop:"ownerName",width:"80","show-overflow-tooltip":""}),e(l,{label:"\u8BA4\u9886\u521B\u5EFA\u4EBA",prop:"apply_name",width:"80","show-overflow-tooltip":""}),e(l,{label:"\u5E73\u53F0\u5355\u53F7",prop:"poCode",width:"180","show-overflow-tooltip":""}),e(l,{fixed:"right",label:"\u64CD\u4F5C",width:"60px"},{default:u(({$index:p})=>[e(m,{icon:t(j)("eye-view"),onClick:()=>D(i.child[p]),type:"primary",link:""},null,8,["icon","onClick"])]),_:2},1024)]),_:2},1032,["data"])]),_:1},8,["content-config"])])]),_:1},8,["is-show"]),e(k,{ref_key:"execlUploadRef",ref:F,onOnSuccess:t(_)},null,8,["onOnSuccess"])])}}});var Fe=P(ne,[["__scopeId","data-v-5fc96c0e"]]);export{Fe as default};