(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7cadfc10"],{d54f:function(e,t,o){"use strict";o.r(t);var r=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"main-content"},[e._m(0),t("div",{staticClass:"content"},[t("div",{},[t("VueTable",{ref:"table",attrs:{config:e.config},on:{tableCheck:e.tableCheck},scopedSlots:e._u([{key:"score",fn:function(o){return[t("div",[t("el-rate",{attrs:{value:o.data.score/2,colors:e.colors,disabled:""}})],1)]}}])},[t("template",{slot:"footer"},[t("div",{staticClass:"table-footer"},[t("button",{on:{click:function(t){return e.reply(e.table_row)}}},[e._v("回复")])])])],2)],1),t("el-dialog",{attrs:{title:"评价回复",width:"480px",top:"40vh",visible:e.replyDialog},on:{close:function(t){return e.dialogclose()},"update:visible":function(t){e.replyDialog=t}}},[t("div",{staticClass:"dialang-box"},[t("el-input",{staticStyle:{width:"423px",height:"32px"},attrs:{placeholder:"客服回复内容",size:"mini",type:"textarea"},model:{value:e.replyContent,callback:function(t){e.replyContent=t},expression:"replyContent"}})],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"mini"},on:{click:function(t){e.replyDialog=!1}}},[e._v("取 消")]),t("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.replyOk()}}},[e._v("确 定")])],1)])],1)])])},a=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"main-titel"},[t("span",[e._v("评价管理")])])}],l=(o("5bf1"),o("e692")),n={data(){return{thatId:null,photos_Visible:!1,replyContent:null,replyDialog:!1,colors:["#FB4702","#FB4702","#FB4702"],goodsImgsList:[],table_row:[],imglist:[],activeName:"0",config:{thead:[{label:"序号",type:"index",width:"80"},{label:"订单号",prop:"code",width:"120"},{label:"商品名称",prop:"goodsName",width:"auto"},{label:"一级分类名称",prop:"categoryLevelOne",width:"120"},{label:"二级分类名称",prop:"categoryLevelTwo",width:"100"},{label:"评分",prop:"score",width:"auto",type:"slot",slotName:"score"},{label:"评价时间",prop:"evaluationDate",width:"auto"},{label:"评价原因",prop:"evaluationReason",width:"auto"},{label:"评价人姓名",prop:"createName",width:"100"},{label:"评价人手机号",prop:"createTel",width:"auto"},{label:"客户回复内容",prop:"replyContent",width:"auto"},{label:"客户回复时间",prop:"replyDate",width:"auto"}],table_data:[],url:"shopEvaluationList",search_item:[{type:"select",label:"评价",placeholder:"请选择",options:[{value:1,label:"差评"},{value:2,label:"中评"},{value:3,label:"好评"}],prop:"score"},{type:"Int",label:"客户手机号",placeholder:"请输入手机号",prop:"tel"},{type:"select",label:"回复状态",placeholder:"请选择",options:[{value:1,label:"已回复"},{value:2,label:"未回复"}],prop:"replyStatus"}],data:{pageNum:1,size:10}}}},methods:{reply(e){1!=e.length?this.$message({type:"error",message:"请选择一条评价回复"}):null!=e[0].replyContent&&null!=e[0].replyDate?this.$message({type:"error",message:"该评价已回复"}):(console.log(e),this.replyDialog=!0,console.log(e),this.thatId=e[0].id)},replyOk(){if(null==this.replyContent)return void this.$message({type:"error",message:"回复不能为空"});let e={goodsAppointmentId:this.thatId,replyContent:this.replyContent};console.log(e),Object(l["g"])(e).then(e=>{e.status&&this.$message({type:"success",message:e.message})}),this.dialogclose(),this.$refs.table.loadData()},dialogclose(){this.replyDialog=!1,this.thatId=null,this.replyContent=null},tableCheck(e){this.table_row=e}}},s=n,i=o("2877"),u=Object(i["a"])(s,r,a,!1,null,null,null);t["default"]=u.exports},e692:function(e,t,o){"use strict";o.d(t,"m",(function(){return a})),o.d(t,"h",(function(){return l})),o.d(t,"n",(function(){return n})),o.d(t,"a",(function(){return s})),o.d(t,"e",(function(){return i})),o.d(t,"f",(function(){return u})),o.d(t,"c",(function(){return p})),o.d(t,"d",(function(){return d})),o.d(t,"i",(function(){return c})),o.d(t,"j",(function(){return h})),o.d(t,"k",(function(){return f})),o.d(t,"b",(function(){return m})),o.d(t,"l",(function(){return g})),o.d(t,"g",(function(){return b}));var r=o("b775");o("2c37");function a(e){return r["a"].request({method:"POST",url:"shop/supplier/insert",data:e})}function l(e){return r["a"].request({method:"POST",url:"shop/goods/insert",data:e})}function n(e){return r["a"].request({method:"GET",url:"shop/supplier/list",params:e})}function s(e){return r["a"].request({method:"POST",url:"shop/order/arrivalGoods",data:e})}function i(e){return r["a"].request({method:"GET",url:"shop/category/list",params:e})}function u(e){return r["a"].request({method:"POST",url:"shop/category/update",data:e})}function p(e){return r["a"].request({method:"GET",url:"shop/category/delete",params:e})}function d(e){return r["a"].request({method:"POST",url:"shop/category/insert",data:e})}function c(e){return r["a"].request({method:"GET",url:"shop/goods/loading",params:e})}function h(e){return r["a"].request({method:"GET",url:"shop/goods/unloading",params:e})}function f(e){return r["a"].request({method:"POST",url:"shop/order/deliverGoods",data:e})}function m(e){return r["a"].request({method:"GET",url:"shop/refund/exchangeGoods",params:e})}function g(e){return r["a"].request({method:"POST",url:"shop/refund/examine",data:e})}function b(e){return r["a"].request({method:"POST",url:"shop/evaluation/reply",data:e})}}}]); //# sourceMappingURL=chunk-7cadfc10.c27e21f1.js.map