1 |
- import{d as W,P as X,r as s,x as Y,b as j,a3 as B,o as _,c as G,f as a,A as l,a as e,a4 as P,D as p,k as d,C as m,E as H,F as L,a8 as Q,U as Z,_ as $,J as aa,V as ea,W as ta,X as la,Y as ra,__tla as oa}from"./index-f65577b8.js";import{_ as na,__tla as ca}from"./index.vue_vue_type_script_setup_true_lang-53598c8e.js";import{_ as sa,__tla as pa}from"./DictTag.vue_vue_type_script_lang-48f8deb5.js";import{_ as ia,__tla as _a}from"./ContentWrap.vue_vue_type_script_setup_true_lang-9fbbd655.js";import{D as R,__tla as ua}from"./dict-fa3ffbd2.js";import{b as da,d as ma,__tla as fa}from"./formatTime-411ed1a1.js";import{d as ya}from"./download-20922b56.js";import{_ as ha,a as wa,d as ga,e as ba,__tla as xa}from"./ReceivablePlanForm.vue_vue_type_script_setup_true_lang-c10f8a63.js";import{g as va,__tla as ka}from"./index-87264ddf.js";import{u as Ca,__tla as Ia}from"./useMessage-4dbf0ae4.js";import{__tla as Sa}from"./index-1896261a.js";import"./color-6e929987.js";import{__tla as Ua}from"./el-card-ab53e6aa.js";import{__tla as Ta}from"./Dialog-bd3317a7.js";import"./_plugin-vue_export-helper-1b428a4d.js";let z,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 xa}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return Ia}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Ta}catch{}})()]).then(async()=>{z=W({name:"ReceivablePlan",__name:"index",setup(Na){const g=Ca(),{t:F}=X(),b=s(!0),C=s(0),I=s([]),S=s([]),o=Y({pageNo:1,pageSize:10,customerId:null,contractId:null}),U=s(),x=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()},M=()=>{U.value.resetFields(),f()},T=s(),V=(c,n)=>{T.value.open(c,n)},K=async()=>{try{await g.exportConfirm(),x.value=!0;const c=await ba(o);ya.excel(c,"\u56DE\u6B3E\u8BA1\u5212.xls")}catch{}finally{x.value=!1}};return j(async()=>{await u(),S.value=await va()}),(c,n)=>{const N=Q,v=Z,y=$,i=aa,O=ea,A=ia,r=ta,D=sa,q=la,E=na,h=B("hasPermi"),J=ra;return _(),G(L,null,[a(A,null,{default:l(()=>[a(O,{class:"-mb-15px",model:e(o),ref_key:"queryFormRef",ref:U,inline:!0,"label-width":"68px"},{default:l(()=>[a(v,{label:"\u5BA2\u6237",prop:"customerId"},{default:l(()=>[a(N,{modelValue:e(o).customerId,"onUpdate:modelValue":n[0]||(n[0]=t=>e(o).customerId=t),placeholder:"\u8BF7\u8F93\u5165\u5BA2\u6237",clearable:"",onKeyup:P(f,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(v,{label:"\u5408\u540C",prop:"contractId"},{default:l(()=>[a(N,{modelValue:e(o).contractId,"onUpdate:modelValue":n[1]||(n[1]=t=>e(o).contractId=t),placeholder:"\u8BF7\u8F93\u5165\u5408\u540C",clearable:"",onKeyup:P(f,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(v,null,{default:l(()=>[a(i,{onClick:f},{default:l(()=>[a(y,{icon:"ep:search",class:"mr-5px"}),p(" \u641C\u7D22")]),_:1}),a(i,{onClick:M},{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:K,loading:e(x)},{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(A,null,{default:l(()=>[d((_(),m(q,{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(D,{type:e(R).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(D,{type:e(R).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(H((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(F("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"])),[[J,e(b)]]),a(E,{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,z as default};
|