1 line
27 KiB
JavaScript
1 line
27 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e1a358f8"],{"3bbe":function(t,e,a){var n=a("861d");t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"5a4a":function(t,e,a){"use strict";a.d(e,"B",(function(){return r})),a.d(e,"d",(function(){return o})),a.d(e,"G",(function(){return i})),a.d(e,"z",(function(){return s})),a.d(e,"r",(function(){return l})),a.d(e,"y",(function(){return c})),a.d(e,"W",(function(){return u})),a.d(e,"A",(function(){return d})),a.d(e,"F",(function(){return f})),a.d(e,"D",(function(){return m})),a.d(e,"f",(function(){return p})),a.d(e,"e",(function(){return h})),a.d(e,"g",(function(){return g})),a.d(e,"i",(function(){return b})),a.d(e,"w",(function(){return v})),a.d(e,"ab",(function(){return _})),a.d(e,"o",(function(){return y})),a.d(e,"Z",(function(){return w})),a.d(e,"C",(function(){return x})),a.d(e,"H",(function(){return C})),a.d(e,"q",(function(){return O})),a.d(e,"c",(function(){return j})),a.d(e,"h",(function(){return D})),a.d(e,"b",(function(){return k})),a.d(e,"u",(function(){return I})),a.d(e,"N",(function(){return S})),a.d(e,"m",(function(){return z})),a.d(e,"L",(function(){return N})),a.d(e,"x",(function(){return $})),a.d(e,"db",(function(){return M})),a.d(e,"j",(function(){return T})),a.d(e,"cb",(function(){return E})),a.d(e,"t",(function(){return F})),a.d(e,"J",(function(){return R})),a.d(e,"l",(function(){return L})),a.d(e,"I",(function(){return V})),a.d(e,"v",(function(){return A})),a.d(e,"S",(function(){return P})),a.d(e,"n",(function(){return G})),a.d(e,"R",(function(){return B})),a.d(e,"bb",(function(){return H})),a.d(e,"E",(function(){return U})),a.d(e,"s",(function(){return J})),a.d(e,"X",(function(){return Y})),a.d(e,"T",(function(){return q})),a.d(e,"Y",(function(){return X})),a.d(e,"V",(function(){return Z})),a.d(e,"Q",(function(){return K})),a.d(e,"k",(function(){return Q})),a.d(e,"M",(function(){return W})),a.d(e,"a",(function(){return tt})),a.d(e,"K",(function(){return et})),a.d(e,"U",(function(){return at})),a.d(e,"P",(function(){return nt})),a.d(e,"p",(function(){return rt})),a.d(e,"O",(function(){return ot}));var n=a("b775");function r(t){return Object(n["a"])({url:"channel/good/good-render",method:"get",params:t})}function o(t){return Object(n["a"])({url:"channel/good/attr-show",method:"get",params:t})}function i(t){return Object(n["a"])({url:"channel/good/goods-save",method:"post",data:t})}function s(t){return Object(n["a"])({url:"channel/good/good-detail",method:"get",params:t})}function l(t){return Object(n["a"])({url:"channel/good/get-good-list",method:"get",params:t})}function c(t){return Object(n["a"])({url:"channel/good/good-del",method:"post",data:t})}function u(t){return Object(n["a"])({url:"channel/good/set-good-num",method:"post",data:t})}function d(t){return Object(n["a"])({url:"channel/good/good-down",method:"post",data:t})}function f(t){return Object(n["a"])({url:"channel/good/goods-recovery",method:"post",data:t})}function m(t){return Object(n["a"])({url:"channel/good/good-usave",method:"post",data:t})}function p(t){return Object(n["a"])({url:"channel/category/get-category-list",method:"get",params:t})}function h(t){return Object(n["a"])({url:"channel/category/category-del",method:"post",data:t})}function g(t){return Object(n["a"])({url:"channel/category/category-save",method:"post",data:t})}function b(t){return Object(n["a"])({url:"channel/category/change-switch",method:"post",data:t})}function v(t){return Object(n["a"])({url:"channel/specs/get-specs-list",method:"get",params:t})}function _(t){return Object(n["a"])({url:"channel/specs/specs-save",method:"post",data:t})}function y(t){return Object(n["a"])({url:"channel/specs/change-specs",method:"post",data:t})}function w(t){return Object(n["a"])({url:"channel/specs/specs-del",method:"post",data:t})}function x(t){return Object(n["a"])({url:"channel/good/specs-list",method:"post",data:t})}function C(t){return Object(n["a"])({url:"channel/good/specs-save",method:"post",data:t})}function O(t){return Object(n["a"])({url:"channel/attribute/get-attr-list",method:"get",params:t})}function j(t){return Object(n["a"])({url:"channel/attribute/attr-save",method:"post",data:t})}function D(t){return Object(n["a"])({url:"channel/attribute/change-attr",method:"post",data:t})}function k(t){return Object(n["a"])({url:"channel/attribute/attr-del",method:"post",data:t})}function I(t){return Object(n["a"])({url:"channel/material/get-materia-list",method:"get",params:t})}function S(t){return Object(n["a"])({url:"channel/material/meteria-save",method:"post",data:t})}function z(t){return Object(n["a"])({url:"channel/material/change-materia",method:"post",data:t})}function N(t){return Object(n["a"])({url:"channel/material/materia-del",method:"post",data:t})}function $(t){return Object(n["a"])({url:"channel/unit/get-unit-list",method:"get",params:t})}function M(t){return Object(n["a"])({url:"channel/unit/unit-save",method:"post",data:t})}function T(t){return Object(n["a"])({url:"channel/unit/change-display",method:"post",data:t})}function E(t){return Object(n["a"])({url:"channel/unit/unit-del",method:"post",data:t})}function F(t){return Object(n["a"])({url:"channel/good-label/get-label-list",method:"get",params:t})}function R(t){return Object(n["a"])({url:"channel/good-label/label-save",method:"post",data:t})}function L(t){return Object(n["a"])({url:"channel/good-label/change-label",method:"post",data:t})}function V(t){return Object(n["a"])({url:"channel/good-label/label-del",method:"post",data:t})}function A(t){return Object(n["a"])({url:"channel/print/get-print-list",method:"get",params:t})}function P(t){return Object(n["a"])({url:"channel/print/print-save",method:"post",data:t})}function G(t){return Object(n["a"])({url:"channel/print/change-print",method:"post",data:t})}function B(t){return Object(n["a"])({url:"channel/print/print-del",method:"post",data:t})}function H(t){return Object(n["a"])({url:"channel/good/synchro-goods",method:"post",data:t})}function U(t){return Object(n["a"])({url:"channel/activity/goods-activity-list",method:"get",params:t})}function J(t){return Object(n["a"])({url:"channel/activity/save-goods-activity",method:"get",params:t})}function Y(t){return Object(n["a"])({url:"channel/activity/save-goods-activity",method:"post",data:t})}function q(t){return Object(n["a"])({url:"channel/activity/modify-goods-activity",method:"post",data:t})}function X(t){return Object(n["a"])({url:"channel/category/special-category",method:"get",params:t})}function Z(t){return Object(n["a"])({url:"channel/category/save-special",method:"post",data:t})}function K(t){return Object(n["a"])({url:"channel/category/modify-special",method:"post",data:t})}function Q(t){return Object(n["a"])({url:"channel/good/change-goods",method:"post",data:t})}function W(t){return Object(n["a"])({url:"channel/good/merge-goods",method:"post",data:t})}function tt(t){return Object(n["a"])({url:"channel/good/all-down",method:"post",data:t})}function et(t){return Object(n["a"])({url:"channel/comment/label-list",method:"get",params:t})}function at(t){return Object(n["a"])({url:"channel/comment/save-label",method:"post",data:t})}function nt(t){return Object(n["a"])({url:"channel/comment/modify-label",method:"post",data:t})}function rt(t){return Object(n["a"])({url:"channel/comment/comment-list",method:"get",params:t})}function ot(t){return Object(n["a"])({url:"channel/comment/modify-comment",method:"post",data:t})}},7156:function(t,e,a){var n=a("861d"),r=a("d2bb");t.exports=function(t,e,a){var o,i;return r&&"function"==typeof(o=e.constructor)&&o!==a&&n(i=o.prototype)&&i!==a.prototype&&r(t,i),t}},a188:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{},[a("el-dialog",{attrs:{title:t.title,visible:t.dialogFormVisible,width:"55%","close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogFormVisible=e},close:t.close}},[a("div",{},[a("el-form",{ref:"form",attrs:{model:t.form,"label-width":"120px"}},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",{staticClass:"bflex-4"},[a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("订单信息")])])]),a("div",{staticClass:"formBox"},[a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[t._v("订单类型:")]),a("div",[a("span",[a("el-tag",{attrs:{size:"mini",type:"success"}},[t._v("评价详情")])],1)])]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[t._v("提交时间:")]),a("div",[t._v(t._s(t.orderDetail.createdAt))])]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[t._v("用户信息:")]),a("div",[t._v(t._s(t.orderDetail.userName)+"(UID:"+t._s(t.orderDetail.id)+")")])]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[t._v("订单状态:")]),a("div",{staticClass:"flex flex-center"},[a("div",["1"==t.orderDetail.state?a("div",[a("el-tag",{attrs:{size:"mini"}},[t._v("待审核")])],1):t._e(),"2"==t.orderDetail.state?a("div",[a("el-tag",{attrs:{size:"mini",type:"success"}},[t._v("已通过")])],1):t._e(),"3"==t.orderDetail.state?a("div",[a("el-tag",{attrs:{size:"mini",type:"danger"}},[t._v("已拒绝")])],1):t._e()])])])])]),a("div",{staticClass:"bflex-6 mar_l20"},[a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("评价详情")])])]),a("div",{staticClass:"formBox"},[a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[t._v("评分:")]),a("div",[a("el-rate",{attrs:{disabled:"","show-score":"","text-color":"#ff9900","score-template":"{value}"},model:{value:t.orderDetail.star,callback:function(e){t.$set(t.orderDetail,"star",t._n(e))},expression:"orderDetail.star"}})],1)]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[t._v("评价内容:")]),a("div",{staticClass:"flex"},[t._v(t._s(t.orderDetail.body))])]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[t._v("评价图片:")]),a("div",{staticClass:"flex"},[t.orderDetail.media?a("div",{staticClass:"flex mar_t10"},t._l(t.orderDetail.media,(function(t,e){return a("div",{key:e},[a("img",{staticClass:"goodlogo bor_rad5",attrs:{src:t}})])})),0):t._e()])]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[t._v("商家回复:"+t._s(t.orderDetail.reply))]),a("div")])])])])])],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"medium"},on:{click:t.close}},[t._v("取 消")]),a("el-button",{attrs:{size:"medium",type:"primary"},on:{click:t.save}},[t._v("确 定")])],1)])],1)},r=[],o=(a("96cf"),a("1da1")),i={name:"goodlistedit",created:function(){},data:function(){return{form:{id:"",sort:"1",name:"",min:"",max:"",minute:""},orderDetail:{},title:"",type:1,dialogFormVisible:!1,qjjl:[],qjjl2:[]}},components:{},methods:{showEdit:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t?(e.title="评价详情",e.orderDetail=Object.assign({},t)):e.title="评价详情",e.dialogFormVisible=!0;case 2:case"end":return a.stop()}}),a)})))()},close:function(){this.dialogFormVisible=!1},setStoreId:function(t){this.form.storeId=t},save:function(){this.dialogFormVisible=!1}}},s=i,l=a("2877"),c=Object(l["a"])(s,n,r,!1,null,null,null);e["a"]=c.exports},a9e3:function(t,e,a){"use strict";var n=a("83ab"),r=a("da84"),o=a("94ca"),i=a("6eeb"),s=a("5135"),l=a("c6b6"),c=a("7156"),u=a("c04e"),d=a("d039"),f=a("7c73"),m=a("241c").f,p=a("06cf").f,h=a("9bf2").f,g=a("58a8").trim,b="Number",v=r[b],_=v.prototype,y=l(f(_))==b,w=function(t){var e,a,n,r,o,i,s,l,c=u(t,!1);if("string"==typeof c&&c.length>2)if(c=g(c),e=c.charCodeAt(0),43===e||45===e){if(a=c.charCodeAt(2),88===a||120===a)return NaN}else if(48===e){switch(c.charCodeAt(1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+c}for(o=c.slice(2),i=o.length,s=0;s<i;s++)if(l=o.charCodeAt(s),l<48||l>r)return NaN;return parseInt(o,n)}return+c};if(o(b,!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var x,C=function(t){var e=arguments.length<1?0:t,a=this;return a instanceof C&&(y?d((function(){_.valueOf.call(a)})):l(a)!=b)?c(new v(w(e)),a,C):w(e)},O=n?m(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),j=0;O.length>j;j++)s(v,x=O[j])&&!s(C,x)&&h(C,x,p(v,x));C.prototype=_,_.constructor=C,i(r,b,C)}},bf19:function(t,e,a){"use strict";var n=a("23e7");n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},d2bb:function(t,e,a){var n=a("825a"),r=a("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,a={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(a,[]),e=a instanceof Array}catch(o){}return function(a,o){return n(a),r(o),e?t.call(a,o):a.__proto__=o,a}}():void 0)},ed08:function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return o}));a("a9e3"),a("ac1f"),a("5319"),a("bf19");function n(t){var e=new Date(t).toJSON(),a=new Date(+new Date(e)+288e5).toISOString().replace(/T/g," ").replace(/\.[\d]{3}Z/,"");return a}function r(t){var e=new Date(t),a=e.getFullYear(),n=e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1,r=e.getDate()<10?"0"+e.getDate():e.getDate(),o=e.getHours()<10?"0"+e.getHours():e.getHours(),i=e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes(),s=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return a+"-"+n+"-"+r+" "+o+":"+i+":"+s}function o(t){var e=new Date(1e3*Number(t)),a=e.getFullYear()+"-",n=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-",r=(e.getDate()<10?"0"+e.getDate():e.getDate())+" ",o=(e.getHours()<10?"0"+e.getHours():e.getHours())+":",i=(e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes())+":",s=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds(),l=a+n+r+o+i+s;return l}},f76d:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"ba_f outmain"},[a("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"评价管理",name:"evaluate"}}),a("el-tab-pane",{attrs:{label:"评价标签",name:"evaluatelabel"}})],1)],1),a("div",{staticClass:"ba_f outmain"},[t._m(0),a("div",{staticClass:"main-icon flex t_l mar_t20 wid"},[a("div",{staticClass:"flex-1 t_l pad_20 borderBG mar_r20"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",{staticStyle:{height:"97px"}},[a("p",{staticClass:"color_9 fon_14"},[t._v("总体评分")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[t._v(t._s(t.zhData.average||0)),a("span",{staticClass:"fnormal fon_16 mar_l5"},[t._v("分")])]),t.zhData.average>0?a("el-rate",{attrs:{disabled:"","show-score":"","text-color":"#ff9900","score-template":"{value}"},model:{value:t.zhData.average,callback:function(e){t.$set(t.zhData,"average",t._n(e))},expression:"zhData.average"}}):t._e()],1)])]),a("div",{staticClass:"flex-1 t_l pad_20 borderBG mar_r20"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",{staticStyle:{height:"97px"}},[a("p",{staticClass:"color_9 fon_14"},[t._v("好评统计")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[t._v(t._s(t.zhData.good||0))]),t.zhData.goodStar>0?a("el-rate",{attrs:{disabled:"","show-score":"","text-color":"#ff9900","score-template":"{value}"},model:{value:t.zhData.goodStar,callback:function(e){t.$set(t.zhData,"goodStar",t._n(e))},expression:"zhData.goodStar"}}):t._e()],1)])]),a("div",{staticClass:"flex-1 t_l pad_20 borderBG mar_r20"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",{staticStyle:{height:"97px"}},[a("p",{staticClass:"color_9 fon_14"},[t._v("中评统计")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[t._v(t._s(t.zhData.middle||0))]),t.zhData.middleStar>0?a("el-rate",{attrs:{disabled:"","show-score":"","text-color":"#ff9900","score-template":"{value}"},model:{value:t.zhData.middleStar,callback:function(e){t.$set(t.zhData,"middleStar",t._n(e))},expression:"zhData.middleStar"}}):t._e()],1)])]),a("div",{staticClass:"flex-1 t_l pad_20 borderBG mar_r20"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",{staticStyle:{height:"97px"}},[a("p",{staticClass:"color_9 fon_14"},[t._v("差评统计")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[t._v(t._s(t.zhData.difference||0))]),t.zhData.differenceStar>0?a("el-rate",{attrs:{disabled:"","show-score":"","text-color":"#ff9900","score-template":"{value}"},model:{value:t.zhData.differenceStar,callback:function(e){t.$set(t.zhData,"differenceStar",t._n(e))},expression:"zhData.differenceStar"}}):t._e()],1)])])])]),a("div",{staticClass:"outmain ba_f mar_t20"},[t._m(1),a("div",{},[a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!1,model:t.formInline,"label-width":"100px"}},[a("el-form-item",{staticClass:"mar_t20",attrs:{label:"评价类型:"}},[a("el-radio-group",{on:{change:t.selectType},model:{value:t.formInline.star,callback:function(e){t.$set(t.formInline,"star",e)},expression:"formInline.star"}},[a("el-radio-button",{attrs:{label:"0"}},[t._v("不限")]),a("el-radio-button",{attrs:{label:"1"}},[t._v("好评")]),a("el-radio-button",{attrs:{label:"2"}},[t._v("中评")]),a("el-radio-button",{attrs:{label:"3"}},[t._v("差评")])],1)],1),a("el-form-item",{staticClass:"mar_t20",attrs:{label:"评价日期:"}},[a("div",{staticClass:"flex-bet"},[a("div",[a("el-radio-group",{on:{change:t.selectType},model:{value:t.formInline.timeType,callback:function(e){t.$set(t.formInline,"timeType",e)},expression:"formInline.timeType"}},[a("el-radio-button",{attrs:{label:""}},[t._v("不限")]),a("el-radio-button",{attrs:{label:"1"}},[t._v("今天")]),a("el-radio-button",{attrs:{label:"2"}},[t._v("近七天")]),a("el-radio-button",{attrs:{label:"3"}},[t._v("近十五天")]),a("el-radio-button",{attrs:{label:"4"}},[t._v("自定义时间")])],1),"4"==t.formInline.timeType?a("span",{staticClass:"mar_l20"},[a("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",format:"yyyy年MM月dd日","picker-options":t.pickerOptions},on:{change:t.selectType},model:{value:t.formInline.time,callback:function(e){t.$set(t.formInline,"time",e)},expression:"formInline.time"}})],1):t._e()],1)])]),a("el-form-item",{staticClass:"mar_t20",attrs:{label:"模糊搜索:","label-position":"top"}},[a("div",{staticClass:"flex"},[a("div",[a("el-input",{staticStyle:{width:"500px"},attrs:{type:"text",placeholder:"请输入评价相关的订单号/手机号/用户昵称"},on:{input:t.selectType},model:{value:t.formInline.keyword,callback:function(e){t.$set(t.formInline,"keyword",e)},expression:"formInline.keyword"}})],1)])])],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"mar_t20",staticStyle:{width:"100%"},attrs:{data:t.list,"element-loading-text":t.elementLoadingText}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{label:"评分",width:"300"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex flex-y-top"},[a("div",{},[a("img",{staticClass:"goodlogo bor_rad50",attrs:{src:e.row.portrait}})]),a("div",{staticClass:"mar_l10"},[a("div",{staticClass:"flex"},[a("div",{},[t._v(t._s(e.row.userName))]),a("el-tag",{staticClass:"mar_l5",attrs:{size:"mini",type:"info"}},[t._v("(ID:"+t._s(e.row.userId)+")")])],1),a("div",{staticClass:"mar_t5"},[a("el-rate",{attrs:{disabled:"","show-score":"","text-color":"#ff9900","score-template":"{value}"},model:{value:e.row.star,callback:function(a){t.$set(e.row,"star",t._n(a))},expression:"scope.row.star"}})],1)])])]}}])}),a("el-table-column",{attrs:{label:"评价内容",width:"400"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"t_l"},[a("div",{staticClass:"hydlnr_2"},[t._v(" "+t._s(e.row.body)+" ")]),e.row.media?a("div",{staticClass:"flex mar_t10"},t._l(e.row.media,(function(t,e){return a("div",{key:e},[a("img",{staticClass:"goodlogo bor_rad5",attrs:{src:t}})])})),0):t._e()])]}}])}),a("el-table-column",{attrs:{prop:"createdAt",label:"评价时间"}}),a("el-table-column",{attrs:{prop:"reply",label:"商家回复"}}),a("el-table-column",{attrs:{prop:"state",label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return["1"==e.row.state?a("div",[a("el-tag",{attrs:{size:"mini"}},[t._v("待审核")])],1):t._e(),"2"==e.row.state?a("div",[a("el-tag",{attrs:{size:"mini",type:"success"}},[t._v("已通过")])],1):t._e(),"3"==e.row.state?a("div",[a("el-tag",{attrs:{size:"mini",type:"danger"}},[t._v("已拒绝")])],1):t._e()]}}])}),a("el-table-column",{attrs:{label:"操作",width:"280"},scopedSlots:t._u([{key:"default",fn:function(e){return["2"==e.row.state?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.dialogFormReply(e.row.id)}}},[t._v("回复 ")]):t._e(),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row)}}},[t._v("删除")]),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete2(e.row)}}},[t._v("评价详情")]),"2"!=e.row.state?a("el-dropdown",{staticClass:"more"},[a("el-button",{staticClass:"mar_l10",attrs:{type:"primary",size:"mini"}},[t._v(" 审核"),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",[a("span",{on:{click:function(a){return t.examine(e.row.id,1)}}},[t._v("通过")])]),a("el-dropdown-item",[a("span",{on:{click:function(a){return t.examine(e.row.id,2)}}},[t._v("拒绝")])])],1)],1):t._e()]}}])})],1),a("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:t.page.total,"page-size":t.page.pagesize,"current-page":t.page.currentPage},on:{"update:currentPage":function(e){return t.$set(t.page,"currentPage",e)},"update:current-page":function(e){return t.$set(t.page,"currentPage",e)},"current-change":t.handleCurrentChange}}),a("el-dialog",{attrs:{title:"编辑回复",visible:t.dialogFormVisible,width:"600px"},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[a("el-form",{attrs:{model:t.form,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"输入回复内容"}},[a("el-input",{attrs:{"auto-complete":"off",rows:4,type:"textarea"},model:{value:t.form.reply,callback:function(e){t.$set(t.form,"reply",e)},expression:"form.reply"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.dialogform(t.form)}}},[t._v("确 定")])],1)],1),a("edit",{ref:"edit",on:{fetchData:t.fetchData}})],1)])},r=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("评价统计")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("评价列表")])])])}],o=(a("d81d"),a("96cf"),a("1da1")),i=a("5a4a"),s=a("ed08"),l=a("a188"),c={components:{Edit:l["a"]},created:function(){this.fetchData()},data:function(){var t=this;return{activeName:"evaluate",list:[],listLoading:!1,selectRows:"",elementLoadingText:"正在加载...",page:{total:0,size:10,currentPage:1},dialogFormVisible:!1,dialogFormVisible2:!1,form:{reply:""},selectData:"",pickerOptions:{onPick:function(e){var a=e.maxDate,n=e.minDate;t.selectData=n.getTime(),a&&(t.selectData="")},disabledDate:function(e){if(t.isNull(t.selectData))return!1;var a=new Date(t.selectData);return a.getMonth()>new Date(e).getMonth()||a.getMonth()<new Date(e).getMonth()}},formInline:{time:[new Date,new Date],timeType:"",keyword:"",star:"0"},zhData:{},pinfen:"3.5"}},methods:{handleClick:function(){"evaluate"==this.activeName?this.$router.push({path:"evaluate"}):"evaluatelabel"==this.activeName&&this.$router.push({path:"evaluatelabel"})},fetchData:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a,n,r,o,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a={page:t.page.currentPage,timeType:t.formInline.timeType,star:t.formInline.star,startTime:"2"==t.formInline.timeType&&t.formInline.time?Object(s["a"])(t.formInline.time[0]):"",endTime:"2"==t.formInline.timeType&&t.formInline.time?Object(s["a"])(t.formInline.time[1]):"",keyword:t.formInline.keyword,storeId:""},t.listLoading=!0,e.next=4,Object(i["p"])(a);case 4:if(n=e.sent,r=n.data,o=n.count,t.list=r.list,t.list)for(l=0;l<t.list.length;l++)t.list[l].star=+t.list[l].star;t.zhData=r,t.zhData.differenceStar=r.differenceStar?+r.differenceStar:0,t.zhData.goodStar=r.goodStar?+r.goodStar:0,t.zhData.middleStar=r.middleStar?+r.middleStar:0,t.zhData.average=r.average?+r.average:0,t.page.total=o,t.listLoading=!1;case 16:case"end":return e.stop()}}),e)})))()},selectType:function(){this.fetchData()},setSelectRows:function(t){this.selectRows=t},dialogform:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,Object(i["O"])({id:t.id,reply:t.reply,type:3});case 2:n=a.sent,r=n.msg,e.$baseMessage(r,"success"),e.dialogFormVisible=!1,e.fetchData();case 7:case"end":return a.stop()}}),a)})))()},examine:function(t,e){var a=this;return Object(o["a"])(regeneratorRuntime.mark((function n(){var r,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(i["O"])({id:t,type:e});case 2:r=n.sent,o=r.msg,a.$baseMessage(o,"success"),a.fetchData();case 6:case"end":return n.stop()}}),n)})))()},handleEdit:function(t){t.id?this.$refs["edit"].showEdit(t):this.$refs["edit"].showEdit()},handleDelete:function(t){var e=this;if(t.id)this.$baseConfirm("你确定要删除当前项吗",null,Object(o["a"])(regeneratorRuntime.mark((function a(){var n,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,Object(i["O"])({id:t.id,type:4});case 2:n=a.sent,r=n.msg,e.$baseMessage(r,"success"),e.fetchData();case 6:case"end":return a.stop()}}),a)}))));else{if(!(this.selectRows.length>0))return this.$baseMessage("未选中任何行","error"),!1;var a=this.selectRows.map((function(t){return t.id}));this.$baseConfirm("你确定要删除选中项吗",null,Object(o["a"])(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(i["O"])({id:a,type:4});case 2:n=t.sent,r=n.msg,e.$baseMessage(r,"success"),e.fetchData();case 6:case"end":return t.stop()}}),t)}))))}},handleDelete2:function(t){t.id&&this.$refs["edit"].showEdit(t)},isNull:function(t){return!t},handleCurrentChange:function(t){this.page.currentPage=t,this.fetchData()},dialogFormReply:function(t){this.dialogFormVisible=!0,this.form.id=t}}},u=c,d=a("2877"),f=Object(d["a"])(u,n,r,!1,null,null,null);e["default"]=f.exports}}]); |