1 |
- import{d as W,h as X,r as c,e as Z,k as $,P as ee,o as _,c as N,f as e,w as t,a as r,m as d,v as w,q as m,g as v,O as ae,t as g,F as U,n as H,x as te,y as le,z as re,U as oe,A as ie,_ as se,B as ne,C as _e,D as pe,ak as ue,d2 as ce,G as me,H as de,__tla as fe}from"./index-2eab2d23.js";import{_ as he,__tla as ye}from"./index.vue_vue_type_script_setup_true_lang-5730b053.js";import{E as we,__tla as ve}from"./el-image-2171f3ff.js";import{__tla as ge}from"./el-image-viewer-5d14bc77.js";import{_ as be,__tla as xe}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{d as ke,__tla as Ve}from"./formatTime-41155543.js";import{a as Ne,u as Ue,__tla as Se}from"./comment-752b9b9d.js";import{_ as Ce,__tla as Pe}from"./CommentForm.vue_vue_type_style_index_0_lang-9a8909e6.js";import{_ as De,__tla as Ie}from"./ReplyForm.vue_vue_type_script_setup_true_lang-3c7138e1.js";import{u as Te,__tla as ze}from"./useMessage-171aa63e.js";import{__tla as Fe}from"./index-cc63c3c4.js";import{__tla as Re}from"./el-card-c558f0ec.js";import{__tla as Ye}from"./Dialog-c2716df6.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as qe}from"./UploadImgs-88de5939.js";import{__tla as He}from"./UploadImgs.vue_vue_type_style_index_0_scoped_0ff04634_lang-20f165d6.js";import{__tla as Ae}from"./UploadImg-90fe71c2.js";import{__tla as Ee}from"./index-d3f876ab.js";import{__tla as Me}from"./SpuShowcase-f48b7c23.js";import{__tla as je}from"./spu-73047b60.js";import{__tla as Be}from"./SpuTableSelect.vue_vue_type_script_setup_true_lang-75d04071.js";import{__tla as Ge}from"./el-tree-select-4ae7c290.js";import"./tree-fd3a041e.js";import{__tla as Oe}from"./category-c573377b.js";import{__tla as Je}from"./SkuTableSelect.vue_vue_type_script_setup_true_lang-2f398842.js";let A,Ke=Promise.all([(()=>{try{return fe}catch{}})(),(()=>{try{return ye}catch{}})(),(()=>{try{return ve}catch{}})(),(()=>{try{return ge}catch{}})(),(()=>{try{return xe}catch{}})(),(()=>{try{return Ve}catch{}})(),(()=>{try{return Se}catch{}})(),(()=>{try{return Pe}catch{}})(),(()=>{try{return Ie}catch{}})(),(()=>{try{return ze}catch{}})(),(()=>{try{return Fe}catch{}})(),(()=>{try{return Re}catch{}})(),(()=>{try{return Ye}catch{}})(),(()=>{try{return qe}catch{}})(),(()=>{try{return He}catch{}})(),(()=>{try{return Ae}catch{}})(),(()=>{try{return Ee}catch{}})(),(()=>{try{return Me}catch{}})(),(()=>{try{return je}catch{}})(),(()=>{try{return Be}catch{}})(),(()=>{try{return Ge}catch{}})(),(()=>{try{return Oe}catch{}})(),(()=>{try{return Je}catch{}})()]).then(async()=>{let S,C;S={class:"row flex items-center gap-x-4px"},C={class:"flex justify-center gap-x-4px"},A=W({name:"ProductComment",__name:"index",setup(Le){const E=Te();X();const f=c(!0),P=c(0),D=c([]),o=Z({pageNo:1,pageSize:10,replyStatus:null,spuName:null,userNickname:null,orderId:null,createTime:[]}),I=c(),p=async()=>{f.value=!0;try{const h=await Ne(o);h.list.forEach(l=>{l.visible||(l.visible=!1)}),D.value=h.list,P.value=h.total}finally{f.value=!1}},T=()=>{o.pageNo=1,p()},M=()=>{I.value.resetFields(),T()},z=c(),F=c();return $(()=>{p()}),(h,l)=>{const R=te,j=le,u=re,b=oe,B=ie,x=se,y=ne,G=_e,Y=be,n=pe,q=we,O=ue,J=ce,K=me,L=he,k=ee("hasPermi"),Q=de;return _(),N(U,null,[e(Y,null,{default:t(()=>[e(G,{class:"-mb-15px",model:r(o),ref_key:"queryFormRef",ref:I,inline:!0,"label-width":"68px"},{default:t(()=>[e(u,{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(u,{label:"\u5546\u54C1\u540D\u79F0",prop:"spuName"},{default:t(()=>[e(b,{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(u,{label:"\u7528\u6237\u540D\u79F0",prop:"userNickname"},{default:t(()=>[e(b,{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(u,{label:"\u8BA2\u5355\u7F16\u53F7",prop:"orderId"},{default:t(()=>[e(b,{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(u,{label:"\u8BC4\u8BBA\u65F6\u95F4",prop:"createTime"},{default:t(()=>[e(B,{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(u,null,{default:t(()=>[e(y,{onClick:T},{default:t(()=>[e(x,{icon:"ep:search",class:"mr-5px"}),d(" \u641C\u7D22 ")]),_:1}),e(y,{onClick:M},{default:t(()=>[e(x,{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 z.value.open(i,s);var i,s})},{default:t(()=>[e(x,{icon:"ep:plus",class:"mr-5px"}),d(" \u6DFB\u52A0\u865A\u62DF\u8BC4\u8BBA ")]),_:1})),[[k,["product:comment:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),e(Y,null,{default:t(()=>[w((_(),m(K,{data:r(D),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(q,{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"])):ae("",!0),v("div",null,g(a.row.spuName),1),(_(!0),N(U,null,H(a.row.skuProperties,i=>(_(),m(O,{key:i.propertyId,class:"mr-10px"},{default:t(()=>[d(g(i.propertyName)+": "+g(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,g(a.row.content),1),v("div",C,[(_(!0),N(U,null,H(a.row.picUrls,(i,s)=>(_(),m(q,{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(ke),width:"180"},null,8,["formatter"]),e(n,{label:"\u662F\u5426\u5C55\u793A",align:"center",width:"80px"},{default:t(a=>[w(e(J,{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 E.confirm(V?"\u662F\u5426\u663E\u793A\u8BC4\u8BBA\uFF1F":"\u662F\u5426\u9690\u85CF\u8BC4\u8BBA\uFF1F"),await Ue({id:s.id,visible:V}),await p()}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"])),[[Q,r(f)]]),e(L,{total:r(P),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:p},null,8,["total","page","limit"])]),_:1}),e(Ce,{ref_key:"formRef",ref:z,onSuccess:p},null,512),e(De,{ref_key:"replyFormRef",ref:F,onSuccess:p},null,512)],64)}}})});export{Ke as __tla,A as default};
|