MemberUserTab-70b824a3.js 16 KB

1
  1. import{d as _t,r as c,b as U,a as t,o as n,c as v,F as nt,R as yt,B as z,E as u,_ as A,f as e,x as D,A as m,D as f,O as k,X as N,Y,P as ht,C as b,aY as gt,a3 as w,k as vt,a2 as V,aa as bt,ab as xt,J as wt,Z as It,__tla as zt}from"./index-0b2503c4.js";import{_ as St,__tla as kt}from"./ContentWrap-b5913fb6.js";import{_ as At,__tla as Tt}from"./SPuUploadImg-7c89189f.js";import{_ as Ut,__tla as Mt}from"./Dialog-3207cd36.js";import Dt,{__tla as Nt}from"./UserForm-f1766c26.js";import{A as Yt,__tla as Vt}from"./AfterSale-527df7e0.js";import{O as Pt,__tla as Ft}from"./Order-23f9ef24.js";import{b as Zt,c as jt,d as Ht,e as Ot,__tla as Qt}from"./index-a28cd586.js";import{g as Lt,__tla as Ct}from"./index-a5770e94.js";import Rt,{__tla as Bt}from"./index-a8deb5a1.js";import{_ as P,__tla as Et}from"./index-40a9fc0c.js";import{f as F,__tla as Jt}from"./formatTime-9069dda3.js";import Xt,{__tla as qt}from"./index-cce1e322.js";import{u as Gt,__tla as Kt}from"./useMessage-d05433ee.js";import{__tla as Wt}from"./el-card-fa060bc4.js";import{__tla as $t}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-9838c779.js";import{__tla as ta}from"./index-9695eab1.js";import{__tla as aa}from"./el-image-viewer-45bae442.js";import{__tla as ea}from"./el-tree-select-c7d8cebf.js";import{__tla as ra}from"./dict-0f5a88e6.js";import"./tree-0af4953a.js";import{__tla as la}from"./index-0fa0b3d8.js";import{__tla as oa}from"./index-d7fc07a2.js";import{__tla as _a}from"./index-c67b108c.js";import{__tla as na}from"./OrderDeliveryForm-30f11bab.js";import{__tla as sa}from"./index-60c8ce64.js";import{__tla as ia}from"./OrderBaseInfo-93c1035c.js";import{__tla as ma}from"./OrderProduct-8cac4be1.js";import{__tla as ua}from"./el-descriptions-item-a06406e4.js";import{__tla as pa}from"./DictTag-67781daa.js";import"./color-6e929987.js";import{__tla as ca}from"./OrderUpdateRemarkForm-1f5e8f64.js";import{__tla as da}from"./index-d511df39.js";import{__tla as fa}from"./OrderIndex-b417dc1d.js";import{__tla as ya}from"./OrderComment-613eb59c.js";import{__tla as ha}from"./el-image-9584005f.js";import{__tla as ga}from"./OrderService-1f6671f3.js";import{__tla as va}from"./OrderLogistics-956b60fb.js";import{__tla as ba}from"./el-timeline-item-50b459d7.js";import{__tla as xa}from"./orderPay-ed1619c6.js";import{__tla as wa}from"./OrderLogs-7866ce3e.js";import{__tla as Ia}from"./OrderUpdateAddressForm-aeb24cd2.js";import{__tla as za}from"./index-2c2ac611.js";import"./download-20922b56.js";import{__tla as Sa}from"./Echart-d6ffc53e.js";import{__tla as ka}from"./Descendants-395e6b7b.js";import{__tla as Aa}from"./index-6738d3cd.js";import"./constants-c811e5ff.js";import{__tla as Ta}from"./spu-c0fdff18.js";import{__tla as Ua}from"./category-8910d9c1.js";import{__tla as Ma}from"./index-2a35b5c5.js";import{__tla as Da}from"./tagsView-c4742351.js";import{__tla as Na}from"./InfoForm-5f229cb4.js";import{__tla as Ya}from"./UploadImgs-09ad3801.js";import{__tla as Va}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-ad45eef2.js";import{__tla as Pa}from"./brand-4573d731.js";import{__tla as Fa}from"./formRules-533a1d3b.js";import{__tla as Za}from"./DescriptionForm-9dd92dee.js";import{__tla as ja}from"./Editor-909a16f8.js";import{__tla as Ha}from"./OtherForm-1c47dc38.js";import{__tla as Oa}from"./SkuForm-2bb4ac5f.js";import{__tla as Qa}from"./index-e9635515.js";import{__tla as La}from"./SkuList-6fb63cfd.js";import{__tla as Ca}from"./UploadImg-e02c7cca.js";import{__tla as Ra}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-6838ba42.js";import{__tla as Ba}from"./ProductAttributes-12a60613.js";import{__tla as Ea}from"./el-text-f5267955.js";import{__tla as Ja}from"./property-7e7e0206.js";import{__tla as Xa}from"./ProductPropertyAddForm-15910bd0.js";import{__tla as qa}from"./DeliveryForm-aea7b210.js";import{__tla as Ga}from"./index-97fffb08.js";import{__tla as Ka}from"./Service-aee54f2d.js";import{__tla as Wa}from"./Comment-4845a33b.js";import{__tla as $a}from"./Apply-450eb492.js";import{__tla as te}from"./permission-ed814055.js";let st,ae=Promise.all([(()=>{try{return zt}catch{}})(),(()=>{try{return kt}catch{}})(),(()=>{try{return Tt}catch{}})(),(()=>{try{return Mt}catch{}})(),(()=>{try{return Nt}catch{}})(),(()=>{try{return Vt}catch{}})(),(()=>{try{return Ft}catch{}})(),(()=>{try{return Qt}catch{}})(),(()=>{try{return Ct}catch{}})(),(()=>{try{return Bt}catch{}})(),(()=>{try{return Et}catch{}})(),(()=>{try{return Jt}catch{}})(),(()=>{try{return qt}catch{}})(),(()=>{try{return Kt}catch{}})(),(()=>{try{return Wt}catch{}})(),(()=>{try{return $t}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return aa}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return la}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return Ia}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return Aa}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return Za}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return Qa}catch{}})(),(()=>{try{return La}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Ja}catch{}})(),(()=>{try{return Xa}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Ga}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return $a}catch{}})(),(()=>{try{return te}catch{}})()]).then(async()=>{let Z,j,H,O,Q,L,C,M,R,B,E,J,X,q,G,K,W,$,tt,at,et,rt,lt;Z={key:0,style:{"text-align":"center","margin-top":"50px","font-size":"14px"}},j={key:1},H={class:"rating-title"},O={class:"content"},Q={class:"details"},L={class:"product-model"},C={class:"first-aftersale"},M=A(_t({__name:"Address",props:{obj:{type:Object,default:()=>{}},openSource:{type:String,default:""},userId:{type:Number,default:void 0},addressType:{type:Number,default:void 0}},setup(x){const p=x;console.log(p.addressType);const y=c({}),d=c([]);U(async()=>{d.value=await Lt(),console.log("\u516C\u5171\u552E\u540E\u9875\u9762\uFF0C\u8FDB\u6765\u7684\u7C7B\u578B\u662F:",p.openSource),p.openSource=="MemberUser"&&(async _=>{let i=await Zt(_,p.addressType);Array.isArray(i)||i==null||(i=[i]),y.value=i,console.log("formData",y.value)})(p.userId)});const s=_=>((r,l)=>{const h=[];let o=l;for(;o!==null;){const a=r.get(o);if(!a)break;h.unshift(a.name),o=a.parentId}return h})((r=>{const l=new Map,h=[...r.map(o=>({...o,parentId:null}))];for(;h.length>0;){const o=h.pop();l.set(o.id,{name:o.name,parentId:o.parentId}),o.children&&h.push(...o.children.map(a=>({...a,parentId:o.id})))}return l})(d.value),_).join("");return(_,i)=>t(y)==null||t(y)==""?(n(),v("div",Z," \u6682\u65E0\u5730\u5740 ")):(n(),v("div",j,[(n(!0),v(nt,null,yt(t(y),r=>(n(),v("div",{class:"aftersale-container",key:r},[z("h3",H,u(r.name),1),z("div",O,[z("div",Q,[z("p",L,u(r.mobile),1),z("p",null,u(s(r==null?void 0:r.areaId))+u(r.detailAddress),1),z("p",C,"\u662F\u5426\u9ED8\u8BA4: "+u(r.defaultStatus?"\u662F":"\u5426"),1)])])]))),128))]))}}),[["__scopeId","data-v-c5414a00"],["__file","D:/zx/mall-newfeifan-zx-admin/src/components/ZxTemplate/Address/Address.vue"]]),R=A({__name:"Team",props:{userId:{type:Number,default:0},openSource:{type:String,default:""}},setup:x=>(p,y)=>(n(),v("div",null,[e(Rt,{userId:x.userId,isDetail:!0},null,8,["userId"])]))},[["__file","D:/zx/mall-newfeifan-zx-admin/src/components/ZxTemplate/Team/Team.vue"]]),B={key:0,style:{"margin-top":"10px",padding:"10px"}},E={key:1,style:{"text-align":"center","margin-top":"50px","font-size":"14px"}},J=A({__name:"Points",props:{userId:{type:Number,default:0}},setup(x){const p=c(0),y=x,d=c([]),s=D({pageNo:1,pageSize:10,userId:void 0}),_=async()=>{const i=await jt(s);d.value=i.list,p.value=i.total};return U(()=>{s.userId=y.userId,_()}),(i,r)=>{const l=N,h=Y,o=P;return t(d).length>0?(n(),v("div",B,[e(h,{data:t(d),stripe:!0,"show-overflow-tooltip":!0},{default:m(()=>[e(l,{label:"\u83B7\u5F97",align:"center",prop:"amount"},{default:m(a=>[f(u(t(k)(a.row.amount||0)),1)]),_:1}),e(l,{label:"\u53EF\u7528",align:"center",prop:"afterAmount"},{default:m(a=>[f(u(t(k)(a.row.afterAmount||0)),1)]),_:1}),e(l,{label:"\u5F85\u786E\u6743",align:"center",prop:"freezeAmount"},{default:m(a=>[f(u(t(k)(a.row.freezeAmount||0)),1)]),_:1}),e(l,{label:"\u51BB\u7ED3\u4F59\u989D",align:"center",prop:"afterFreezeAmount"},{default:m(a=>[f(u(t(k)(a.row.afterFreezeAmount||0)),1)]),_:1}),e(l,{label:"\u6700\u5927\u53EF\u7528\u79EF\u5206\u989D\u5EA6\u53D8\u5316\u503C",align:"center",prop:"maxAvailablePointsAmount"},{default:m(a=>[f(u(t(k)(a.row.maxAvailablePointsAmount||0)),1)]),_:1}),e(l,{label:"\u6700\u5927\u53EF\u7528\u79EF\u5206\u989D\u5EA6",align:"center",prop:"afterMaxAvailablePointsAmount"},{default:m(a=>[f(u(t(k)(a.row.afterMaxAvailablePointsAmount||0)),1)]),_:1}),e(l,{label:"\u5408\u8D62\u5956\u8D85\u51FA\u503C",align:"center",prop:"accumulatedQuotaAmount"},{default:m(a=>[f(u(t(k)(a.row.accumulatedQuotaAmount||0)),1)]),_:1}),e(l,{label:"\u76F4\u63A8\u5956\u8D85\u51FA\u503C",align:"center",prop:"ancestorQuotaAmount"},{default:m(a=>[f(u(t(k)(a.row.ancestorQuotaAmount||0)),1)]),_:1}),e(l,{label:"\u7C7B\u522B",align:"center",prop:"profitStatusName",width:"180"},{default:m(a=>[f(u(a.row.profitStatusName)+" "+u(a.row.username?"("+a.row.username+")":""),1)]),_:1}),e(l,{label:"\u65F6\u95F4",align:"center",prop:"createTime",width:"180"},{default:m(a=>[f(u(t(F)(a.row.createTime,"YYYY-MM-DD HH:mm")),1)]),_:1})]),_:1},8,["data"]),e(o,{total:t(p),page:t(s).pageNo,"onUpdate:page":r[0]||(r[0]=a=>t(s).pageNo=a),limit:t(s).pageSize,"onUpdate:limit":r[1]||(r[1]=a=>t(s).pageSize=a),onPagination:_},null,8,["total","page","limit"])])):(n(),v("div",E," \u6682\u65E0\u79EF\u5206\u8BB0\u5F55 "))}}},[["__file","D:/zx/mall-newfeifan-zx-admin/src/components/ZxTemplate/Points/Points.vue"]]),X=A({__name:"Favorite",props:{userId:{type:Number,default:0}},setup:x=>(p,y)=>(n(),v("div",null,[e(Xt,{userId:x.userId,isDetail:!0},null,8,["userId"])]))},[["__file","D:/zx/mall-newfeifan-zx-admin/src/components/ZxTemplate/Favorite/Favorite.vue"]]),q={key:0,style:{"margin-top":"10px",padding:"10px"}},G={key:1,style:{"text-align":"center","margin-top":"50px","font-size":"14px"}},K=A({__name:"Level",props:{userId:{type:Number,default:0}},setup(x){const p=c(0),y=x,d=c([]),s=D({pageNo:1,pageSize:10,userId:void 0}),_=async()=>{const i=await Ht(s);d.value=i.list,p.value=i.total};return U(()=>{s.userId=y.userId,_()}),(i,r)=>{const l=N,h=Y,o=P;return t(d).length>0?(n(),v("div",q,[e(h,{data:t(d),stripe:!0,"show-overflow-tooltip":!0},{default:m(()=>[e(l,{label:"\u6765\u6E90",align:"center",prop:"description"}),e(l,{label:"\u589E\u52A0\u8EAB\u4EF7",align:"center",prop:"variationValue"},{default:m(a=>[f(u(a.row.variationValue),1)]),_:1}),e(l,{label:"\u65F6\u95F4",align:"center",prop:"createTime"},{default:m(a=>[f(u(t(F)(a.row.createTime,"YYYY-MM-DD HH:mm")),1)]),_:1})]),_:1},8,["data"]),e(o,{total:t(p),page:t(s).pageNo,"onUpdate:page":r[0]||(r[0]=a=>t(s).pageNo=a),limit:t(s).pageSize,"onUpdate:limit":r[1]||(r[1]=a=>t(s).pageSize=a),onPagination:_},null,8,["total","page","limit"])])):(n(),v("div",G," \u6682\u65E0\u8EAB\u4EF7\u8BB0\u5F55 "))}}},[["__file","D:/zx/mall-newfeifan-zx-admin/src/components/ZxTemplate/Level/Level.vue"]]),W={key:0,style:{"margin-top":"10px",padding:"10px"}},$={key:1,style:{"text-align":"center","margin-top":"50px","font-size":"14px"}},tt=A({__name:"SignUp",props:{userId:{type:Number,default:0}},setup(x){const p=c(0),y=x,d=c([]),s=D({pageNo:1,pageSize:10,userId:void 0}),_=async()=>{const i=await Ot(s);d.value=i.list,p.value=i.total};return U(()=>{s.userId=y.userId,_()}),(i,r)=>{const l=N,h=Y,o=P;return t(d).length>0?(n(),v("div",W,[e(h,{data:t(d),stripe:!0,"show-overflow-tooltip":!0},{default:m(()=>[e(l,{label:"\u7F16\u53F7",align:"center",prop:"sort"},{default:m(a=>[f(u(a.row.sort),1)]),_:1}),e(l,{label:"\u65F6\u95F4",align:"center",prop:"createTime"},{default:m(a=>[f(u(t(F)(a.row.createTime,"YYYY-MM-DD HH:mm:ss")),1)]),_:1}),e(l,{label:"\u83B7\u5F97\u7684\u8EAB\u4EF7",align:"center",prop:"variationValue"},{default:m(a=>[f(u(a.row.variationValue),1)]),_:1})]),_:1},8,["data"]),e(o,{total:t(p),page:t(s).pageNo,"onUpdate:page":r[0]||(r[0]=a=>t(s).pageNo=a),limit:t(s).pageSize,"onUpdate:limit":r[1]||(r[1]=a=>t(s).pageSize=a),onPagination:_},null,8,["total","page","limit"])])):(n(),v("div",$," \u6682\u65E0\u7B7E\u5230\u8BB0\u5F55 "))}}},[["__file","D:/zx/mall-newfeifan-zx-admin/src/components/ZxTemplate/SignUp/SignUp.vue"]]),at={class:"left"},et={class:"right"},rt=z("div",{style:{clear:"both"}},null,-1),lt={class:"dialog-footer"},st=A(_t({__name:"MemberUserTab",emits:["success"],setup(x,{expose:p,emit:y}){const{t:d}=ht();Gt();const s=c(!1),_=c("info"),i=c(!1),r=c(""),l=c(!1),h=c("view"),o=c({}),a=c("avatar");p({open:async(S,I)=>{I.avatar==""?a.value="\u9ED8\u8BA4\u56FE\u7247":a.value=I.avatar,o.value=I,h.value=S,r.value=d("action."+S),S=="view"&&(r.value="\u67E5\u770B"),S=="view"?l.value=!0:(l.value=!1,_.value="info"),i.value=!0}});const it=y,ot=c(),mt=async()=>{var S;await((S=ot.value)==null?void 0:S.submitForm())&&(it("success"),i.value=!1)};return(S,I)=>{const ut=At,g=bt,pt=xt,ct=St,dt=wt,ft=It;return n(),b(Ut,{title:t(r),modelValue:t(i),"onUpdate:modelValue":I[2]||(I[2]=T=>V(i)?i.value=T:null),width:"70%"},gt({default:m(()=>[vt((n(),b(ct,{style:{"max-height":"650px","min-height":"650px","overflow-y":"auto",border:"none"}},{default:m(()=>[z("div",at,[e(ut,{modelValue:t(a),"onUpdate:modelValue":I[0]||(I[0]=T=>V(a)?a.value=T:null),disabled:t(l)},null,8,["modelValue","disabled"]),e(pt,{modelValue:t(_),"onUpdate:modelValue":I[1]||(I[1]=T=>V(_)?_.value=T:null),"tab-position":"left",class:"child-tabs"},{default:m(()=>[e(g,{label:"\u57FA\u672C\u4FE1\u606F",name:"info"}),t(l)?(n(),v(nt,{key:0},[e(g,{label:"\u8EAB\u4EF7",name:"level"}),e(g,{label:"\u56E2\u961F",name:"team"}),e(g,{label:"\u79EF\u5206",name:"points"}),e(g,{label:"\u770B\u70B9",name:"highlights"}),e(g,{label:"\u4EFB\u52A1",name:"task"}),e(g,{label:"\u8BA2\u5355",name:"order"}),e(g,{label:"\u552E\u540E",name:"aftersales"}),e(g,{label:"\u6536\u85CF",name:"collection"}),e(g,{label:"\u70B9\u8D5E",name:"like"}),e(g,{label:"\u7B7E\u5230",name:"signin"}),e(g,{label:"\u5B9E\u4F53\u6536\u8D27\u5730\u5740",name:"address"}),e(g,{label:"\u865A\u62DF\u6536\u8D27\u5730\u5740",name:"virtualaddress"})],64)):w("",!0)]),_:1},8,["modelValue"])]),z("div",et,[t(_)=="info"?(n(),b(Dt,{key:0,obj:t(o),ref_key:"userFormRef",ref:ot,isDetail:t(l),openType:t(h),avatar:t(a)},null,8,["obj","isDetail","openType","avatar"])):w("",!0),t(_)=="aftersales"?(n(),b(Yt,{key:1,userId:t(o).id,openSource:"MemberUser"},null,8,["userId"])):w("",!0),t(_)=="order"?(n(),b(Pt,{key:2,id:t(o).id,openSource:"MemberUser"},null,8,["id"])):w("",!0),t(_)=="address"?(n(),b(M,{key:3,userId:t(o).id,addressType:1,openSource:"MemberUser"},null,8,["userId"])):w("",!0),t(_)=="team"?(n(),b(R,{key:4,userId:t(o).id,openSource:"MemberUser"},null,8,["userId"])):w("",!0),t(_)=="points"?(n(),b(J,{key:5,userId:t(o).id,openSource:"MemberUser"},null,8,["userId"])):w("",!0),t(_)=="collection"?(n(),b(X,{key:6,userId:t(o).id,openSource:"MemberUser"},null,8,["userId"])):w("",!0),t(_)=="level"?(n(),b(K,{key:7,userId:t(o).id,openSource:"MemberUser"},null,8,["userId"])):w("",!0),t(_)=="signin"?(n(),b(tt,{key:8,userId:t(o).id,openSource:"MemberUser"},null,8,["userId"])):w("",!0),t(_)=="virtualaddress"?(n(),b(M,{key:9,addressType:2,userId:t(o).id,openSource:"MemberUser"},null,8,["userId"])):w("",!0)]),rt]),_:1})),[[ft,t(s)]])]),_:2},[t(l)?void 0:{name:"footer",fn:m(()=>[z("div",lt,[t(l)?w("",!0):(n(),b(dt,{key:0,loading:t(s),type:"primary",onClick:mt},{default:m(()=>[f("\u4FDD\u5B58")]),_:1},8,["loading"]))])]),key:"0"}]),1032,["title","modelValue"])}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/member/user/components/MemberUserTab.vue"]])});export{ae as __tla,st as default};