import{d as x,r as n,f as S,u as L,aP as U,o as y,c as M,i as a,w as _,j as b,C as D,a as t,l as j,t as q,F as B,v as A,J as F,s as H,L as J,M as O,N as V,_ as X,__tla as Y}from"./index-8c6726e5.js";import{_ as G,__tla as K}from"./ContentWrap-1defc267.js";import{_ as Q,__tla as W}from"./index-9e33d9ae.js";import{_ as Z,__tla as $}from"./DictTag-bbdf2078.js";import{E as aa,__tla as ta}from"./el-link-15fce9e0.js";import{g as ea,R as ra,__tla as la}from"./ReceivablePlanForm-98eea1a5.js";import{B as _a,__tla as oa}from"./index-167f5ec7.js";import{d as ia,__tla as sa}from"./formatTime-43b4aa50.js";import{f as na,__tla as pa}from"./formatter-2b4d93a4.js";import{D as ca,__tla as ma}from"./dict-1c98488d.js";import{__tla as ua}from"./el-card-17d153e8.js";import{__tla as fa}from"./index-ffb232b7.js";import"./color-6e929987.js";import{__tla as da}from"./Dialog-336bccec.js";import{__tla as ya}from"./index-b80ccf29.js";import{__tla as ba}from"./useMessage-9f6930df.js";let g,ga=Promise.all([(()=>{try{return Y}catch{}})(),(()=>{try{return K}catch{}})(),(()=>{try{return W}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return la}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return ba}catch{}})()]).then(async()=>{g=X(x({name:"CrmReceivablePlanList",__name:"ReceivablePlanList",props:{bizType:{type:Number,required:!0},bizId:{type:Number,required:!0}},setup(v){const o=v,p=n(!0),m=n(0),u=n([]),e=S({pageNo:1,pageSize:10,customerId:void 0}),c=async()=>{p.value=!0;try{e.customerId=void 0;let i={list:[],total:0};if(o.bizType!==_a.CRM_CUSTOMER)return;e.customerId=o.bizId,i=await ea(e),u.value=i.list,m.value=i.total}finally{p.value=!1}},f=n(),h=()=>{f.value.open("create")},{push:R}=L();return U(()=>[o.bizId,o.bizType],()=>{e.pageNo=1,c()},{immediate:!0,deep:!0}),(i,s)=>{const N=A,w=F,z=H,C=aa,r=J,E=Z,I=O,P=Q,T=G,k=V;return y(),M(B,null,[a(z,{justify:"end"},{default:_(()=>[a(w,{onClick:h},{default:_(()=>[a(N,{class:"mr-5px",icon:"icon-park:income"}),b(" \u521B\u5EFA\u56DE\u6B3E\u8BA1\u5212 ")]),_:1})]),_:1}),a(T,{class:"mt-10px"},{default:_(()=>[D((y(),j(I,{data:t(u),stripe:!0,"show-overflow-tooltip":!0},{default:_(()=>[a(r,{label:"\u671F\u6570",fixed:"left",align:"center",prop:"no"},{default:_(l=>[a(C,{type:"primary",underline:!1,onClick:va=>{return d=l.row.id,void R({name:"CrmReceivablePlanDetail",params:{id:d}});var d}},{default:_(()=>[b(q(l.row.period),1)]),_:2},1032,["onClick"])]),_:1}),a(r,{label:"\u5BA2\u6237\u540D\u79F0",align:"center",prop:"customerName"}),a(r,{label:"\u5408\u540C\u7F16\u53F7",align:"center",prop:"contractNo"}),a(r,{label:"\u8BA1\u5212\u8FD8\u6B3E\u91D1\u989D\uFF08\u5143\uFF09",align:"center",prop:"price",formatter:t(na)},null,8,["formatter"]),a(r,{label:"\u8BA1\u5212\u8FD8\u6B3E\u65E5\u671F",align:"center",prop:"returnTime",formatter:t(ia),width:"180px"},null,8,["formatter"]),a(r,{align:"center",label:"\u8BA1\u5212\u8FD8\u6B3E\u65B9\u5F0F",prop:"auditStatus"},{default:_(l=>[a(E,{type:t(ca).CRM_RECEIVABLE_RETURN_TYPE,value:l.row.returnType},null,8,["type","value"])]),_:1}),a(r,{label:"\u63D0\u524D\u51E0\u65E5\u63D0\u9192",align:"center",prop:"remindDays"}),a(r,{label:"\u5907\u6CE8",align:"center",prop:"remark"})]),_:1},8,["data"])),[[k,t(p)]]),a(P,{total:t(m),page:t(e).pageNo,"onUpdate:page":s[0]||(s[0]=l=>t(e).pageNo=l),limit:t(e).pageSize,"onUpdate:limit":s[1]||(s[1]=l=>t(e).pageSize=l),onPagination:c},null,8,["total","page","limit"])]),_:1}),a(ra,{ref_key:"formRef",ref:f,onSuccess:c},null,512)],64)}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/crm/receivable/plan/components/ReceivablePlanList.vue"]])});export{ga as __tla,g as default};
