Commit d432a69e by huaying

update: dist

parent f7e71d75
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.
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><style href=//at.alicdn.com/t/font_2996579_ubjq74uy5wj.css></style><script src=//at.alicdn.com/t/font_2859043_ckil7xvsqi.js></script><script src=//web-1251519181.file.myqcloud.com/lib/lodash.min.js></script><title></title><link rel="shortcut icon" href=./favicon.ico><link href=./css/app.f87175e069fed9b1aa6948c2844afbfe.css rel=stylesheet></head><body><div id=app><div class=el-loading-spinner style="width: 98%;"><svg viewBox="25 25 50 50" class=circular><circle cx=50 cy=50 r=20 fill=none class=path></circle></svg></div></div><script>(function() {
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><style href=//at.alicdn.com/t/font_2996579_ubjq74uy5wj.css></style><script src=//at.alicdn.com/t/font_2859043_ckil7xvsqi.js></script><script src=//web-1251519181.file.myqcloud.com/lib/lodash.min.js></script><title></title><link rel="shortcut icon" href=./favicon.ico><link href=./css/app.38bd7193f71cee099fa06d0e2df971b9.css rel=stylesheet></head><body><div id=app><div class=el-loading-spinner style="width: 98%;"><svg viewBox="25 25 50 50" class=circular><circle cx=50 cy=50 r=20 fill=none class=path></circle></svg></div></div><script>(function() {
var src = '/component/static/import-component.js?timestrap='+ new Date().getTime();
var host = window.location.host;
host = host.indexOf('localhost') > -1 || host.indexOf('192.168') > -1 ? 'gicdev.demogic.com' : host;
document.write('<script src="//'+ host + src +'"><\/script>')
})()</script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js></script><script src=//web-1251519181.file.myqcloud.com/components/track.1.0.4.js></script><script type=text/javascript src=./js/manifest.f5aa7caac9c3f1b9aa02.js></script><script type=text/javascript src=./js/vendor.9d5aea3ee52b8d8365b8.js></script><script type=text/javascript src=./js/app.ce189c755dc39d5a1544.js></script></body></html>
\ No newline at end of file
})()</script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js></script><script src=//web-1251519181.file.myqcloud.com/components/track.1.0.4.js></script><script type=text/javascript src=./js/manifest.bde63dfa5f7a63bdf104.js></script><script type=text/javascript src=./js/vendor.9d5aea3ee52b8d8365b8.js></script><script type=text/javascript src=./js/app.935b5a1dab04acf4f240.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([17],{"/4nZ":function(e,t){},bkSp:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("Gu7T"),i=a.n(s),n=a("Dd8w"),c=a.n(n),o=a("AKaA"),l=a("NTL1"),g=a("SJI6"),r=a("8V46"),u={name:"CustomergradeDialog",props:{dialogVisible:{type:Boolean,default:!1},memberId:{type:String,default:""}},data:function(){return{visible:!1,tabsList:[{name:"clerk",label:"导购标签"},{name:"other",label:"其他标签"},{name:"weimo",label:"微盟标签"}],activeName:"clerk",weimobTagFlag:!1,tagsList:[],otherTagsList:[],weimobTagsList:[],btnLoading:!1}},computed:c()({},Object(g.mapState)(["showEditClique"])),watch:{dialogVisible:function(e,t){this.visible=e}},created:function(){this.getTagList()},methods:{cancel:function(){this.$emit("update:dialogVisible",!1)},getTagList:function(){var e=this;Object(o.a)(l.a.clerkTags,{memberId:this.memberId}).then(function(t){if(0===t.data.errorCode){var a=t.data.result,s=a.tagsList,i=void 0===s?[]:s,n=a.otherTagsList,c=void 0===n?[]:n,o=a.weimobTagsList,l=void 0===o?[]:o,g=a.weimobTagFlag,u=void 0!==g&&g;e.tagsList=e.formatTagsList(i),e.otherTagsList=e.formatTagsList(c),e.weimobTagsList=e.formatTagsList(l),e.weimobTagFlag=u,console.log(e.tagsList)}else Object(r.a)(t.data.message)}).catch(function(e){Object(r.b)(e)})},formatTagsList:function(e){var t=[];return e.length?(e.filter(function(e){return null==e.parentTagsId}).forEach(function(a){var s=[],i=a.isMultiple?[]:"";e.forEach(function(e){a.tagsId==e.parentTagsId&&(s.push(e),e.isCheck&&(a.isMultiple?i.push(e.tagsName):i=e.tagsId))}),t.push(c()({},a,{subTags:s,checkBox:i}))}),t):t},clickitem:function(e,t){t===e.checkBox?e.checkBox="":e.checkBox=t,this.changeCheck(e,!1)},changeCheck:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];console.log(e,"item");var a=0;if(this.$nextTick(function(e){}),t)for(var s=0;s<e.checkBox.length;s++)for(var i=e.checkBox[s],n=0;n<e.subTags.length;n++)i==e.subTags[n].tagsName&&(e.subTags[n].isCheck=1,a++);else{var c=e.subTags.find(function(t){return t.tagsId==e.checkBox});c&&(c.isCheck=1,a++)}a==e.subTags.length&&(e.isCheck=1)},submit:function(){var e=this;this.btnLoading=!0;var t=[];[].concat(i()(this.tagsList),i()(this.otherTagsList),i()(this.weimobTagsList)).forEach(function(e){e.isMultiple?e.subTags.forEach(function(a){e.checkBox.indexOf(a.tagsName)>-1&&t.push(a.tagsId)}):e.checkBox&&t.push(e.checkBox)}),console.log(t);var a="";t.length>0&&(a=t.join(",")),Object(o.a)(l.a.updateClerkTags,{memberId:this.memberId,tagIds:a}).then(function(t){0===t.data.errorCode?(Object(r.c)(),e.$emit("update:dialogVisible",!1),e.$emit("refresh")):Object(r.a)(t.data.message)}).then(function(){e.dilogTagVisible=!1}).catch(function(e){Object(r.b)(e)}).finally(function(t){return e.btnLoading=!1})}}},h={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-dialog",{attrs:{title:"编辑手工标签","custom-class":"customer-dialog label-dailog",visible:e.visible,"close-on-click-modal":!1,width:"600px"},on:{"update:visible":function(t){e.visible=t},close:e.cancel}},[a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[e._l(e.tabsList,function(t){return["weimo"!==t.name||e.weimobTagFlag?a("el-tab-pane",{key:t,attrs:{label:t.label,name:t.name}},["clerk"===t.name&&e.tagsList.length?a("ul",{staticClass:"tags-list"},e._l(e.tagsList,function(t,s){return a("li",{key:s,staticClass:"tag-item-new"},[t.subTags&&t.subTags.length?a("div",{staticClass:"tag-group-name"},[e._v("\n "+e._s(t.tagsName)+":\n ")]):e._e(),e._v(" "),t.tagsName&&t.subTags&&t.subTags.length?a("div",{staticClass:"tag-style"},[t.isMultiple?[a("el-checkbox-group",{model:{value:t.checkBox,callback:function(a){e.$set(t,"checkBox",a)},expression:"item.checkBox"}},e._l(t.subTags,function(s,i){return a("el-checkbox",{key:i,attrs:{label:s.tagsName},on:{change:function(a){return e.changeCheck(t)}}})}),1)]:[a("el-radio-group",{model:{value:t.checkBox,callback:function(a){e.$set(t,"checkBox",a)},expression:"item.checkBox"}},e._l(t.subTags,function(s,i){return a("el-radio",{key:i,attrs:{label:s.tagsId},on:{change:function(a){return e.changeCheck(t,!1)}},nativeOn:{click:function(a){return a.preventDefault(),e.clickitem(t,s.tagsId)}}},[e._v(e._s(s.tagsName))])}),1)]],2):e._e()])}),0):e._e(),e._v(" "),"other"===t.name&&e.otherTagsList.length?a("ul",{staticClass:"tags-list"},e._l(e.otherTagsList,function(t,s){return a("li",{key:s,staticClass:"tag-item-new"},[t.subTags&&t.subTags.length?a("div",{staticClass:"tag-group-name"},[e._v("\n "+e._s(t.tagsName)+":\n ")]):e._e(),e._v(" "),t.tagsName&&t.subTags&&t.subTags.length?a("div",{staticClass:"tag-style"},[t.isMultiple?[a("el-checkbox-group",{model:{value:t.checkBox,callback:function(a){e.$set(t,"checkBox",a)},expression:"item.checkBox"}},e._l(t.subTags,function(s,i){return a("el-checkbox",{key:i,attrs:{label:s.tagsName},on:{change:function(a){return e.changeCheck(t)}}})}),1)]:[a("el-radio-group",{model:{value:t.checkBox,callback:function(a){e.$set(t,"checkBox",a)},expression:"item.checkBox"}},e._l(t.subTags,function(s,i){return a("el-radio",{key:i,attrs:{label:s.tagsId},nativeOn:{click:function(a){return a.preventDefault(),e.clickitem(t,s.tagsId)}}},[e._v(e._s(s.tagsName))])}),1)]],2):e._e()])}),0):e._e(),e._v(" "),"weimo"===t.name&&e.weimobTagsList.length?a("ul",{staticClass:"tags-list"},e._l(e.weimobTagsList,function(t,s){return a("li",{key:s,staticClass:"tag-item-new"},[t.subTags&&t.subTags.length?a("div",{staticClass:"tag-group-name"},[e._v("\n "+e._s(t.tagsName)+":\n ")]):e._e(),e._v(" "),t.tagsName&&t.subTags&&t.subTags.length?a("div",{staticClass:"tag-style"},[t.isMultiple?[a("el-checkbox-group",{model:{value:t.checkBox,callback:function(a){e.$set(t,"checkBox",a)},expression:"item.checkBox"}},e._l(t.subTags,function(s,i){return a("el-checkbox",{key:i,attrs:{label:s.tagsName},on:{change:function(a){return e.changeCheck(t)}}})}),1)]:[a("el-radio-group",{model:{value:t.checkBox,callback:function(a){e.$set(t,"checkBox",a)},expression:"item.checkBox"}},e._l(t.subTags,function(s,i){return a("el-radio",{key:i,attrs:{label:s.tagsId},on:{change:function(a){return e.changeCheck(t,!1)}}},[e._v(e._s(s.tagsName))])}),1)]],2):e._e()])}),0):e._e()]):e._e()]})],2),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancel}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:e.submit}},[e._v("确定")])],1)],1)],1)},staticRenderFns:[]};var b=a("VU/8")(u,h,!1,function(e){a("rC58"),a("/4nZ")},"data-v-5dda0792",null);t.default=b.exports},rC58:function(e,t){}});
\ No newline at end of file
webpackJsonp([18],{"/HCr":function(t,s,e){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var i=e("2X9c"),a=e.n(i),r={name:"page500",data:function(){return{img_500:a.a}},computed:{message:function(){return"抱歉,服务器出错了"}}},n={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_500,alt:"500"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"member/#/memberSummary"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var c=e("VU/8")(r,n,!1,function(t){e("JX2R")},"data-v-4ce96fce",null);s.default=c.exports},"2X9c":function(t,s,e){t.exports=e.p+"img/error_500.af3a106.svg"},JX2R:function(t,s){}});
\ No newline at end of file
webpackJsonp([19],{"/HCr":function(t,s,e){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var i=e("2X9c"),a=e.n(i),r={name:"page500",data:function(){return{img_500:a.a}},computed:{message:function(){return"抱歉,服务器出错了"}}},n={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_500,alt:"500"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"member/#/memberSummary"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var c=e("VU/8")(r,n,!1,function(t){e("JX2R")},"data-v-4ce96fce",null);s.default=c.exports},"2X9c":function(t,s,e){t.exports=e.p+"img/error_500.af3a106.svg"},JX2R:function(t,s){}});
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([19],{I2id:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c={name:"TableColumDailog",props:{checkedFields:{type:Array,default:function(){return[]}},memberFields:{type:Array,default:function(){return[]}},dialogVisible:{type:Boolean,default:!1}},data:function(){return{visible:!1,checkedFieldsCopy:[]}},watch:{dialogVisible:function(e,t){this.visible=e,e&&(this.checkedFieldsCopy=[].concat(this.checkedFields))}},methods:{submitFields:function(){this.$emit("update:dialogVisible",!1),this.$emit("submit",this.checkedFieldsCopy.join(","))},cancel:function(){this.checkedFieldsCopy=[].concat(this.checkedFields),this.$emit("update:dialogVisible",!1)}}},l={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-dialog",{attrs:{title:"设置显示字段","custom-class":"table-colum-dailog",visible:e.visible,width:"600px"},on:{"update:visible":function(t){e.visible=t},close:e.cancel}},[i("div",{staticClass:"checkwtip mBottom10"},[e._v("\n 请选择您想显示的列表字段,最多勾选8个选项,已经勾选了 "),i("span",{staticClass:"curcheck"},[e._v(e._s(e.checkedFieldsCopy.length))]),e._v(" 个\n ")]),e._v(" "),i("el-checkbox-group",{staticClass:"table-colum-wrap",attrs:{min:0,max:8},model:{value:e.checkedFieldsCopy,callback:function(t){e.checkedFieldsCopy=t},expression:"checkedFieldsCopy"}},e._l(e.memberFields,function(t,c){return i("el-checkbox",{key:c,staticClass:"table-colum-item",attrs:{label:t.code,disabled:"name"===t.code}},[e._v("\n "+e._s(t.name)+"\n ")])}),1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.cancel}},[e._v("取消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.submitFields}},[e._v("确定")])],1)],1)],1)},staticRenderFns:[]};var s=i("VU/8")(c,l,!1,function(e){i("cTA3"),i("LqXP")},"data-v-32b42c29",null);t.default=s.exports},LqXP:function(e,t){},cTA3:function(e,t){}});
\ No newline at end of file
webpackJsonp([20],{I2id:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c={name:"TableColumDailog",props:{checkedFields:{type:Array,default:function(){return[]}},memberFields:{type:Array,default:function(){return[]}},dialogVisible:{type:Boolean,default:!1}},data:function(){return{visible:!1,checkedFieldsCopy:[]}},watch:{dialogVisible:function(e,t){this.visible=e,e&&(this.checkedFieldsCopy=[].concat(this.checkedFields))}},methods:{submitFields:function(){this.$emit("update:dialogVisible",!1),this.$emit("submit",this.checkedFieldsCopy.join(","))},cancel:function(){this.checkedFieldsCopy=[].concat(this.checkedFields),this.$emit("update:dialogVisible",!1)}}},l={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-dialog",{attrs:{title:"设置显示字段","custom-class":"table-colum-dailog",visible:e.visible,width:"600px"},on:{"update:visible":function(t){e.visible=t},close:e.cancel}},[i("div",{staticClass:"checkwtip mBottom10"},[e._v("\n 请选择您想显示的列表字段,最多勾选8个选项,已经勾选了 "),i("span",{staticClass:"curcheck"},[e._v(e._s(e.checkedFieldsCopy.length))]),e._v(" 个\n ")]),e._v(" "),i("el-checkbox-group",{staticClass:"table-colum-wrap",attrs:{min:0,max:8},model:{value:e.checkedFieldsCopy,callback:function(t){e.checkedFieldsCopy=t},expression:"checkedFieldsCopy"}},e._l(e.memberFields,function(t,c){return i("el-checkbox",{key:c,staticClass:"table-colum-item",attrs:{label:t.code,disabled:"name"===t.code}},[e._v("\n "+e._s(t.name)+"\n ")])}),1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.cancel}},[e._v("取消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.submitFields}},[e._v("确定")])],1)],1)],1)},staticRenderFns:[]};var s=i("VU/8")(c,l,!1,function(e){i("cTA3"),i("LqXP")},"data-v-32b42c29",null);t.default=s.exports},LqXP:function(e,t){},cTA3:function(e,t){}});
\ No newline at end of file
webpackJsonp([20],{"38GJ":function(e,t){},OoPs:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("woOf"),i=a.n(o),r=a("Dd8w"),s=a.n(r),n=a("AKaA"),l=a("NTL1"),c=a("SJI6"),d=a("8V46"),m={name:"MainstoreDailog",props:{dialogVisible:{type:Boolean,default:!1},ajaxObj:{type:Object,default:function(){return{pageName:""}}},selectObj:{type:Object,default:function(){return{totalCount:0,selectAll:!1,multipleList:[]}}}},data:function(){return{visible:!1,form:{remark:"",optType:1,mainOptType:4,mainStoreId:""},rules:{mainStoreId:[{required:!0,message:"请选择服务门店",trigger:"change"}],remark:[{required:!0,message:"请输入原因备注",trigger:"change"}]},mainstoreList:[],loading:!1,btnLoading:!1}},computed:s()({},Object(c.mapState)(["showEditClique"])),watch:{dialogVisible:function(e,t){this.visible=e}},methods:{cancel:function(){this.$refs.form.resetFields(),this.$emit("update:dialogVisible",!1)},getMainStoreCodeName:function(e){var t=this;this.loading=!0,Object(n.c)(l.a.storeCodeName,{searchParam:e,flag:1}).then(function(e){0===e.data.errorCode?t.mainstoreList=e.data.result:Object(d.a)(e.data.message)}).catch(function(e){Object(d.b)(e)}).finally(function(e){return t.loading=!1})},submit:function(){var e=this;this.$refs.form.validate(function(t){if(!t)return!1;var a=e.selectObj,o=a.selectAll,r=a.multipleList,s=e.ajaxObj,c=s.pageSize,m=s.phoneNameCard,u=s.storeId;e.btnLoading=!0;var f=[];r.forEach(function(e){f.push(e.memberId)});var p=i()({},e.form,{memberIds:f.join(","),isCurrent:1==o?2:r.length==c?1:0,optType:1,mainOptType:4,listSign:"MemberProcessed",listSignId:u,sortField:"",phoneNameNick:m||"",memberListType:0});Object(n.a)(l.a.batchUpdateStore,p).then(function(t){0===t.data.errorCode?(Object(d.c)(),e.$refs.form.resetFields(),e.$emit("update:dialogVisible",!1),e.$emit("successImport",t.data.result),e.$emit("refresh")):Object(d.a)()}).catch(function(e){Object(d.b)(e)}).finally(function(t){return e.btnLoading=!1})})}}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-dialog",{attrs:{title:"批量修改服务门店","custom-class":"customer-dialog",visible:e.visible,"close-on-click-modal":!1,width:"600px"},on:{"update:visible":function(t){e.visible=t},close:e.cancel}},[a("div",{staticClass:"checkedCustomers"},[e._v("\n 当前选中"),a("span",{staticClass:"num"},[e._v("\n "+e._s(e.selectObj.selectAll?e.selectObj.totalCount:e.selectObj.multipleList.length)+" ")]),e._v("位客户\n ")]),e._v(" "),a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"133px"}},[a("el-form-item",{attrs:{label:"服务门店:",prop:"mainStoreId"}},[a("el-select",{staticStyle:{width:"382px"},attrs:{filterable:"",remote:"","reserve-keyword":"",placeholder:"请输入门店名称/门店code","remote-method":e.getMainStoreCodeName,"popper-class":"option-wrap",loading:e.loading},model:{value:e.form.mainStoreId,callback:function(t){e.$set(e.form,"mainStoreId",t)},expression:"form.mainStoreId"}},e._l(e.mainstoreList,function(t){return a("el-option",{key:t.storeId,attrs:{label:t.storeName,value:t.storeId}},[a("p",{staticClass:"name"},[e._v("\n "+e._s(t.storeName)+"\n ")]),e._v(" "),a("p",{staticClass:"code"},[e._v("\n "+e._s(t.storeCode)+"\n ")])])}),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"原因备注:",prop:"remark"}},[a("el-input",{staticStyle:{width:"382px"},attrs:{type:"text",maxlength:"20","show-word-limit":"",placeholder:"请输入内容"},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancel}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:e.submit}},[e._v("确定")])],1)],1)],1)},staticRenderFns:[]};var f=a("VU/8")(m,u,!1,function(e){a("38GJ"),a("g8+R")},"data-v-20e9a220",null);t.default=f.exports},"g8+R":function(e,t){}});
\ No newline at end of file
webpackJsonp([21],{"38GJ":function(e,t){},OoPs:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("woOf"),i=a.n(o),r=a("Dd8w"),s=a.n(r),n=a("AKaA"),l=a("NTL1"),c=a("SJI6"),d=a("8V46"),m={name:"MainstoreDailog",props:{dialogVisible:{type:Boolean,default:!1},ajaxObj:{type:Object,default:function(){return{pageName:""}}},selectObj:{type:Object,default:function(){return{totalCount:0,selectAll:!1,multipleList:[]}}}},data:function(){return{visible:!1,form:{remark:"",optType:1,mainOptType:4,mainStoreId:""},rules:{mainStoreId:[{required:!0,message:"请选择服务门店",trigger:"change"}],remark:[{required:!0,message:"请输入原因备注",trigger:"change"}]},mainstoreList:[],loading:!1,btnLoading:!1}},computed:s()({},Object(c.mapState)(["showEditClique"])),watch:{dialogVisible:function(e,t){this.visible=e}},methods:{cancel:function(){this.$refs.form.resetFields(),this.$emit("update:dialogVisible",!1)},getMainStoreCodeName:function(e){var t=this;this.loading=!0,Object(n.c)(l.a.storeCodeName,{searchParam:e,flag:1}).then(function(e){0===e.data.errorCode?t.mainstoreList=e.data.result:Object(d.a)(e.data.message)}).catch(function(e){Object(d.b)(e)}).finally(function(e){return t.loading=!1})},submit:function(){var e=this;this.$refs.form.validate(function(t){if(!t)return!1;var a=e.selectObj,o=a.selectAll,r=a.multipleList,s=e.ajaxObj,c=s.pageSize,m=s.phoneNameCard,u=s.storeId;e.btnLoading=!0;var f=[];r.forEach(function(e){f.push(e.memberId)});var p=i()({},e.form,{memberIds:f.join(","),isCurrent:1==o?2:r.length==c?1:0,optType:1,mainOptType:4,listSign:"MemberProcessed",listSignId:u,sortField:"",phoneNameNick:m||"",memberListType:0});Object(n.a)(l.a.batchUpdateStore,p).then(function(t){0===t.data.errorCode?(Object(d.c)(),e.$refs.form.resetFields(),e.$emit("update:dialogVisible",!1),e.$emit("successImport",t.data.result),e.$emit("refresh")):Object(d.a)()}).catch(function(e){Object(d.b)(e)}).finally(function(t){return e.btnLoading=!1})})}}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-dialog",{attrs:{title:"批量修改服务门店","custom-class":"customer-dialog",visible:e.visible,"close-on-click-modal":!1,width:"600px"},on:{"update:visible":function(t){e.visible=t},close:e.cancel}},[a("div",{staticClass:"checkedCustomers"},[e._v("\n 当前选中"),a("span",{staticClass:"num"},[e._v("\n "+e._s(e.selectObj.selectAll?e.selectObj.totalCount:e.selectObj.multipleList.length)+" ")]),e._v("位客户\n ")]),e._v(" "),a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"133px"}},[a("el-form-item",{attrs:{label:"服务门店:",prop:"mainStoreId"}},[a("el-select",{staticStyle:{width:"382px"},attrs:{filterable:"",remote:"","reserve-keyword":"",placeholder:"请输入门店名称/门店code","remote-method":e.getMainStoreCodeName,"popper-class":"option-wrap",loading:e.loading},model:{value:e.form.mainStoreId,callback:function(t){e.$set(e.form,"mainStoreId",t)},expression:"form.mainStoreId"}},e._l(e.mainstoreList,function(t){return a("el-option",{key:t.storeId,attrs:{label:t.storeName,value:t.storeId}},[a("p",{staticClass:"name"},[e._v("\n "+e._s(t.storeName)+"\n ")]),e._v(" "),a("p",{staticClass:"code"},[e._v("\n "+e._s(t.storeCode)+"\n ")])])}),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"原因备注:",prop:"remark"}},[a("el-input",{staticStyle:{width:"382px"},attrs:{type:"text",maxlength:"20","show-word-limit":"",placeholder:"请输入内容"},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancel}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:e.submit}},[e._v("确定")])],1)],1)],1)},staticRenderFns:[]};var f=a("VU/8")(m,u,!1,function(e){a("38GJ"),a("g8+R")},"data-v-20e9a220",null);t.default=f.exports},"g8+R":function(e,t){}});
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([22],{UUL9:function(e,t){},bkSp:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("Gu7T"),i=a.n(s),n=a("Dd8w"),c=a.n(n),o=a("AKaA"),l=a("NTL1"),g=a("SJI6"),u=a("8V46"),r={name:"CustomergradeDialog",props:{dialogVisible:{type:Boolean,default:!1},memberId:{type:String,default:""}},data:function(){return{visible:!1,tabsList:[{name:"clerk",label:"导购标签"},{name:"other",label:"其他标签"},{name:"weimo",label:"微盟标签"}],activeName:"clerk",weimobTagFlag:!1,tagsList:[],otherTagsList:[],weimobTagsList:[],btnLoading:!1}},computed:c()({},Object(g.mapState)(["showEditClique"])),watch:{dialogVisible:function(e,t){this.visible=e}},created:function(){this.getTagList()},methods:{cancel:function(){this.$emit("update:dialogVisible",!1)},getTagList:function(){var e=this;Object(o.a)(l.a.clerkTags,{memberId:this.memberId}).then(function(t){if(0===t.data.errorCode){var a=t.data.result,s=a.tagsList,i=void 0===s?[]:s,n=a.otherTagsList,c=void 0===n?[]:n,o=a.weimobTagsList,l=void 0===o?[]:o,g=a.weimobTagFlag,r=void 0!==g&&g;e.tagsList=e.formatTagsList(i),e.otherTagsList=e.formatTagsList(c),e.weimobTagsList=e.formatTagsList(l),e.weimobTagFlag=r,console.log(e.tagsList)}else Object(u.a)(t.data.message)}).catch(function(e){Object(u.b)(e)})},formatTagsList:function(e){var t=[];return e.length?(e.filter(function(e){return null==e.parentTagsId}).forEach(function(a){var s=[],i=a.isMultiple?[]:"";e.forEach(function(e){a.tagsId==e.parentTagsId&&(s.push(e),e.isCheck&&(a.isMultiple?i.push(e.tagsName):i=e.tagsId))}),t.push(c()({},a,{subTags:s,checkBox:i}))}),t):t},clickitem:function(e,t){t===e.checkBox?e.checkBox="":e.checkBox=t,this.changeCheck(e,!1)},changeCheck:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];console.log(e,"item");var a=0;if(this.$nextTick(function(e){}),t)for(var s=0;s<e.checkBox.length;s++)for(var i=e.checkBox[s],n=0;n<e.subTags.length;n++)i==e.subTags[n].tagsName&&(e.subTags[n].isCheck=1,a++);else{var c=e.subTags.find(function(t){return t.tagsId==e.checkBox});c&&(c.isCheck=1,a++)}a==e.subTags.length&&(e.isCheck=1)},submit:function(){var e=this;this.btnLoading=!0;var t=[];[].concat(i()(this.tagsList),i()(this.otherTagsList),i()(this.weimobTagsList)).forEach(function(e){e.isMultiple?e.subTags.forEach(function(a){e.checkBox.indexOf(a.tagsName)>-1&&t.push(a.tagsId)}):e.checkBox&&t.push(e.checkBox)}),console.log(t);var a="";t.length>0&&(a=t.join(",")),Object(o.a)(l.a.updateClerkTags,{memberId:this.memberId,tagIds:a}).then(function(t){0===t.data.errorCode?(Object(u.c)(),e.$emit("update:dialogVisible",!1),e.$emit("refresh")):Object(u.a)(t.data.message)}).then(function(){e.dilogTagVisible=!1}).catch(function(e){Object(u.b)(e)}).finally(function(t){return e.btnLoading=!1})}}},h={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-dialog",{attrs:{title:"编辑手工标签","custom-class":"customer-dialog label-dailog",visible:e.visible,"close-on-click-modal":!1,width:"600px"},on:{"update:visible":function(t){e.visible=t},close:e.cancel}},[a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[e._l(e.tabsList,function(t){return["weimo"!==t.name||e.weimobTagFlag?a("el-tab-pane",{key:t,attrs:{label:t.label,name:t.name}},["clerk"===t.name&&e.tagsList.length?a("ul",{staticClass:"tags-list"},e._l(e.tagsList,function(t,s){return a("li",{key:s,staticClass:"tag-item-new"},[t.subTags&&t.subTags.length?a("div",{staticClass:"tag-group-name"},[e._v("\n "+e._s(t.tagsName)+":\n ")]):e._e(),e._v(" "),t.tagsName&&t.subTags&&t.subTags.length?a("div",{staticClass:"tag-style"},[t.isMultiple?[a("el-checkbox-group",{model:{value:t.checkBox,callback:function(a){e.$set(t,"checkBox",a)},expression:"item.checkBox"}},e._l(t.subTags,function(s,i){return a("el-checkbox",{key:i,attrs:{label:s.tagsName},on:{change:function(a){return e.changeCheck(t)}}})}),1)]:[a("el-radio-group",{model:{value:t.checkBox,callback:function(a){e.$set(t,"checkBox",a)},expression:"item.checkBox"}},e._l(t.subTags,function(s,i){return a("el-radio",{key:i,attrs:{label:s.tagsId},on:{change:function(a){return e.changeCheck(t,!1)}},nativeOn:{click:function(a){return a.preventDefault(),e.clickitem(t,s.tagsId)}}},[e._v(e._s(s.tagsName))])}),1)]],2):e._e()])}),0):e._e(),e._v(" "),"other"===t.name&&e.otherTagsList.length?a("ul",{staticClass:"tags-list"},e._l(e.otherTagsList,function(t,s){return a("li",{key:s,staticClass:"tag-item-new"},[t.subTags&&t.subTags.length?a("div",{staticClass:"tag-group-name"},[e._v("\n "+e._s(t.tagsName)+":\n ")]):e._e(),e._v(" "),t.tagsName&&t.subTags&&t.subTags.length?a("div",{staticClass:"tag-style"},[t.isMultiple?[a("el-checkbox-group",{model:{value:t.checkBox,callback:function(a){e.$set(t,"checkBox",a)},expression:"item.checkBox"}},e._l(t.subTags,function(s,i){return a("el-checkbox",{key:i,attrs:{label:s.tagsName},on:{change:function(a){return e.changeCheck(t)}}})}),1)]:[a("el-radio-group",{model:{value:t.checkBox,callback:function(a){e.$set(t,"checkBox",a)},expression:"item.checkBox"}},e._l(t.subTags,function(s,i){return a("el-radio",{key:i,attrs:{label:s.tagsId},nativeOn:{click:function(a){return a.preventDefault(),e.clickitem(t,s.tagsId)}}},[e._v(e._s(s.tagsName))])}),1)]],2):e._e()])}),0):e._e(),e._v(" "),"weimo"===t.name&&e.weimobTagsList.length?a("ul",{staticClass:"tags-list"},e._l(e.weimobTagsList,function(t,s){return a("li",{key:s,staticClass:"tag-item-new"},[t.subTags&&t.subTags.length?a("div",{staticClass:"tag-group-name"},[e._v("\n "+e._s(t.tagsName)+":\n ")]):e._e(),e._v(" "),t.tagsName&&t.subTags&&t.subTags.length?a("div",{staticClass:"tag-style"},[t.isMultiple?[a("el-checkbox-group",{model:{value:t.checkBox,callback:function(a){e.$set(t,"checkBox",a)},expression:"item.checkBox"}},e._l(t.subTags,function(s,i){return a("el-checkbox",{key:i,attrs:{label:s.tagsName},on:{change:function(a){return e.changeCheck(t)}}})}),1)]:[a("el-radio-group",{model:{value:t.checkBox,callback:function(a){e.$set(t,"checkBox",a)},expression:"item.checkBox"}},e._l(t.subTags,function(s,i){return a("el-radio",{key:i,attrs:{label:s.tagsId},on:{change:function(a){return e.changeCheck(t,!1)}}},[e._v(e._s(s.tagsName))])}),1)]],2):e._e()])}),0):e._e()]):e._e()]})],2),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancel}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:e.submit}},[e._v("确定")])],1)],1)],1)},staticRenderFns:[]};var b=a("VU/8")(r,h,!1,function(e){a("nEtW"),a("UUL9")},"data-v-17e0817a",null);t.default=b.exports},nEtW:function(e,t){}});
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,b,n){for(var r,t,o,u=0,i=[];u<a.length;u++)t=a[u],f[t]&&i.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(a,b,n);i.length;)i.shift()();if(n)for(u=0;u<n.length;u++)o=d(d.s=n[u]);return o};var a={},f={72: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 b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"js/"+e+"."+{0:"22b097cf91a975f9120c",1:"792e2fe743f2112a2b1a",2:"623aabd181f74a6087eb",3:"26a329731813b9ca20e6",4:"cb17320ba2eed7078748",5:"46de8f6e04f9e0e6af0e",6:"13e1ac7366c55f444084",7:"252873450682bb2bf9d4",8:"715fe9acc5dad01f30a4",9:"c89adee69fdd6003b083",10:"7e3e330c584eb4e536c7",11:"16d4da5bfe7527d7634a",12:"5e8cff75150b6e47ba1e",13:"24c92e69d8519499ecd9",14:"aa90b5fd6230a2198a5a",15:"11aadcf767cc3a270385",16:"0e36401a02ab719a0839",17:"535d46fe81c58e24b5dc",18:"578191053b32d0c337a8",19:"5cd9f36c1c325d1c9c09",20:"4bb7561c1b8174c237fe",21:"6a4c6703413a6d0f9b6d",22:"f5c51c58b263f3f37d4b",23:"ee83357cd45cffe4f5f8",24:"c8a1fbbcba0a4ad34538",25:"8c90cc35d2ec5af8e7f0",26:"7894f21cba247ad5a2e9",27:"1e5dbf50362ff5284854",28:"4c083d1732edf77e5851",29:"50972f8d61991396647c",30:"23e0df2560dd7244da86",31:"95247cd8a567510473fd",32:"cdad4cdda01ce7f92842",33:"900f1202d5f3abbc4ae4",34:"c612738fbd7663f36a7d",35:"dba32f2e0ef2813f853f",36:"b9ea79092488f1214206",37:"df4e686c0539e30d8e2e",38:"2efcf9fa8462b2948e21",39:"7ff6c2ba1487d56fcef1",40:"4cce77768152691a90b0",41:"a5957e6864673c79afea",42:"86483a2e1d0043a1b3b7",43:"adda8598ccbc30b77bff",44:"00461f28eabe1904c38c",45:"b00fc76a11c3251537cd",46:"a20dfbf554e9f89f86c7",47:"4c86ae5753ec23a587d3",48:"f8f711109af7b8239284",49:"0269d9079a60b54e46e9",50:"dbd5b77ddb20652c49b6",51:"565fc559cb435f4475f5",52:"3e2bce97933ffd4d2189",53:"b5b695aee12213240f06",54:"35d7f7bd23f2ae75e125",55:"a28d7d512a41d55ed64d",56:"0b8c8d82238f9b645e98",57:"e7a36bba0cf16d3f69d7",58:"58a5b7c7035cf912a62b",59:"31a93f03c5bdf02bbc18",60:"280d35d393b717b2dfd6",61:"cd9b10fe521894b9e071",62:"cb21bc60d529116589c5",63:"0573806a3f84cdd11206",64:"389d9ec09ccf784353f8",65:"d1a020c89781aab81b7a",66:"54ed84a15513135a8e94",67:"c36468decf22c70d8e6a",68:"b7657a1ed5e75f19caac",69:"7a47ed45685fc4ffaf66"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),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
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,b,n){for(var r,t,o,u=0,i=[];u<c.length;u++)t=c[u],f[t]&&i.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(a&&a(c,b,n);i.length;)i.shift()();if(n)for(u=0;u<n.length;u++)o=d(d.s=n[u]);return o};var c={},f={72:0};function d(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,d){a=f[e]=[c,d]});a[2]=c;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"js/"+e+"."+{0:"22b097cf91a975f9120c",1:"e8a5c2b1eba3f4548ea2",2:"f59baa2d4ffee2298891",3:"26a329731813b9ca20e6",4:"cb17320ba2eed7078748",5:"d001dc62b180d54862b5",6:"13e1ac7366c55f444084",7:"252873450682bb2bf9d4",8:"715fe9acc5dad01f30a4",9:"c89adee69fdd6003b083",10:"7e3e330c584eb4e536c7",11:"16d4da5bfe7527d7634a",12:"5e8cff75150b6e47ba1e",13:"24c92e69d8519499ecd9",14:"aa90b5fd6230a2198a5a",15:"11aadcf767cc3a270385",16:"0e36401a02ab719a0839",17:"f6ac18d230f85c5d0704",18:"ede2373f5ed2b339923e",19:"5ebdfcc9aa49b4e3e2e6",20:"1c41f0dec5d564552e06",21:"62d94088c4e853dcaa2e",22:"bf8f31fe5ee3fb2d0959",23:"ee83357cd45cffe4f5f8",24:"c8a1fbbcba0a4ad34538",25:"8c90cc35d2ec5af8e7f0",26:"7894f21cba247ad5a2e9",27:"1e5dbf50362ff5284854",28:"4c083d1732edf77e5851",29:"50972f8d61991396647c",30:"23e0df2560dd7244da86",31:"95247cd8a567510473fd",32:"cdad4cdda01ce7f92842",33:"900f1202d5f3abbc4ae4",34:"c612738fbd7663f36a7d",35:"dba32f2e0ef2813f853f",36:"b9ea79092488f1214206",37:"df4e686c0539e30d8e2e",38:"2efcf9fa8462b2948e21",39:"7ff6c2ba1487d56fcef1",40:"4cce77768152691a90b0",41:"a5957e6864673c79afea",42:"86483a2e1d0043a1b3b7",43:"adda8598ccbc30b77bff",44:"00461f28eabe1904c38c",45:"b00fc76a11c3251537cd",46:"a20dfbf554e9f89f86c7",47:"4c86ae5753ec23a587d3",48:"f8f711109af7b8239284",49:"0269d9079a60b54e46e9",50:"dbd5b77ddb20652c49b6",51:"565fc559cb435f4475f5",52:"3e2bce97933ffd4d2189",53:"b5b695aee12213240f06",54:"35d7f7bd23f2ae75e125",55:"a28d7d512a41d55ed64d",56:"0b8c8d82238f9b645e98",57:"e7a36bba0cf16d3f69d7",58:"58a5b7c7035cf912a62b",59:"31a93f03c5bdf02bbc18",60:"280d35d393b717b2dfd6",61:"cd9b10fe521894b9e071",62:"cb21bc60d529116589c5",63:"0573806a3f84cdd11206",64:"389d9ec09ccf784353f8",65:"d1a020c89781aab81b7a",66:"54ed84a15513135a8e94",67:"c36468decf22c70d8e6a",68:"b7657a1ed5e75f19caac",69:"7a47ed45685fc4ffaf66"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),c},d.m=e,d.c=c,d.d=function(e,a,c){d.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},d.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(a,"a",a),a},d.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},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