import{d as R,r as n,f as D,u as L,aP as P,o as y,c as j,i as t,w as o,j as g,C as q,a,l as A,t as E,F as B,v as F,J as H,s as J,L as O,M as X,N as G,_ as K,__tla as Q}from"./index-b2b3c6c4.js";import{_ as V,__tla as W}from"./ContentWrap-e91b2b5a.js";import{_ as Y,__tla as Z}from"./index-341fc94c.js";import{_ as $,__tla as tt}from"./DictTag-4199ec8d.js";import{E as at,__tla as rt}from"./el-link-45ef051e.js";import{g as et,C as lt,__tla as ot}from"./ContractForm-c4bdfb1a.js";import{B as _t,__tla as st}from"./index-0911c910.js";import{f as it,__tla as nt}from"./formatter-7e9b8711.js";import{d as h,__tla as pt}from"./formatTime-7e07ce72.js";import{D as ct,__tla as mt}from"./dict-7f0cc6d2.js";import{__tla as ut}from"./el-card-bd6e27c9.js";import{__tla as ft}from"./index-2d76a87c.js";import"./color-6e929987.js";import{__tla as dt}from"./Dialog-70b24cbf.js";import{__tla as yt}from"./useMessage-a5edbb0f.js";let b,gt=Promise.all([(()=>{try{return Q}catch{}})(),(()=>{try{return W}catch{}})(),(()=>{try{return Z}catch{}})(),(()=>{try{return tt}catch{}})(),(()=>{try{return rt}catch{}})(),(()=>{try{return ot}catch{}})(),(()=>{try{return st}catch{}})(),(()=>{try{return nt}catch{}})(),(()=>{try{return pt}catch{}})(),(()=>{try{return mt}catch{}})(),(()=>{try{return ut}catch{}})(),(()=>{try{return ft}catch{}})(),(()=>{try{return dt}catch{}})(),(()=>{try{return yt}catch{}})()]).then(async()=>{b=K(R({name:"CrmContractList",__name:"ContractList",props:{bizType:{type:Number,required:!0},bizId:{type:Number,required:!0}},setup(v){const _=v,p=n(!0),m=n(0),u=n([]),r=D({pageNo:1,pageSize:10,customerId:void 0}),c=async()=>{p.value=!0;try{r.customerId=void 0;let s={list:[],total:0};if(_.bizType!==_t.CRM_CUSTOMER)return;r.customerId=_.bizId,s=await et(r),u.value=s.list,m.value=s.total}finally{p.value=!1}},f=n(),C=()=>{f.value.open("create")},{push:w}=L();return P(()=>[_.bizId,_.bizType],()=>{r.pageNo=1,c()},{immediate:!0,deep:!0}),(s,i)=>{const z=F,S=H,N=J,T=at,l=O,x=$,I=X,U=Y,k=V,M=G;return y(),j(B,null,[t(N,{justify:"end"},{default:o(()=>[t(S,{onClick:C},{default:o(()=>[t(z,{class:"mr-5px",icon:"clarity:contract-line"}),g(" \u521B\u5EFA\u5408\u540C ")]),_:1})]),_:1}),t(k,{class:"mt-10px"},{default:o(()=>[q((y(),A(I,{data:a(u),stripe:!0,"show-overflow-tooltip":!0},{default:o(()=>[t(l,{label:"\u5408\u540C\u540D\u79F0",fixed:"left",align:"center",prop:"name"},{default:o(e=>[t(T,{type:"primary",underline:!1,onClick:ht=>{return d=e.row.id,void w({name:"CrmContractDetail",params:{id:d}});var d}},{default:o(()=>[g(E(e.row.name),1)]),_:2},1032,["onClick"])]),_:1}),t(l,{label:"\u5408\u540C\u7F16\u53F7",align:"center",prop:"no"}),t(l,{label:"\u5BA2\u6237\u540D\u79F0",align:"center",prop:"customerName"}),t(l,{label:"\u5408\u540C\u91D1\u989D\uFF08\u5143\uFF09",align:"center",prop:"price",formatter:a(it)},null,8,["formatter"]),t(l,{label:"\u5F00\u59CB\u65F6\u95F4",align:"center",prop:"startTime",formatter:a(h),width:"180px"},null,8,["formatter"]),t(l,{label:"\u7ED3\u675F\u65F6\u95F4",align:"center",prop:"endTime",formatter:a(h),width:"180px"},null,8,["formatter"]),t(l,{align:"center",label:"\u72B6\u6001",prop:"auditStatus"},{default:o(e=>[t(x,{type:a(ct).CRM_AUDIT_STATUS,value:e.row.auditStatus},null,8,["type","value"])]),_:1})]),_:1},8,["data"])),[[M,a(p)]]),t(U,{total:a(m),page:a(r).pageNo,"onUpdate:page":i[0]||(i[0]=e=>a(r).pageNo=e),limit:a(r).pageSize,"onUpdate:limit":i[1]||(i[1]=e=>a(r).pageSize=e),onPagination:c},null,8,["total","page","limit"])]),_:1}),t(lt,{ref_key:"formRef",ref:f,onSuccess:c},null,512)],64)}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/crm/contract/components/ContractList.vue"]])});export{gt as __tla,b as default};
