import{d as x,r as n,x as S,u as L,w as U,o as y,c as B,f as a,B as o,E as g,k as D,a as t,A as M,G as A,F as Y,_ as j,K as F,L as O,X as G,Y as K,Z as Q,__tla as V}from"./index-92ad187a.js";import{_ as X,__tla as Z}from"./ContentWrap.vue_vue_type_script_setup_true_lang-c7ede7df.js";import{_ as q,__tla as H}from"./index.vue_vue_type_script_setup_true_lang-6fbe4cc3.js";import{_ as J,__tla as W}from"./DictTag.vue_vue_type_script_lang-96bcb962.js";import{E as $,__tla as aa}from"./el-link-3ccf1de9.js";import{_ as ta,g as ea,__tla as ra}from"./ReceivablePlanForm.vue_vue_type_script_setup_true_lang-5f8bb9bd.js";import{B as la,__tla as oa}from"./index-a4b5469a.js";import{d as ia,__tla as _a}from"./formatTime-c7f253d6.js";import{f as sa,__tla as na}from"./formatter-732f7466.js";import{D as pa,__tla as ca}from"./dict-221f3e01.js";let b,ma=Promise.all([(()=>{try{return V}catch{}})(),(()=>{try{return Z}catch{}})(),(()=>{try{return H}catch{}})(),(()=>{try{return W}catch{}})(),(()=>{try{return aa}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return ca}catch{}})()]).then(async()=>{b=x({name:"CrmReceivablePlanList",__name:"ReceivablePlanList",props:{bizType:{},bizId:{}},setup(v){const i=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 _={list:[],total:0};if(i.bizType!==la.CRM_CUSTOMER)return;e.customerId=i.bizId,_=await ea(e),u.value=_.list,m.value=_.total}finally{p.value=!1}},d=n(),h=()=>{d.value.open("create")},{push:R}=L();return U(()=>[i.bizId,i.bizType],()=>{e.pageNo=1,c()},{immediate:!0,deep:!0}),(_,s)=>{const w=j,z=F,C=O,k=$,r=G,E=J,P=K,T=q,I=X,N=Q;return y(),B(Y,null,[a(C,{justify:"end"},{default:o(()=>[a(z,{onClick:h},{default:o(()=>[a(w,{class:"mr-5px",icon:"icon-park:income"}),g(" \u521B\u5EFA\u56DE\u6B3E\u8BA1\u5212 ")]),_:1})]),_:1}),a(I,{class:"mt-10px"},{default:o(()=>[D((y(),M(P,{data:t(u),stripe:!0,"show-overflow-tooltip":!0},{default:o(()=>[a(r,{label:"\u671F\u6570",fixed:"left",align:"center",prop:"no"},{default:o(l=>[a(k,{type:"primary",underline:!1,onClick:ua=>{return f=l.row.id,void R({name:"CrmReceivablePlanDetail",params:{id:f}});var f}},{default:o(()=>[g(A(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(sa)},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:o(l=>[a(E,{type:t(pa).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"])),[[N,t(p)]]),a(T,{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(ta,{ref_key:"formRef",ref:d,onSuccess:c},null,512)],64)}}})});export{b as _,ma as __tla};
