1 |
- import{d as B,n as E,r as s,f as G,B as J,P as L,o as u,c as Q,i as a,w as t,a as e,Q as K,j as p,C as d,l as m,t as W,F as X,U as Y,H as Z,v as $,J as aa,K as ea,L as la,M as ta,N as ra,_ as na,__tla as oa}from"./index-390579cd.js";import{_ as ca,__tla as sa}from"./index-82cedac6.js";import{_ as pa,__tla as ia}from"./DictTag-382b26a6.js";import{_ as ua,__tla as _a}from"./ContentWrap-a04cd098.js";import{D as M,__tla as da}from"./dict-6f6b543a.js";import{b as ma,d as fa,__tla as ya}from"./formatTime-926628b1.js";import{d as ha}from"./download-20922b56.js";import{R as wa,a as ga,d as ba,e as va,__tla as xa}from"./ReceivablePlanForm-e0177c65.js";import{g as ka,__tla as Ca}from"./index-b6f0690c.js";import{u as Ia,__tla as Sa}from"./useMessage-6684a162.js";import{__tla as Ua}from"./index-034a84e0.js";import"./color-6e929987.js";import{__tla as Pa}from"./el-card-f2f59395.js";import{__tla as Ta}from"./Dialog-cc73e431.js";let z,Va=Promise.all([(()=>{try{return oa}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return Ta}catch{}})()]).then(async()=>{z=na(B({name:"ReceivablePlan",__name:"index",setup(Na){const g=Ia(),{t:F}=E(),b=s(!0),C=s(0),I=s([]),S=s([]),n=G({pageNo:1,pageSize:10,customerId:null,contractId:null}),U=s(),v=s(!1),_=async()=>{b.value=!0;try{const c=await ga(n);I.value=c.list,C.value=c.total}finally{b.value=!1}},f=()=>{n.pageNo=1,_()},R=()=>{U.value.resetFields(),f()},P=s(),T=(c,o)=>{P.value.open(c,o)},D=async()=>{try{await g.exportConfirm(),v.value=!0;const c=await va(n);ha.excel(c,"\u56DE\u6B3E\u8BA1\u5212.xls")}catch{}finally{v.value=!1}};return J(async()=>{await _(),S.value=await ka()}),(c,o)=>{const V=Y,x=Z,y=$,i=aa,O=ea,N=ua,r=la,A=pa,H=ta,j=ca,h=L("hasPermi"),q=ra;return u(),Q(X,null,[a(N,null,{default:t(()=>[a(O,{class:"-mb-15px",model:e(n),ref_key:"queryFormRef",ref:U,inline:!0,"label-width":"68px"},{default:t(()=>[a(x,{label:"\u5BA2\u6237",prop:"customerId"},{default:t(()=>[a(V,{modelValue:e(n).customerId,"onUpdate:modelValue":o[0]||(o[0]=l=>e(n).customerId=l),placeholder:"\u8BF7\u8F93\u5165\u5BA2\u6237",clearable:"",onKeyup:K(f,["enter"]),class:"!w-240px"},null,8,["modelValue","onKeyup"])]),_:1}),a(x,{label:"\u5408\u540C",prop:"contractId"},{default:t(()=>[a(V,{modelValue:e(n).contractId,"onUpdate:modelValue":o[1]||(o[1]=l=>e(n).contractId=l),placeholder:"\u8BF7\u8F93\u5165\u5408\u540C",clearable:"",onKeyup:K(f,["enter"]),class:"!w-240px"},null,8,["modelValue","onKeyup"])]),_:1}),a(x,null,{default:t(()=>[a(i,{onClick:f},{default:t(()=>[a(y,{icon:"ep:search",class:"mr-5px"}),p(" \u641C\u7D22")]),_:1}),a(i,{onClick:R},{default:t(()=>[a(y,{icon:"ep:refresh",class:"mr-5px"}),p(" \u91CD\u7F6E")]),_:1}),d((u(),m(i,{type:"primary",plain:"",onClick:o[2]||(o[2]=l=>T("create"))},{default:t(()=>[a(y,{icon:"ep:plus",class:"mr-5px"}),p(" \u65B0\u589E ")]),_:1})),[[h,["crm:receivable-plan:create"]]]),d((u(),m(i,{type:"success",plain:"",onClick:D,loading:e(v)},{default:t(()=>[a(y,{icon:"ep:download",class:"mr-5px"}),p(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[h,["crm:receivable-plan:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(N,null,{default:t(()=>[d((u(),m(H,{data:e(I),stripe:!0,"show-overflow-tooltip":!0},{default:t(()=>[a(r,{label:"\u5BA2\u6237\u540D\u79F0",align:"center",prop:"customerId",width:"150px"}),a(r,{label:"\u5408\u540C\u540D\u79F0",align:"center",prop:"contractId",width:"150px"}),a(r,{label:"\u671F\u6570",align:"center",prop:"period"}),a(r,{label:"\u8BA1\u5212\u56DE\u6B3E",align:"center",prop:"price"}),a(r,{label:"\u8BA1\u5212\u56DE\u6B3E\u65E5\u671F",align:"center",prop:"returnTime",formatter:e(ma),width:"180px"},null,8,["formatter"]),a(r,{label:"\u63D0\u524D\u51E0\u5929\u63D0\u9192",align:"center",prop:"remindDays"}),a(r,{label:"\u5B8C\u6210\u72B6\u6001",align:"center",prop:"status"},{default:t(l=>[a(A,{type:e(M).COMMON_STATUS,value:l.row.status},null,8,["type","value"])]),_:1}),a(r,{label:"\u5BA1\u6279\u72B6\u6001",align:"center",prop:"checkStatus",width:"130px"},{default:t(l=>[a(A,{type:e(M).CRM_AUDIT_STATUS,value:l.row.checkStatus},null,8,["type","value"])]),_:1}),a(r,{prop:"ownerUserId",label:"\u8D1F\u8D23\u4EBA",width:"120"},{default:t(l=>{var w;return[p(W((w=e(S).find(k=>k.id===l.row.ownerUserId))==null?void 0:w.nickname),1)]}),_:1}),a(r,{label:"\u663E\u793A\u987A\u5E8F",align:"center",prop:"sort"}),a(r,{label:"\u5907\u6CE8",align:"center",prop:"remark"}),a(r,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:e(fa),width:"180px"},null,8,["formatter"]),a(r,{label:"\u64CD\u4F5C",align:"center",width:"130px"},{default:t(l=>[d((u(),m(i,{link:"",type:"primary",onClick:w=>T("update",l.row.id)},{default:t(()=>[p(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[h,["crm:receivable-plan:update"]]]),d((u(),m(i,{link:"",type:"danger",onClick:w=>(async k=>{try{await g.delConfirm(),await ba(k),g.success(F("common.delSuccess")),await _()}catch{}})(l.row.id)},{default:t(()=>[p(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[h,["crm:receivable-plan:delete"]]])]),_:1})]),_:1},8,["data"])),[[q,e(b)]]),a(j,{total:e(C),page:e(n).pageNo,"onUpdate:page":o[3]||(o[3]=l=>e(n).pageNo=l),limit:e(n).pageSize,"onUpdate:limit":o[4]||(o[4]=l=>e(n).pageSize=l),onPagination:_},null,8,["total","page","limit"])]),_:1}),a(wa,{ref_key:"formRef",ref:P,onSuccess:_},null,512)],64)}}}),[["__file","E:/GAOHP_2023/mall/newfeifan-front/yudao-ui-admin-vue3/src/views/crm/receivable/plan/index.vue"]])});export{Va as __tla,z as default};
|