1 |
- import{af as U,aI as q,aX as Y,_ as z,r as O,z as V,D as W,aY as j,bn as M,ad as L,v as d,o as c,p as J,w as u,J as t,q as Q,x as e,bo as X,M as m,T as w,bp as G,W as _,R as v,Q as y,bv as H}from"./index.63ed8a67.js";import{u as E,w as K}from"./execl-upload.afb68f1f.js";import{u as Z}from"./use-page-search.f8b54d15.js";import $ from"./index.eb156eca.js";import{e as ee,f as ue,g as te}from"./configs.db1b14df.js";import{c as oe,d as le}from"./index.4ef7b16e.js";import{a as ae}from"./tragelog.fa40fed3.js";import{x as se,d as ie}from"./status.3351df60.js";const k={formItems:[{field:"status",type:"select",placeholder:"\u8BA4\u9886\u72B6\u6001",options:ee},{type:"input",field:"bank",placeholder:"\u4EA4\u6613\u94F6\u884C"},{type:"input",field:"name",placeholder:"\u4ED8\u6B3E\u5355\u4F4D\u540D\u79F0"},{type:"range",field:"gold",otherOptions:{startProp:"userd_lower",endProp:"used_upper",startPlaceholder:"\u8BA4\u9886\u8D44\u91D1\u5F00\u59CB\u91D1\u989D",endPlaceholder:"\u8BA4\u9886\u8D44\u91D1\u7ED3\u675F\u91D1\u989D"}},{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"}}]},ne=[{type:"selection",width:55,hide:({checkList:l})=>!l.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",width:70,hide:({checkList:l})=>!l.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:l,props:f})=>U(q,{size:f.size},{default:()=>{var h;return((h=(l.logNo?ae:ue).find(C=>String(l.status)===String(C.value)))==null?void 0:h.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:l})=>Y(l.trade_time).format("YYYY-MM-DD")},{label:"\u6536\u5165\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"}],re={title:"\u8D44\u91D1\u8BA4\u9886\u7BA1\u7406",columns:ne,isTree:!0,apis:{httpList:oe}},pe={\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 de={class:"main role"},ce={"w-full":""},_e=_("\u4E0B\u8F7D\u8D44\u91D1\u5BFC\u5165\u6A21\u677F "),fe=_("\u6279\u91CF\u5BFC\u5165\u5BA2\u6237\u4ED8\u6B3E\u8D44\u91D1\u6570\u636E "),he=O({__name:"index",setup(l){const{push:f}=V(),B=W(null),h="capitalClaim",{run:C}=j(),{hasPermissionWithCode:D,permissions:x}=M(h),{isSuperUser:g}=L(),{pageContentRef:S,handleResetClick:A,handleSearchClick:P}=Z(void 0,void 0,k),N=r=>C(le(r));function R(){const r=E.book_new(),n=E.json_to_sheet([pe]);E.book_append_sheet(r,n,"sheet"),K(r,"\u8D44\u91D1\u8BA4\u9886\u6A21\u677F.xlsx",{bookType:"xlsx"})}return(r,n)=>{const F=d("el-button"),o=d("el-table-column"),b=d("el-tag"),T=d("el-popconfirm"),I=d("el-table");return c(),J("div",de,[u(H,{"is-show":e(D)("001")},{default:t(()=>[Q("div",ce,[u(e(X),{"form-config":e(k),onSearchBtnClick:e(P),onResetBtnClick:e(A)},{action:t(()=>[!e(g)&&e(D)("029")?(c(),m(F,{key:0,onClick:R},{default:t(()=>[_e]),_:1})):w("v-if",!0),!e(g)&&e(D)("030")?(c(),m(F,{key:1,type:"primary",onClick:n[0]||(n[0]=()=>B.value.onDisplay())},{default:t(()=>[fe]),_:1})):w("v-if",!0)]),_:1},8,["form-config","onSearchBtnClick","onResetBtnClick"]),u(e(G),{ref_key:"pageContentRef",ref:S,"content-config":e(re),powers:e(x),onPreviewBtnClick:n[1]||(n[1]=i=>e(f)("/InvoiceSales/claimDetail?id="+i.tradNo))},{expand:t(i=>[i.child.length>0?(c(),m(I,{key:0,size:"small",data:i.child,border:"",style:{width:"100%"}},{default:t(()=>[u(o,{label:"\u8D44\u91D1\u8BA4\u9886\u7F16\u53F7",prop:"logNo",width:"160","show-overflow-tooltip":""}),u(o,{label:"\u8BA2\u5355\u7F16\u53F7",prop:"orderCode",width:"160","show-overflow-tooltip":""}),u(o,{label:"\u5546\u54C1\u7F16\u53F7",prop:"goodNo",width:"160","show-overflow-tooltip":""}),u(o,{label:"\u5546\u54C1\u540D\u79F0",prop:"goodName",width:"180","show-overflow-tooltip":""}),u(o,{label:"\u8BA4\u9886\u72B6\u6001",prop:"status",width:"90","show-overflow-tooltip":""},{default:t(({$index:a})=>[u(b,null,{default:t(()=>{var s;return[_(v(((s=e(te).find(p=>p.value===i.child[a].status))==null?void 0:s.label)||"--"),1)]}),_:2},1024)]),_:2},1024),u(o,{label:"\u8BA2\u5355\u6765\u6E90",prop:"qrdSource",width:"90","show-overflow-tooltip":""},{default:t(({$index:a})=>[u(b,null,{default:t(()=>{var s;return[_(v((s=e(se).find(p=>p.value===i.child[a].qrdSource))==null?void 0:s.label),1)]}),_:2},1024)]),_:2},1024),u(o,{label:"\u5546\u54C1\u6765\u6E90",prop:"qrdType",width:"80","show-overflow-tooltip":""},{default:t(({$index:a})=>[u(b,null,{default:t(()=>{var s;return[_(v((s=e(ie).find(p=>p.value===i.child[a].qrdType))==null?void 0:s.label),1)]}),_:2},1024)]),_:2},1024),u(o,{label:"\u8D44\u91D1\u521B\u5EFA\u4EBA",prop:"ownerName",width:"80","show-overflow-tooltip":""}),u(o,{label:"\u8BA4\u9886\u521B\u5EFA\u4EBA",prop:"apply_name",width:"80","show-overflow-tooltip":""}),u(o,{label:"\u5E73\u53F0\u5355\u53F7",prop:"poCode",width:"180","show-overflow-tooltip":""}),u(o,{fixed:"right",label:"\u64CD\u4F5C",width:"60px"},{default:t(({row:a})=>[u(F,{icon:e(y)("eye-view"),onClick:()=>e(f)("/InvoiceSales/capitalDetail?id="+a.logNo),type:"primary",link:""},null,8,["icon","onClick"]),e(D)("009")&&String(a.status)!=="2"?(c(),m(T,{key:0,placement:"top",title:"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u8D44\u91D1\u8BA4\u9886?","on-confirm":()=>N({logNo:a.logNo})},{reference:t(()=>[u(F,{icon:e(y)("refresh-right"),type:"primary",link:""},null,8,["icon"])]),_:2},1032,["on-confirm"])):w("v-if",!0)]),_:2},1024)]),_:2},1032,["data"])):w("v-if",!0)]),_:1},8,["content-config","powers"])])]),_:1},8,["is-show"]),u($,{ref_key:"execlUploadRef",ref:B,onOnSuccess:e(A)},null,8,["onOnSuccess"])])}}});var Ee=z(he,[["__scopeId","data-v-a768f3c6"],["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSales/capitalClaim/index.vue"]]);export{Ee as default};
|