1 |
- import{ah as k,aE as y,aX as S,_ as P,q as R,x as T,B as N,r as h,o as q,n as I,t as e,H as u,p as O,v as t,S as c,O as B,bw as U}from"./index.413ee8cb.js";import{E as Y,u as b,w as z}from"./index.ba21ec77.js";import{u as V,P as j}from"./use-page-search.4f9e3dd3.js";import{P as L}from"./page-content.f28f89ee.js";import{e as M,f as H,g as X}from"./configs.6e2a8d84.js";import{c as G}from"./index.1b6e3878.js";import{a as J}from"./tragelog.fff16219.js";import{u as K}from"./hooks.217daa00.js";import{x as Q,c as W}from"./status.b8063a0d.js";import{u as Z}from"./use-permission.86f8828a.js";import"./responseHandle.6d0667d8.js";import"./basic-form.1f1ab9b1.js";import"./global.9ad647c8.js";import"./index.bef541ea.js";import"./use-response-handle.9aced8b8.js";const $={formItems:[{field:"status",type:"select",placeholder:"\u8BA4\u9886\u72B6\u6001",options:M},{field:"bank",type:"input",placeholder:"\u4EA4\u6613\u94F6\u884C"},{field:"create_timer",type:"date_picker",otherOptions:{type:"daterange",startPlaceholder:"\u521B\u5EFA\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u521B\u5EFA\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:m})=>k(y,{size:m.size},{default:()=>{var _;return((_=(o.logNo?J:H).find(f=>o.status===f.value))==null?void 0:_.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})=>S(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"}],D={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=c("\u4E0B\u8F7D\u6A21\u677F"),ae=c("\u5BFC\u5165\u6570\u636E"),ie={name:"invoiceheader"},se=R({...ie,setup(o){const{push:m}=T(),F=N(null),{pageContentRef:_,handleResetClick:f,handleSearchClick:E}=V(({create_timer:i})=>{const[l,p]=i;return{result:{start:l,end:p},deleteProps:["create_timer"]}});function v(){const i=b.book_new(),l=b.json_to_sheet([ue]);b.book_append_sheet(i,l,"sheet"),z(i,"\u8D44\u91D1\u8BA4\u9886\u6A21\u677F.xlsx",{bookType:"xlsx"})}function C({tradNo:i,logNo:l}){m({path:"/InvoiceSales/capitalClaimDetail",query:{id:l||i}})}const{permission:g,contentConfigRef:x}=Z({pageName:"capitalClaim",contentConfig:D,callback:i=>D.powers=i});return(i,l)=>{const p=h("el-button"),a=h("el-table-column"),w=h("el-tag"),A=h("el-table");return q(),I("div",te,[e(U,{"is-show":t(g).list},{default:u(()=>[O("div",oe,[e(t(j),{"form-config":t($),onSearchBtnClick:t(E),onResetBtnClick:t(f)},{action:u(()=>[e(p,{onClick:v},{default:u(()=>[le]),_:1}),e(p,{type:"primary",onClick:l[0]||(l[0]=()=>F.value.onDisplay())},{default:u(()=>[ae]),_:1})]),_:1},8,["form-config","onSearchBtnClick","onResetBtnClick"]),e(t(L),{ref_key:"pageContentRef",ref:_,"content-config":t(x),onPreviewBtnClick:l[1]||(l[1]=n=>C(n))},{expand:u(n=>[e(A,{size:"small",data:n.child,border:"",style:{width:"100%","padding-left":"45px","padding-top":"10px","padding-bottom":"10px"}},{default:u(()=>[e(a,{label:"\u8D44\u91D1\u8BA4\u9886\u7F16\u53F7",prop:"logNo",width:"160","show-overflow-tooltip":""}),e(a,{label:"\u8BA2\u5355\u7F16\u53F7",prop:"orderCode",width:"160","show-overflow-tooltip":""}),e(a,{label:"\u5546\u54C1\u7F16\u53F7",prop:"goodNo",width:"160","show-overflow-tooltip":""}),e(a,{label:"\u5546\u54C1\u540D\u79F0",prop:"goodName",width:"180","show-overflow-tooltip":""}),e(a,{label:"\u8BA4\u9886\u72B6\u6001",prop:"status",width:"90","show-overflow-tooltip":""},{default:u(({$index:r})=>[e(w,null,{default:u(()=>{var s;return[c(B(((s=t(X).find(d=>d.value===n.child[r].status))==null?void 0:s.label)||"--"),1)]}),_:2},1024)]),_:2},1024),e(a,{label:"\u8BA2\u5355\u6765\u6E90",prop:"qrdSource",width:"90","show-overflow-tooltip":""},{default:u(({$index:r})=>[e(w,null,{default:u(()=>{var s;return[c(B((s=t(Q).find(d=>d.value===n.child[r].qrdSource))==null?void 0:s.label),1)]}),_:2},1024)]),_:2},1024),e(a,{label:"\u5546\u54C1\u6765\u6E90",prop:"qrdType",width:"80","show-overflow-tooltip":""},{default:u(({$index:r})=>[e(w,null,{default:u(()=>{var s;return[c(B((s=t(W).find(d=>d.value===n.child[r].qrdType))==null?void 0:s.label),1)]}),_:2},1024)]),_:2},1024),e(a,{label:"\u8D44\u91D1\u521B\u5EFA\u4EBA",prop:"ownerName",width:"80","show-overflow-tooltip":""}),e(a,{label:"\u8BA4\u9886\u521B\u5EFA\u4EBA",prop:"apply_name",width:"80","show-overflow-tooltip":""}),e(a,{label:"\u5E73\u53F0\u5355\u53F7",prop:"poCode",width:"180","show-overflow-tooltip":""}),e(a,{fixed:"right",label:"\u64CD\u4F5C",width:"60px"},{default:u(({$index:r})=>[e(p,{icon:t(K)("eye-view"),onClick:()=>C(n.child[r]),type:"primary",link:""},null,8,["icon","onClick"])]),_:2},1024)]),_:2},1032,["data"])]),_:1},8,["content-config"])])]),_:1},8,["is-show"]),e(Y,{ref_key:"execlUploadRef",ref:F,onOnSuccess:t(f)},null,8,["onOnSuccess"])])}}});var Ee=P(se,[["__scopeId","data-v-a768f3c6"],["__file","D:/work/accout-vue3-ui/src/views/InvoiceSales/capitalClaim/index.vue"]]);export{Ee as default};
|