MemberUserTab-2e26a55f.js 16 KB

1
  1. import{d as _t,r as c,l as U,a as t,o as n,c as v,F as nt,q as yt,g as z,t as u,_ as A,f as e,e as N,w as m,n as f,ea as k,G as D,H as V,h as ht,v as b,aZ as gt,P as w,x as vt,O as P,W as bt,X as xt,C as wt,I as It,__tla as zt}from"./index-00b1998d.js";import{_ as St,__tla as kt}from"./ContentWrap-31b34b9c.js";import{_ as At,__tla as Tt}from"./SPuUploadImg-5b49f02c.js";import{_ as Ut,__tla as Mt}from"./Dialog-5ff7ce4c.js";import Nt,{__tla as Dt}from"./UserForm-16751c4c.js";import{A as Vt,__tla as Pt}from"./AfterSale-420ead3a.js";import{O as Yt,__tla as Ft}from"./Order-cf1360c3.js";import{b as Ht,c as jt,d as Zt,e as Ot,__tla as Qt}from"./index-6269c438.js";import{g as Ct,__tla as Lt}from"./index-8bfa1ed6.js";import qt,{__tla as Gt}from"./index-7d774f66.js";import{_ as Y,__tla as Rt}from"./index-0fc7c908.js";import{f as F,__tla as Wt}from"./formatTime-4e31c660.js";import Xt,{__tla as Bt}from"./index-1bca2602.js";import{u as Et,__tla as Jt}from"./useMessage-437e6444.js";import{__tla as Kt}from"./ContentWrap.vue_vue_type_script_setup_true_lang-d8a41a7a.js";import{__tla as $t}from"./el-card-fa7e872f.js";import{__tla as ta}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-a7a19838.js";import{__tla as aa}from"./index-e14527d5.js";import{__tla as ea}from"./el-image-viewer-612a5a0e.js";import{__tla as ra}from"./el-tree-select-a872ac6f.js";import{__tla as la}from"./dict-29c23f6f.js";import"./tree-0af4953a.js";import{__tla as oa}from"./index-673d8d3b.js";import{__tla as _a}from"./index-e66cd4ef.js";import{__tla as na}from"./index-2230e6bc.js";import{__tla as sa}from"./OrderDeliveryForm-9f1dd455.js";import{__tla as ia}from"./index-c8059554.js";import{__tla as ma}from"./OrderBaseInfo-4cd1b949.js";import{__tla as ua}from"./OrderProduct-3caca8ce.js";import{__tla as pa}from"./el-descriptions-item-cebe3cbb.js";import{__tla as ca}from"./DictTag-5674b0a2.js";import"./color-6e929987.js";import{__tla as da}from"./OrderUpdateRemarkForm-1d1efeba.js";import{__tla as fa}from"./index-d01ce310.js";import"./constants-a3c69b57.js";import{__tla as ya}from"./OrderIndex-0efa6a7e.js";import{__tla as ha}from"./OrderComment-f0db2ac1.js";import{__tla as ga}from"./el-image-69d4404b.js";import{__tla as va}from"./OrderService-44ab0442.js";import{__tla as ba}from"./OrderLogistics-cdfd68ed.js";import{__tla as xa}from"./el-timeline-item-7324aad8.js";import{__tla as wa}from"./orderPay-016b141d.js";import{__tla as Ia}from"./OrderLogs-4c1b2068.js";import{__tla as za}from"./OrderUpdateAddressForm-c797d889.js";import{__tla as Sa}from"./index-1e69ec9e.js";import{__tla as ka}from"./Echart-60d8c43f.js";import{__tla as Aa}from"./Descendants-a61279d6.js";import{__tla as Ta}from"./index-f8911e57.js";import{__tla as Ua}from"./spu-6ce1201b.js";import{__tla as Ma}from"./category-212368af.js";import{__tla as Na}from"./index-cb27b425.js";import{__tla as Da}from"./tagsView-014dbae1.js";import{__tla as Va}from"./InfoForm-1173afb3.js";import{__tla as Pa}from"./UploadImgs-e43488f4.js";import{__tla as Ya}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-fb8088d2.js";import{__tla as Fa}from"./brand-ca262907.js";import{__tla as Ha}from"./formRules-e1a25722.js";import{__tla as ja}from"./DescriptionForm-ec074324.js";import{__tla as Za}from"./Editor-f30dab21.js";import{__tla as Oa}from"./OtherForm-959503e6.js";import{__tla as Qa}from"./SkuForm-1e972126.js";import{__tla as Ca}from"./index-ab203f34.js";import{__tla as La}from"./SkuList-2bc186a5.js";import{__tla as qa}from"./UploadImg-1a4a67d6.js";import{__tla as Ga}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-00d2cd44.js";import{__tla as Ra}from"./ProductAttributes-b005c3ff.js";import{__tla as Wa}from"./el-text-f094ea77.js";import{__tla as Xa}from"./property-3f52b061.js";import{__tla as Ba}from"./ProductPropertyAddForm-2a057e0c.js";import{__tla as Ea}from"./DeliveryForm-943d89ed.js";import{__tla as Ja}from"./index-2a297292.js";import{__tla as Ka}from"./Service-f264f699.js";import{__tla as $a}from"./Comment-5a0c3ec6.js";let st,te=Promise.all([(()=>{try{return zt}catch{}})(),(()=>{try{return kt}catch{}})(),(()=>{try{return Tt}catch{}})(),(()=>{try{return Mt}catch{}})(),(()=>{try{return Dt}catch{}})(),(()=>{try{return Pt}catch{}})(),(()=>{try{return Ft}catch{}})(),(()=>{try{return Qt}catch{}})(),(()=>{try{return Lt}catch{}})(),(()=>{try{return Gt}catch{}})(),(()=>{try{return Rt}catch{}})(),(()=>{try{return Wt}catch{}})(),(()=>{try{return Bt}catch{}})(),(()=>{try{return Jt}catch{}})(),(()=>{try{return Kt}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 Na}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return Za}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return Qa}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return La}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Ga}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return Xa}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Ja}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return $a}catch{}})()]).then(async()=>{let H,j,Z,O,Q,C,L,M,q,G,R,W,X,B,E,J,K,$,tt,at,et,rt,lt;H={key:0,style:{"text-align":"center","margin-top":"50px","font-size":"14px"}},j={key:1},Z={class:"rating-title"},O={class:"content"},Q={class:"details"},C={class:"product-model"},L={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 Ct(),console.log("\u516C\u5171\u552E\u540E\u9875\u9762\uFF0C\u8FDB\u6765\u7684\u7C7B\u578B\u662F:",p.openSource),p.openSource=="MemberUser"&&(async _=>{let i=await Ht(_,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",H," \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",Z,u(r.name),1),z("div",O,[z("div",Q,[z("p",C,u(r.mobile),1),z("p",null,u(s(r==null?void 0:r.areaId))+u(r.detailAddress),1),z("p",L,"\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"]]),q=A({__name:"Team",props:{userId:{type:Number,default:0},openSource:{type:String,default:""}},setup:x=>(p,y)=>(n(),v("div",null,[e(qt,{userId:x.userId,isDetail:!0},null,8,["userId"])]))},[["__file","D:/zx/mall-newfeifan-zx-admin/src/components/ZxTemplate/Team/Team.vue"]]),G={key:0,style:{"margin-top":"10px",padding:"10px"}},R={key:1,style:{"text-align":"center","margin-top":"50px","font-size":"14px"}},W=A({__name:"Points",props:{userId:{type:Number,default:0}},setup(x){const p=c(0),y=x,d=c([]),s=N({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=D,h=V,o=Y;return t(d).length>0?(n(),v("div",G,[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",R," \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"]]),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:"Level",props:{userId:{type:Number,default:0}},setup(x){const p=c(0),y=x,d=c([]),s=N({pageNo:1,pageSize:10,userId:void 0}),_=async()=>{const i=await Zt(s);d.value=i.list,p.value=i.total};return U(()=>{s.userId=y.userId,_()}),(i,r)=>{const l=D,h=V,o=Y;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:"\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",E," \u6682\u65E0\u8EAB\u4EF7\u8BB0\u5F55 "))}}},[["__file","D:/zx/mall-newfeifan-zx-admin/src/components/ZxTemplate/Level/Level.vue"]]),K={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=N({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=D,h=V,o=Y;return t(d).length>0?(n(),v("div",K,[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();Et();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=>P(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=>P(a)?a.value=T:null),disabled:t(l)},null,8,["modelValue","disabled"]),e(pt,{modelValue:t(_),"onUpdate:modelValue":I[1]||(I[1]=T=>P(_)?_.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(Nt,{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(Vt,{key:1,userId:t(o).id,openSource:"MemberUser"},null,8,["userId"])):w("",!0),t(_)=="order"?(n(),b(Yt,{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(q,{key:4,userId:t(o).id,openSource:"MemberUser"},null,8,["userId"])):w("",!0),t(_)=="points"?(n(),b(W,{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(J,{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{te as __tla,st as default};