ReceivableList-b345db7e.js 3.6 KB

1
  1. import{d as k,r as n,x as D,u as A,w as E,o as y,c as L,f as t,A as l,D as b,k as M,a,C as q,E as j,F as B,Q as F,J,K,X as P,Y as H,Z as O,_ as Q,__tla as X}from"./index-0b2503c4.js";import{_ as Y,__tla as Z}from"./ContentWrap-b5913fb6.js";import{_ as G,__tla as V}from"./index-40a9fc0c.js";import{_ as W,__tla as $}from"./DictTag-67781daa.js";import{E as tt,__tla as at}from"./el-link-0940af9a.js";import{g as et,R as rt,__tla as lt}from"./ReceivableForm-5ae852c0.js";import{B as _t,__tla as ot}from"./index-5d1a0ea0.js";import{d as it,__tla as st}from"./formatTime-9069dda3.js";import{f as nt,__tla as ct}from"./formatter-e6c06da3.js";import{D as pt,__tla as mt}from"./dict-0f5a88e6.js";import{__tla as ut}from"./el-card-fa060bc4.js";import{__tla as ft}from"./index-2c2ac611.js";import"./color-6e929987.js";import{__tla as dt}from"./Dialog-3207cd36.js";import{__tla as yt}from"./index-b12ce3e2.js";import{__tla as bt}from"./useMessage-d05433ee.js";let h,ht=Promise.all([(()=>{try{return X}catch{}})(),(()=>{try{return Z}catch{}})(),(()=>{try{return V}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return at}catch{}})(),(()=>{try{return lt}catch{}})(),(()=>{try{return ot}catch{}})(),(()=>{try{return st}catch{}})(),(()=>{try{return ct}catch{}})(),(()=>{try{return mt}catch{}})(),(()=>{try{return ut}catch{}})(),(()=>{try{return ft}catch{}})(),(()=>{try{return dt}catch{}})(),(()=>{try{return yt}catch{}})(),(()=>{try{return bt}catch{}})()]).then(async()=>{h=Q(k({name:"CrmReceivableList",__name:"ReceivableList",props:{bizType:{type:Number,required:!0},bizId:{type:Number,required:!0}},setup(v){const o=v,c=n(!0),m=n(0),u=n([]),e=D({pageNo:1,pageSize:10,customerId:void 0}),p=async()=>{c.value=!0;try{e.customerId=void 0;let i={list:[],total:0};if(o.bizType!==_t.CRM_CUSTOMER)return;e.customerId=o.bizId,i=await et(e),u.value=i.list,m.value=i.total}finally{c.value=!1}},f=n(),g=()=>{f.value.open("create")},{push:w}=A();return E(()=>[o.bizId,o.bizType],()=>{e.pageNo=1,p()},{immediate:!0,deep:!0}),(i,s)=>{const z=F,x=J,S=K,C=tt,_=P,R=W,T=H,N=G,I=Y,U=O;return y(),L(B,null,[t(S,{justify:"end"},{default:l(()=>[t(x,{onClick:g},{default:l(()=>[t(z,{class:"mr-5px",icon:"icon-park:income-one"}),b(" \u521B\u5EFA\u56DE\u6B3E ")]),_:1})]),_:1}),t(I,{class:"mt-10px"},{default:l(()=>[M((y(),q(T,{data:a(u),stripe:!0,"show-overflow-tooltip":!0},{default:l(()=>[t(_,{label:"\u56DE\u6B3E\u7F16\u53F7",fixed:"left",align:"center",prop:"no"},{default:l(r=>[t(C,{type:"primary",underline:!1,onClick:vt=>{return d=r.row.id,void w({name:"CrmReceivableDetail",params:{id:d}});var d}},{default:l(()=>[b(j(r.row.no),1)]),_:2},1032,["onClick"])]),_:1}),t(_,{label:"\u5408\u540C\u7F16\u53F7",align:"center",prop:"contractNo"}),t(_,{label:"\u56DE\u6B3E\u91D1\u989D\uFF08\u5143\uFF09",align:"center",prop:"price",formatter:a(nt)},null,8,["formatter"]),t(_,{label:"\u8D1F\u8D23\u4EBA",align:"center",prop:"ownerUserName"}),t(_,{align:"center",label:"\u72B6\u6001",prop:"auditStatus"},{default:l(r=>[t(R,{type:a(pt).CRM_AUDIT_STATUS,value:r.row.auditStatus},null,8,["type","value"])]),_:1}),t(_,{label:"\u56DE\u6B3E\u65E5\u671F",align:"center",prop:"returnTime",formatter:a(it),width:"180px"},null,8,["formatter"])]),_:1},8,["data"])),[[U,a(c)]]),t(N,{total:a(m),page:a(e).pageNo,"onUpdate:page":s[0]||(s[0]=r=>a(e).pageNo=r),limit:a(e).pageSize,"onUpdate:limit":s[1]||(s[1]=r=>a(e).pageSize=r),onPagination:p},null,8,["total","page","limit"])]),_:1}),t(rt,{ref_key:"formRef",ref:f,onSuccess:p},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/crm/receivable/components/ReceivableList.vue"]])});export{ht as __tla,h as default};