1 |
- import{d as k,r as n,e as D,u as L,L as M,o as y,c as j,f as t,w as l,n as h,x as q,a,v as A,t as E,F as B,j as F,C as G,i as H,G as P,H as O,I as W,_ as J,__tla as K}from"./index-bd9277a1.js";import{_ as Q,__tla as V}from"./ContentWrap-7c73ab26.js";import{_ as X,__tla as Y}from"./index-3118d255.js";import{_ as Z,__tla as $}from"./DictTag-d6503fab.js";import{E as tt,__tla as at}from"./el-link-2a94053d.js";import{g as rt,R as et,__tla as lt}from"./ReceivableForm-b067645b.js";import{B as _t,__tla as ot}from"./index-dac6e636.js";import{d as it,__tla as st}from"./formatTime-8639ba1a.js";import{f as nt,__tla as ct}from"./formatter-2720a8f7.js";import{D as pt,__tla as mt}from"./dict-4b2e9fd3.js";import{__tla as ut}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5f6a2d0d.js";import{__tla as ft}from"./el-card-bc8cec83.js";import{__tla as dt}from"./index-49ecf2ef.js";import"./color-6e929987.js";import{__tla as yt}from"./Dialog-eba103da.js";import{__tla as ht}from"./index-71b25432.js";import{__tla as gt}from"./useMessage-274788d4.js";let g,vt=Promise.all([(()=>{try{return K}catch{}})(),(()=>{try{return V}catch{}})(),(()=>{try{return Y}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 ht}catch{}})(),(()=>{try{return gt}catch{}})()]).then(async()=>{g=J(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([]),r=D({pageNo:1,pageSize:10,customerId:void 0}),p=async()=>{c.value=!0;try{r.customerId=void 0;let i={list:[],total:0};if(o.bizType!==_t.CRM_CUSTOMER)return;r.customerId=o.bizId,i=await rt(r),u.value=i.list,m.value=i.total}finally{c.value=!1}},f=n(),b=()=>{f.value.open("create")},{push:w}=L();return M(()=>[o.bizId,o.bizType],()=>{r.pageNo=1,p()},{immediate:!0,deep:!0}),(i,s)=>{const z=F,x=G,C=H,R=tt,_=P,S=Z,T=O,I=X,N=Q,U=W;return y(),j(B,null,[t(C,{justify:"end"},{default:l(()=>[t(x,{onClick:b},{default:l(()=>[t(z,{class:"mr-5px",icon:"icon-park:income-one"}),h(" \u521B\u5EFA\u56DE\u6B3E ")]),_:1})]),_:1}),t(N,{class:"mt-10px"},{default:l(()=>[q((y(),A(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(e=>[t(R,{type:"primary",underline:!1,onClick:bt=>{return d=e.row.id,void w({name:"CrmReceivableDetail",params:{id:d}});var d}},{default:l(()=>[h(E(e.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(e=>[t(S,{type:a(pt).CRM_AUDIT_STATUS,value:e.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(I,{total:a(m),page:a(r).pageNo,"onUpdate:page":s[0]||(s[0]=e=>a(r).pageNo=e),limit:a(r).pageSize,"onUpdate:limit":s[1]||(s[1]=e=>a(r).pageSize=e),onPagination:p},null,8,["total","page","limit"])]),_:1}),t(et,{ref_key:"formRef",ref:f,onSuccess:p},null,512)],64)}}}),[["__file","D:/zhongxing/mall-newfeifan-zx-admin/src/views/crm/receivable/components/ReceivableList.vue"]])});export{vt as __tla,g as default};
|