1 |
- import{d as L,P as O,r as p,x as $,b as ee,a4 as ae,o as _,c as N,f as e,A as t,a as r,D as d,k as w,C as m,B as v,a3 as te,E as b,F as U,R as M,S as le,U as re,V as oe,a9 as ie,I as se,Q as ne,J as _e,W as ue,X as ce,aw as pe,cJ as me,Y as de,Z as fe,_ as he,__tla as ye}from"./index-54aa57d8.js";import{_ as we,__tla as ve}from"./index-e6a7fd1e.js";import{E as be,__tla as xe}from"./el-image-94dad5a7.js";import{__tla as ge}from"./el-image-viewer-ec0edec4.js";import{_ as ke,__tla as Ve}from"./ContentWrap-260746ab.js";import{d as Ne,__tla as Ue}from"./formatTime-e6197688.js";import{a as Se,u as Ce,__tla as Pe}from"./comment-4f8ffefd.js";import De,{__tla as Ie}from"./CommentForm-5fdc815e.js";import Te,{__tla as ze}from"./ReplyForm-527533a3.js";import{u as Ye,__tla as Fe}from"./useMessage-f56cafbb.js";import{__tla as Re}from"./index-254a9b5e.js";import{__tla as Ee}from"./el-card-e7d6628c.js";import{__tla as He}from"./Dialog-7bb778a5.js";import{__tla as Me}from"./UploadImgs-1c3a9b0d.js";import{__tla as qe}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-6e3f8f3f.js";import{__tla as Je}from"./UploadImg-46306ddf.js";import{__tla as Xe}from"./index-1a846221.js";import{__tla as je}from"./SpuShowcase-1e55a0db.js";import{__tla as Ae}from"./spu-b4744276.js";import{__tla as Be}from"./SpuTableSelect-082c4e0a.js";import{__tla as Qe}from"./el-tree-select-20b2a9f3.js";import"./tree-0af4953a.js";import{__tla as We}from"./category-25a5e37a.js";import{__tla as Ze}from"./SkuTableSelect-fd181a4d.js";let q,Ge=Promise.all([(()=>{try{return ye}catch{}})(),(()=>{try{return ve}catch{}})(),(()=>{try{return xe}catch{}})(),(()=>{try{return ge}catch{}})(),(()=>{try{return Ve}catch{}})(),(()=>{try{return Ue}catch{}})(),(()=>{try{return Pe}catch{}})(),(()=>{try{return Ie}catch{}})(),(()=>{try{return ze}catch{}})(),(()=>{try{return Fe}catch{}})(),(()=>{try{return Re}catch{}})(),(()=>{try{return Ee}catch{}})(),(()=>{try{return He}catch{}})(),(()=>{try{return Me}catch{}})(),(()=>{try{return qe}catch{}})(),(()=>{try{return Je}catch{}})(),(()=>{try{return Xe}catch{}})(),(()=>{try{return je}catch{}})(),(()=>{try{return Ae}catch{}})(),(()=>{try{return Be}catch{}})(),(()=>{try{return Qe}catch{}})(),(()=>{try{return We}catch{}})(),(()=>{try{return Ze}catch{}})()]).then(async()=>{let S,C,P;S={class:"row flex items-center gap-x-4px"},C={class:"flex justify-center gap-x-4px"},P=L({name:"ProductComment",__name:"index",setup(Ke){const J=Ye();O();const f=p(!0),D=p(0),I=p([]),o=$({pageNo:1,pageSize:10,replyStatus:null,spuName:null,userNickname:null,orderId:null,createTime:[]}),T=p(),u=async()=>{f.value=!0;try{const h=await Se(o);h.list.forEach(l=>{l.visible||(l.visible=!1)}),I.value=h.list,D.value=h.total}finally{f.value=!1}},z=()=>{o.pageNo=1,u()},X=()=>{T.value.resetFields(),z()},Y=p(),F=p();return ee(()=>{u()}),(h,l)=>{const R=le,j=re,c=oe,x=ie,A=se,g=ne,y=_e,B=ue,E=ke,n=ce,H=be,Q=pe,W=me,Z=de,G=we,k=ae("hasPermi"),K=fe;return _(),N(U,null,[e(E,null,{default:t(()=>[e(B,{class:"-mb-15px",model:r(o),ref_key:"queryFormRef",ref:T,inline:!0,"label-width":"68px"},{default:t(()=>[e(c,{label:"\u56DE\u590D\u72B6\u6001",prop:"replyStatus"},{default:t(()=>[e(j,{modelValue:r(o).replyStatus,"onUpdate:modelValue":l[0]||(l[0]=a=>r(o).replyStatus=a)},{default:t(()=>[e(R,{label:"\u5DF2\u56DE\u590D",value:!0}),e(R,{label:"\u672A\u56DE\u590D",value:!1})]),_:1},8,["modelValue"])]),_:1}),e(c,{label:"\u5546\u54C1\u540D\u79F0",prop:"spuName"},{default:t(()=>[e(x,{modelValue:r(o).spuName,"onUpdate:modelValue":l[1]||(l[1]=a=>r(o).spuName=a),placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u7528\u6237\u540D\u79F0",prop:"userNickname"},{default:t(()=>[e(x,{modelValue:r(o).userNickname,"onUpdate:modelValue":l[2]||(l[2]=a=>r(o).userNickname=a),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u8BA2\u5355\u7F16\u53F7",prop:"orderId"},{default:t(()=>[e(x,{modelValue:r(o).orderId,"onUpdate:modelValue":l[3]||(l[3]=a=>r(o).orderId=a),placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u8BC4\u8BBA\u65F6\u95F4",prop:"createTime"},{default:t(()=>[e(A,{modelValue:r(o).createTime,"onUpdate:modelValue":l[4]||(l[4]=a=>r(o).createTime=a),"value-format":"YYYY-MM-DD HH:mm:ss",type:"daterange","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-240px"},null,8,["modelValue","default-time"])]),_:1}),e(c,null,{default:t(()=>[e(y,{onClick:z},{default:t(()=>[e(g,{icon:"ep:search",class:"mr-5px"}),d(" \u641C\u7D22 ")]),_:1}),e(y,{onClick:X},{default:t(()=>[e(g,{icon:"ep:refresh",class:"mr-5px"}),d(" \u91CD\u7F6E ")]),_:1}),w((_(),m(y,{type:"primary",plain:"",onClick:l[5]||(l[5]=a=>{return i="create",void Y.value.open(i,s);var i,s})},{default:t(()=>[e(g,{icon:"ep:plus",class:"mr-5px"}),d(" \u6DFB\u52A0\u865A\u62DF\u8BC4\u8BBA ")]),_:1})),[[k,["product:comment:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),e(E,null,{default:t(()=>[w((_(),m(Z,{data:r(I),stripe:!0,"show-overflow-tooltip":!1},{default:t(()=>[e(n,{label:"\u8BC4\u8BBA\u7F16\u53F7",align:"center",prop:"id","min-width":"80"}),e(n,{label:"\u5546\u54C1\u4FE1\u606F",align:"center","min-width":"400"},{default:t(a=>[v("div",S,[a.row.skuPicUrl?(_(),m(H,{key:0,src:a.row.skuPicUrl,"preview-src-list":[a.row.skuPicUrl],class:"h-40px w-40px shrink-0","preview-teleported":""},null,8,["src","preview-src-list"])):te("",!0),v("div",null,b(a.row.spuName),1),(_(!0),N(U,null,M(a.row.skuProperties,i=>(_(),m(Q,{key:i.propertyId,class:"mr-10px"},{default:t(()=>[d(b(i.propertyName)+": "+b(i.valueName),1)]),_:2},1024))),128))])]),_:1}),e(n,{label:"\u7528\u6237\u540D\u79F0",align:"center",prop:"userNickname",width:"100"}),e(n,{label:"\u5546\u54C1\u8BC4\u5206",align:"center",prop:"descriptionScores",width:"90"}),e(n,{label:"\u670D\u52A1\u8BC4\u5206",align:"center",prop:"benefitScores",width:"90"}),e(n,{label:"\u8BC4\u8BBA\u5185\u5BB9",align:"center",prop:"content","min-width":"210"},{default:t(a=>[v("p",null,b(a.row.content),1),v("div",C,[(_(!0),N(U,null,M(a.row.picUrls,(i,s)=>(_(),m(H,{key:s,src:i,"preview-src-list":a.row.picUrls,"initial-index":s,class:"h-40px w-40px","preview-teleported":""},null,8,["src","preview-src-list","initial-index"]))),128))])]),_:1}),e(n,{label:"\u56DE\u590D\u5185\u5BB9",align:"center",prop:"replyContent","min-width":"250","show-overflow-tooltip":""}),e(n,{label:"\u8BC4\u8BBA\u65F6\u95F4",align:"center",prop:"createTime",formatter:r(Ne),width:"180"},null,8,["formatter"]),e(n,{label:"\u662F\u5426\u5C55\u793A",align:"center",width:"80px"},{default:t(a=>[w(e(W,{modelValue:a.row.visible,"onUpdate:modelValue":i=>a.row.visible=i,"active-value":!0,"inactive-value":!1,onChange:i=>(async s=>{if(f.value)return;let V=s.visible;try{await J.confirm(V?"\u662F\u5426\u663E\u793A\u8BC4\u8BBA\uFF1F":"\u662F\u5426\u9690\u85CF\u8BC4\u8BBA\uFF1F"),await Ce({id:s.id,visible:V}),await u()}catch{s.visible=!V}})(a.row)},null,8,["modelValue","onUpdate:modelValue","onChange"]),[[k,["product:comment:update"]]])]),_:1}),e(n,{label:"\u64CD\u4F5C",align:"center","min-width":"60px",fixed:"right"},{default:t(a=>[w((_(),m(y,{link:"",type:"primary",onClick:i=>{return s=a.row.id,void F.value.open(s);var s}},{default:t(()=>[d(" \u56DE\u590D ")]),_:2},1032,["onClick"])),[[k,["product:comment:update"]]])]),_:1})]),_:1},8,["data"])),[[K,r(f)]]),e(G,{total:r(D),page:r(o).pageNo,"onUpdate:page":l[6]||(l[6]=a=>r(o).pageNo=a),limit:r(o).pageSize,"onUpdate:limit":l[7]||(l[7]=a=>r(o).pageSize=a),onPagination:u},null,8,["total","page","limit"])]),_:1}),e(De,{ref_key:"formRef",ref:Y,onSuccess:u},null,512),e(Te,{ref_key:"replyFormRef",ref:F,onSuccess:u},null,512)],64)}}}),q=he(P,[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/product/comment/index.vue"]])});export{Ge as __tla,q as default};
|