1 |
- import{d as H,h as L,r as s,e as Q,l as B,Q as E,o as i,c as J,f as e,w as t,a as l,R as U,n as u,x as _,v as d,F as M,V as O,A as W,j as X,C as Y,D as Z,G as $,H as ee,I as ae,_ as le,__tla as te}from"./index-663b822b.js";import{_ as re,__tla as ne}from"./index-758918f2.js";import{_ as oe,__tla as ce}from"./ContentWrap-1a78e8cd.js";import{d as f,__tla as pe}from"./formatTime-f47a2129.js";import{d as se}from"./download-20922b56.js";import{C as ie,a as ue,d as me,e as _e,__tla as de}from"./ContractForm-8d06526e.js";import{u as fe,__tla as ge}from"./useMessage-40b17a0b.js";import{__tla as ye}from"./index-0cf59de8.js";import{__tla as he}from"./ContentWrap.vue_vue_type_script_setup_true_lang-c8f9e533.js";import{__tla as be}from"./el-card-9ef9a6b0.js";import{__tla as we}from"./Dialog-38464040.js";let T,xe=Promise.all([(()=>{try{return te}catch{}})(),(()=>{try{return ne}catch{}})(),(()=>{try{return ce}catch{}})(),(()=>{try{return pe}catch{}})(),(()=>{try{return de}catch{}})(),(()=>{try{return ge}catch{}})(),(()=>{try{return ye}catch{}})(),(()=>{try{return he}catch{}})(),(()=>{try{return be}catch{}})(),(()=>{try{return we}catch{}})()]).then(async()=>{T=le(H({name:"CrmContract",__name:"index",setup(ke){const b=fe(),{t:D}=L(),w=s(!0),C=s(0),v=s([]),r=Q({pageNo:1,pageSize:10,name:null,customerId:null,businessId:null,orderDate:[],no:null,discountPercent:null,productPrice:null}),I=s(),x=s(!1),m=async()=>{w.value=!0;try{const c=await ue(r);v.value=c.list,C.value=c.total}finally{w.value=!1}},g=()=>{r.pageNo=1,m()},F=()=>{I.value.resetFields(),g()},V=s(),P=(c,n)=>{V.value.open(c,n)},N=async()=>{try{await b.exportConfirm(),x.value=!0;const c=await _e(r);se.excel(c,"\u5408\u540C.xls")}catch{}finally{x.value=!1}};return B(()=>{m()}),(c,n)=>{const z=O,k=W,y=X,p=Y,R=Z,S=oe,a=$,K=ee,j=re,h=E("hasPermi"),q=ae;return i(),J(M,null,[e(S,null,{default:t(()=>[e(R,{class:"-mb-15px",model:l(r),ref_key:"queryFormRef",ref:I,inline:!0,"label-width":"68px"},{default:t(()=>[e(k,{label:"\u5408\u540C\u7F16\u53F7",prop:"no"},{default:t(()=>[e(z,{modelValue:l(r).no,"onUpdate:modelValue":n[0]||(n[0]=o=>l(r).no=o),placeholder:"\u8BF7\u8F93\u5165\u5408\u540C\u7F16\u53F7",clearable:"",onKeyup:U(g,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(k,{label:"\u5408\u540C\u540D\u79F0",prop:"name"},{default:t(()=>[e(z,{modelValue:l(r).name,"onUpdate:modelValue":n[1]||(n[1]=o=>l(r).name=o),placeholder:"\u8BF7\u8F93\u5165\u5408\u540C\u540D\u79F0",clearable:"",onKeyup:U(g,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(k,null,{default:t(()=>[e(p,{onClick:g},{default:t(()=>[e(y,{icon:"ep:search",class:"mr-5px"}),u(" \u641C\u7D22")]),_:1}),e(p,{onClick:F},{default:t(()=>[e(y,{icon:"ep:refresh",class:"mr-5px"}),u(" \u91CD\u7F6E")]),_:1}),_((i(),d(p,{type:"primary",onClick:n[2]||(n[2]=o=>P("create"))},{default:t(()=>[e(y,{icon:"ep:plus",class:"mr-5px"}),u(" \u65B0\u589E ")]),_:1})),[[h,["crm:contract:create"]]]),_((i(),d(p,{type:"success",plain:"",onClick:N,loading:l(x)},{default:t(()=>[e(y,{icon:"ep:download",class:"mr-5px"}),u(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[h,["crm:contract:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),e(S,null,{default:t(()=>[_((i(),d(K,{data:l(v),stripe:!0,"show-overflow-tooltip":!0},{default:t(()=>[e(a,{label:"\u5408\u540C\u7F16\u53F7",align:"center",prop:"id"}),e(a,{label:"\u5408\u540C\u540D\u79F0",align:"center",prop:"name"}),e(a,{label:"\u5BA2\u6237\u540D\u79F0",align:"center",prop:"customerId"}),e(a,{label:"\u5546\u673A\u540D\u79F0",align:"center",prop:"businessId"}),e(a,{label:"\u5DE5\u4F5C\u6D41\u540D\u79F0",align:"center",prop:"processInstanceId"}),e(a,{label:"\u4E0B\u5355\u65F6\u95F4",align:"center",prop:"orderDate",formatter:l(f),width:"180px"},null,8,["formatter"]),e(a,{label:"\u8D1F\u8D23\u4EBA",align:"center",prop:"ownerUserId"}),e(a,{label:"\u5408\u540C\u7F16\u53F7",align:"center",prop:"no"}),e(a,{label:"\u5F00\u59CB\u65F6\u95F4",align:"center",prop:"startTime",formatter:l(f),width:"180px"},null,8,["formatter"]),e(a,{label:"\u7ED3\u675F\u65F6\u95F4",align:"center",prop:"endTime",formatter:l(f),width:"180px"},null,8,["formatter"]),e(a,{label:"\u5408\u540C\u91D1\u989D",align:"center",prop:"price"}),e(a,{label:"\u6574\u5355\u6298\u6263",align:"center",prop:"discountPercent"}),e(a,{label:"\u4EA7\u54C1\u603B\u91D1\u989D",align:"center",prop:"productPrice"}),e(a,{label:"\u8054\u7CFB\u4EBA",align:"center",prop:"contactId"}),e(a,{label:"\u516C\u53F8\u7B7E\u7EA6\u4EBA",align:"center",prop:"signUserId"}),e(a,{label:"\u6700\u540E\u8DDF\u8FDB\u65F6\u95F4",align:"center",prop:"contactLastTime",formatter:l(f),width:"180px"},null,8,["formatter"]),e(a,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:l(f),width:"180px"},null,8,["formatter"]),e(a,{label:"\u5907\u6CE8",align:"center",prop:"remark"}),e(a,{label:"\u64CD\u4F5C",width:"120px"},{default:t(o=>[_((i(),d(p,{link:"",type:"primary",onClick:A=>P("update",o.row.id)},{default:t(()=>[u(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[h,["crm:contract:update"]]]),_((i(),d(p,{link:"",type:"danger",onClick:A=>(async G=>{try{await b.delConfirm(),await me(G),b.success(D("common.delSuccess")),await m()}catch{}})(o.row.id)},{default:t(()=>[u(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[h,["crm:contract:delete"]]])]),_:1})]),_:1},8,["data"])),[[q,l(w)]]),e(j,{total:l(C),page:l(r).pageNo,"onUpdate:page":n[3]||(n[3]=o=>l(r).pageNo=o),limit:l(r).pageSize,"onUpdate:limit":n[4]||(n[4]=o=>l(r).pageSize=o),onPagination:m},null,8,["total","page","limit"])]),_:1}),e(ie,{ref_key:"formRef",ref:V,onSuccess:m},null,512)],64)}}}),[["__file","D:/zhongxing/mall-newfeifan-zx-admin/src/views/crm/contract/index.vue"]])});export{xe as __tla,T as default};
|