(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-827006fc"],{"4efc":function(t,e,a){"use strict";a("681b")},"681b":function(t,e,a){},e562:function(t,e,a){"use strict";a.r(e);var l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:product:reply:list"],expression:"['platform:product:reply:list']"}],staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{inline:!0}},[a("el-form-item",{staticClass:"width100",attrs:{label:"时间选择:"}},[a("el-radio-group",{staticClass:"mr20",attrs:{type:"button",size:"small"},on:{change:function(e){return t.selectChange(t.tableFrom.dateLimit)}},model:{value:t.tableFrom.dateLimit,callback:function(e){t.$set(t.tableFrom,"dateLimit",e)},expression:"tableFrom.dateLimit"}},t._l(t.fromList.fromTxt,(function(e,l){return a("el-radio-button",{key:l,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1),t._v(" "),a("el-date-picker",{staticStyle:{width:"220px"},attrs:{"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间"},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),a("el-form-item",{staticClass:"mr10",attrs:{label:"评价状态:"}},[a("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择评价状态",size:"small",clearable:""},on:{change:t.seachList},model:{value:t.tableFrom.isReply,callback:function(e){t.$set(t.tableFrom,"isReply",e)},expression:"tableFrom.isReply"}},[a("el-option",{attrs:{label:"已回复",value:"1"}}),t._v(" "),a("el-option",{attrs:{label:"未回复",value:"0"}})],1)],1),t._v(" "),a("el-form-item",{staticClass:"mr10",attrs:{label:"商品搜索:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品名称",size:"small",clearable:""},model:{value:t.tableFrom.productSearch,callback:function(e){t.$set(t.tableFrom,"productSearch","string"===typeof e?e.trim():e)},expression:"tableFrom.productSearch"}},[a("el-button",{attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:t.seachList},slot:"append"})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"用户名称:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入用户名称",size:"small",clearable:""},model:{value:t.tableFrom.nickname,callback:function(e){t.$set(t.tableFrom,"nickname","string"===typeof e?e.trim():e)},expression:"tableFrom.nickname"}},[a("el-button",{attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:t.seachList},slot:"append"})],1)],1),t._v(" "),a("el-form-item",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:merchant:page:list"],expression:"['platform:merchant:page:list']"}],attrs:{label:"商户名称:"}},[a("merchant-name",{on:{getMerId:t.getMerId}})],1)],1)],1)]),t._v(" "),a("el-table",{attrs:{data:t.tableData.data,size:"mini","header-cell-style":{fontWeight:"bold"}}},[a("el-table-column",{attrs:{prop:"id",label:"ID",width:"50"}}),t._v(" "),a("el-table-column",{attrs:{label:"商品信息",prop:"productImage","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.productName?a("div",{staticClass:"demo-image__preview acea-row row-middle"},[a("el-image",{staticClass:"mr10",staticStyle:{width:"30px",height:"30px"},attrs:{src:e.row.productImage,"preview-src-list":[e.row.productImage]}}),t._v(" "),a("div",{staticClass:"info"},[t._v(t._s(e.row.productName))])],1):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"merName",label:"商户名称","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{label:"用户名称","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:1==e.row.isLogoff?"red":""},[t._v(t._s(e.row.nickname))]),t._v(" "),1==e.row.isLogoff?a("span",{class:1==e.row.isLogoff?"red":""},[t._v("|")]):t._e(),t._v(" "),1==e.row.isLogoff?a("span",{staticClass:"red"},[t._v("(已注销)")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"star",label:"评价星级","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{prop:"comment",label:"评价内容","min-width":"210"}}),t._v(" "),a("el-table-column",{attrs:{prop:"merchantReplyContent",label:"回复内容","min-width":"250","show-overflow-tooltip":!0}}),t._v(" "),a("el-table-column",{attrs:{label:"评价时间","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(" "+t._s(e.row.createTime||"-"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"120",fixed:"right",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:product:reply:delete"],expression:"['platform:product:reply:delete']"}],attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.id,e.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},i=[],s=a("6ed5"),o=a("c4c8"),r=a("ed08"),n=a("c24f"),c=a("e350"),m={name:"StoreComment",filters:{formatDate:function(t){if(0!==t){var e=new Date(1e3*t);return Object(r["c"])(e,"yyyy-MM-dd hh:mm")}}},components:{merchantName:s["a"]},data:function(){return{props:{children:"child",label:"name",value:"id",emitPath:!1},fromList:this.$constants.fromList,tableData:{data:[],total:0},listLoading:!1,tableFrom:{page:1,limit:20,isReply:"",dateLimit:"",merId:"",nickname:"",productSearch:"",isDel:!1},timeVal:[],loading:!1,uids:[],options:[],timer:""}},watch:{$route:function(t,e){this.getList()}},mounted:function(){Object(c["a"])(["platform:product:reply:list"])&&this.getList()},methods:{checkPermi:c["a"],remoteMethod:function(t){var e=this;""!==t?(this.loading=!0,setTimeout((function(){e.loading=!1,Object(n["B"])({keywords:t,page:1,limit:10}).then((function(t){e.options=t.list}))}),200)):this.options=[]},getMerId:function(t){this.tableFrom.merId=t,this.seachList()},seachList:function(){this.tableFrom.page=1,this.getList()},selectChange:function(t){this.timeVal=[],this.tableFrom.page=1,this.getList()},onchangeTime:function(t){this.timeVal=t,this.tableFrom.dateLimit=t?this.timeVal.join(","):"",this.tableFrom.page=1,this.getList()},handleDelete:function(t,e){var a=this;this.$modalSure().then((function(){Object(o["E"])(t).then((function(){a.$message.success("删除成功"),a.tableData.data.splice(e,1)}))}))},getList:function(){var t=this;this.listLoading=!0,this.tableFrom.uid=this.uids.join(","),Object(o["F"])(this.tableFrom).then((function(e){t.tableData.data=e.list,t.tableData.total=e.total,t.listLoading=!1})).catch((function(){t.listLoading=!1}))},pageChange:function(t){this.tableFrom.page=t,this.getList()},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList()}}},d=m,p=(a("4efc"),a("2877")),u=Object(p["a"])(d,l,i,!1,null,"d1dc85e6",null);e["default"]=u.exports}}]);