ContractList-845b201a.js 3.7 KB

1
  1. import{d as D,r as n,e as L,u as M,L as j,o as y,c as q,f as t,w as _,n as h,x as A,a,v as E,t as H,F as B,j as F,C as G,i as P,G as O,H as W,I as X,_ as J,__tla as K}from"./index-11e4820e.js";import{_ as Q,__tla as V}from"./ContentWrap-694014d4.js";import{_ as Y,__tla as Z}from"./index-c8f58bd0.js";import{_ as $,__tla as tt}from"./DictTag-e41ec8de.js";import{E as at,__tla as rt}from"./el-link-6cd4f1ac.js";import{g as et,C as lt,__tla as _t}from"./ContractForm-50990564.js";import{B as ot,__tla as st}from"./index-c0569cbe.js";import{f as it,__tla as nt}from"./formatter-89070787.js";import{d as g,__tla as ct}from"./formatTime-f6a2c881.js";import{D as mt,__tla as pt}from"./dict-4072dcec.js";import{__tla as ut}from"./ContentWrap.vue_vue_type_script_setup_true_lang-11f85821.js";import{__tla as ft}from"./el-card-919c14be.js";import{__tla as dt}from"./index-dd73c59d.js";import"./color-6e929987.js";import{__tla as yt}from"./Dialog-bbfaf85c.js";import{__tla as ht}from"./useMessage-06ddf735.js";let b,gt=Promise.all([(()=>{try{return K}catch{}})(),(()=>{try{return V}catch{}})(),(()=>{try{return Z}catch{}})(),(()=>{try{return tt}catch{}})(),(()=>{try{return rt}catch{}})(),(()=>{try{return _t}catch{}})(),(()=>{try{return st}catch{}})(),(()=>{try{return nt}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{}})(),(()=>{try{return ht}catch{}})()]).then(async()=>{b=J(D({name:"CrmContractList",__name:"ContractList",props:{bizType:{type:Number,required:!0},bizId:{type:Number,required:!0}},setup(v){const o=v,c=n(!0),p=n(0),u=n([]),r=L({pageNo:1,pageSize:10,customerId:void 0}),m=async()=>{c.value=!0;try{r.customerId=void 0;let s={list:[],total:0};if(o.bizType!==ot.CRM_CUSTOMER)return;r.customerId=o.bizId,s=await et(r),u.value=s.list,p.value=s.total}finally{c.value=!1}},f=n(),C=()=>{f.value.open("create")},{push:w}=M();return j(()=>[o.bizId,o.bizType],()=>{r.pageNo=1,m()},{immediate:!0,deep:!0}),(s,i)=>{const z=F,S=G,T=P,x=at,l=O,I=$,N=W,R=Y,U=Q,k=X;return y(),q(B,null,[t(T,{justify:"end"},{default:_(()=>[t(S,{onClick:C},{default:_(()=>[t(z,{class:"mr-5px",icon:"clarity:contract-line"}),h(" \u521B\u5EFA\u5408\u540C ")]),_:1})]),_:1}),t(U,{class:"mt-10px"},{default:_(()=>[A((y(),E(N,{data:a(u),stripe:!0,"show-overflow-tooltip":!0},{default:_(()=>[t(l,{label:"\u5408\u540C\u540D\u79F0",fixed:"left",align:"center",prop:"name"},{default:_(e=>[t(x,{type:"primary",underline:!1,onClick:bt=>{return d=e.row.id,void w({name:"CrmContractDetail",params:{id:d}});var d}},{default:_(()=>[h(H(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(g),width:"180px"},null,8,["formatter"]),t(l,{label:"\u7ED3\u675F\u65F6\u95F4",align:"center",prop:"endTime",formatter:a(g),width:"180px"},null,8,["formatter"]),t(l,{align:"center",label:"\u72B6\u6001",prop:"auditStatus"},{default:_(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(R,{total:a(p),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:m},null,8,["total","page","limit"])]),_:1}),t(lt,{ref_key:"formRef",ref:f,onSuccess:m},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};