import{d as t,a2 as a,f as e,g as s,o as l,h as i,w as n,a as o,W as d,k as r,l as u,F as c,z as m,A as f,i as p,j as y,t as _,N as g,a7 as b,m as k,y as h,O as x,a1 as v}from"./index-B3cqKsI_.js";import{_ as j,a as C}from"./uni-row.DyJ89Jxj.js";import{_ as w}from"./uni-tag.ClQTSfUo.js";import{_ as $}from"./uni-dateformat.DQ4pg8Wo.js";import{_ as z,a as M}from"./uni-list.zT2ADjW3.js";import{e as D}from"./index.GhHyI8tz.js";import{f as I}from"./assessment.C7cFhOQt.js";import{_ as R}from"./_plugin-vue_export-helper.BCo6x5W8.js";const T=R(t({__name:"paymentRecord",props:{listData:{default:[]},typeIndex:{default:0},cid:{default:0},emptyTitle:{default:"暂无付款记录，快去添加吧！"},tab:{default:0}},emits:["change"],setup(t,{emit:R}){const T=t,{listData:A,typeIndex:F,emptyTitle:J,cid:K,tab:N}=a(T);let O=R;const Q=(t,a)=>{O("change",{row:t,type:a})};return(t,a)=>{const R=h,T=x,O=e(s("uni-col"),j),W=e(s("uni-tag"),w),q=e(s("uni-row"),C),B=m,E=e(s("uni-dateformat"),$),G=v,H=e(s("uni-list-item"),z),L=e(s("uni-list"),M);return l(),i(B,{class:"examine-content-list"},{default:n((()=>[o(A).length>0?(l(),i(L,{key:0,border:!1,style:d({backgroundColor:0===o(F)?"#fff":"#f5f5f5"})},{default:n((()=>[(l(!0),r(c,null,u(o(A),((t,a)=>(l(),i(H,{class:f(0===o(F)?"content-item-list":"content-item-list-card"),key:"list"+t.id},{body:n((()=>[p(B,{class:"item-list",onClick:a=>(t=>{let a="";a=0===F.value?`/pages/customer/contract/collectionDetails?id=${t.id}&eid=${t.eid}&types=${K.value?K.value:"0"}`:`/pages/finance/payment/details?id=${t.id}&tab=${N.value}`,k(a)})(t)},{default:n((()=>[p(q,{class:"item-list-content"},{default:n((()=>[p(O,{span:6,class:"left"},{default:n((()=>[o(K)?(l(),i(T,{key:1,src:t.card.avatar,mode:"",class:"img"},null,8,["src"])):(l(),i(R,{key:0,class:"iconfont icon-hetongxufei"}))])),_:2},1024),p(O,{span:18,class:"right"},{default:n((()=>[p(B,{class:"right-top"},{default:n((()=>[p(q,{class:"display-align"},{default:n((()=>[o(K)?(l(),i(O,{key:0,span:18,class:"right-top-left"},{default:n((()=>[y(_(t.card?t.card.name:"--"),1)])),_:2},1024)):(l(),i(O,{key:1,span:18,class:"right-top-left"},{default:n((()=>[y(_(t.treaty?t.treaty.title:"--"),1)])),_:2},1024)),p(O,{span:7,class:"text-right right-top-right"},{default:n((()=>[0==t.status?(l(),i(W,{key:0,inverted:!0,text:"待审核",type:"warning",size:"mini"})):2==t.status?(l(),i(W,{key:1,inverted:!0,text:"未通过",type:"error",size:"mini"})):g("",!0),-1==t.status?(l(),i(W,{key:2,inverted:!0,text:"已撤回",size:"mini"})):g("",!0),1==t.status?(l(),i(W,{key:3,inverted:!0,text:"已通过",type:"success",size:"mini"})):g("",!0)])),_:2},1024)])),_:2},1024)])),_:2},1024),p(B,{class:"right-bottom"},{default:n((()=>[p(q,{class:"right-bottom-row display-align"},{default:n((()=>[p(O,{span:17,class:"display-align"},{default:n((()=>[0==o(K)?(l(),i(B,{key:0,class:"right-bottom-name"},{default:n((()=>[y(_(t.card.name),1)])),_:2},1024)):g("",!0),p(B,{class:"right-bottom-name"},{default:n((()=>[p(E,{format:"yyyy/MM/dd hh:mm",date:t.created_at},null,8,["date"])])),_:2},1024)])),_:2},1024),p(O,{span:7,class:"text-right line1-1"},{default:n((()=>[y(_(t.pay_type),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024),p(B,{class:"item-list-button"},{default:n((()=>[p(q,{class:"item-bottom display-align"},{default:n((()=>[p(O,{span:12},{default:n((()=>[p(B,{class:"item-bottom-text"},{default:n((()=>[y(_(o(I)(t.types))+"金额",1)])),_:2},1024),p(B,{class:"item-bottom-number"},{default:n((()=>[y(_(t.num)+"元",1)])),_:2},1024)])),_:2},1024),p(O,{span:12},{default:n((()=>[p(B,{class:"item-bottom-text"},{default:n((()=>[y("付款日期")])),_:1}),p(B,{class:"item-bottom-number"},{default:n((()=>[p(E,{format:"yyyy-MM-dd ",date:t.date},null,8,["date"])])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024),1===o(F)&&0===t.status?(l(),i(B,{key:0,class:"item-button-content"},{default:n((()=>[p(G,{class:"button default-error",onClick:b((a=>Q(t,0)),["stop"])},{default:n((()=>[y("拒绝")])),_:2},1032,["onClick"]),p(G,{class:"button default-color",onClick:b((a=>Q(t,1)),["stop"])},{default:n((()=>[y("同意")])),_:2},1032,["onClick"])])),_:2},1024)):g("",!0)])),_:2},1032,["onClick"])])),_:2},1032,["class"])))),128))])),_:1},8,["style"])):(l(),i(D,{key:1,index:9,title:o(J)},null,8,["title"]))])),_:1})}}}),[["__scopeId","data-v-a18e2fa4"]]);export{T as p};
