webpackJsonp([26],{"+kFj":function(t,e){},kVpV:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("AKaA"),r=a("WSiR"),o=a("NTL1"),l=a("8V46"),s={data:function(){return{navpath:[{name:"首页",path:""},{name:"微信会员",path:""},{name:"批量导入",path:""},{name:"日志详情",path:""}],tableData:[],page:{currentPage:1,pageSize:20,totalCount:0},integralType:"积分扣除",count:{all:0,success:0,error:0},batchId:"",batchType:""}},methods:{exportExcel:function(){window.location.href=o.a.downloadErrorData+"?requestProject=member&batchType="+this.batchType+"&batchId="+this.batchId},handleCurrentChange:function(t){this.page.currentPage=t,this.getLogsDetail()},handleSizeChange:function(t){this.page.pageSize=t,this.getLogsDetail()},getLogsDetail:function(){var t=this,e={batchId:this.batchId,batchType:this.batchType,currentPage:this.page.currentPage,pageSize:this.page.pageSize};Object(n.b)(o.a.queryBatchRetErrInfo,e).then(function(e){if(0==e.data.errorCode){var a=e.data.result;console.log(a),t.page.totalCount=a.totalCount,t.tableData=a.result}else Object(l.a)(e.data.message)}).catch(function(t){Object(l.b)(t)})}},created:function(){if(this.$route.query.data){var t=this.$route.query.data,e=t.batchId,a=t.batchType,n=t.total,r=t.succeedNum,o=t.errorNum;a||this.$router.go(-1),this.batchId=e,this.batchType=a,console.log(this.batchType),this.count.all=n,this.count.success=r,this.count.error=o,console.log(this.$route.query.data),this.getLogsDetail()}else this.$router.go(-1)},components:{NavPath:r.a}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"bulkLogsDetail"}},[a("nav-path",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"contentBulkIntegral"},[a("div",{staticClass:"contentInfo"},[a("div",{staticClass:"flex"},[a("span",{staticClass:"headerTips"},[t._v("总条数："+t._s(t.count.all)+" 条，成功导入 "+t._s(t.count.success)+" 条，"),a("span",{staticClass:"headerTipsError"},[t._v("错误 "+t._s(t.count.error)+" 条")])]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.exportExcel}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai"}),t._v(" 导出")])],1),t._v(" "),a("el-table",{attrs:{data:t.tableData}},[a("el-table-column",{attrs:{prop:"sequence",label:"序号"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v("\n            "+t._s(a.sequence||"--")+"\n          ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"errorCause",label:"错误提示"}}),t._v(" "),a("el-table-column",{attrs:{prop:"cardNum",label:"会员卡号"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v("\n            "+t._s(a.cardNum||"--")+"\n          ")]}}])}),t._v(" "),11==t.batchType||12==t.batchType?a("el-table-column",{attrs:{prop:"opIntegral",label:"变更额度"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v("\n            "+t._s(a.opIntegral||"--")+"\n          ")]}}],null,!1,761788206)}):t._e(),t._v(" "),11==t.batchType?a("el-table-column",{attrs:{label:"成本主体"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v("\n            "+t._s(a.costStoreName||"--")+"\n          ")]}}],null,!1,1787028140)}):t._e(),t._v(" "),13==t.batchType?a("el-table-column",{attrs:{label:"等级编码"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v("\n            "+t._s(a.gradeCode||"--")+"\n          ")]}}],null,!1,267654791)}):t._e(),t._v(" "),13==t.batchType?a("el-table-column",{attrs:{label:"等级名称"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v("\n            "+t._s(a.gradeName||"--")+"\n          ")]}}],null,!1,3867179405)}):t._e(),t._v(" "),14==t.batchType?a("el-table-column",{attrs:{label:"门店代码"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v("\n            "+t._s(a.costStoreCode||"--")+"\n          ")]}}],null,!1,2930117414)}):t._e(),t._v(" "),14==t.batchType?a("el-table-column",{attrs:{label:"门店名称"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v("\n            "+t._s(a.costStoreName||"--")+"\n          ")]}}],null,!1,1787028140)}):t._e(),t._v(" "),a("el-table-column",{attrs:{prop:"remark",label:"原因备注"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v("\n            "+t._s(a.remark||"--")+"\n          ")]}}])})],1),t._v(" "),t.tableData.length>0?a("el-pagination",{attrs:{background:"","current-page":t.page.currentPage,"page-sizes":[20,40,60,80],"page-size":t.page.pageSize,layout:"total, sizes, prev, pager, next",total:t.page.totalCount},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}}):t._e()],1)]),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var u=a("C7Lr")(s,c,!1,function(t){a("+kFj")},"data-v-5d5ac5da",null);e.default=u.exports}});