Commit 5e87398b by member

会员批量带入

parent e6183e14
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./static/img/favicon.ico><script src=//web-1251519181.cos.ap-shanghai.myqcloud.com/lib/vue/2.5.5/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/lodash.min.js></script><title>memberproject</title><link href=./static/css/app.3853ead9e613b7ebd08fe76bd7af0fdc.css rel=stylesheet></head><body><div id=app></div><script src=//web-1251519181.cos.ap-shanghai.myqcloud.com/lib/elementUI/index.2.5.4.js></script><script src=//web-1251519181.cos.ap-shanghai.myqcloud.com/components/header.2.0.20.js></script><script src=//web-1251519181.cos.ap-shanghai.myqcloud.com/components/people.2.0.26.js></script><script src=//web-1251519181.cos.ap-shanghai.myqcloud.com/components/aside-menu.2.0.05.js></script><script src=//web-1251519181.cos.ap-shanghai.myqcloud.com/components/footer.2.0.02.js></script><script src=//web-1251519181.cos.ap-shanghai.myqcloud.com/components/store.2.0.00.js></script><script src=//web-1251519181.cos.ap-shanghai.myqcloud.com/components/card.2.0.01.js></script><script src=//web-1251519181.cos.ap-shanghai.myqcloud.com/components/selector.1.1.33.js></script><script src=//web-1251519181.file.myqcloud.com/components/space.2.0.02.js></script><script type=text/javascript src=./static/js/manifest.cb61f7dbaec6bd62daa8.js></script><script type=text/javascript src=./static/js/vendor.026489098e988d3da7ca.js></script><script type=text/javascript src=./static/js/app.cd7f374ce49789fca203.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./static/img/favicon.ico><script src=//web-1251519181.cos.ap-shanghai.myqcloud.com/lib/vue/2.5.5/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/lodash.min.js></script><title>memberproject</title><link href=./static/css/app.67f96b5b3af52ac41488f616e49150a9.css rel=stylesheet></head><body><div id=app></div><script src=//web-1251519181.cos.ap-shanghai.myqcloud.com/lib/elementUI/index.2.5.4.js></script><script src=//web-1251519181.cos.ap-shanghai.myqcloud.com/components/header.2.0.20.js></script><script src=//web-1251519181.cos.ap-shanghai.myqcloud.com/components/people.2.0.26.js></script><script src=//web-1251519181.cos.ap-shanghai.myqcloud.com/components/aside-menu.2.0.05.js></script><script src=//web-1251519181.cos.ap-shanghai.myqcloud.com/components/footer.2.0.02.js></script><script src=//web-1251519181.cos.ap-shanghai.myqcloud.com/components/store.2.0.00.js></script><script src=//web-1251519181.cos.ap-shanghai.myqcloud.com/components/card.2.0.01.js></script><script src=//web-1251519181.cos.ap-shanghai.myqcloud.com/components/selector.1.1.33.js></script><script src=//web-1251519181.file.myqcloud.com/components/space.2.0.02.js></script><script type=text/javascript src=./static/js/manifest.d5e98ffe295773a7ba9f.js></script><script type=text/javascript src=./static/js/vendor.026489098e988d3da7ca.js></script><script type=text/javascript src=./static/js/app.ddb4fee07c4ec0c5d88c.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([13],{kVpV:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("AKaA"),n=a("WSiR"),o=a("NTL1"),s=a("8V46"),c={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:"",isShow:!1}},methods:{exportExcel:function(){window.location.href=o.a.downloadErrorData+"?requestProject=member&batchType="+this.batchType+"&batchId="+this.batchId},getLogsDetail:function(){var t=this,e={batchId:this.batchId,batchType:this.batchType};Object(r.b)(o.a.queryBatchRetErrInfo,e).then(function(e){if(0==e.data.errorCode){var a=e.data.result;t.page.totalCount=a.totalCount,t.tableData=a.result}else Object(s.a)(e.data.message)}).catch(function(t){Object(s.b)(t)})}},created:function(){if(this.$route.query.data){var t=this.$route.query.data,e=t.batchId,a=t.batchType,r=t.total,n=t.succeedNum,o=t.errorNum,c=t.operaUerName;this.batchId=e,this.batchType=a,console.log(this.batchType),11==a&&(this.isShow=!0,this.operation=c),this.count.all=r,this.count.success=n,this.count.error=o,console.log(this.$route.query.data),this.getLogsDetail()}else Object(s.a)("123")},components:{NavPath:n.a}},l={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:"序号"}}),t._v(" "),a("el-table-column",{attrs:{prop:"errorCause",label:"错误提示"}}),t._v(" "),a("el-table-column",{attrs:{prop:"cardNum",label:"会员卡号"}}),t._v(" "),a("el-table-column",{attrs:{prop:"opIntegral",label:"变更额度"}}),t._v(" "),t.isShow?a("el-table-column",{attrs:{prop:"address",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 i=a("VU/8")(c,l,!1,function(t){a("qx3A")},"data-v-c4db8e5a",null);e.default=i.exports},qx3A:function(t,e){}});
\ No newline at end of file
webpackJsonp([14],{NBgM:function(t,e){},kVpV:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("AKaA"),n=a("WSiR"),o=a("NTL1"),s=a("8V46"),c={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:"",isShow:!1}},methods:{exportExcel:function(){window.location.href=o.a.downloadErrorData+"?requestProject=member&batchType="+this.batchType+"&batchId="+this.batchId},getLogsDetail:function(){var t=this,e={batchId:this.batchId,batchType:this.batchType};Object(r.b)(o.a.queryBatchRetErrInfo,e).then(function(e){if(0==e.data.errorCode){var a=e.data.result;t.page.totalCount=a.totalCount,t.tableData=a.result}else Object(s.a)(e.data.message)}).catch(function(t){Object(s.b)(t)})}},created:function(){if(this.$route.query.data){var t=this.$route.query.data,e=t.batchId,a=t.batchType,r=t.total,n=t.succeedNum,o=t.errorNum,c=t.operaUerName;this.batchId=e,this.batchType=a,console.log(this.batchType),11==a&&(this.isShow=!0,this.operation=c),this.count.all=r,this.count.success=n,this.count.error=o,console.log(this.$route.query.data),this.getLogsDetail()}else Object(s.a)("123")},components:{NavPath:n.a}},l={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:"content"},[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:"序号"}}),t._v(" "),a("el-table-column",{attrs:{prop:"errorCause",label:"错误提示"}}),t._v(" "),a("el-table-column",{attrs:{prop:"cardNum",label:"会员卡号"}}),t._v(" "),a("el-table-column",{attrs:{prop:"opIntegral",label:"变更额度"}}),t._v(" "),t.isShow?a("el-table-column",{attrs:{prop:"address",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 i=a("VU/8")(c,l,!1,function(t){a("NBgM")},"data-v-bc6cb162",null);e.default=i.exports}});
\ No newline at end of file
webpackJsonp([16],{sPjv:function(e,t){},zWgH:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"buyermembers",components:{Navbar:n("+vdD").a}},r={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"buyer-part"},[t("Navbar"),this._v("\n 电商买家\n")],1)},staticRenderFns:[]};var s=n("VU/8")(a,r,!1,function(e){n("sPjv")},"data-v-ae6134c2",null);t.default=s.exports}});
\ No newline at end of file
webpackJsonp([15],{sPjv:function(e,t){},zWgH:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"buyermembers",components:{Navbar:n("+vdD").a}},r={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"buyer-part"},[t("Navbar"),this._v("\n 电商买家\n")],1)},staticRenderFns:[]};var s=n("VU/8")(a,r,!1,function(e){n("sPjv")},"data-v-ae6134c2",null);t.default=s.exports}});
\ No newline at end of file
webpackJsonp([18],{"B+Ce":function(e,t){},OQ6q:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={name:"memberlist",data:function(){return{bodyHeight:document.body.clientHeight||document.documentElement.clientHeight,defaultActive:this.$route.path}},mounted:function(){var e=this;window.onresize=function(){e.bodyHeight=document.body.clientHeight||document.documentElement.clientHeight}},components:{Navbar:i("+vdD").a}},o={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"achievementwrap",style:{height:this.bodyHeight-64+"px"}},[t("div",{staticClass:"achievementwrap-right"},[t("div",{style:{height:"100%"}},[t("keep-alive",[this.$route.meta.keepAlive?t("router-view"):this._e()],1),this._v(" "),this.$route.meta.keepAlive?this._e():t("router-view")],1)])])},staticRenderFns:[]};var a=i("VU/8")(n,o,!1,function(e){i("B+Ce")},"data-v-9b641668",null);t.default=a.exports}});
\ No newline at end of file
webpackJsonp([16],{"B+Ce":function(e,t){},OQ6q:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={name:"memberlist",data:function(){return{bodyHeight:document.body.clientHeight||document.documentElement.clientHeight,defaultActive:this.$route.path}},mounted:function(){var e=this;window.onresize=function(){e.bodyHeight=document.body.clientHeight||document.documentElement.clientHeight}},components:{Navbar:i("+vdD").a}},o={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"achievementwrap",style:{height:this.bodyHeight-64+"px"}},[t("div",{staticClass:"achievementwrap-right"},[t("div",{style:{height:"100%"}},[t("keep-alive",[this.$route.meta.keepAlive?t("router-view"):this._e()],1),this._v(" "),this.$route.meta.keepAlive?this._e():t("router-view")],1)])])},staticRenderFns:[]};var a=i("VU/8")(n,o,!1,function(e){i("B+Ce")},"data-v-9b641668",null);t.default=a.exports}});
\ No newline at end of file
webpackJsonp([17],{T7wk:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("AKaA"),r=a("WSiR"),l=a("NTL1"),n=a("8V46"),s={data:function(){return{actionUrl:l.a.uploadExecl,navpath:[{name:"首页",path:""},{name:"微信会员",path:""},{name:"批量导入",path:""}],tableData:[],pickDate:[],importType:"",dialogImport:!1,formByImport:{importValue:"",fileList:[]},expendParams:{requestProject:"member",batchType:""},rules:{importValue:[{required:!0,message:"请选择导入类型",trigger:"change"}]},typeList:["积分增加","积分扣除"],rows:0,load:!1,dialogSuccess:!1,page:{currentPage:1,pageSize:20,totalCount:0}}},methods:{handleChangeType:function(t){console.log(t),this.expendParams.batchType=t},getIntegral:function(){var t=this,e=void 0;e=this.pickDate?this.pickDate:["",""];var a=void 0;a=this.importType?Number(this.importType):"",Object(o.b)(l.a.getBatchRecord,{beginTime:e[0],endTime:e[1],batchType:a}).then(function(e){if(0==e.data.errorCode){var a=e.data.result;t.page.totalCount=a.totalCount,t.tableData=a.result,console.log(t.tableData)}else Object(n.a)(e.data.message)}).catch(function(t){Object(n.b)(t)})},handleSizeChange:function(t){this.page.pageSize=t,this.getIntegral()},handleCurrentChange:function(t){this.page.currentPage=t,this.getIntegral()},onImportTypeChange:function(t){this.page.currentPage=1,this.getIntegral()},onDateChange:function(t){console.log(t),this.page.currentPage=1,this.getIntegral()},logDetails:function(t){this.$router.push({path:"/bulkLogsDetail",query:{data:t}})},openDialogImport:function(){this.formByImport.importValue="",this.dialogImport=!0},onDialogImportClosed:function(){this.$refs.formByImport.resetFields()},downloadTemplate:function(){window.location.href=l.a.downLoadExcelTemplate+"?requestProject=member&batchType="+this.formByImport.importValue},importTable:function(){var t=this;this.$refs.formByImport.validateField("importValue",function(e){e||(t.formByImport.fileList.length?(t.load=!0,t.$refs.memberUpload.submit()):Object(n.a)("请上传积分数据"))})},beforeUpload:function(t){var e=t.size/1024/1024<10,a=t.name.split(".")[1];return["xlsx","xlc","xlm","xls","xlt","xlw","csv"].some(function(t){return t===a})?e?void 0:(this.$message.error("上传模板大小不能超过 10MB"),!1):(this.$message.warning("请上传excel表格"),!1)},handleChange:function(t,e){this.formByImport.fileList=e},handelExceed:function(){this.$message.warning("超出最大上传数")},handleError:function(){this.load=!1},onDialogSuccessClosed:function(){this.getIntegral()},handleSuccess:function(){Object(n.c)("上传成功"),this.dialogImport=!1,this.load=!1,this.dialogSuccess=!0,this.$refs.memberUpload.clearFiles(),this.getIntegral()}},created:function(){this.getIntegral()},components:{NavPath:r.a},filters:{formatYMD:function(t){return(t=new Date(t)).getFullYear()+"-"+(t.getMonth()+1).toString().padStart(2,"0")+"-"+t.getDate().toString().padStart(2,"0")},formatHMS:function(t){return(t=new Date(t)).getHours().toString().padStart(2,"0")+":"+t.getMinutes().toString().padStart(2,"0")+":"+t.getSeconds().toString().padStart(2,"0")}}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"bulkIntegral"},[a("nav-path",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"content"},[a("div",{staticClass:"contentInfo"},[a("div",{staticClass:"flex"},[a("div",[a("el-date-picker",{staticStyle:{width:"400px"},attrs:{type:"daterange","range-separator":"—","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},on:{change:t.onDateChange},model:{value:t.pickDate,callback:function(e){t.pickDate=e},expression:"pickDate"}}),t._v(" "),a("el-select",{staticStyle:{width:"130px","margin-left":"8px"},attrs:{placeholder:"所有导入类型"},on:{change:t.onImportTypeChange},model:{value:t.importType,callback:function(e){t.importType=e},expression:"importType"}},[a("el-option",{attrs:{label:"积分增加",value:"11"}}),t._v(" "),a("el-option",{attrs:{label:"积分扣除",value:"12"}})],1)],1),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.openDialogImport}},[t._v("新建导入")])],1),t._v(" "),a("el-table",{attrs:{data:t.tableData}},[a("el-table-column",{attrs:{prop:"createTime",label:"导入时间"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.row;return[a("div",[t._v(t._s(t._f("formatYMD")(o.createTime)))]),t._v(" "),a("div",[t._v(t._s(t._f("formatHMS")(o.createTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"total",label:"层预计导入数量"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v("\n "+t._s(a.total||"0")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"succeedNum",label:"成功数"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v("\n "+t._s(a.succeedNum||"0")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"errorNum",label:"失败数"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v("\n "+t._s(a.errorNum||"0")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"batchType",label:"导入类型"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v("\n "+t._s(11==a.batchType?"积分增加":"积分扣除")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"operaUerName",label:"操作人员"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v("\n "+t._s(a.operaUerName||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{fixed:"right",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.errorNum>0?a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.logDetails(e.row)}}},[t._v("日志详情")]):a("div",[t._v(" -- ")])]}}])})],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"),t._v(" "),a("el-dialog",{attrs:{title:"新建导入",visible:t.dialogImport,width:"600px"},on:{"update:visible":function(e){t.dialogImport=e},closed:t.onDialogImportClosed}},[a("el-form",{ref:"formByImport",staticStyle:{"margin-bottom":"36px"},attrs:{rules:t.rules,model:t.formByImport,"label-width":"90px","label-suffix":":"}},[a("el-form-item",{attrs:{label:"导入类型",prop:"importValue"}},[a("el-select",{attrs:{placeholder:"请选择导入类型"},on:{change:t.handleChangeType},model:{value:t.formByImport.importValue,callback:function(e){t.$set(t.formByImport,"importValue",e)},expression:"formByImport.importValue"}},[a("el-option",{attrs:{label:"积分增加",value:"11"}}),t._v(" "),a("el-option",{attrs:{label:"积分扣除",value:"12"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"选择文件",prop:"file",required:""}},[a("el-upload",{directives:[{name:"loading",rawName:"v-loading",value:t.load,expression:"load"}],ref:"memberUpload",staticClass:"upload-demo",attrs:{action:t.actionUrl,accept:".xlsx","file-list":t.formByImport.fileList,"before-upload":t.beforeUpload,limit:1,data:t.expendParams,"with-credentials":!0,"on-error":t.handleError,"on-exceed":t.handelExceed,"on-change":t.handleChange,"on-success":t.handleSuccess,"auto-upload":!1}},[a("div",{attrs:{slot:"trigger"},slot:"trigger"},[a("div",{staticClass:"importBox"},[a("i",{staticClass:"iconfont icon-shangchuan"}),t._v("\n 点击上传\n ")])]),t._v(" "),t.formByImport.importValue?a("el-button",{staticStyle:{"font-size":"12px","margin-left":"12px"},attrs:{type:"text"},on:{click:t.downloadTemplate}},[t._v("\n 点击下载"+t._s("11"==t.formByImport.importValue?"积分增加":"积分扣除")+"模板\n ")]):t._e()],1)],1)],1),t._v(" "),a("div",{staticClass:"dialogTips"},[a("h3",[t._v("导入规则")]),t._v(" "),a("p",[t._v("1. 通过导入Excel表格的形式变更GIC已存在会员的积分;不支持导入新会员数据 ")]),t._v(" "),a("p",[t._v("2. 仅支持.xlsx 文件的导入;每次导入数据量最多为10000条 ")]),t._v(" "),a("p",[t._v("3. 导入类型不同,文件模板也不同,请严格按照模板内容填入会员数据,否则将会报错 ")]),t._v(" "),a("p",[t._v("4. 请仔细核对需要变更的会员数据是否准确,否则GIC校验不通过将无法执行成功")])]),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogImport=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary",disable:t.load},on:{click:t.importTable}},[t._v("确 定")])],1)],1),t._v(" "),a("el-dialog",{staticClass:"dialogSuccess",attrs:{title:"",visible:t.dialogSuccess,width:"420px"},on:{"update:visible":function(e){t.dialogSuccess=e},closed:t.onDialogSuccessClosed}},[a("div",{staticClass:"success_icon"},[a("i",{staticClass:"el-icon-success"})]),t._v(" "),a("p",{staticClass:"successHeader"},[t._v("新建导入任务成功!")]),t._v(" "),a("p",{staticClass:"successCon"},[t._v("\n 请前往会员列表点击 \n "),a("el-button",{staticClass:"member-wechat-timer",attrs:{type:"primary",icon:"el-icon-time"}}),t._v(" \n 查看进度,\n ")],1),t._v(" "),a("p",{staticClass:"successCon"},[t._v("导入完成后可点击批量导入记录查看结果")]),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disable:t.load},on:{click:function(e){t.dialogSuccess=!1}}},[t._v("确 定")])],1)])],1)},staticRenderFns:[]};var c=a("VU/8")(s,i,!1,function(t){a("ewpA")},"data-v-a7a8282c",null);e.default=c.exports},ewpA:function(t,e){}});
\ No newline at end of file
webpackJsonp([24],{miwu:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});o("AKaA");var s=window.location.origin,i=s.indexOf("localhost")>-1?"http://gicdev.demogic.com":s,n={name:"selector",data:function(){return{expends:!0,ret:[],total:0}},methods:{confirm:function(){var t=this;this.$refs.selector.collectConditions().then(function(e){t.expends=!e.filterAbbrInfo.length,t.getGoodsList(e.conditions)})},goback:function(){this.ret=[],this.expends=!this.expends,this.$refs.selector.removeConditions()},getGoodsList:function(t){var e=this,o={currentPage:1,pageSize:40,source:1,queryList:t};this.axios.post(i+"/api-plug/store-goods-sku-filter",o).then(function(t){if(0===t.data.errorCode){var o=t.data.result;e.ret=o.result,e.total=o.total}})}}},r={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"selector-router"},[o("vue-gic-goods-selector",{ref:"selector"}),t._v(" "),o("div",{staticClass:"gic-button"},[t.expends?o("el-button",{attrs:{type:"primary"},on:{click:t.confirm}},[t._v("确认")]):o("el-button",{on:{click:t.goback}},[t._v("返回")])],1),t._v(" "),o("h1",[t._v("一共有"+t._s(t.total)+"条数据")]),t._v(" "),o("div",t._l(t.ret,function(e,s){return o("li",{key:s,staticClass:"good-list"},[t._v(t._s(e))])}),0)],1)},staticRenderFns:[]};var c=o("VU/8")(n,r,!1,function(t){o("rHFz")},"data-v-6892081c",null);e.default=c.exports},rHFz:function(t,e){}});
\ No newline at end of file
webpackJsonp([21],{miwu:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});o("AKaA");var s=window.location.origin,i=s.indexOf("localhost")>-1?"http://gicdev.demogic.com":s,n={name:"selector",data:function(){return{expends:!0,ret:[],total:0}},methods:{confirm:function(){var t=this;this.$refs.selector.collectConditions().then(function(e){t.expends=!e.filterAbbrInfo.length,t.getGoodsList(e.conditions)})},goback:function(){this.ret=[],this.expends=!this.expends,this.$refs.selector.removeConditions()},getGoodsList:function(t){var e=this,o={currentPage:1,pageSize:40,source:1,queryList:t};this.axios.post(i+"/api-plug/store-goods-sku-filter",o).then(function(t){if(0===t.data.errorCode){var o=t.data.result;e.ret=o.result,e.total=o.total}})}}},r={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"selector-router"},[o("vue-gic-goods-selector",{ref:"selector"}),t._v(" "),o("div",{staticClass:"gic-button"},[t.expends?o("el-button",{attrs:{type:"primary"},on:{click:t.confirm}},[t._v("确认")]):o("el-button",{on:{click:t.goback}},[t._v("返回")])],1),t._v(" "),o("h1",[t._v("一共有"+t._s(t.total)+"条数据")]),t._v(" "),o("div",t._l(t.ret,function(e,s){return o("li",{key:s,staticClass:"good-list"},[t._v(t._s(e))])}),0)],1)},staticRenderFns:[]};var c=o("VU/8")(n,r,!1,function(t){o("rHFz")},"data-v-6892081c",null);e.default=c.exports},rHFz:function(t,e){}});
\ No newline at end of file
webpackJsonp([27],{T7wk:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("AKaA"),r=a("WSiR"),l=a("NTL1"),n=a("8V46"),s={data:function(){return{actionUrl:l.a.uploadExecl,navpath:[{name:"首页",path:""},{name:"微信会员",path:""},{name:"批量导入",path:""}],tableData:[],pickDate:[],importType:"",dialogImport:!1,formByImport:{importValue:"",fileList:[]},expendParams:{requestProject:"member",batchType:""},rules:{importValue:[{required:!0,message:"请选择导入类型",trigger:"change"}]},typeList:["积分增加","积分扣除"],rows:0,load:!1,dialogSuccess:!1,page:{currentPage:1,pageSize:20,totalCount:0}}},methods:{handleChangeType:function(t){console.log(t),this.expendParams.batchType=t},getIntegral:function(){var t=this,e=void 0;e=this.pickDate?this.pickDate:["",""];var a=void 0;a=this.importType?Number(this.importType):"",Object(o.b)(l.a.getBatchRecord,{beginTime:e[0],endTime:e[1],batchType:a}).then(function(e){if(0==e.data.errorCode){var a=e.data.result;t.page.totalCount=a.totalCount,t.tableData=a.result,console.log(t.tableData)}else Object(n.a)(e.data.message)}).catch(function(t){Object(n.b)(t)})},handleSizeChange:function(t){this.page.pageSize=t,this.getIntegral()},handleCurrentChange:function(t){this.page.currentPage=t,this.getIntegral()},onImportTypeChange:function(t){this.page.currentPage=1,this.getIntegral()},onDateChange:function(t){console.log(t),this.page.currentPage=1,this.getIntegral()},logDetails:function(t){this.$router.push({path:"/bulkLogsDetail",query:{data:t}})},openDialogImport:function(){this.formByImport.importValue="",this.dialogImport=!0},onDialogImportClosed:function(){this.$refs.formByImport.resetFields()},downloadTemplate:function(){window.location.href=l.a.downLoadExcelTemplate+"?requestProject=member&batchType="+this.formByImport.importValue},importTable:function(){var t=this;this.$refs.formByImport.validateField("importValue",function(e){e||(t.formByImport.fileList.length?(t.load=!0,t.$refs.memberUpload.submit()):Object(n.a)("请上传积分数据"))})},beforeUpload:function(t){var e=t.size/1024/1024<1,a=t.name.split(".")[1];return["xlsx","xlc","xlm","xls","xlt","xlw","csv"].some(function(t){return t===a})?e?void 0:(this.$message.error("上传模板大小不能超过 1MB"),!1):(this.$message.warning("请上传excel表格"),!1)},handleChange:function(t,e){this.formByImport.fileList=e},handelExceed:function(){this.$message.warning("超出最大上传数")},handleError:function(){Object(n.a)("上传失败"),this.$refs.memberUpload.clearFiles(),this.load=!1},onDialogSuccessClosed:function(){this.getIntegral()},handleSuccess:function(t,e,a){0==t.errorCode?(Object(n.c)("上传成功"),this.dialogImport=!1,this.load=!1,this.dialogSuccess=!0,this.$refs.memberUpload.clearFiles(),this.getIntegral()):(this.$refs.memberUpload.clearFiles(),this.load=!1,Object(n.a)(t.message))}},created:function(){this.getIntegral()},components:{NavPath:r.a},filters:{formatYMD:function(t){return(t=new Date(t)).getFullYear()+"-"+(t.getMonth()+1).toString().padStart(2,"0")+"-"+t.getDate().toString().padStart(2,"0")},formatHMS:function(t){return(t=new Date(t)).getHours().toString().padStart(2,"0")+":"+t.getMinutes().toString().padStart(2,"0")+":"+t.getSeconds().toString().padStart(2,"0")}}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"bulkIntegral"}},[a("nav-path",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"contentBulkIntegral"},[a("div",{staticClass:"contentInfo"},[a("div",{staticClass:"flex"},[a("div",[a("el-date-picker",{staticStyle:{width:"400px"},attrs:{type:"daterange","range-separator":"—","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},on:{change:t.onDateChange},model:{value:t.pickDate,callback:function(e){t.pickDate=e},expression:"pickDate"}}),t._v(" "),a("el-select",{staticStyle:{width:"130px","margin-left":"8px"},attrs:{placeholder:"所有导入类型"},on:{change:t.onImportTypeChange},model:{value:t.importType,callback:function(e){t.importType=e},expression:"importType"}},[a("el-option",{attrs:{label:"积分增加",value:"11"}}),t._v(" "),a("el-option",{attrs:{label:"积分扣除",value:"12"}})],1)],1),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.openDialogImport}},[t._v("新建导入")])],1),t._v(" "),a("el-table",{attrs:{data:t.tableData}},[a("el-table-column",{attrs:{prop:"createTime",label:"导入时间"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.row;return[a("div",[t._v(t._s(t._f("formatYMD")(o.createTime)))]),t._v(" "),a("div",[t._v(t._s(t._f("formatHMS")(o.createTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"total",label:"预计导入数量"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v("\n "+t._s(a.total||"0")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"succeedNum",label:"成功数"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v("\n "+t._s(a.succeedNum||"0")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"errorNum",label:"失败数"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v("\n "+t._s(a.errorNum||"0")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"batchType",label:"导入类型"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v("\n "+t._s(11==a.batchType?"积分增加":"积分扣除")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"operaUerName",label:"操作人员"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v("\n "+t._s(a.operaUerName||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{fixed:"right",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.errorNum>0?a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.logDetails(e.row)}}},[t._v("日志详情")]):a("div",[t._v(" -- ")])]}}])})],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"),t._v(" "),a("el-dialog",{attrs:{title:"新建导入",visible:t.dialogImport,width:"600px"},on:{"update:visible":function(e){t.dialogImport=e},closed:t.onDialogImportClosed}},[a("el-form",{ref:"formByImport",staticStyle:{"margin-bottom":"36px"},attrs:{rules:t.rules,model:t.formByImport,"label-width":"90px","label-suffix":":"}},[a("el-form-item",{attrs:{label:"导入类型",prop:"importValue"}},[a("el-select",{attrs:{placeholder:"请选择导入类型"},on:{change:t.handleChangeType},model:{value:t.formByImport.importValue,callback:function(e){t.$set(t.formByImport,"importValue",e)},expression:"formByImport.importValue"}},[a("el-option",{attrs:{label:"积分增加",value:"11"}}),t._v(" "),a("el-option",{attrs:{label:"积分扣除",value:"12"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"选择文件",prop:"file",required:""}},[a("el-upload",{directives:[{name:"loading",rawName:"v-loading",value:t.load,expression:"load"}],ref:"memberUpload",staticClass:"upload-demo",attrs:{action:t.actionUrl,accept:".xlsx","file-list":t.formByImport.fileList,"before-upload":t.beforeUpload,limit:1,data:t.expendParams,"with-credentials":!0,"on-error":t.handleError,"on-exceed":t.handelExceed,"on-change":t.handleChange,"on-success":t.handleSuccess,"auto-upload":!1}},[a("div",{attrs:{slot:"trigger"},slot:"trigger"},[a("div",{staticClass:"importBox"},[a("i",{staticClass:"iconfont icon-shangchuan"}),t._v("\n 点击上传\n ")])]),t._v(" "),t.formByImport.importValue?a("el-button",{staticStyle:{"font-size":"12px","margin-left":"12px"},attrs:{type:"text"},on:{click:t.downloadTemplate}},[t._v("\n 点击下载"+t._s("11"==t.formByImport.importValue?"积分增加":"积分扣除")+"模板\n ")]):t._e()],1)],1)],1),t._v(" "),a("div",{staticClass:"dialogTips"},[a("h3",[t._v("导入规则")]),t._v(" "),a("p",[t._v("1. 通过导入Excel表格的形式变更GIC已存在会员的积分;不支持导入新会员数据 ")]),t._v(" "),a("p",[t._v("2. 仅支持.xlsx 文件的导入;每次导入数据量最多为10000条;文件大小不超过1M ")]),t._v(" "),a("p",[t._v("3. 导入类型不同,文件模板也不同,请严格按照模板内容填入会员数据,否则将会报错 ")]),t._v(" "),a("p",[t._v("4. 请仔细核对需要变更的会员数据是否准确,否则GIC校验不通过将无法执行成功")])]),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogImport=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary",disable:t.load},on:{click:t.importTable}},[t._v("确 定")])],1)],1),t._v(" "),a("el-dialog",{staticClass:"dialogSuccess",attrs:{title:"",visible:t.dialogSuccess,width:"420px"},on:{"update:visible":function(e){t.dialogSuccess=e},closed:t.onDialogSuccessClosed}},[a("div",{staticClass:"success_icon"},[a("i",{staticClass:"el-icon-success"})]),t._v(" "),a("p",{staticClass:"successHeader"},[t._v("新建导入任务成功!")]),t._v(" "),a("p",{staticClass:"successCon"},[t._v("\n 请前往会员列表点击 \n "),a("el-button",{staticClass:"member-wechat-timer",attrs:{type:"primary",icon:"el-icon-time"}}),t._v(" \n 查看进度,\n ")],1),t._v(" "),a("p",{staticClass:"successCon"},[t._v("导入完成后可点击批量导入记录查看结果")]),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disable:t.load},on:{click:function(e){t.dialogSuccess=!1}}},[t._v("确 定")])],1)])],1)},staticRenderFns:[]};var c=a("VU/8")(s,i,!1,function(t){a("tEr1")},"data-v-43bea308",null);e.default=c.exports},tEr1:function(t,e){}});
\ No newline at end of file
webpackJsonp([33],{"34RI":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("Dd8w"),s=a.n(i),n=a("WSiR"),r=a("AKaA"),o=a("NTL1"),u=a("8V46"),c=a("lRwf"),d=a.n(c),l={name:"membertask",data:function(){return{bodyHeight:document.body.clientHeight||document.documentElement.clientHeight,navpath:[{name:"首页",path:""},{name:"会员",path:"/wechatmembers"},{name:"会员任务",path:""}],isEdit:null,missionList:[]}},methods:{changeVal:function(e){val=val.length>6?val.substr(0,6):val},getMemberMissionList:function(){var e=this;Object(r.a)(o.a.memberMissionList).then(function(t){0===t.data.errorCode?(e.isEdit=t.data.result.isEdit,e.missionList=t.data.result.missionList.map(function(e){return s()({},e,{item:e.item.map(function(e){return s()({},e,{statusEdit:1==e.status})})})})):Object(u.a)(t.data.message)}).catch(function(e){Object(u.b)(e)})},editRewardValue:function(e){e.isEdit?e.isEdit=!0:d.a.set(e,"isEdit",!0),e.isCurValue?e.isCurValue=e.rewardValue:d.a.set(e,"isCurValue",e.rewardValue)},submitRewardValue:function(e){Object(r.a)(o.a.memberMissionUpdate,{missionItemEnterpriseId:e.missionItemEnterpriseId,usedRule:e.usedRule,rewardRule:e.rewardRule,rewardValue:e.rewardValue}).then(function(t){0===t.data.errorCode?(e.isEdit=!1,Object(u.c)()):Object(u.a)(t.data.message)}).catch(function(e){Object(u.b)(e)})},cancleRewardValue:function(e){e.rewardValue=e.isCurValue,e.isEdit=!1},changeValue:function(e){var t=e.statusEdit?1:0;return 1==t&&0===e.rewardValue?(Object(u.a)("请完善积分奖励"),e.statusEdit=!1,!1):e.status===t?(e.statusEdit=!1,!1):void Object(r.a)(o.a.memberMissionOpen,{missionItemEnterpriseId:e.missionItemEnterpriseId,status:t}).then(function(a){0===a.data.errorCode?(e.status=t,Object(u.c)()):Object(u.a)(a.data.message)}).catch(function(e){Object(u.b)(e)})}},created:function(){this.getMemberMissionList(),this.$store.commit("mutations-slide",!1)},components:{"v-nav":n.a}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"member-task",style:{height:e.bodyHeight-64+"px"}},[a("div",{staticClass:"min100"},[a("v-nav",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"achievement"},e._l(e.missionList,function(t,i){return a("div",{key:i,staticClass:"achievement-item"},[a("div",{staticClass:"achievement-top"},[a("span",{staticClass:"achievement-title"},[e._v(e._s(t.missionName))])]),e._v(" "),a("div",{staticClass:"achievement-editwrap"},[a("el-table",{attrs:{data:t.item,"tooltip-effect":"dark","header-row-class-name":"curheader"}},[a("el-table-column",{attrs:{prop:"missionItemName",label:"字段名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"rewardValue",label:"奖励积分额"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v("奖励\n "),a("el-input-number",{directives:[{name:"show",rawName:"v-show",value:1==t.row.isEdit,expression:"scope.row.isEdit == true"}],attrs:{maxlength:"6","controls-position":"right",min:0,max:1e5},model:{value:t.row.rewardValue,callback:function(a){e.$set(t.row,"rewardValue",a)},expression:"scope.row.rewardValue"}}),e._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:!0!==t.row.isEdit,expression:"scope.row.isEdit !== true"}]},[e._v(" "+e._s(t.row.rewardValue)+" ")]),e._v(" 积分\n "),a("i",{directives:[{name:"show",rawName:"v-show",value:1==e.isEdit&&!0!==t.row.isEdit,expression:"isEdit == 1 && scope.row.isEdit !== true"}],staticClass:"el-icon-edit pointer",on:{click:function(a){return e.editRewardValue(t.row)}}}),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.isEdit&&1==t.row.isEdit,expression:"isEdit == 1 && scope.row.isEdit == true"}],attrs:{type:"text"},on:{click:function(a){return e.submitRewardValue(t.row)}}},[e._v("\n 保存\n ")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.isEdit&&1==t.row.isEdit,expression:"isEdit == 1 && scope.row.isEdit == true"}],attrs:{type:"text"},on:{click:function(a){return e.cancleRewardValue(t.row)}}},[e._v("\n 取消\n ")])],1)]}}],null,!0)}),e._v(" "),1==e.isEdit?a("el-table-column",{attrs:{prop:"status",label:"开关",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"achievement-handler"},[a("el-switch",{attrs:{"active-text":"启用","inactive-text":"停用"},on:{change:function(a){return e.changeValue(t.row)}},model:{value:t.row.statusEdit,callback:function(a){e.$set(t.row,"statusEdit",a)},expression:"scope.row.statusEdit"}})],1)]}}],null,!0)}):e._e()],1)],1)])}),0)],1),e._v(" "),a("div",{staticClass:"footer-box foot-add"},[a("vue-gic-footer")],1)])},staticRenderFns:[]};var v=a("VU/8")(l,m,!1,function(e){a("IGeG")},null,null);t.default=v.exports},IGeG:function(e,t){}});
\ No newline at end of file
webpackJsonp([32],{"34RI":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("Dd8w"),s=a.n(i),n=a("WSiR"),r=a("AKaA"),o=a("NTL1"),u=a("8V46"),c=a("lRwf"),d=a.n(c),l={name:"membertask",data:function(){return{bodyHeight:document.body.clientHeight||document.documentElement.clientHeight,navpath:[{name:"首页",path:""},{name:"会员",path:"/wechatmembers"},{name:"会员任务",path:""}],isEdit:null,missionList:[]}},methods:{changeVal:function(e){val=val.length>6?val.substr(0,6):val},getMemberMissionList:function(){var e=this;Object(r.a)(o.a.memberMissionList).then(function(t){0===t.data.errorCode?(e.isEdit=t.data.result.isEdit,e.missionList=t.data.result.missionList.map(function(e){return s()({},e,{item:e.item.map(function(e){return s()({},e,{statusEdit:1==e.status})})})})):Object(u.a)(t.data.message)}).catch(function(e){Object(u.b)(e)})},editRewardValue:function(e){e.isEdit?e.isEdit=!0:d.a.set(e,"isEdit",!0),e.isCurValue?e.isCurValue=e.rewardValue:d.a.set(e,"isCurValue",e.rewardValue)},submitRewardValue:function(e){Object(r.a)(o.a.memberMissionUpdate,{missionItemEnterpriseId:e.missionItemEnterpriseId,usedRule:e.usedRule,rewardRule:e.rewardRule,rewardValue:e.rewardValue}).then(function(t){0===t.data.errorCode?(e.isEdit=!1,Object(u.c)()):Object(u.a)(t.data.message)}).catch(function(e){Object(u.b)(e)})},cancleRewardValue:function(e){e.rewardValue=e.isCurValue,e.isEdit=!1},changeValue:function(e){var t=e.statusEdit?1:0;return 1==t&&0===e.rewardValue?(Object(u.a)("请完善积分奖励"),e.statusEdit=!1,!1):e.status===t?(e.statusEdit=!1,!1):void Object(r.a)(o.a.memberMissionOpen,{missionItemEnterpriseId:e.missionItemEnterpriseId,status:t}).then(function(a){0===a.data.errorCode?(e.status=t,Object(u.c)()):Object(u.a)(a.data.message)}).catch(function(e){Object(u.b)(e)})}},created:function(){this.getMemberMissionList(),this.$store.commit("mutations-slide",!1)},components:{"v-nav":n.a}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"member-task",style:{height:e.bodyHeight-64+"px"}},[a("div",{staticClass:"min100"},[a("v-nav",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"achievement"},e._l(e.missionList,function(t,i){return a("div",{key:i,staticClass:"achievement-item"},[a("div",{staticClass:"achievement-top"},[a("span",{staticClass:"achievement-title"},[e._v(e._s(t.missionName))])]),e._v(" "),a("div",{staticClass:"achievement-editwrap"},[a("el-table",{attrs:{data:t.item,"tooltip-effect":"dark","header-row-class-name":"curheader"}},[a("el-table-column",{attrs:{prop:"missionItemName",label:"字段名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"rewardValue",label:"奖励积分额"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v("奖励\n "),a("el-input-number",{directives:[{name:"show",rawName:"v-show",value:1==t.row.isEdit,expression:"scope.row.isEdit == true"}],attrs:{maxlength:"6","controls-position":"right",min:0,max:1e5},model:{value:t.row.rewardValue,callback:function(a){e.$set(t.row,"rewardValue",a)},expression:"scope.row.rewardValue"}}),e._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:!0!==t.row.isEdit,expression:"scope.row.isEdit !== true"}]},[e._v(" "+e._s(t.row.rewardValue)+" ")]),e._v(" 积分\n "),a("i",{directives:[{name:"show",rawName:"v-show",value:1==e.isEdit&&!0!==t.row.isEdit,expression:"isEdit == 1 && scope.row.isEdit !== true"}],staticClass:"el-icon-edit pointer",on:{click:function(a){return e.editRewardValue(t.row)}}}),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.isEdit&&1==t.row.isEdit,expression:"isEdit == 1 && scope.row.isEdit == true"}],attrs:{type:"text"},on:{click:function(a){return e.submitRewardValue(t.row)}}},[e._v("\n 保存\n ")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.isEdit&&1==t.row.isEdit,expression:"isEdit == 1 && scope.row.isEdit == true"}],attrs:{type:"text"},on:{click:function(a){return e.cancleRewardValue(t.row)}}},[e._v("\n 取消\n ")])],1)]}}],null,!0)}),e._v(" "),1==e.isEdit?a("el-table-column",{attrs:{prop:"status",label:"开关",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"achievement-handler"},[a("el-switch",{attrs:{"active-text":"启用","inactive-text":"停用"},on:{change:function(a){return e.changeValue(t.row)}},model:{value:t.row.statusEdit,callback:function(a){e.$set(t.row,"statusEdit",a)},expression:"scope.row.statusEdit"}})],1)]}}],null,!0)}):e._e()],1)],1)])}),0)],1),e._v(" "),a("div",{staticClass:"footer-box foot-add"},[a("vue-gic-footer")],1)])},staticRenderFns:[]};var v=a("VU/8")(l,m,!1,function(e){a("IGeG")},null,null);t.default=v.exports},IGeG:function(e,t){}});
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,r,d){for(var t,o,b,i=0,u=[];i<a.length;i++)o=a[i],f[o]&&u.push(f[o][0]),f[o]=0;for(t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);for(c&&c(a,r,d);u.length;)u.shift()();if(d)for(i=0;i<d.length;i++)b=n(n.s=d[i]);return b};var a={},f={39:0};function n(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,n),f.l=!0,f.exports}n.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,n){c=f[e]=[a,n]});c[2]=a;var r=document.getElementsByTagName("head")[0],d=document.createElement("script");d.type="text/javascript",d.charset="utf-8",d.async=!0,d.timeout=12e4,n.nc&&d.setAttribute("nonce",n.nc),d.src=n.p+"static/js/"+e+"."+{0:"2cfae686dc73b70f8cf2",1:"b425b5fcf968b1d75642",2:"d8c5dcbf3e9efdb187c7",3:"3098b66e52f1e38e92a8",4:"5da1601958f4eca41c01",5:"81a74adb7ffb08d48458",6:"5b9ae112837884ee6e32",7:"78f5dc63810d128d4eb2",8:"d7183a464719000779e7",9:"e12df595916d5d745c84",10:"a36cda0ecd1ef7931925",11:"39cd90bfb2a31a7f5983",12:"25f72d053867cf563dae",13:"dea5aa729cb7daf6029c",14:"8f129948ba47e00a24ad",15:"f9581246fb45cc2adfaa",16:"162d918a30128cc10080",17:"4904d5d35b428880831b",18:"04aa58d72bd1d992c5d0",19:"887cd70f7f0c86e0517d",20:"5771d646783e1de7a9ed",21:"ef488b331a96487b39dc",22:"3d981e6e3b61105fee15",23:"d1f41690f6c2b6387c4c",24:"6394c393f95d7d808c1d",25:"43838be092a78f789c20",26:"7f9cb83b1c538f41a633",27:"1dcc3b00cdb379882d16",28:"789998a6bc6ef3346a80",29:"87cf94b8ed37a8d0904e",30:"ec7edb1fb34bc53f4a35",31:"708a4f2660930afdc133",32:"69e11e98ec96f1447a9a",33:"5b13f8633393c3239ef8",34:"e2e9d7849b40e302684e",35:"19f6863979247acbd6a6",36:"ceef22981a897f3d62bb"}[e]+".js";var t=setTimeout(o,12e4);function o(){d.onerror=d.onload=null,clearTimeout(t);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return d.onerror=d.onload=o,r.appendChild(d),a},n.m=e,n.c=a,n.d=function(e,c,a){n.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},n.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(c,"a",c),c},n.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},n.p="./",n.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,n,r){for(var t,o,b,i=0,u=[];i<a.length;i++)o=a[i],f[o]&&u.push(f[o][0]),f[o]=0;for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);for(c&&c(a,n,r);u.length;)u.shift()();if(r)for(i=0;i<r.length;i++)b=d(d.s=r[i]);return b};var a={},f={39:0};function d(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,d){c=f[e]=[a,d]});c[2]=a;var n=document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",r.charset="utf-8",r.async=!0,r.timeout=12e4,d.nc&&r.setAttribute("nonce",d.nc),r.src=d.p+"static/js/"+e+"."+{0:"2cfae686dc73b70f8cf2",1:"b425b5fcf968b1d75642",2:"d8c5dcbf3e9efdb187c7",3:"3098b66e52f1e38e92a8",4:"5da1601958f4eca41c01",5:"81a74adb7ffb08d48458",6:"5b9ae112837884ee6e32",7:"78f5dc63810d128d4eb2",8:"d7183a464719000779e7",9:"e12df595916d5d745c84",10:"a36cda0ecd1ef7931925",11:"39cd90bfb2a31a7f5983",12:"25f72d053867cf563dae",13:"b39d13281afce32aa884",14:"ad85e057a43f662343c8",15:"48cb116b1c8ec0652350",16:"dca6caf90d8f1ee04f3a",17:"17784797287c3a959c07",18:"9fd534e8bf4dd5b8c5af",19:"3fcad0158af685c50488",20:"0bed539c016fe5ec0c87",21:"d3703b59790fbeebac0c",22:"36ff05d1e5a02db1f13b",23:"3b3044f9a1d312087ee1",24:"2370aacaa368329114d7",25:"9e1262c9afe9e3254e19",26:"7a21eb4d5ed5a84db02b",27:"9aa2448d0b2838abeee8",28:"ee5aadf86d94e8e1c21b",29:"31acff883a1d4903d16f",30:"1dc5b5848ad8bff185fc",31:"cdc7cb45e9d71d03b029",32:"2fc84d3eacba0d398383",33:"67778cccc6b1b8ac6469",34:"7f653df8f288bad26ede",35:"19f6863979247acbd6a6",36:"ceef22981a897f3d62bb"}[e]+".js";var t=setTimeout(o,12e4);function o(){r.onerror=r.onload=null,clearTimeout(t);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return r.onerror=r.onload=o,n.appendChild(r),a},d.m=e,d.c=a,d.d=function(e,c,a){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment