1 |
- import{d as H,h as Q,r as s,e as j,k as E,P as J,o as _,c as L,f as a,w as l,a as e,Q as A,m as p,v as d,q as m,t as W,F as X,U as Y,z as Z,_ as $,B as aa,C as ea,D as ta,G as la,H as ra,__tla as oa}from"./index-2eab2d23.js";import{_ as na,__tla as ca}from"./index.vue_vue_type_script_setup_true_lang-5730b053.js";import{_ as sa,__tla as pa}from"./DictTag.vue_vue_type_script_lang-cb1e47ff.js";import{_ as ia,__tla as _a}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{D,__tla as ua}from"./dict-1ad71b6f.js";import{b as da,d as ma,__tla as fa}from"./formatTime-41155543.js";import{d as ya}from"./download-20922b56.js";import{_ as ha,a as wa,d as ga,e as ba,__tla as va}from"./ReceivablePlanForm.vue_vue_type_script_setup_true_lang-093749fd.js";import{g as xa,__tla as ka}from"./index-e191a423.js";import{u as Ca,__tla as Ia}from"./useMessage-171aa63e.js";import{__tla as Sa}from"./index-cc63c3c4.js";import"./color-6e929987.js";import{__tla as Ua}from"./el-card-c558f0ec.js";import{__tla as Ta}from"./Dialog-c2716df6.js";import"./_plugin-vue_export-helper-1b428a4d.js";let F,Va=Promise.all([(()=>{try{return oa}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return Ia}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Ta}catch{}})()]).then(async()=>{F=H({name:"ReceivablePlan",__name:"index",setup(Pa){const g=Ca(),{t:M}=Q(),b=s(!0),C=s(0),I=s([]),S=s([]),o=j({pageNo:1,pageSize:10,customerId:null,contractId:null}),U=s(),v=s(!1),u=async()=>{b.value=!0;try{const c=await wa(o);I.value=c.list,C.value=c.total}finally{b.value=!1}},f=()=>{o.pageNo=1,u()},R=()=>{U.value.resetFields(),f()},T=s(),V=(c,n)=>{T.value.open(c,n)},q=async()=>{try{await g.exportConfirm(),v.value=!0;const c=await ba(o);ya.excel(c,"\u56DE\u6B3E\u8BA1\u5212.xls")}catch{}finally{v.value=!1}};return E(async()=>{await u(),S.value=await xa()}),(c,n)=>{const P=Y,x=Z,y=$,i=aa,K=ea,z=ia,r=ta,N=sa,O=la,B=na,h=J("hasPermi"),G=ra;return _(),L(X,null,[a(z,null,{default:l(()=>[a(K,{class:"-mb-15px",model:e(o),ref_key:"queryFormRef",ref:U,inline:!0,"label-width":"68px"},{default:l(()=>[a(x,{label:"\u5BA2\u6237",prop:"customerId"},{default:l(()=>[a(P,{modelValue:e(o).customerId,"onUpdate:modelValue":n[0]||(n[0]=t=>e(o).customerId=t),placeholder:"\u8BF7\u8F93\u5165\u5BA2\u6237",clearable:"",onKeyup:A(f,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(x,{label:"\u5408\u540C",prop:"contractId"},{default:l(()=>[a(P,{modelValue:e(o).contractId,"onUpdate:modelValue":n[1]||(n[1]=t=>e(o).contractId=t),placeholder:"\u8BF7\u8F93\u5165\u5408\u540C",clearable:"",onKeyup:A(f,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(x,null,{default:l(()=>[a(i,{onClick:f},{default:l(()=>[a(y,{icon:"ep:search",class:"mr-5px"}),p(" \u641C\u7D22")]),_:1}),a(i,{onClick:R},{default:l(()=>[a(y,{icon:"ep:refresh",class:"mr-5px"}),p(" \u91CD\u7F6E")]),_:1}),d((_(),m(i,{type:"primary",plain:"",onClick:n[2]||(n[2]=t=>V("create"))},{default:l(()=>[a(y,{icon:"ep:plus",class:"mr-5px"}),p(" \u65B0\u589E ")]),_:1})),[[h,["crm:receivable-plan:create"]]]),d((_(),m(i,{type:"success",plain:"",onClick:q,loading:e(v)},{default:l(()=>[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(z,null,{default:l(()=>[d((_(),m(O,{data:e(I),stripe:!0,"show-overflow-tooltip":!0},{default:l(()=>[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(da),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:l(t=>[a(N,{type:e(D).COMMON_STATUS,value:t.row.status},null,8,["type","value"])]),_:1}),a(r,{label:"\u5BA1\u6279\u72B6\u6001",align:"center",prop:"checkStatus",width:"130px"},{default:l(t=>[a(N,{type:e(D).CRM_AUDIT_STATUS,value:t.row.checkStatus},null,8,["type","value"])]),_:1}),a(r,{prop:"ownerUserId",label:"\u8D1F\u8D23\u4EBA",width:"120"},{default:l(t=>{var w;return[p(W((w=e(S).find(k=>k.id===t.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(ma),width:"180px"},null,8,["formatter"]),a(r,{label:"\u64CD\u4F5C",align:"center",width:"130px"},{default:l(t=>[d((_(),m(i,{link:"",type:"primary",onClick:w=>V("update",t.row.id)},{default:l(()=>[p(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[h,["crm:receivable-plan:update"]]]),d((_(),m(i,{link:"",type:"danger",onClick:w=>(async k=>{try{await g.delConfirm(),await ga(k),g.success(M("common.delSuccess")),await u()}catch{}})(t.row.id)},{default:l(()=>[p(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[h,["crm:receivable-plan:delete"]]])]),_:1})]),_:1},8,["data"])),[[G,e(b)]]),a(B,{total:e(C),page:e(o).pageNo,"onUpdate:page":n[3]||(n[3]=t=>e(o).pageNo=t),limit:e(o).pageSize,"onUpdate:limit":n[4]||(n[4]=t=>e(o).pageSize=t),onPagination:u},null,8,["total","page","limit"])]),_:1}),a(ha,{ref_key:"formRef",ref:T,onSuccess:u},null,512)],64)}}})});export{Va as __tla,F as default};
|