1 |
- import{d as M,r as s,f as R,u as q,M as L,o as y,c as A,g as t,w as o,n as g,y as E,a,x as j,t as B,F,q as H,D as O,j as P,H as J,I as W,J as G,_ as K,__tla as Q}from"./index-52b99925.js";import{_ as V,__tla as X}from"./ContentWrap-b4eafcae.js";import{_ as Y,__tla as Z}from"./index-34771a13.js";import{_ as $,__tla as tt}from"./DictTag-559e7235.js";import{E as at,__tla as rt}from"./el-link-7281b055.js";import{g as et,C as lt,__tla as ot}from"./ContractForm-ae1dfd28.js";import{B as _t,__tla as it}from"./index-c7b1ae84.js";import{f as nt,__tla as st}from"./formatter-b622c8a6.js";import{d as h,__tla as ct}from"./formatTime-16b790f5.js";import{D as mt,__tla as pt}from"./dict-954b1420.js";import{__tla as ut}from"./el-card-1538e136.js";import{__tla as ft}from"./index-af0729b2.js";import"./color-6e929987.js";import{__tla as dt}from"./Dialog-01a79427.js";import{__tla as yt}from"./useMessage-c41e583e.js";let v,gt=Promise.all([(()=>{try{return Q}catch{}})(),(()=>{try{return X}catch{}})(),(()=>{try{return Z}catch{}})(),(()=>{try{return tt}catch{}})(),(()=>{try{return rt}catch{}})(),(()=>{try{return ot}catch{}})(),(()=>{try{return it}catch{}})(),(()=>{try{return st}catch{}})(),(()=>{try{return ct}catch{}})(),(()=>{try{return pt}catch{}})(),(()=>{try{return ut}catch{}})(),(()=>{try{return ft}catch{}})(),(()=>{try{return dt}catch{}})(),(()=>{try{return yt}catch{}})()]).then(async()=>{v=K(M({name:"CrmContractList",__name:"ContractList",props:{bizType:{type:Number,required:!0},bizId:{type:Number,required:!0}},setup(b){const _=b,c=s(!0),p=s(0),u=s([]),r=R({pageNo:1,pageSize:10,customerId:void 0}),m=async()=>{c.value=!0;try{r.customerId=void 0;let i={list:[],total:0};if(_.bizType!==_t.CRM_CUSTOMER)return;r.customerId=_.bizId,i=await et(r),u.value=i.list,p.value=i.total}finally{c.value=!1}},f=s(),C=()=>{f.value.open("create")},{push:w}=q();return L(()=>[_.bizId,_.bizType],()=>{r.pageNo=1,m()},{immediate:!0,deep:!0}),(i,n)=>{const z=H,S=O,x=P,T=at,l=J,I=$,N=W,D=Y,U=V,k=G;return y(),A(F,null,[t(x,{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(U,{class:"mt-10px"},{default:o(()=>[E((y(),j(N,{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(B(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(nt)},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(I,{type:a(mt).CRM_AUDIT_STATUS,value:e.row.auditStatus},null,8,["type","value"])]),_:1})]),_:1},8,["data"])),[[k,a(c)]]),t(D,{total:a(p),page:a(r).pageNo,"onUpdate:page":n[0]||(n[0]=e=>a(r).pageNo=e),limit:a(r).pageSize,"onUpdate:limit":n[1]||(n[1]=e=>a(r).pageSize=e),onPagination:m},null,8,["total","page","limit"])]),_:1}),t(lt,{ref_key:"formRef",ref:f,onSuccess:m},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/crm/contract/components/ContractList.vue"]])});export{gt as __tla,v as default};
|