webpackJsonp([83],{"0WJm":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("Xxa5"),n=a.n(s),r=a("exGp"),i=a.n(r),l=(a("PJh5"),{data:function(){return{loading:{list:!1,user:!1},count:{},searchForm:{list:{page:1,limit:10,status:0},user:{page:1,limit:10,nickName:""},status:0},tableData:{list:[],user:[]},total:{list:0,user:0},cur_coupon:{},multipleSelection:[],showDialog:!1,statusText:{1:{type:"danger",text:"未处理"},2:{type:"primary",text:"已处理"}}}},activated:function(){this.getTableDataList(1,"list")},methods:{resetForm:function(t){var e=t+"Form";this.$refs[e].resetFields(),this.getTableDataList(1,t)},handleSizeChange:function(t,e){this.searchForm[e].limit=t,this.handleCurrentChange(1,e)},handleCurrentChange:function(t,e){this.searchForm[e].page=t,this.getTableDataList("",e)},getTableDataList:function(t,e){var a=this;return i()(n.a.mark(function s(){var r,i,l,o;return n.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return t&&(a.searchForm[e].page=1),a.tableData[e]=[],a.loading[e]=!0,r=a.searchForm[e],s.next=6,a.$api.system.appealList(r);case 6:if(i=s.sent,l=i.code,o=i.data,a.loading[e]=!1,200===l){s.next=12;break}return s.abrupt("return");case 12:a.tableData[e]=o.data,a.total[e]=o.total,a.count={nopass:o.status1,pass:o.status2,all:Number(o.status1)+Number(o.status2)};case 15:case"end":return s.stop()}},s,a)}))()},toChange:function(t){this.searchForm.list.status=t,this.getTableDataList(1,"list")}}}),o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"lb-examine-goods"},[a("top-nav"),t._v(" "),a("div",{staticClass:"page-main"},[a("el-row",{staticClass:"page-top-operate"},[a("el-button",{attrs:{type:0===t.searchForm.list.status?"primary":"",plain:"",size:"medium"},on:{click:function(e){return t.toChange(0)}}},[t._v("全部("+t._s(t.count.all||0)+")")]),t._v(" "),a("el-button",{attrs:{type:1===t.searchForm.list.status?"primary":"",plain:"",size:"medium"},on:{click:function(e){return t.toChange(1)}}},[t._v("未处理("+t._s(t.count.nopass||0)+")")]),t._v(" "),a("el-button",{attrs:{type:2===t.searchForm.list.status?"primary":"",plain:"",size:"medium"},on:{click:function(e){return t.toChange(2)}}},[t._v("已处理("+t._s(t.count.pass||0)+")")])],1),t._v(" "),a("div",{staticClass:"space-lg"}),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading.list,expression:"loading.list"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.list,"header-cell-style":{background:"#f5f7fa",color:"#606266"}}},[a("el-table-column",{attrs:{prop:"id",label:"ID",fixed:""}}),t._v(" "),a("el-table-column",{attrs:{prop:"order_code",label:"订单号","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{prop:"coach_name",label:t.$t("action.attendantName")+"姓名","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{prop:"mobile",label:"手机号","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{prop:"status",label:"申诉状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-tag",{attrs:{type:t.statusText[e.row.status].type}},[t._v(t._s(t.statusText[e.row.status].text))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"申诉时间","min-width":"200"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"table-operate"},[a("lb-button",{directives:[{name:"show",rawName:"v-show",value:[1,2].includes(e.row.status),expression:"[1, 2].includes(scope.row.status)"},{name:"hasPermi",rawName:"v-hasPermi",value:1===e.row.status?t.$route.name+"-handle":t.$route.name+"-view",expression:"\n scope.row.status === 1\n ? `${$route.name}-handle`\n : `${$route.name}-view`\n "}],attrs:{size:"mini",plain:"",type:1===e.row.status?"success":"primary"},on:{click:function(a){return t.$router.push("/feedback/appeal/detail?id="+e.row.id)}}},[t._v(t._s(t.$t(1===e.row.status?"action.handle":"action.view")))]),t._v(" "),a("lb-button",{directives:[{name:"show",rawName:"v-show",value:1===e.row.status,expression:"scope.row.status === 1"},{name:"hasPermi",rawName:"v-hasPermi",value:t.$route.name+"-badComment",expression:"`${$route.name}-badComment`"}],attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(a){return t.$router.push("/shop/evaluate/list?id="+e.row.order_id)}}},[t._v("查看差评")])],1)]}}])})],1),t._v(" "),a("lb-page",{attrs:{batch:!1,page:t.searchForm.list.page,pageSize:t.searchForm.list.limit,total:t.total.list},on:{handleSizeChange:function(e){return t.handleSizeChange(e,"list")},handleCurrentChange:function(e){return t.handleCurrentChange(e,"list")}}})],1)],1)},staticRenderFns:[]};var u=a("VU/8")(l,o,!1,function(t){a("5WVq")},"data-v-339c3e22",null);e.default=u.exports},"5WVq":function(t,e){}});