1 |
- import{d as M,P as O,r as f,x as P,b as D,a4 as Q,o as _,c as Y,f as t,A as n,D as d,k as y,C as p,a as e,a3 as j,F,Q as q,J as B,X as G,Y as J,Z as X,_ as Z,__tla as H}from"./index-f5832377.js";import{_ as K,__tla as V}from"./index-a5c0c940.js";import{_ as W,__tla as $}from"./DictTag-464f1206.js";import{d as aa,__tla as ta}from"./formatTime-b1f50985.js";import{L as x,C as ea,g as ra,d as la,__tla as oa}from"./CustomerLimitConfigForm-0d1f3282.js";import{D as ia,__tla as na}from"./dict-208ab476.js";import{u as sa,__tla as _a}from"./useMessage-c6d2d287.js";import{__tla as ca}from"./index-1463ec2c.js";import"./color-6e929987.js";import{__tla as ma}from"./Dialog-31c7c66f.js";import{__tla as pa}from"./el-tree-select-13599652.js";import{__tla as ua}from"./index-40e65b8c.js";import"./tree-0af4953a.js";import{__tla as fa}from"./index-af212fdc.js";let L,da=Promise.all([(()=>{try{return H}catch{}})(),(()=>{try{return V}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return fa}catch{}})()]).then(async()=>{L=Z(M({name:"CustomerLimitConfigList",__name:"CustomerLimitConfigList",props:{confType:{type:Number,required:!0}},setup(I){const C=sa(),{t:S}=O(),{confType:T}=I,g=f(!0),b=f(0),w=f([]),s=P({pageNo:1,pageSize:10,type:T}),c=async()=>{g.value=!0;try{const o=await ra(s);w.value=o.list,b.value=o.total}finally{g.value=!1}},k=f(),N=(o,r)=>{k.value.open(o,T,r)},z=()=>{s.pageNo=1,c()};return D(()=>{c()}),(o,r)=>{const v=q,u=B,l=G,R=W,U=J,A=K,h=Q("hasPermi"),E=X;return _(),Y(F,null,[t(u,{plain:"",onClick:z},{default:n(()=>[t(v,{icon:"ep:refresh",class:"mr-5px"}),d(" \u5237\u65B0 ")]),_:1}),y((_(),p(u,{type:"primary",plain:"",onClick:r[0]||(r[0]=a=>N("create"))},{default:n(()=>[t(v,{icon:"ep:plus",class:"mr-5px"}),d(" \u65B0\u589E ")]),_:1})),[[h,["crm:customer-limit-config:create"]]]),y((_(),p(U,{data:e(w),stripe:!0,"show-overflow-tooltip":!0,class:"mt-4"},{default:n(()=>[t(l,{label:"\u7F16\u53F7",align:"center",prop:"id"}),t(l,{label:"\u89C4\u5219\u7C7B\u578B",align:"center",prop:"type"}),t(l,{label:"\u89C4\u5219\u9002\u7528\u4EBA\u7FA4",align:"center",formatter:a=>{var i;return(i=a.users)==null?void 0:i.map(m=>m.nickname).join("\uFF0C")}},null,8,["formatter"]),t(l,{label:"\u89C4\u5219\u9002\u7528\u90E8\u95E8",align:"center",formatter:a=>{var i;return(i=a.depts)==null?void 0:i.map(m=>m.name).join("\uFF0C")}},null,8,["formatter"]),t(l,{label:o.confType===e(x).CUSTOMER_QUANTITY_LIMIT?"\u62E5\u6709\u5BA2\u6237\u6570\u4E0A\u9650":"\u9501\u5B9A\u5BA2\u6237\u6570\u4E0A\u9650",align:"center",prop:"maxCount"},null,8,["label"]),o.confType===e(x).CUSTOMER_QUANTITY_LIMIT?(_(),p(l,{key:0,label:"\u6210\u4EA4\u5BA2\u6237\u662F\u5426\u5360\u7528\u62E5\u6709\u5BA2\u6237\u6570",align:"center",prop:"dealCountEnabled"},{default:n(a=>[t(R,{type:e(ia).INFRA_BOOLEAN_STRING,value:a.row.dealCountEnabled},null,8,["type","value"])]),_:1})):j("",!0),t(l,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:e(aa),width:"180px"},null,8,["formatter"]),t(l,{label:"\u64CD\u4F5C",align:"center","min-width":"110",fixed:"right"},{default:n(a=>[y((_(),p(u,{link:"",type:"primary",onClick:i=>N("update",a.row.id)},{default:n(()=>[d(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[h,["crm:customer-limit-config:update"]]]),y((_(),p(u,{link:"",type:"danger",onClick:i=>(async m=>{try{await C.delConfirm(),await la(m),C.success(S("common.delSuccess")),await c()}catch{}})(a.row.id)},{default:n(()=>[d(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[h,["crm:customer-limit-config:delete"]]])]),_:1})]),_:1},8,["data"])),[[E,e(g)]]),t(A,{total:e(b),page:e(s).pageNo,"onUpdate:page":r[1]||(r[1]=a=>e(s).pageNo=a),limit:e(s).pageSize,"onUpdate:limit":r[2]||(r[2]=a=>e(s).pageSize=a),onPagination:c},null,8,["total","page","limit"]),t(ea,{ref_key:"formRef",ref:k,onSuccess:c},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/crm/customer/limitConfig/CustomerLimitConfigList.vue"]])});export{da as __tla,L as default};
|