index-e880f073.js 5.5 KB

1
  1. import{d as L,n as O,r as p,f as j,B as q,P as J,o as i,c as Q,i as e,w as t,a,Q as V,j as u,C as m,l as d,F as X,U as Y,H as G,v as W,J as Z,K as $,L as ee,M as ae,N as le,_ as te,__tla as re}from"./index-b2b3c6c4.js";import{_ as oe,__tla as ne}from"./index-341fc94c.js";import{_ as ce,__tla as se}from"./DictTag-4199ec8d.js";import{_ as pe,__tla as ie}from"./ContentWrap-e91b2b5a.js";import{D as k,__tla as ue}from"./dict-7f0cc6d2.js";import{b as _e,d as me,__tla as de}from"./formatTime-7e07ce72.js";import{d as fe}from"./download-20922b56.js";import{R as ye,a as he,d as be,e as ge,__tla as we}from"./ReceivableForm-62b570cc.js";import{u as ve,__tla as xe}from"./useMessage-a5edbb0f.js";import{__tla as ke}from"./index-2d76a87c.js";import"./color-6e929987.js";import{__tla as Ce}from"./el-card-bd6e27c9.js";import{__tla as Ie}from"./Dialog-70b24cbf.js";import{__tla as Se}from"./index-292d166c.js";let E,Te=Promise.all([(()=>{try{return re}catch{}})(),(()=>{try{return ne}catch{}})(),(()=>{try{return se}catch{}})(),(()=>{try{return ie}catch{}})(),(()=>{try{return ue}catch{}})(),(()=>{try{return de}catch{}})(),(()=>{try{return we}catch{}})(),(()=>{try{return xe}catch{}})(),(()=>{try{return ke}catch{}})(),(()=>{try{return Ce}catch{}})(),(()=>{try{return Ie}catch{}})(),(()=>{try{return Se}catch{}})()]).then(async()=>{E=te(L({name:"Receivable",__name:"index",setup(Ue){const b=ve(),{t:z}=O(),g=p(!0),C=p(0),I=p([]),o=j({pageNo:1,pageSize:10,no:null,customerId:null}),S=p(),w=p(!1),_=async()=>{g.value=!0;try{const c=await he(o);I.value=c.list,C.value=c.total}finally{g.value=!1}},f=()=>{o.pageNo=1,_()},A=()=>{S.value.resetFields(),f()},T=p(),U=(c,n)=>{T.value.open(c,n)},D=async()=>{try{await b.exportConfirm(),w.value=!0;const c=await ge(o);fe.excel(c,"\u56DE\u6B3E.xls")}catch{}finally{w.value=!1}};return q(()=>{_()}),(c,n)=>{const R=Y,v=G,y=W,s=Z,M=$,N=pe,r=ee,x=ce,P=ae,F=oe,h=J("hasPermi"),K=le;return i(),Q(X,null,[e(N,null,{default:t(()=>[e(M,{class:"-mb-15px",model:a(o),ref_key:"queryFormRef",ref:S,inline:!0,"label-width":"68px"},{default:t(()=>[e(v,{label:"\u56DE\u6B3E\u7F16\u53F7",prop:"no"},{default:t(()=>[e(R,{modelValue:a(o).no,"onUpdate:modelValue":n[0]||(n[0]=l=>a(o).no=l),placeholder:"\u8BF7\u8F93\u5165\u56DE\u6B3E\u7F16\u53F7",clearable:"",onKeyup:V(f,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(v,{label:"\u5BA2\u6237\u540D\u79F0",prop:"customerId"},{default:t(()=>[e(R,{modelValue:a(o).customerId,"onUpdate:modelValue":n[1]||(n[1]=l=>a(o).customerId=l),placeholder:"\u8BF7\u8F93\u5165\u5BA2\u6237\u540D\u79F0",clearable:"",onKeyup:V(f,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(v,null,{default:t(()=>[e(s,{onClick:f},{default:t(()=>[e(y,{icon:"ep:search",class:"mr-5px"}),u(" \u641C\u7D22")]),_:1}),e(s,{onClick:A},{default:t(()=>[e(y,{icon:"ep:refresh",class:"mr-5px"}),u(" \u91CD\u7F6E")]),_:1}),m((i(),d(s,{type:"primary",plain:"",onClick:n[2]||(n[2]=l=>U("create"))},{default:t(()=>[e(y,{icon:"ep:plus",class:"mr-5px"}),u(" \u65B0\u589E ")]),_:1})),[[h,["crm:receivable:create"]]]),m((i(),d(s,{type:"success",plain:"",onClick:D,loading:a(w)},{default:t(()=>[e(y,{icon:"ep:download",class:"mr-5px"}),u(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[h,["crm:receivable:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),e(N,null,{default:t(()=>[m((i(),d(P,{data:a(I),stripe:!0,"show-overflow-tooltip":!0},{default:t(()=>[e(r,{label:"ID",align:"center",prop:"id"}),e(r,{label:"\u56DE\u6B3E\u7F16\u53F7",align:"center",prop:"no"}),e(r,{label:"\u5BA2\u6237",align:"center",prop:"customerId"}),e(r,{label:"\u5408\u540C",align:"center",prop:"contractId"}),e(r,{label:"\u5BA1\u6279\u72B6\u6001",align:"center",prop:"checkStatus",width:"130px"},{default:t(l=>[e(x,{type:a(k).CRM_AUDIT_STATUS,value:l.row.checkStatus},null,8,["type","value"])]),_:1}),e(r,{label:"\u56DE\u6B3E\u65E5\u671F",align:"center",prop:"returnTime",formatter:a(_e),width:"150px"},null,8,["formatter"]),e(r,{label:"\u56DE\u6B3E\u65B9\u5F0F",align:"center",prop:"returnType",width:"130px"},{default:t(l=>[e(x,{type:a(k).CRM_RECEIVABLE_RETURN_TYPE,value:l.row.returnType},null,8,["type","value"])]),_:1}),e(r,{label:"\u56DE\u6B3E\u91D1\u989D(\u5143)",align:"center",prop:"price"}),e(r,{label:"\u8D1F\u8D23\u4EBA",align:"center",prop:"ownerUserId"}),e(r,{label:"\u6279\u6B21",align:"center",prop:"batchId"}),e(r,{label:"\u72B6\u6001",align:"center",prop:"status"},{default:t(l=>[e(x,{type:a(k).COMMON_STATUS,value:l.row.status},null,8,["type","value"])]),_:1}),e(r,{label:"\u5907\u6CE8",align:"center",prop:"remark"}),e(r,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:a(me),width:"180px"},null,8,["formatter"]),e(r,{label:"\u64CD\u4F5C",align:"center",width:"180px"},{default:t(l=>[m((i(),d(s,{link:"",type:"primary",onClick:B=>U("update",l.row.id)},{default:t(()=>[u(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[h,["crm:receivable:update"]]]),m((i(),d(s,{link:"",type:"danger",onClick:B=>(async H=>{try{await b.delConfirm(),await be(H),b.success(z("common.delSuccess")),await _()}catch{}})(l.row.id)},{default:t(()=>[u(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[h,["crm:receivable:delete"]]])]),_:1})]),_:1},8,["data"])),[[K,a(g)]]),e(F,{total:a(C),page:a(o).pageNo,"onUpdate:page":n[3]||(n[3]=l=>a(o).pageNo=l),limit:a(o).pageSize,"onUpdate:limit":n[4]||(n[4]=l=>a(o).pageSize=l),onPagination:_},null,8,["total","page","limit"])]),_:1}),e(ye,{ref_key:"formRef",ref:T,onSuccess:_},null,512)],64)}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/crm/receivable/index.vue"]])});export{Te as __tla,E as default};