Commit cc1dd7aa by member

会员批量导入

parents a5714de1 5e87398b
<!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.7a97ac4937502b3af5497b5e59096322.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.c21424884cec96cdfda1.js></script><script type=text/javascript src=./static/js/vendor.362482cf5841a5ece727.js></script><script type=text/javascript src=./static/js/app.9eed7b9a65ce6a4ac935.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([23],{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([31],{"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
webpackJsonp([33],{"8Ri2":function(t,e){},ae7D:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("WSiR"),i=a("AKaA"),n=a("8V46"),c=a("162o"),o={components:{"v-nav":s.a},data:function(){return{navpath:[{name:"首页",path:""},{name:"微信会员",path:"/wechatmembers"},{name:"会员设置",path:""}],value:!1,projectName:"member",actionUrl:"/api-plug/upload-img",dilogVisible:!1,maxlength:5,dilogImageUrl:""}},methods:{uploadOnSuccess:function(t){t.file.url=t.res.result[0].qcloudImageUrl,this.imageList.push(t.file)},deleteImage:function(t){this.imageList.splice(t,1)},saveSet:function(t){var e=this;Object(i.a)("/api-member/members-setting",{optype:t,appStatus:this.value?1:0}).then(function(a){0===a.data.errorCode?(1==a.data.result.appStatus&&(e.value=!0),2==t&&(e.$message({message:"设置成功!",type:"success"}),Object(c.setTimeout)(function(){e.$router.push({path:"/wechatmembers"})},1e3))):Object(n.a)(a.data.message)})},sortImg:function(t){this.imageList=t}},created:function(){this.saveSet(1),this.$store.commit("mutations-slide",!0)}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"member-setting"},[a("div",{staticClass:"minheight"},[a("v-nav",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"setting-con"},[a("div",{staticClass:"setting-container"},[a("el-switch",{model:{value:t.value,callback:function(e){t.value=e},expression:"value"}}),t._v(" "),a("span",{staticClass:"member-setting-txt"},[t._v("是否允许好办通过会员姓名、手机号和卡号搜索查询全品牌会员")])],1),t._v(" "),a("div",{staticClass:"save-btn"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.saveSet(2)}}},[t._v("保存")])],1)])],1),t._v(" "),a("div",{staticClass:"footer-box"},[a("vue-gic-footer")],1)])},staticRenderFns:[]};var u=a("VU/8")(o,r,!1,function(t){a("8Ri2")},"data-v-04000bb2",null);e.default=u.exports}});
\ No newline at end of file
webpackJsonp([35],{"8Ri2":function(t,e){},ae7D:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("WSiR"),i=a("AKaA"),n=a("8V46"),c=a("162o"),o={components:{"v-nav":s.a},data:function(){return{navpath:[{name:"首页",path:""},{name:"微信会员",path:"/wechatmembers"},{name:"会员设置",path:""}],value:!1,projectName:"member",actionUrl:"/api-plug/upload-img",dilogVisible:!1,maxlength:5,dilogImageUrl:""}},methods:{uploadOnSuccess:function(t){t.file.url=t.res.result[0].qcloudImageUrl,this.imageList.push(t.file)},deleteImage:function(t){this.imageList.splice(t,1)},saveSet:function(t){var e=this;Object(i.a)("/api-member/members-setting",{optype:t,appStatus:this.value?1:0}).then(function(a){0===a.data.errorCode?(1==a.data.result.appStatus&&(e.value=!0),2==t&&(e.$message({message:"设置成功!",type:"success"}),Object(c.setTimeout)(function(){e.$router.push({path:"/wechatmembers"})},1e3))):Object(n.a)(a.data.message)})},sortImg:function(t){this.imageList=t}},created:function(){this.saveSet(1),this.$store.commit("mutations-slide",!0)}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"member-setting"},[a("div",{staticClass:"minheight"},[a("v-nav",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"setting-con"},[a("div",{staticClass:"setting-container"},[a("el-switch",{model:{value:t.value,callback:function(e){t.value=e},expression:"value"}}),t._v(" "),a("span",{staticClass:"member-setting-txt"},[t._v("是否允许好办通过会员姓名、手机号和卡号搜索查询全品牌会员")])],1),t._v(" "),a("div",{staticClass:"save-btn"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.saveSet(2)}}},[t._v("保存")])],1)])],1),t._v(" "),a("div",{staticClass:"footer-box"},[a("vue-gic-footer")],1)])},staticRenderFns:[]};var u=a("VU/8")(o,r,!1,function(t){a("8Ri2")},"data-v-04000bb2",null);e.default=u.exports}});
\ No newline at end of file
webpackJsonp([34],{VuKn:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"upload"},[a("vue-gic-space",{ref:"myDropzone",attrs:{id:"dropzone",options:e.dropzoneOptions,action:e.folderUrl,parentId:e.parentId,useCustomSlot:!0}},[a("i",{staticClass:"el-icon-upload"}),e._v(" "),a("div",{staticClass:"el-upload__text"},[e._v("将图片或文件夹拖到此处上传,或点击"),a("b",[e._v("上传")]),e._v("图片")]),e._v(" "),a("div",{staticClass:"upload-tips"},[e._v("仅支持5M以内的jpg、png、gif格式的图片")])])],1)},staticRenderFns:[]},o=a("VU/8")({name:"upload-space",data:function(){return{dropzoneOptions:{autoProcessQueue:!1,url:"http://gicdev.com/api-mall/gic-cloud-image-upload?requestProject=mall",headers:{"Gic-Header":"header value"}},parentId:"60404611a2a64502b0612b703f8c3b27",folderUrl:"http://gicdev.com/api-mall/gic-cloud-image-createUploadFolder?requestProject=mall"}}},l,!1,null,null,null);t.default=o.exports}});
\ No newline at end of file
webpackJsonp([36],{VuKn:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"upload"},[a("vue-gic-space",{ref:"myDropzone",attrs:{id:"dropzone",options:e.dropzoneOptions,action:e.folderUrl,parentId:e.parentId,useCustomSlot:!0}},[a("i",{staticClass:"el-icon-upload"}),e._v(" "),a("div",{staticClass:"el-upload__text"},[e._v("将图片或文件夹拖到此处上传,或点击"),a("b",[e._v("上传")]),e._v("图片")]),e._v(" "),a("div",{staticClass:"upload-tips"},[e._v("仅支持5M以内的jpg、png、gif格式的图片")])])],1)},staticRenderFns:[]},o=a("VU/8")({name:"upload-space",data:function(){return{dropzoneOptions:{autoProcessQueue:!1,url:"http://gicdev.com/api-mall/gic-cloud-image-upload?requestProject=mall",headers:{"Gic-Header":"header value"}},parentId:"60404611a2a64502b0612b703f8c3b27",folderUrl:"http://gicdev.com/api-mall/gic-cloud-image-createUploadFolder?requestProject=mall"}}},l,!1,null,null,null);t.default=o.exports}});
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,r,t){for(var d,o,b,i=0,u=[];i<a.length;i++)o=a[i],f[o]&&u.push(f[o][0]),f[o]=0;for(d in r)Object.prototype.hasOwnProperty.call(r,d)&&(e[d]=r[d]);for(c&&c(a,r,t);u.length;)u.shift()();if(t)for(i=0;i<t.length;i++)b=n(n.s=t[i]);return b};var a={},f={37: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],t=document.createElement("script");t.type="text/javascript",t.charset="utf-8",t.async=!0,t.timeout=12e4,n.nc&&t.setAttribute("nonce",n.nc),t.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:"ad85e057a43f662343c8",15:"48cb116b1c8ec0652350",16:"dca6caf90d8f1ee04f3a",17:"114135d12556b79404c2",18:"f6ce2374bf12fecf63bc",19:"2d5cdb56de0818258b69",20:"afaf4fa1217fb13fe1d9",21:"65570af9d9194376370f",22:"9eff837868a2904a446d",23:"36dd87418fdec5061fbc",24:"094f5dfcc5c4a6fdbf94",25:"81a2e36693181a232b77",26:"be92d8963554612e26a6",27:"c21c5e0acaeec3fd5a2a",28:"ee5aadf86d94e8e1c21b",29:"404d582ecf449de44818",30:"dab2abccc427335e9bee",31:"e3c52bededb850bd3a27",32:"36cb6b1cf9251c0fce97",33:"4443f2ae8fbc8148ee2a",34:"313568109c4edd2e2d58"}[e]+".js";var d=setTimeout(o,12e4);function o(){t.onerror=t.onload=null,clearTimeout(d);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return t.onerror=t.onload=o,r.appendChild(t),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
......@@ -27,7 +27,8 @@
"vue": "^2.5.2",
"vue-router": "^3.0.1",
"vue-style-loader": "^3.1.2",
"vuex": "^3.0.1"
"vuex": "^3.0.1",
"xlsx": "^0.14.3"
},
"devDependencies": {
"autoprefixer": "^7.1.2",
......
......@@ -68,6 +68,11 @@ const urlConfig = {
getReturnMember: '/api-member/query-members-page', // 回收站门店
getSubStoreList: 'api-member/members-sub-store-list', // 获取选中会员的协管门店
updateMemberStore: '/api-member/member-load-update-store', // 修改单个会员的服务门店和协管门店
getBatchRecord: '/api-member/queryBatchRecord', // 批量积分导入-获取积分导入数据
downLoadExcelTemplate: '/api-member/downLoadExcelTemplate', // 批量积分导入-下载积分导入模板
uploadExecl: '/api-member/uploadExecl', // 批量积分导入-导入数据
queryBatchRetErrInfo: '/api-member/queryBatchRetErrInfo', // 批量积分导入-日志详情-获取数据
downloadErrorData: '/api-member/downloadErrorData', // 批量积分导入-日志详情-下载错误数据
}
const defaultUrl = Object.assign({}, urlConfig);
......
......@@ -771,49 +771,78 @@ export default {
checkStatus(err);
});
},
handleVisibleBatch(val) {
if(this.multipleList.length < 1) {
this.batchValue = '';
checkFalse('请勾选会员');
return false;
}
if (!val) {
if (this.batchValue == "integral") {
this.dialogIntegralVisible = true;
this.getEnterpriseInfo();
if (this.$refs.IntegralForm) {
this.$refs.IntegralForm.resetFields();
}
// handleVisibleBatch(val) {
// if(this.multipleList.length < 1) {
// this.batchValue = '';
// checkFalse('请勾选会员');
// return false;
// }
// if (!val) {
// if (this.batchValue == "integral") {
// this.dialogIntegralVisible = true;
// this.getEnterpriseInfo();
// if (this.$refs.IntegralForm) {
// this.$refs.IntegralForm.resetFields();
// }
// }
// if (this.batchValue == "grade") {
// this.dialogGradeVisible = true;
// this.getGradeList();
// if (this.$refs.gradeForm) {
// this.$refs.gradeForm.resetFields();
// }
// }
// if (this.batchValue == "mainstore") {
// this.dialogMainstoreVisible = true;
// if (this.$refs.mainstoreForm) {
// this.$refs.mainstoreForm.resetFields();
// }
// this.storeName = "";
// }
// if (this.batchValue == "store") {
// this.dialogSubStoreVisible = true;
// if (this.$refs.storeForm) {
// this.$refs.storeForm.resetFields();
// }
// this.getSubStoreList();
// }
// }
// },
handleFocusBatch(val) {
if (this.batchValue == "bulkIntegral") {
this.batchValue = '';
this.$router.push({ path: '/bulkIntegral' });
} else if(this.multipleList.length < 1) {
this.batchValue = '';
checkFalse('请勾选会员');
return false;
}
if (this.batchValue == "integral") {
this.dialogIntegralVisible = true;
this.getEnterpriseInfo();
if (this.$refs.IntegralForm) {
this.$refs.IntegralForm.resetFields();
}
if (this.batchValue == "grade") {
this.dialogGradeVisible = true;
this.getGradeList();
if (this.$refs.gradeForm) {
this.$refs.gradeForm.resetFields();
}
} else if (this.batchValue == "grade") {
this.dialogGradeVisible = true;
if (this.$refs.gradeForm) {
this.$refs.gradeForm.resetFields();
}
if (this.batchValue == "mainstore") {
this.dialogMainstoreVisible = true;
if (this.$refs.mainstoreForm) {
this.$refs.mainstoreForm.resetFields();
}
this.storeName = "";
} else if (this.batchValue == "mainstore") {
this.dialogMainstoreVisible = true;
this.selectStore(val);
if (this.$refs.mainstoreForm) {
this.$refs.mainstoreForm.resetFields();
}
if (this.batchValue == "store") {
this.dialogSubStoreVisible = true;
if (this.$refs.storeForm) {
this.$refs.storeForm.resetFields();
}
this.getSubStoreList();
this.storeName = '';
} else if (this.batchValue == "store") {
this.dialogSubStoreVisible = true;
if (this.$refs.storeForm) {
this.$refs.storeForm.resetFields();
}
this.getSubStoreList();
}
},
handleFocusBatch() {
if (this.multipleList.length < 1) {
this.batchValue = "";
checkFalse("请勾选会员");
return false;
}
this.batchValue = '';
},
selectAllmultipleList() {
this.selectAll = !this.selectAll;
......
......@@ -85,6 +85,11 @@
value="integral"
></el-option>
<el-option
key="bulkIntegral"
label="批量导入"
value="bulkIntegral"
></el-option>
<el-option
key="grade"
label="调整会员等级"
value="grade"
......
<template>
<div id="bulkLogsDetail">
<nav-path :navpath="navpath"></nav-path>
<div class="contentBulkIntegral">
<div class="contentInfo">
<div class="flex">
<span class="headerTips">总条数:{{ count.all }} 条,成功导入 {{ count.success }} 条,<span class="headerTipsError">错误 {{ count.error }}</span></span>
<el-button type="primary" @click="exportExcel"><i class="iconfont icon-icon_yunxiazai"></i> 导出</el-button>
</div>
<el-table
:data="tableData">
<el-table-column
prop="sequence"
label="序号">
</el-table-column>
<el-table-column
prop="errorCause"
label="错误提示">
</el-table-column>
<el-table-column
prop="cardNum"
label="会员卡号">
</el-table-column>
<el-table-column
prop="opIntegral"
label="变更额度">
</el-table-column>
<el-table-column
v-if="isShow"
prop="address"
label="成本主体">
<template slot-scope="{ row }">
{{ row.costStoreName || '--' }}
</template>
</el-table-column>
<el-table-column
prop="remark"
label="原因备注">
<template slot-scope="{ row }">
{{ row.remark || '--' }}
</template>
</el-table-column>
</el-table>
<!-- 分页 -->
<el-pagination
v-if="tableData.length > 0"
background
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="page.currentPage"
:page-sizes="[20, 40, 60, 80]"
:page-size="page.pageSize"
layout="total, sizes, prev, pager, next"
:total="page.totalCount">
</el-pagination>
</div>
</div>
<vue-gic-footer></vue-gic-footer>
</div>
</template>
<script>
import { doFetch, doFetchqs } from "../../components/axios/api";
import NavPath from "@/common/navbar/navbar.vue";
import url from "../../components/axios/url";
import {
checkFalse,
checkStatus,
checkSuccess
} from "../../../static/js/checkStatus";
export default {
data() {
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: false,
}
},
methods: {
// 导出
exportExcel() {
window.location.href = `${url.downloadErrorData}?requestProject=member&batchType=${this.batchType}&batchId=${this.batchId}` ;
},
// 获取数据
getLogsDetail() {
let params = {
batchId: this.batchId,
batchType: this.batchType
}
doFetchqs(url.queryBatchRetErrInfo, params).then(res => {
if(res.data.errorCode == 0) {
let value = res.data.result;
// console.log(value)
this.page.totalCount = value.totalCount;
this.tableData = value.result;
} else {
checkFalse(res.data.message)
}
}).catch(err => {
checkStatus(err);
})
},
},
created() {
if(!this.$route.query.data) {
checkFalse('123')
} else {
const { batchId, batchType, total, succeedNum, errorNum, operaUerName } = this.$route.query.data;
this.batchId = batchId;
this.batchType = batchType;
console.log(this.batchType)
if(batchType == 11) {
this.isShow = true;
this.operation = operaUerName
}
this.count.all = total;
this.count.success = succeedNum;
this.count.error = errorNum;
console.log(this.$route.query.data)
this.getLogsDetail();
}
},
components: {
NavPath
}
}
</script>
<style lang="scss" scoped>
#bulkLogsDetail {
height: 100%;
.el-table{
width:99.9%;
}
.contentBulkIntegral {
padding: 22px 24px;
.contentInfo {
padding: 30px 24px;
background-color: #fff;
.headerTips {
color: #303133;
font-size: 14px;
}
.headerTipsError {
color: #F5222D;
}
.flex {
padding-bottom: 22px;
}
/deep/ .el-table th>.cell {
font-weight: 700;
color: #303133;
}
/deep/ .el-pagination {
text-align: right;
margin: 20px 0 40px;
}
}
}
}
.flex {
display: flex;
justify-content: space-between;
align-items: center;
}
</style>
......@@ -789,49 +789,80 @@ export default {
checkStatus(err);
});
},
handleVisibleBatch(val) {
if(this.multipleList.length < 1) {
this.batchValue = '';
checkFalse('请勾选会员');
return false;
}
if (!val) {
if (this.batchValue == "integral") {
this.dilogIntegralVisible = true;
this.getEnterpriseInfo();
if (this.$refs.IntegralForm) {
this.$refs.IntegralForm.resetFields();
}
// handleVisibleBatch(val) {
// if (this.batchValue == "bulkIntegral") {
// this.$router.push({ path: '/bulkIntegral', query: { ids: 123 } });
// } else if(this.multipleList.length < 1) {
// this.batchValue = '';
// checkFalse('请勾选会员');
// return false;
// }
// if (!val) {
// if (this.batchValue == "integral") {
// this.dilogIntegralVisible = true;
// this.getEnterpriseInfo();
// if (this.$refs.IntegralForm) {
// this.$refs.IntegralForm.resetFields();
// }
// }
// if (this.batchValue == "grade") {
// this.dilogGradeVisible = true;
// if (this.$refs.gradeForm) {
// this.$refs.gradeForm.resetFields();
// }
// }
// if (this.batchValue == "mainstore") {
// this.dilogMainstoreVisible = true;
// this.selectStore(val);
// if (this.$refs.mainstoreForm) {
// this.$refs.mainstoreForm.resetFields();
// }
// this.storeName = '';
// }
// if (this.batchValue == "store") {
// this.dilogSubStoreVisible = true;
// if (this.$refs.storeForm) {
// this.$refs.storeForm.resetFields();
// }
// this.getSubStoreList();
// }
// }
// },
handleFocusBatch(val) {
if (this.batchValue == "bulkIntegral") {
this.batchValue = '';
this.$router.push({ path: '/bulkIntegral' });
} else if(this.multipleList.length < 1) {
this.batchValue = '';
checkFalse('请勾选会员');
return false;
}
if (this.batchValue == "integral") {
this.dilogIntegralVisible = true;
this.getEnterpriseInfo();
if (this.$refs.IntegralForm) {
this.$refs.IntegralForm.resetFields();
}
if (this.batchValue == "grade") {
this.dilogGradeVisible = true;
if (this.$refs.gradeForm) {
this.$refs.gradeForm.resetFields();
}
} else if (this.batchValue == "grade") {
this.dilogGradeVisible = true;
if (this.$refs.gradeForm) {
this.$refs.gradeForm.resetFields();
}
if (this.batchValue == "mainstore") {
this.dilogMainstoreVisible = true;
this.selectStore(val);
if (this.$refs.mainstoreForm) {
this.$refs.mainstoreForm.resetFields();
}
this.storeName = '';
} else if (this.batchValue == "mainstore") {
this.dilogMainstoreVisible = true;
this.selectStore(val);
if (this.$refs.mainstoreForm) {
this.$refs.mainstoreForm.resetFields();
}
if (this.batchValue == "store") {
this.dilogSubStoreVisible = true;
if (this.$refs.storeForm) {
this.$refs.storeForm.resetFields();
}
this.getSubStoreList();
this.storeName = '';
} else if (this.batchValue == "store") {
this.dilogSubStoreVisible = true;
if (this.$refs.storeForm) {
this.$refs.storeForm.resetFields();
}
this.getSubStoreList();
}
},
handleFocusBatch() {
if (this.multipleList.length < 1) {
this.batchValue = "";
checkFalse("请勾选会员");
return false;
}
this.batchValue = '';
},
selectAllmultipleList() {
this.selectAll = !this.selectAll;
......
......@@ -85,6 +85,11 @@
value="integral"
></el-option>
<el-option
key="bulkIntegral"
label="批量导入"
value="bulkIntegral"
></el-option>
<el-option
key="grade"
label="调整会员等级"
value="grade"
......
......@@ -699,49 +699,78 @@ export default {
checkStatus(err);
});
},
handleVisibleBatch(val) {
if(this.multipleList.length < 1) {
this.batchValue = '';
checkFalse('请勾选会员');
return false;
}
if (!val) {
if (this.batchValue == "integral") {
this.dilogIntegralVisible = true;
this.getEnterpriseInfo();
if (this.$refs.IntegralForm) {
this.$refs.IntegralForm.resetFields();
}
// handleVisibleBatch(val) {
// if(this.multipleList.length < 1) {
// this.batchValue = '';
// checkFalse('请勾选会员');
// return false;
// }
// if (!val) {
// if (this.batchValue == "integral") {
// this.dilogIntegralVisible = true;
// this.getEnterpriseInfo();
// if (this.$refs.IntegralForm) {
// this.$refs.IntegralForm.resetFields();
// }
// }
// if (this.batchValue == "grade") {
// this.dilogGradeVisible = true;
// if (this.$refs.gradeForm) {
// this.$refs.gradeForm.resetFields();
// }
// }
// if (this.batchValue == "mainstore") {
// this.dilogMainstoreVisible = true;
// this.selectStore(val);
// if (this.$refs.mainstoreForm) {
// this.$refs.mainstoreForm.resetFields();
// }
// this.storeName = '';
// }
// if (this.batchValue == "store") {
// this.dilogSubStoreVisible = true;
// if (this.$refs.storeForm) {
// this.$refs.storeForm.resetFields();
// }
// this.getSubStoreList();
// }
// }
// },
handleFocusBatch(val) {
if (this.batchValue == "bulkIntegral") {
this.batchValue = '';
this.$router.push({ path: '/bulkIntegral' });
} else if(this.multipleList.length < 1) {
this.batchValue = '';
checkFalse('请勾选会员');
return false;
}
if (this.batchValue == "integral") {
this.dilogIntegralVisible = true;
this.getEnterpriseInfo();
if (this.$refs.IntegralForm) {
this.$refs.IntegralForm.resetFields();
}
if (this.batchValue == "grade") {
this.dilogGradeVisible = true;
if (this.$refs.gradeForm) {
this.$refs.gradeForm.resetFields();
}
} else if (this.batchValue == "grade") {
this.dilogGradeVisible = true;
if (this.$refs.gradeForm) {
this.$refs.gradeForm.resetFields();
}
if (this.batchValue == "mainstore") {
this.dilogMainstoreVisible = true;
this.selectStore(val);
if (this.$refs.mainstoreForm) {
this.$refs.mainstoreForm.resetFields();
}
this.storeName = '';
} else if (this.batchValue == "mainstore") {
this.dilogMainstoreVisible = true;
this.selectStore(val);
if (this.$refs.mainstoreForm) {
this.$refs.mainstoreForm.resetFields();
}
if (this.batchValue == "store") {
this.dilogSubStoreVisible = true;
if (this.$refs.storeForm) {
this.$refs.storeForm.resetFields();
}
this.getSubStoreList();
this.storeName = '';
} else if (this.batchValue == "store") {
this.dilogSubStoreVisible = true;
if (this.$refs.storeForm) {
this.$refs.storeForm.resetFields();
}
this.getSubStoreList();
}
},
handleFocusBatch() {
if (this.multipleList.length < 1) {
this.batchValue = "";
checkFalse("请勾选会员");
return false;
}
this.batchValue = '';
},
selectAllmultipleList() {
this.selectAll = !this.selectAll;
......
......@@ -84,6 +84,11 @@
value="integral"
></el-option>
<el-option
key="bulkIntegral"
label="批量导入"
value="bulkIntegral"
></el-option>
<el-option
key="grade"
label="调整会员等级"
value="grade"
......
......@@ -221,6 +221,22 @@ export const constantRouterMap = [
meta: {
title: "微信会员-会员门店消费"
}
},
{
path: "/bulkIntegral",
name: "/bulkIntegral",
component: _import("wechatmembers", "bulkIntegral"),
meta: {
title: "批量导入"
}
},
{
path: "/bulkLogsDetail",
name: "/bulkLogsDetail",
component: _import("wechatmembers", "bulkLogsDetail"),
meta: {
title: "日志详情"
}
}
]
}
......
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