index.7fe7a8e8.js 7.2 KB

1
  1. import{ah as q,aK as V,_ as W,d as z,B as L,F as j,aY as K,bn as Y,ag as Z,y as c,o as f,c as G,z as u,L as o,a as H,u as e,bo as J,O as w,V as D,bp as M,Z as n,U as v,T as k,bu as Q}from"./index.78cddaf4.js";import{u as E,w as X}from"./xlsx.ed122d16.js";import{u as $}from"./use-page-search.5f4967b2.js";import uu from"./index.d4dede99.js";import{e as eu,f as ou}from"./configs.b751c475.js";import{c as tu,d as lu}from"./index.b90ca469.js";import{a as S}from"./tragelog.2d6e466b.js";import{a as au,e as iu}from"./status.25ea5e43.js";import{h as su}from"./export.3e55a498.js";import"./execl-upload.ff995411.js";const x={formItems:[{field:"status",type:"select",placeholder:"\u8BA4\u9886\u72B6\u6001",options:eu},{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"}}]},nu=[{type:"expand",slot:"expand",fixed:"left"},{label:"\u8D44\u91D1\u7F16\u53F7",prop:"tradNo",fixed:"left",width:140},{label:"\u72B6\u6001",prop:"status",width:100,cellRenderer:({row:F,props:h})=>q(V,{size:h.size},{default:()=>{var _;return((_=(F.logNo?S:ou).find(b=>String(F.status)===String(b.value)))==null?void 0:_.label)||"--"}})},{label:"\u6536\u5165\u91D1\u989D",prop:"total_fee",width:120},{label:"\u672A\u8BA4\u9886\u91D1\u989D",prop:"balance",width:120},{label:"\u5DF2\u8BA4\u9886\u91D1\u989D",prop:"used_fee",width:120},{label:"\u4EA4\u6613\u7528\u9014",prop:"trade_used",width:120},{label:"\u4EA4\u6613\u65F6\u95F4",prop:"trade_time",width:140},{label:"\u4ED8\u6B3E\u5355\u4F4D\u540D\u79F0",prop:"trade_out",width:160},{label:"\u4ED8\u6B3E\u5355\u4F4D\u8D26\u53F7",prop:"trade_account",width:160},{label:"\u6536\u6B3E\u516C\u53F8\u8D26\u6237",prop:"trade_in_account",width:145},{label:"\u4EA4\u6613\u884C\u540D",prop:"trade_bank",width:160},{label:"\u6536\u6B3E\u516C\u53F8\u7F16\u53F7",prop:"companyNo",width:145},{label:"\u6536\u6B3E\u516C\u53F8\u540D\u79F0",prop:"companyName",width:145},{label:"\u8D44\u91D1\u5BFC\u5165\u65F6\u95F4",prop:"addtime",width:140},{label:"\u64CD\u4F5C",fixed:"right",width:60,slot:"operation"}],ru={title:"\u8D44\u91D1\u8BA4\u9886\u7BA1\u7406",columns:nu,isTree:!0,apis:{httpList:tu}},pu={\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 du={class:"main role"},cu={"w-full":""},fu=n(" \u8D44\u91D1\u8BA4\u9886\u6570\u636E\u5BFC\u51FA "),hu=n("\u4E0B\u8F7D\u8D44\u91D1\u5BFC\u5165\u6A21\u677F "),_u=n("\u6279\u91CF\u5BFC\u5165\u5BA2\u6237\u4ED8\u6B3E\u8D44\u91D1\u6570\u636E "),mu=z({__name:"index",setup(F){const{push:h}=L(),B=j(null),_="capitalClaim",{run:b}=K({success:()=>C.value.onSearch()}),{hasPermissionWithCode:m,permissions:N}=Y(_),{isSuperUser:g}=Z(),{pageContentRef:C,handleResetClick:y,handleSearchClick:P}=$(void 0,void 0,x),R=r=>b(lu(r));function T(){const r=E.book_new(),a=E.json_to_sheet([pu]);E.book_append_sheet(r,a,"sheet"),X(r,"\u8D44\u91D1\u8BA4\u9886\u6A21\u677F.xlsx",{bookType:"xlsx"})}async function I(){await su({url:"/ope",name:"\u8D44\u91D1\u8BA4\u9886\u6570\u636E\u8868",params:{...C.value.getBasicParams()}})}return(r,a)=>{const p=c("el-button"),t=c("el-table-column"),A=c("el-tag"),U=c("el-popconfirm"),O=c("el-table");return f(),G("div",du,[u(Q,{"is-show":e(m)("001")},{default:o(()=>[H("div",cu,[u(e(J),{"form-config":e(x),onSearchBtnClick:e(P),onResetBtnClick:e(y)},{action:o(()=>[u(p,{onClick:a[0]||(a[0]=()=>I())},{default:o(()=>[fu]),_:1}),!e(g)&&e(m)("029")?(f(),w(p,{key:0,onClick:T},{default:o(()=>[hu]),_:1})):D("v-if",!0),!e(g)&&e(m)("030")?(f(),w(p,{key:1,type:"primary",onClick:a[1]||(a[1]=()=>B.value.onDisplay())},{default:o(()=>[_u]),_:1})):D("v-if",!0)]),_:1},8,["form-config","onSearchBtnClick","onResetBtnClick"]),u(e(M),{ref_key:"pageContentRef",ref:C,"content-config":e(ru),powers:e(N),onPreviewBtnClick:a[2]||(a[2]=s=>e(h)("/InvoiceSales/claimDetail?id="+s.tradNo))},{expand:o(s=>[s.child.length>0?(f(),w(O,{key:0,style:{width:"100%",display:"inline-block !important"},size:"small",data:s.child,border:""},{default:o(()=>[u(t,{label:"\u8D44\u91D1\u8BA4\u9886\u7F16\u53F7",prop:"logNo",width:"188",fixed:"left","show-overflow-tooltip":""}),u(t,{label:"\u8BA4\u9886\u72B6\u6001",prop:"status",width:"100","show-overflow-tooltip":""},{default:o(({$index:l})=>[u(A,null,{default:o(()=>{var i;return[n(v(((i=e(S).find(d=>d.value===s.child[l].status))==null?void 0:i.label)||"--"),1)]}),_:2},1024)]),_:2},1024),u(t,{label:"\u8BA2\u5355\u7F16\u53F7",prop:"orderCode",width:"160","show-overflow-tooltip":""}),u(t,{label:"\u8BA2\u5355\u6765\u6E90",prop:"qrdSource",width:"90","show-overflow-tooltip":""},{default:o(({$index:l})=>[u(A,null,{default:o(()=>{var i;return[n(v((i=e(au).find(d=>d.value===s.child[l].qrdSource))==null?void 0:i.label),1)]}),_:2},1024)]),_:2},1024),u(t,{label:"\u5E73\u53F0\u5355\u53F7",prop:"poCode",width:"180","show-overflow-tooltip":""}),u(t,{label:"\u5546\u54C1\u7F16\u53F7",prop:"goodNo",width:"160","show-overflow-tooltip":""}),u(t,{label:"\u5546\u54C1\u6765\u6E90",prop:"qrdType",width:"90","show-overflow-tooltip":""},{default:o(({$index:l})=>[u(A,null,{default:o(()=>{var i;return[n(v((i=e(iu).find(d=>d.value===s.child[l].qrdType))==null?void 0:i.label),1)]}),_:2},1024)]),_:2},1024),u(t,{label:"\u5546\u54C1\u540D\u79F0",prop:"goodName",minWidth:"180","show-overflow-tooltip":""}),u(t,{label:"\u4F01\u4E1A\u5BA2\u6237\u7F16\u53F7",prop:"customerNo",width:"160","show-overflow-tooltip":""}),u(t,{label:"\u4F01\u4E1A\u5BA2\u6237\u540D\u79F0",prop:"customerName",minWidth:"180","show-overflow-tooltip":""}),u(t,{label:"\u8BA2\u5355\u521B\u5EFA\u4EBA",prop:"ownerName",width:"80","show-overflow-tooltip":""}),u(t,{label:"\u8BA4\u9886\u4EBA",prop:"apply_name",width:"80","show-overflow-tooltip":""}),u(t,{label:"\u8BA4\u9886\u65F6\u95F4",prop:"addtime",width:"145","show-overflow-tooltip":""}),u(t,{fixed:"right",label:"\u64CD\u4F5C",width:"60px"},{default:o(({row:l})=>[u(p,{icon:e(k)("eye-view"),onClick:()=>e(h)("/InvoiceSales/capitalDetail?id="+l.logNo),type:"primary",link:""},null,8,["icon","onClick"]),e(m)("009")&&String(l.status)==="1"?(f(),w(U,{key:0,placement:"top",title:"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u8D44\u91D1\u8BA4\u9886?","on-confirm":()=>R({logNo:l.logNo})},{reference:o(()=>[u(p,{icon:e(k)("refresh-right"),type:"primary",link:""},null,8,["icon"])]),_:2},1032,["on-confirm"])):D("v-if",!0)]),_:2},1024)]),_:2},1032,["data"])):D("v-if",!0)]),_:1},8,["content-config","powers"])])]),_:1},8,["is-show"]),u(uu,{ref_key:"execlUploadRef",ref:B,onOnSuccess:e(y)},null,8,["onOnSuccess"])])}}});var yu=W(mu,[["__scopeId","data-v-a768f3c6"],["__file","D:/work/accout-vue3-ui/src/views/InvoiceSales/capitalClaim/index.vue"]]);export{yu as default};