Commit e3f6a863 by zhu_yu_dan

fix:太平鸟集团后台积分策略硬编码限定

parent e604c21b
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>GIC-集团后台</title><link href=./static/css/main.22334b87072e652200dce73b1be4ea5c.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/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/elementUI/index.2.5.4.js></script><script src=//web-1251519181.file.myqcloud.com/components/header.2.0.06.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/group-people.2.0.08.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-group.2.0.06.js></script><script src=//web-1251519181.file.myqcloud.com/components/aside-menu.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/area-ab.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/input.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/export-excel.2.0.02.js></script><script type=text/javascript src=./static/js/manifest.ed90ceecf5a7b42e7e71.js></script><script type=text/javascript src=./static/js/vendor.1e64e812438b0a3af88f.js></script><script type=text/javascript src=./static/js/main.ebf48f57e93e8e9c7cb7.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>GIC-集团后台</title><link href=./static/css/main.5bd82012ce0acf56482ac840a2b0e27a.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/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/elementUI/index.2.5.4.js></script><script src=//web-1251519181.file.myqcloud.com/components/header.2.0.06.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/group-people.2.0.08.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-group.2.0.06.js></script><script src=//web-1251519181.file.myqcloud.com/components/aside-menu.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/area-ab.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/input.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/export-excel.2.0.02.js></script><script type=text/javascript src=./static/js/manifest.3fabd88fccd61ea18123.js></script><script type=text/javascript src=./static/js/vendor.1e64e812438b0a3af88f.js></script><script type=text/javascript src=./static/js/main.ebf48f57e93e8e9c7cb7.js></script></body></html>
\ No newline at end of file \ 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([10],{"0irN":function(e,t){},"0xDb":function(e,t,r){"use strict";r.d(t,"a",function(){return s});var o=r("ZLEe"),a=(r.n(o),r("hRKE")),s=(r.n(a),function(e){0})},"3E4D":function(e,t,r){"use strict";var o=r("Ip9M");r.n(o);t.a={showmsg:function(e,t){Object(o.Message)({duration:1e3,message:e,type:t})}}},"3cXf":function(e,t,r){e.exports={default:r("NUnD"),__esModule:!0}},"6Mk3":function(e,t,r){"use strict";var o={name:"navpath",props:{navpath:{type:Array,default:function(){return[]}},navtip:{type:Boolean,default:!1}},methods:{}},a={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"navwrap boxbttom"},[r("el-breadcrumb",{attrs:{separator:"/"}},e._l(e.navpath,function(t,o){return r("el-breadcrumb-item",{key:o,staticClass:"no-link",class:{"link-active":""!=t.path&&o!=e.navpath.length-1},attrs:{to:{path:t.path}}},[e._v(e._s(t.name))])}),1),e._v(" "),e.navpath.length>0?r("h1",{staticClass:"navtitle"},[e._v(e._s(e.navpath[e.navpath.length-1].name))]):e._e()],1)},staticRenderFns:[]};var s=r("C7Lr")(o,a,!1,function(e){r("Zd4j")},"data-v-a87ca87c",null);t.a=s.exports},"6iV/":function(e,t,r){"use strict";var o=r("H9GB"),a=r("Ml8i"),s=r("qFr1");e.exports={formats:s,parse:a,stringify:o}},"7Z57":function(e,t){},"7qQh":function(e,t,r){"use strict";var o=r("HzJ8"),a=r.n(o),s=r("P9l9"),n=r("0xDb"),i=(r("6iV/"),{props:{selectCateData:{type:Array,default:function(){return[]}},selectCateType:{type:String,default:""}},data:function(){return{allDate:[],firstCate:[],classIndex1:0,refreshStatus:!1,seceltIndex1:"",seceltIndex2:"",showDrag:!1,showCateDrag:!0}},created:function(){this.getFirstCateList()},methods:{getFirstCateList:function(){var e=this;Object(s.a)("/api-mall/list-mall-goods-all-category",{requestProject:"gic-clique"}).then(function(t){0===t.data.errorCode?(e.allDate=[],e.allDate.push({search:"",arr:t.data.result})):e.$message.error(t.data.message)})},getNextCateList:function(e,t,r,o){var n=this;this.seceltIndex1=o,this.seceltIndex2=t,this.allDate.length=o+1,this.refreshStatus=!this.refreshStatus;var i=!0,l=!1,c=void 0;try{for(var u,d=a()(r.arr);!(i=(u=d.next()).done);i=!0){u.value.classIndex=-1}}catch(e){l=!0,c=e}finally{try{!i&&d.return&&d.return()}finally{if(l)throw c}}e.classIndex=t;var g={categoryId:e.categoryId};Object(s.e)("/api-mall/list-mall-goods-children-category",g).then(function(e){0===e.data.errorCode?e.data.result.length&&(n.allDate[o+1]={search:"",arr:e.data.result},n.refreshStatus=!n.refreshStatus):n.$message.error(e.data.message)})},handaleConfirmCate:function(){if(Object(n.a)(this.allDate),""===this.seceltIndex1||""===this.seceltIndex2)return this.showDrag=!1,!1;var e=[];if(this.selectCateData.forEach(function(t){e.push(t.categoryId)}),-1==e.indexOf(this.allDate[this.seceltIndex1].arr[this.seceltIndex2].categoryId)){this.selectCateData.push(this.allDate[this.seceltIndex1].arr[this.seceltIndex2]);var t=[];for(var r in this.selectCateData)t.push(this.selectCateData[r].categoryId);var o={};o.cateIdsList=t,o.selectCateType=this.selectCateType,this.$emit("getCateIds",o)}else this.$message.error("请勿重复添加")},cancelConfirmCate:function(){for(var e in this.allDate)for(var t in this.allDate[e].arr)this.allDate[e].arr[t].classIndex=-1;this.getFirstCateList(),this.showDrag=!1;var r={cateIdsList:[]};r.selectCateType=this.selectCateType,this.$emit("getCateIds",r)},handleClose:function(e){this.selectCateData.splice(this.selectCateData.indexOf(e),1);var t=[];for(var r in this.selectCateData)t.push(this.selectCateData[r].categoryId);var o={};o.cateIdsList=t,o.selectCateType=this.selectCateType,this.$emit("getCateIds",o)},searchCate:function(e,t,r,o){var a=this;if(o.cancelBubble=!0,this.allDate.length=t+1,0===t){var n={search:e};Object(s.e)("/api-mall/list-mall-goods-all-category",n).then(function(t){0===t.data.errorCode?(a.allDate=[],a.allDate.push({search:""!==e?e:"",arr:t.data.result})):a.$message.error(t.data.message)})}else{var i="";for(var l in this.allDate[t-1].arr)-1!==this.allDate[t-1].arr[l].classIndex&&(i=this.allDate[t-1].arr[l].categoryId);var c={search:e,categoryId:i};Object(s.e)("/api-mall/list-mall-goods-children-category",c).then(function(r){0===r.data.errorCode?(a.allDate[t]={search:""!==e?e:"",arr:r.data.result},a.refreshStatus=!a.refreshStatus):a.$message.error(r.data.message)})}},searchBlur:function(e){Object(n.a)(e)},showDragClick:function(){this.showDrag=!this.showDrag},hideDragClick:function(){this.showDrag=!1}},components:{}}),l={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"goods-cate-content"},[r("div",{staticClass:"goods-cate-title",on:{click:function(t){return t.stopPropagation(),e.showDragClick(t)}}},[e._l(e.selectCateData,function(t,o){return r("el-tag",{key:o,staticClass:"select-tag",attrs:{closable:"","disable-transitions":!1,size:"small"},on:{close:function(r){return e.handleClose(t)}}},[e._v("\n "+e._s(t.categoryName)+"\n ")])}),e._v(" "),r("i",{class:e.showDrag?"el-icon-arrow-down":"el-icon-arrow-up"})],2),e._v(" "),r("div",{directives:[{name:"show",rawName:"v-show",value:e.showDrag,expression:"showDrag"}],staticClass:"goods-cate-list-container",on:{click:function(t){return t.stopPropagation(),e.searchBlur(t)}}},[r("div",{staticClass:"goods-cate-list-content",on:{click:function(t){return t.stopPropagation(),e.searchBlur(t)}}},e._l(e.allDate,function(t,o){return r("div",{key:o,staticClass:"goods-cate-box",on:{click:function(t){return t.stopPropagation(),e.searchBlur(t)}}},[r("el-input",{staticClass:"cate-search",attrs:{placeholder:"请输入内容","prefix-icon":"el-icon-search",size:"small",clearable:""},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:function(r){return e.searchCate(t.search,o,t,r)}(r)}},model:{value:t.search,callback:function(r){e.$set(t,"search",r)},expression:"item.search"}}),e._v(" "),r("div",{staticClass:"goods-cate-list"},e._l(t.arr,function(a,s){return r("div",{key:a.categoryId,staticClass:"goods-cate-item",class:a.classIndex===s?"cate-item-active":"",on:{click:function(r){return r.stopPropagation(),e.getNextCateList(a,s,t,o)}}},[r("span",[e._v(e._s(a.categoryName))]),e._v(" "),a.isChildren?r("i",{staticClass:"el-icon-arrow-right"}):e._e()])}),0),e._v(" "),r("span",{staticStyle:{display:"none"}},[e._v(e._s(e.refreshStatus))])],1)}),0),e._v(" "),r("div",{staticClass:"goods-cate-footer"},[r("el-row",[r("el-button",{staticClass:"cancel-cate",attrs:{type:"text",size:"small"},on:{click:e.cancelConfirmCate}},[e._v("取消")]),e._v(" "),r("el-button",{staticClass:"confirm-cate",attrs:{type:"text",size:"small"},on:{click:function(t){return t.stopPropagation(),e.handaleConfirmCate(t)}}},[e._v("确认")])],1)],1)])])},staticRenderFns:[]};var c=r("C7Lr")(i,l,!1,function(e){r("M3XI")},"data-v-2c5d5f7a",null);t.a=c.exports},"8Td+":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MkZBQTNFQjQ4RDkzMTFFODk5QUY5MEYyNDkzRDE2ODIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MkZBQTNFQjU4RDkzMTFFODk5QUY5MEYyNDkzRDE2ODIiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo5MDc3MUI4OThENUQxMUU4OTlBRjkwRjI0OTNEMTY4MiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo5MDc3MUI4QThENUQxMUU4OTlBRjkwRjI0OTNEMTY4MiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PoVF8H0AAAOnSURBVHja7Jvba9NQHMdP0iRNsy0ddjd0OnFOJiIo6pOo+OSDKAoiQ8XLk1d88S8Q55PPCvPJCYI+Koj65A3RFxGc4gZSEHQXt7m1nTW9JX5Pm0HWbbFuPUna5gcfTtrSQ775nd/v/M5JwhmGQazGcRwp1Z4PJkJoRsHOvd0Nn4iHrFjXrPHL7DcIVNBEKsS4pXgYnu1GsxH8BmdAP5DBGDz91sseFpbY3zFwGcyAdeA2OAS+gu1V52GLp6lXh8A+eHawFmKYCl4D2iolhoVl/p/G8DMQdVvIt8m0iOYmqAMXQGxR11upVIPgXcAw6SnWNYtAqsc+gvdAAa+ZJC0vG6ukVXEmlDmOetD0lrtfG5sABzsi0rArgmFHQaeDDusAO8DDUv9Q7iHtRohwXj/ByothlJRb0TwBrdbvo+MppifLw5etYZGERN7xIXiiWKwTpmOmSWi6KzEX8Nr86sewL9gX7AuuHcGapqlgM5CqXjBEHkAzbK4vo/jcXe0evgW+mMUF/f16tZeWq8B9WZbvwbvncbzWroMmVST1QbapIJU1yMhUmpngp+AKxB4xxV61LblQ3woBtrskOd1g6uHjpshNoA/csOtgLJbJU7FDGkN5ihTuKvjzsC+4VjYArCYJHJFFttctnTOIlta9IbglLDIXTJN0dEzzhuCJeJYoDszDnhnSWkbP4yctF6z/1XcZnKsJwRBK71OfBUEcX6oFD9PbLm9MTS+ZxfCKeoHUyWw3MdPIEf8qX0/tbk/Cs3RJ24njgZNlfqhlzjwcFNguHrgSByKE0iXVA6ZZenQ6Q3g+y3Ye1j00LZX7hPxpyRfs8pAO8Fw+cbG0LBYPmZzhDcFtjSIJSYwXD8gR0Z8pbwiOJXN5D9TM4mFGy+Xxk5YvuMKyNOrU02goZGQysZ7n2V0rRRZJQ0hyVzApbMrvoQeZnE53x5kJlsSAP6TtJgpWHnauYLZ5cAUFyDtSuCNC7Rd4wUrwkFN601nd5jfjcUdEuuPEkH5ECu8oMbdUJgthC87ttNy6yzyG4/F4+PAWdXVXi9SL0nnGCdHj08li0XpEIX3bVhrtOJ8uoCxpM2GxB8TR4X4010jh/STZMqTIDyz6YxpCjWO900FIXVAgCmr1iGIQeX4A0os/AC6qqvphbhow/k+wKboZzQZSuEnebGkbAX0Nrx40mBeEvlyhFo2acClrA5CwLo5MIfS7PyBpZmJ662HaDKtZRsBniE3Mz3sLC/4rwADdgm5QNzjziAAAAABJRU5ErkJggg=="},"93Ik":function(e,t,r){"use strict";var o=r("P9l9"),a={name:"add-goods",props:{goodShow:Boolean,projectName:String,goodsType:String,goodsListId:Array},data:function(){return{goodsInput1:"",goodsInput2:"",repProjectName:"gic-clique",goodsTypeStr:"",goodsListAll1:[],goodsListSelect1:[],goodsListSelectId1:[],goodsListAll2:[],goodsListSelect2:[],goodsListSelectId2:[]}},watch:{goodShow:function(e,t){this.repProjectName=this.projectName||"gic-clique",this.goodsTypeStr=this.goodsType,e&&this.init()}},methods:{init:function(){"wx"==this.goodsTypeStr?(this.goodsListSelect1=this.goodsListId,this.goodsListSelect1&&this.goodsListSelect1.length>0&&(this.goodsInput1=this.goodsListSelect1.join(" "),this.getGoodsWx())):"line"==this.goodsTypeStr&&(this.goodsListSelect2=this.goodsListId,this.goodsListSelect2&&this.goodsListSelect2.length>0&&(this.goodsInput2=this.goodsListSelect2.join(" "),this.getGoodsLine()))},getGoodsWx:function(){var e=this,t={requestProject:e.repProjectName,proNos:e.goodsInput1};Object(o.e)("/api-mall/goods-search-by-pronos",t).then(function(t){var r=t.data;0==r.errorCode?r.result&&r.result.forEach(function(t){-1==e.goodsListSelectId1.indexOf(t.proNo)&&(e.goodsListSelectId1.push(t.proNo),e.goodsListAll1.push(t))}):e.$message.error({duration:1e3,message:r.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getGoodsLine:function(){var e=this,t={requestProject:e.repProjectName,proNos:e.goodsInput2};Object(o.e)("/api-goods/goods-search-by-pronos",t).then(function(t){var r=t.data;0==r.errorCode?r.result&&r.result.forEach(function(t){-1==e.goodsListSelectId2.indexOf(t.proNo)&&(e.goodsListSelectId2.push(t.proNo),e.goodsListAll2.push(t))}):e.$message.error({duration:1e3,message:r.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},confirm:function(){var e={strategyGoodsRelationIds:[]};if(e.goodsType=this.goodsTypeStr,this.$emit("selectGoods",e),"wx"==this.goodsTypeStr)if(this.goodsListAll1.length>0){var t={};t.strategyGoodsRelationIds=this.goodsListSelectId1,t.goodsType=this.goodsTypeStr,this.$emit("selectGoods",t)}else"line"==this.goodsTypeStr&&this.$message.error("请选择要添加的商品");else if(this.goodsListAll2.length>0){var r={};r.strategyGoodsRelationIds=this.goodsListSelectId2,r.goodsType=this.goodsTypeStr,this.$emit("selectGoods",r)}else this.$message.error("请选择要添加的商品")},handleClose:function(){this.cancle()},cancle:function(){this.$emit("update:goodShow",!1)},addGoods:function(){"wx"==this.goodsTypeStr?50==this.goodsListAll1.length?this.$message.error("最多添加50个商品"):""==this.goodsInput1?this.$message.error("请输入商品货号"):-1==this.goodsListSelectId1.indexOf(this.goodsInput1)&&this.getGoodsWx():"line"==this.goodsTypeStr&&(50==this.goodsListAll2.length?this.$message.error("最多添加50个商品"):""==this.goodsInput2?this.$message.error("请输入商品货号"):-1==this.goodsListSelectId2.indexOf(this.goodsInput2)&&this.getGoodsLine())},delGoods:function(){"wx"==this.goodsTypeStr?(this.goodsListSelectId1.splice(0,this.goodsListSelectId1.length),this.goodsListAll1.splice(0,this.goodsListAll1.length),this.goodsInput1=""):(this.goodsListSelectId2.splice(0,this.goodsListSelectId2.length),this.goodsListAll2.splice(0,this.goodsListAll2.length),this.goodsInput2="")}}},s={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-dialog",{attrs:{title:"添加适用单品",visible:e.goodShow,width:"516px","before-close":e.handleClose},on:{"update:visible":function(t){e.goodShow=t}}},[o("div",{staticClass:"dialogwrap"},[o("div",{staticClass:"good-input"},["wx"==e.goodsTypeStr?o("el-input",{attrs:{placeholder:"请输入商品货号,多个货号之间用空格隔开"},model:{value:e.goodsInput1,callback:function(t){e.goodsInput1=t},expression:"goodsInput1"}}):e._e(),e._v(" "),"line"==e.goodsTypeStr?o("el-input",{attrs:{placeholder:"请输入商品货号,多个货号之间用空格隔开"},model:{value:e.goodsInput2,callback:function(t){e.goodsInput2=t},expression:"goodsInput2"}}):e._e(),e._v(" "),o("el-button",{staticClass:"add-btn",on:{click:e.addGoods}},[e._v("添加")])],1),e._v(" "),o("div",{staticClass:"good-clear clearfix"},["wx"==e.goodsTypeStr?o("div",{staticClass:"flex-1"},[e._v("已添加"+e._s(e.goodsListAll1.length)+"件商品")]):e._e(),e._v(" "),"line"==e.goodsTypeStr?o("div",{staticClass:"flex-1"},[e._v("已添加"+e._s(e.goodsListAll2.length)+"件商品")]):e._e(),e._v(" "),o("el-button",{staticClass:"fr",staticStyle:{padding:"0"},attrs:{type:"text"},on:{click:e.delGoods}},[e._v("全部清除")])],1),e._v(" "),"wx"==e.goodsTypeStr?o("div",{staticClass:"good-list"},[e.goodsListAll1.length>0?o("ul",{staticClass:"goods-ul"},e._l(e.goodsListAll1,function(t){return o("li",{key:t.proId},[o("img",{attrs:{src:t.mainPicUrl,alt:t.name}}),e._v(" "),o("div",{staticClass:"good-info"},[o("div",{staticClass:"good-name"},[e._v(e._s(t.proName))]),e._v(" "),o("div",{staticClass:"good-num"},[e._v(e._s(t.proNo))])])])}),0):o("div",{staticClass:"no-data-wrap"},[o("div",{staticClass:"no-data-icon"},[o("img",{attrs:{src:r("8Td+"),alt:""}})]),e._v(" "),o("p",[e._v("暂无数据")])])]):e._e(),e._v(" "),"line"==e.goodsTypeStr?o("div",{staticClass:"good-list"},[e.goodsListAll2.length>0?o("ul",{staticClass:"goods-ul"},e._l(e.goodsListAll2,function(t){return o("li",{key:t.proId},[o("img",{attrs:{src:t.mainPicUrl,alt:t.name}}),e._v(" "),o("div",{staticClass:"good-info"},[o("div",{staticClass:"good-name"},[e._v(e._s(t.proName))]),e._v(" "),o("div",{staticClass:"good-num"},[e._v(e._s(t.proNo))])])])}),0):o("div",{staticClass:"no-data-wrap"},[o("div",{staticClass:"no-data-icon"},[o("img",{attrs:{src:r("8Td+"),alt:""}})]),e._v(" "),o("p",[e._v("暂无数据")])])]):e._e()]),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-row",[o("el-button",{on:{click:e.cancle}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.confirm}},[e._v("确 定")])],1)],1)])},staticRenderFns:[]};var n=r("C7Lr")(a,s,!1,function(e){r("7Z57")},"data-v-e023e6b2",null);t.a=n.exports},"9Pyf":function(e,t,r){var o=r("y4M0"),a=r("jdnV");e.exports=r("/KQr").getIterator=function(e){var t=a(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return o(t.call(e))}},"Ch4/":function(e,t,r){"use strict";var o=r("Ip9M");r.n(o);t.a={errorMsg:function(e){var t=window.location.origin;if(t.indexOf("localhost")&&(t="http://gicdev.demogic.com"),0!=e.errorCode){if(401==e.errorCode)return window.location.href=t+"/gic-web/#/",!1;o.Message.error({duration:1e3,message:e.message})}}}},H9GB:function(e,t,r){"use strict";var o=r("JNAD"),a=r("qFr1"),s={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},n=Date.prototype.toISOString,i={delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,serializeDate:function(e){return n.call(e)},skipNulls:!1,strictNullHandling:!1},l=function e(t,r,a,s,n,l,c,u,d,g,p,h){var f=t;if("function"==typeof c)f=c(r,f);else if(f instanceof Date)f=g(f);else if(null===f){if(s)return l&&!h?l(r,i.encoder):r;f=""}if("string"==typeof f||"number"==typeof f||"boolean"==typeof f||o.isBuffer(f))return l?[p(h?r:l(r,i.encoder))+"="+p(l(f,i.encoder))]:[p(r)+"="+p(String(f))];var m,v=[];if(void 0===f)return v;if(Array.isArray(c))m=c;else{var y=Object.keys(f);m=u?y.sort(u):y}for(var b=0;b<m.length;++b){var C=m[b];n&&null===f[C]||(v=Array.isArray(f)?v.concat(e(f[C],a(r,C),a,s,n,l,c,u,d,g,p,h)):v.concat(e(f[C],r+(d?"."+C:"["+C+"]"),a,s,n,l,c,u,d,g,p,h)))}return v};e.exports=function(e,t){var r=e,n=t?o.assign({},t):{};if(null!==n.encoder&&void 0!==n.encoder&&"function"!=typeof n.encoder)throw new TypeError("Encoder has to be a function.");var c=void 0===n.delimiter?i.delimiter:n.delimiter,u="boolean"==typeof n.strictNullHandling?n.strictNullHandling:i.strictNullHandling,d="boolean"==typeof n.skipNulls?n.skipNulls:i.skipNulls,g="boolean"==typeof n.encode?n.encode:i.encode,p="function"==typeof n.encoder?n.encoder:i.encoder,h="function"==typeof n.sort?n.sort:null,f=void 0!==n.allowDots&&n.allowDots,m="function"==typeof n.serializeDate?n.serializeDate:i.serializeDate,v="boolean"==typeof n.encodeValuesOnly?n.encodeValuesOnly:i.encodeValuesOnly;if(void 0===n.format)n.format=a.default;else if(!Object.prototype.hasOwnProperty.call(a.formatters,n.format))throw new TypeError("Unknown format option provided.");var y,b,C=a.formatters[n.format];"function"==typeof n.filter?r=(b=n.filter)("",r):Array.isArray(n.filter)&&(y=b=n.filter);var I,w=[];if("object"!=typeof r||null===r)return"";I=n.arrayFormat in s?n.arrayFormat:"indices"in n?n.indices?"indices":"repeat":"indices";var D=s[I];y||(y=Object.keys(r)),h&&y.sort(h);for(var L=0;L<y.length;++L){var S=y[L];d&&null===r[S]||(w=w.concat(l(r[S],S,D,u,d,g?p:null,b,h,f,m,C,v)))}var x=w.join(c),A=!0===n.addQueryPrefix?"?":"";return x.length>0?A+x:""}},HzJ8:function(e,t,r){e.exports={default:r("fL6L"),__esModule:!0}},JNAD:function(e,t,r){"use strict";var o=Object.prototype.hasOwnProperty,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void 0!==e[o]&&(r[o]=e[o]);return r};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],o=0;o<t.length;++o)for(var a=t[o],s=a.obj[a.prop],n=Object.keys(s),i=0;i<n.length;++i){var l=n[i],c=s[l];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(t.push({obj:s,prop:l}),r.push(c))}return function(e){for(var t;e.length;){var r=e.pop();if(t=r.obj[r.prop],Array.isArray(t)){for(var o=[],a=0;a<t.length;++a)void 0!==t[a]&&o.push(t[a]);r.obj[r.prop]=o}}return t}(t)},decode:function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},encode:function(e){if(0===e.length)return e;for(var t="string"==typeof e?e:String(e),r="",o=0;o<t.length;++o){var s=t.charCodeAt(o);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?r+=t.charAt(o):s<128?r+=a[s]:s<2048?r+=a[192|s>>6]+a[128|63&s]:s<55296||s>=57344?r+=a[224|s>>12]+a[128|s>>6&63]+a[128|63&s]:(o+=1,s=65536+((1023&s)<<10|1023&t.charCodeAt(o)),r+=a[240|s>>18]+a[128|s>>12&63]+a[128|s>>6&63]+a[128|63&s])}return r},isBuffer:function(e){return null!==e&&void 0!==e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,r,a){if(!r)return t;if("object"!=typeof r){if(Array.isArray(t))t.push(r);else{if("object"!=typeof t)return[t,r];(a.plainObjects||a.allowPrototypes||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if("object"!=typeof t)return[t].concat(r);var n=t;return Array.isArray(t)&&!Array.isArray(r)&&(n=s(t,a)),Array.isArray(t)&&Array.isArray(r)?(r.forEach(function(r,s){o.call(t,s)?t[s]&&"object"==typeof t[s]?t[s]=e(t[s],r,a):t.push(r):t[s]=r}),t):Object.keys(r).reduce(function(t,s){var n=r[s];return o.call(t,s)?t[s]=e(t[s],n,a):t[s]=n,t},n)}}},"KjG/":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r("3cXf"),a=r.n(o),s=r("6Mk3"),n=r("93Ik"),i=r("7qQh"),l=(r("0irN"),r("3E4D")),c=r("Ch4/"),u=r("Mk6G"),d=r("P9l9"),g=r("0xDb"),p={name:"addIntegralSytem",data:function(){return{contactBool:!1,contactDialog:!1,repProjectName:"gic-web",navpath:[{name:"集团管理",path:""},{name:"会员制度",path:""},{name:"积分制度",path:"/pointSystem"},{name:"编辑积分抵现策略",path:""}],rules:{strategyName:[{required:!0,message:"请填写策略名称",trigger:"blur"}]},goodShow:!1,cateNameLength:0,inputFlagNum:20,mechantOption:[],applyGoods:[{label:"所有商品",value:"1"}],ruleForm:{integralStrategyId:"ff80808163a7a09b0163b01171e202db",enterpriseId:"ff8080815dacd3a2015dacd3ef5c0000",strategyName:1,strategyType:1,useCrowd:"1",crowdJson:"",selectorParams:"",integralGetStatus:"1",integralGet:{fee:11,integral:12},integralGetStrategy:"1",integralGetFreezeDays:1,integralGetEffectiveDays:1,integralUseStatus:"0",integralUse:{fee:"",integral:""},channelList:[{integralStrategyChannelId:"ff808081649321d20164a1fafbdd01df",enterpriseId:"ff8080815dacd3a2015dacd3ef5c0000",integralStrategyId:"ff80808163a7a09b0163b01171e202db",channelType:"1",openStatus:1,channelRelationEnterpriseType:"1",channelRelationStoreType:"1",channelStoreType:"-1",channelRelationProType:"1",integralUseDiscountControl:"1",integralUseDiscountControlUpper:"0.0",integralUseDiscountControlLower:"0.0",useProportionalRestriction:"0.0",strategyGoodsRelationIdArr:[],storeRelationIdArr:[],enterpriseRelationIdArr:[]}]},applyObjOption:[{label:"所有会员",value:"1"},{label:"自定义人群",value:"2"}],dialogVisiblePeople:!1,sceneValue:"member",useId:"",searchParams:"",hasSearchData:"",toggleTag:!1,selectCount:0,goodsType:"wx",goodsListId:[],goodsListWx:[],goodsListLine:[],selectCateDataWx:[],selectCateDataLine:[],selectCateTypeWx:"wx",selectCateTypeLine:"line",cateDataWx:[],cateDataLine:[],storeGroupList:[],goodsTreeOptionsWx:[],valueWx:[],goodsTreeOptionsLine:[],valueLine:[]}},created:function(){},mounted:function(){Object(g.a)(this.$route.query.integralStrategyId);var e=this.$route.query.integralStrategyId;this.ruleForm.integralStrategyId=e,this.getInfo(),this.getGoodsBrand(),this.getContact()},methods:{getContact:function(){var e=this;Object(d.a)("/api-auth/is-relevance-clique",{}).then(function(t){var r=t.data;0==r.errorCode?(e.contactBool=r.result,e.contactDialog=r.result):c.a.errorMsg(r)}).catch(function(e){Object(g.a)(e),this.$message.error({duration:1e3,message:e.message})})},goBack:function(){this.$router.go(-1)},submitForm:function(e){var t=this,r=this;this.$refs[e].validate(function(e){if(!e)return Object(g.a)("error submit!!"),!1;var o=JSON.parse(a()(r.ruleForm));if(o.strategyName)if(o.channelList[0].enterpriseRelationIdArr.length){if(2==o.channelList[0].integralUseDiscountControl){var s=Number(o.channelList[0].integralUseDiscountControlLower)>=Number(o.channelList[0].integralUseDiscountControlUpper);if(!o.channelList[0].integralUseDiscountControlLower||!o.channelList[0].integralUseDiscountControlUpper)return void r.$message.error("折扣控制中的折扣不能为空");if(s)return void r.$message.error("折扣控制中的折扣格式有误")}var n=!o.integralUse.fee||""==String(o.integralUse.integral);if(1==o.integralUseStatus&&n)r.$message.error("请填写抵现规则");else{if(1==o.integralUseStatus){if(!Number(o.integralUse.fee))return void l.a.showmsg("抵现规则中的抵现金额不能为0","error");if(!Number(o.integralUse.integral))return void l.a.showmsg("抵现规则中的使用积分不能为0","error")}if(o.channelList[0].useProportionalRestriction)if(o.channelList[0].useProportionalRestriction>100)l.a.showmsg("比例限制不能大于100","error");else{var i=!0;o.channelList.forEach(function(e){if(1==e.channelType){if(2==e.channelRelationProType&&t.valueWx.length<1)return l.a.showmsg("请选择商品品牌","error"),i=!1;if(3==e.channelRelationProType&&t.cateDataWx.length<1)return l.a.showmsg("请选择商品品类","error"),i=!1;if(4==e.channelRelationProType&&t.goodsListWx.length<1)return l.a.showmsg("请选择单件商品","error"),i=!1}}),2==o.useCrowd&&t.selectCount<1?l.a.showmsg("请选择人群定向","error"):(delete o.selectorParamsId,o.integralUse=a()(o.integralUse),o.channelList&&o.channelList.forEach(function(e,t){e.openStatus=1}),i&&r.saveForm(o))}else l.a.showmsg("请填写比例限制","error")}}else l.a.showmsg("请填写选择商户","error");else l.a.showmsg("请填写策略名称","error")})},saveForm:function(e){var t=this,r=e;Object(d.c)("/api-admin/save-member-integral-strategy",r).then(function(e){Object(g.a)(e.data.result);var r=e.data;if(0==r.errorCode)return t.$message({message:"保存成功",type:"success"}),void t.changeRoute("/pointSystem");c.a.errorMsg(r)}).catch(function(e){Object(g.a)(e),t.$message.error({duration:1e3,message:e.message})})},toInput:function(e){var t=u.a.getByteVal(e.target.value,this.inputFlagNum);this.ruleForm.strategyName=t.trim(),this.cateNameLength=u.a.getZhLen(this.ruleForm.strategyName)},inputFocus:function(e,t,r){this.tempTag=t,this.tempData=e,this.tempFlag=r||""},formatInputChange:function(e){if(Object(g.a)(e),"integralUseDiscountControlLower"==this.tempTag||"integralUseDiscountControlUpper"==this.tempTag)return this.tempData[this.tempTag]="NaN"==Number(String(e).replace(/[^\.\d]/g,"")).toFixed(2)?"0.00":Number(String(e).replace(/[^\.\d]/g,"")).toFixed(2),void(Number(this.tempData[this.tempTag])>10&&(this.tempData[this.tempTag]=Number(10).toFixed(2)))},formatInput:function(e){Object(g.a)(e,e.target.value,this.tempData.integralUseDiscountControlLower),this.tempData.integralUseDiscountControlLower="NaN"==Number(String(this.tempData.integralUseDiscountControlLower).replace(/[^\.\d]/g,"")).toFixed(2)?"0.00":Number(String(this.tempData.integralUseDiscountControlLower).replace(/[^\.\d]/g,"")).toFixed(2),this.tempData.integralUseDiscountControlUpper="NaN"==Number(String(this.tempData.integralUseDiscountControlUpper).replace(/[^\.\d]/g,"")).toFixed(2)?"0.00":Number(String(this.tempData.integralUseDiscountControlUpper).replace(/[^\.\d]/g,"")).toFixed(2)},formatInputNum:function(e){this.ruleForm.integralUse.fee=u.a.getCharVal(String(this.ruleForm.integralUse.fee).replace(/[^\.\d]/g,""),6),this.ruleForm.integralUse.integral=u.a.getCharVal(String(this.ruleForm.integralUse.integral).replace(/[^\.\d]/g,""),8),this.ruleForm.channelList[0].useProportionalRestriction=u.a.getCharVal(String(this.ruleForm.channelList[0].useProportionalRestriction).replace(/[^\d]/g,""),3)},formatInputNumBlur:function(){this.ruleForm.integralUse.fee=Number(u.a.getCharVal(String(this.ruleForm.integralUse.fee).replace(/[^\.\d]/g,""),6)).toFixed(1)},changeRoute:function(e){this.$router.push(e)},getInfo:function(){var e=this,t=this,r={strategyId:t.ruleForm.integralStrategyId};Object(d.e)("/api-admin/get-member-integral-strategy",r).then(function(r){Object(g.a)(r.data.result);var o=r.data;if(0==o.errorCode){var a=r.data.result.enterpriseList;a.forEach(function(e,t){e.label=e.enterpriseName,e.value=e.enterpriseId}),t.mechantOption=a;var s=r.data.result.strategy;if(s.channelList&&s.channelList.forEach(function(e){"1"==e.channelType&&(3==e.channelRelationProType&&e.goodsCategoryList&&e.goodsCategoryList.forEach(function(e){t.selectCateDataWx.push(e)}),4==e.channelRelationProType&&e.strategyGoodsRelationIdArr&&e.strategyGoodsRelationIdArr.forEach(function(e){t.goodsListWx.push(e)}),2==e.channelRelationProType&&e.strategyGoodsRelationIdArr&&e.strategyGoodsRelationIdArr.forEach(function(e){t.valueWx.push(e)}))}),2==s.useCrowd){var n=JSON.parse(s.crowdJson);e.selectCount=0,n.list&&n.list.forEach(function(t){t.list&&(e.selectCount+=t.list.length)}),e.useId=s.selectorParamsId,e.hasSearchData=s.crowdJson}return s.integralUse=JSON.parse(s.integralUse),s.integralUse||(s.integralUse={},s.integralUse.fee="",s.integralUse.integral=""),t.ruleForm=t.formatData(s),void(t.cateNameLength=u.a.getZhLen(t.ruleForm.strategyName))}c.a.errorMsg(o)}).catch(function(e){Object(g.a)(e),t.$message.error({duration:1e3,message:e.message})})},bouncer:function(e){return e.filter(function(e){return!(!e||""===e)})},formatData:function(e){return e.integralGetStatus=String(e.integralGetStatus),e.integralUseStatus=String(e.integralUseStatus),e.useCrowd=String(e.useCrowd),e.integralGet=JSON.parse(e.integralGet),e.channelList.forEach(function(e,t){e.channelType=String(e.channelType),e.channelRelationStoreType=String(e.channelRelationStoreType),e.channelStoreType=String(e.channelStoreType),e.channelRelationProType=String(e.channelRelationProType),e.integralUseDiscountControl=String(e.integralUseDiscountControl),e.integralUseDiscountControlUpper=String(e.integralUseDiscountControlUpper),e.integralUseDiscountControlLower=String(e.integralUseDiscountControlLower),e.useProportionalRestriction=String(e.useProportionalRestriction),e.strategyGoodsRelationIdArr&&e.strategyGoodsRelationIdArr.length||(e.strategyGoodsRelationIdArr=[]),e.storeRelationIdArr&&e.storeRelationIdArr.length||(e.storeRelationIdArr=[]),e.enterpriseRelationIdArr&&e.enterpriseRelationIdArr.length||(e.enterpriseRelationIdArr=[])}),e},getGoodsBrand:function(){var e=this;Object(d.a)("/api-mall/list-enterprise-brand",{}).then(function(t){var r=t.data;if(0==r.errorCode){var o=r.result;e.goodsTreeOptionsWx=o,e.goodsTreeOptionsLine=o}c.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},selectGoodsStoreWx:function(e){var t=this;this.valueWx=e,this.ruleForm.channelList.forEach(function(r,o){"1"==r.channelType&&(t.ruleForm.channelList[o].strategyGoodsRelationIdArr=[],e.forEach(function(e){t.ruleForm.channelList[o].strategyGoodsRelationIdArr.push(e)}))})},showGoodsDialog:function(e){this.goodsType=e,this.goodShow=!0,this.goodsListId=[],"wx"==e?this.goodsListId=this.goodsListWx:"line"==e&&(this.goodsListId=this.goodsListLine)},selectGoods:function(e){var t=this;t.goodShow=!1,t.goodsListId=[],e&&("wx"==e.goodsType?(t.ruleForm.channelList.forEach(function(r,o){"1"==r.channelType&&(t.ruleForm.channelList[o].strategyGoodsRelationIdArr=[],e.strategyGoodsRelationIds.forEach(function(e){t.ruleForm.channelList[o].strategyGoodsRelationIdArr.push(e)}))}),t.goodsListWx=e.strategyGoodsRelationIds):"line"==e.goodsType&&(t.ruleForm.channelList.forEach(function(r,o){"3"==r.channelType&&(t.ruleForm.channelList[o].strategyGoodsRelationIdArr=[],e.strategyGoodsRelationIds.forEach(function(e){t.ruleForm.channelList[o].strategyGoodsRelationIdArr.push(e)}))}),t.goodsListLine=e.strategyGoodsRelationIds))},changePeople:function(e){Object(g.a)(this.ruleForm.useCrowd)},showPeople:function(){this.dialogVisiblePeople=!0},getData:function(){this.$refs.peopleFilter.confirmSet()},findFilter:function(e){var t=this;if(Object(g.a)(e),this.ruleForm.crowdJson=e,this.searchParams=e,this.ruleForm.crowdJson){var r=JSON.parse(this.ruleForm.crowdJson);this.selectCount=0,r.list&&r.list.forEach(function(e){t.selectCount+=e.list.length})}},cancelFilter:function(){this.$refs.peopleFilter.cancelSet()},getBackData:function(e){Object(g.a)(e),this.ruleForm.selectorParams=e},hideBtn:function(){this.toggleTag=!1},editShow:function(){this.toggleTag=!0},editHide:function(){this.toggleTag=!1},getPeopleData:function(){var e=this;e.$refs.peopleFilter.confirmSet(),setTimeout(function(){e.searchParams&&e.lsSaveBtn(e.searchParams)},500)},lsSaveBtn:function(e){var t=this;Object(d.e)("/api-admin/get-screen-detail-param",{requestProject:"gic-web",tempBusinessId:this.tempBusinessId?this.tempBusinessId:"",detailParams:e}).then(function(e){0==e.data.errorCode?(t.tempBusinessId=e.data.result,t.useId=e.data.result,t.dialogVisiblePeople=!1,t.searchParams=""):t.$message.error(e.data.message)}).catch(function(e){Object(g.a)(e)})},getCateIds:function(e){var t=this;"wx"==e.selectCateType?this.ruleForm.channelList.forEach(function(r,o){"1"==r.channelType&&(t.ruleForm.channelList[o].strategyGoodsRelationIdArr=[],e.cateIdsList.forEach(function(e){t.ruleForm.channelList[o].strategyGoodsRelationIdArr.push(e),t.cateDataWx.push(e)}))}):"line"==e.selectCateType&&this.ruleForm.channelList.forEach(function(r,o){"3"==r.channelType&&(t.ruleForm.channelList[o].strategyGoodsRelationIdArr=[],e.cateIdsList.forEach(function(e){t.ruleForm.channelList[o].strategyGoodsRelationIdArr.push(e),t.cateDataLine.push(e)}))})},selectGoodsCateHide:function(){var e=this;this.ruleForm.channelList.length>0&&this.ruleForm.channelList.forEach(function(t,r){"1"==t.channelType&&3==t.channelRelationProType&&(e.$refs.selectGoodsCate instanceof Array?e.$refs.selectGoodsCate[0].hideDragClick():e.$refs.selectGoodsCate.hideDragClick())})}},components:{topNavNew:s.a,addGoods:n.a,goodsCate:i.a}},h={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"right-wrap"},[r("topNavNew",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content",on:{click:e.selectGoodsCateHide}},[r("div",{staticClass:"right-box"},[r("div",{staticClass:"attention-wrap"},[r("div",{staticClass:"form-wrap"},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{staticClass:"padding-0 padding-r-45",attrs:{label:"策略名称",prop:"strategyName"}},[r("el-input",{staticClass:"w-340 padding-0",nativeOn:{keyup:function(t){return r=t,e.toInput(r);var r}},model:{value:e.ruleForm.strategyName,callback:function(t){e.$set(e.ruleForm,"strategyName",t)},expression:"ruleForm.strategyName"}}),e._v(" "),r("label",{staticClass:"input-label"},[e._v(e._s(e.cateNameLength)+"/20")])],1),e._v(" "),r("el-form-item",{staticClass:"margin-20",attrs:{label:"适用对象",prop:""}},[r("el-select",{attrs:{placeholder:"请选择"},on:{change:e.changePeople},model:{value:e.ruleForm.useCrowd,callback:function(t){e.$set(e.ruleForm,"useCrowd",t)},expression:"ruleForm.useCrowd"}},e._l(e.applyObjOption,function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),2==e.ruleForm.useCrowd?r("el-form-item",{staticClass:"padding-0",attrs:{label:"人群定向",prop:""}},[r("el-button",{on:{click:e.showPeople}},[e._v("已设置"+e._s(e.selectCount)+"项筛选")])],1):e._e(),e._v(" "),r("el-form-item",{staticClass:"padding-0",attrs:{label:"适用条件"}},[r("div",{staticClass:"title-tip"},[e._v("该设置只对微信商城中的积分抵现起作用。")])]),e._v(" "),e._l(e.ruleForm.channelList,function(t,o){return[1==t.channelType?[r("div",{key:o,staticClass:"form-child margin-20"},[r("el-form-item",{attrs:{label:"选择商户"}},[r("el-select",{attrs:{placeholder:"请选择",multiple:"",size:"small"},model:{value:t.enterpriseRelationIdArr,callback:function(r){e.$set(t,"enterpriseRelationIdArr",r)},expression:"item.enterpriseRelationIdArr"}},e._l(e.mechantOption,function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),r("el-form-item",{staticClass:"padding-0",attrs:{label:"适用商品"}},[r("el-select",{staticClass:"fl",staticStyle:{"margin-right":"10px"},attrs:{placeholder:"请选择"},model:{value:t.channelRelationProType,callback:function(r){e.$set(t,"channelRelationProType",r)},expression:"item.channelRelationProType"}},e._l(e.applyGoods,function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),2==t.channelRelationProType?r("el-select",{staticClass:"fl",attrs:{size:"small",multiple:"",placeholder:"请选择"},on:{change:e.selectGoodsStoreWx},model:{value:e.valueWx,callback:function(t){e.valueWx=t},expression:"valueWx"}},e._l(e.goodsTreeOptionsWx,function(e){return r("el-option",{key:e.brandId,attrs:{label:e.brandName,value:e.brandId}})}),1):e._e(),e._v(" "),3==t.channelRelationProType?r("div",{staticClass:"fl goods-cate"},[r("goodsCate",{ref:"selectGoodsCate",refInFor:!0,attrs:{selectCateType:e.selectCateTypeWx,selectCateData:e.selectCateDataWx},on:{getCateIds:e.getCateIds}})],1):e._e(),e._v(" "),4==t.channelRelationProType?r("el-button",{staticClass:"fl",staticStyle:{width:"202px"},on:{click:function(t){return e.showGoodsDialog("wx")}}},[e._v("已选"+e._s(e.goodsListWx.length)+"件商品")]):e._e()],1),e._v(" "),r("el-form-item",{attrs:{label:"折扣控制",prop:"region"}},[r("div",{staticClass:"radio-cell"},[r("el-radio",{attrs:{label:"1"},model:{value:t.integralUseDiscountControl,callback:function(r){e.$set(t,"integralUseDiscountControl",r)},expression:"item.integralUseDiscountControl"}},[e._v("所有折扣商品都适用")])],1),e._v(" "),r("div",{staticClass:"radio-cell margin-20"},[r("el-radio",{attrs:{label:"2"},model:{value:t.integralUseDiscountControl,callback:function(r){e.$set(t,"integralUseDiscountControl",r)},expression:"item.integralUseDiscountControl"}},[e._v("折扣")]),e._v(" "),r("el-input-number",{attrs:{precision:2,controls:!1,max:10,min:.01},model:{value:t.integralUseDiscountControlLower,callback:function(r){e.$set(t,"integralUseDiscountControlLower",r)},expression:"item.integralUseDiscountControlLower"}}),e._v(" "),r("label",[e._v("至")]),e._v(" "),r("el-input-number",{attrs:{precision:2,controls:!1,max:10,min:.01},model:{value:t.integralUseDiscountControlUpper,callback:function(r){e.$set(t,"integralUseDiscountControlUpper",r)},expression:"item.integralUseDiscountControlUpper"}}),e._v(" "),r("label",[e._v("折商品都适用")]),e._v(" "),r("span",{staticStyle:{"font-size":"13px",color:"#828282","line-height":"1","padding-left":"10px"}},[e._v("注意:折扣范围0.01-10.00,最低折扣不能大于最高折扣")])],1)])],1)]:e._e()]}),e._v(" "),r("el-form-item",{staticClass:"margin-20",attrs:{label:"抵现规则",prop:""}},[r("div",[r("el-radio",{attrs:{label:"1"},model:{value:e.ruleForm.integralUseStatus,callback:function(t){e.$set(e.ruleForm,"integralUseStatus",t)},expression:"ruleForm.integralUseStatus"}},[e._v("每使用")]),e._v(" "),r("el-input-number",{attrs:{precision:1,controls:!1,max:1e4,min:.1},model:{value:e.ruleForm.integralUse.integral,callback:function(t){e.$set(e.ruleForm.integralUse,"integral",t)},expression:"ruleForm.integralUse.integral"}}),e._v(" "),r("label",[e._v("积分,抵 ")]),e._v(" "),r("el-input-number",{attrs:{precision:1,controls:!1,max:1e4,min:.1},model:{value:e.ruleForm.integralUse.fee,callback:function(t){e.$set(e.ruleForm.integralUse,"fee",t)},expression:"ruleForm.integralUse.fee"}}),e._v(" "),r("label",[e._v("元")])],1),e._v(" "),r("div",[r("el-radio",{staticClass:"margin-20",attrs:{label:"0"},model:{value:e.ruleForm.integralUseStatus,callback:function(t){e.$set(e.ruleForm,"integralUseStatus",t)},expression:"ruleForm.integralUseStatus"}},[e._v("不支持抵现")])],1)]),e._v(" "),r("el-form-item",{attrs:{label:"比例限制",prop:"name"}},[r("label",{staticStyle:{color:"#606266"}},[e._v("最多可抵用商品金额的 ")]),e._v(" "),r("el-input",{nativeOn:{keyup:function(t){return e.formatInputNum(t)}},model:{value:e.ruleForm.channelList[0].useProportionalRestriction,callback:function(t){e.$set(e.ruleForm.channelList[0],"useProportionalRestriction",t)},expression:"ruleForm.channelList[0].useProportionalRestriction"}},[r("template",{slot:"append"},[e._v("\n %\n ")])],2)],1),e._v(" "),r("el-form-item",[r("el-row",[r("el-button",{attrs:{disabled:e.contactBool,type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("保 存")]),e._v(" "),r("el-button",{on:{click:e.goBack}},[e._v("返 回")])],1)],1)],2)],1)])])]),e._v(" "),r("vue-gic-footer"),e._v(" "),r("add-goods",{attrs:{goodsListId:e.goodsListId,goodsType:e.goodsType,goodShow:e.goodShow,projectName:e.repProjectName},on:{"update:goodShow":function(t){e.goodShow=t},"update:good-show":function(t){e.goodShow=t},selectGoods:e.selectGoods}}),e._v(" "),r("el-dialog",{attrs:{title:"自定义人群",visible:e.dialogVisiblePeople,width:"980px"},on:{"update:visible":function(t){e.dialogVisiblePeople=t}}},[r("div",{staticClass:"select-people"},[r("vue-gic-group-people",{ref:"peopleFilter",attrs:{projectName:e.repProjectName,useId:e.useId,hasSearchData:e.hasSearchData,sceneValue:e.sceneValue},on:{findFilter:e.findFilter,getBackData:e.getBackData,editHide:e.editHide,editShow:e.editShow,hideBtn:e.hideBtn}}),e._v(" "),r("div",{directives:[{name:"show",rawName:"v-show",value:e.toggleTag,expression:"toggleTag"}],staticClass:"people-btn-wrap"},[r("el-row",[r("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.getData}},[e._v("确定")]),e._v(" "),r("el-button",{attrs:{size:"small"},on:{click:e.cancelFilter}},[e._v("取消")])],1)],1)],1),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-row",[r("el-button",{on:{click:function(t){e.dialogVisiblePeople=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.getPeopleData}},[e._v("确 定")])],1)],1)]),e._v(" "),r("el-dialog",{attrs:{title:"提示",visible:e.contactDialog,width:"500px"},on:{"update:visible":function(t){e.contactDialog=t}}},[r("span",[e._v("已关联集团,此页面只能查看不能编辑保存。")]),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.contactDialog=!1}}},[e._v("确 定")])],1)])],1)},staticRenderFns:[]};var f=r("C7Lr")(p,h,!1,function(e){r("kjgk")},"data-v-70c40708",null);t.default=f.exports},M3XI:function(e,t){},Mk6G:function(e,t,r){"use strict";t.a={getByteLen:function(e){for(var t=0,r=0;r<e.length;r++){null!=e.charAt(r).match(/[^\x00-\xff]/gi)?t+=2:t+=1}return t},getZhLen:function(e){for(var t=0,r=0;r<e.length;r++){null!=e.charAt(r).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)},cutStr:function(e,t,r){for(var o=0,a=0;a<e.length;a++){var s=e.charAt(a);if(1==r&&(encodeURI(s).length>2?o+=1:o+=.5),2==r&&(o+=1),o>=t){var n=o==t?a+1:a;return e.substr(0,n)}}},getByteVal:function(e,t){for(var r="",o=0,a=0;a<e.length&&(null!=e[a].match(/[^\x00-\xff]/gi)?o+=1:o+=.5,!(o>t));a++)r+=e[a];return r},getCharVal:function(e,t){for(var r="",o=0,a=0;a<e.length&&(null!=e[a].match(/[^\x00-\xff]/gi)?o+=2:o+=1,!(o>t));a++)r+=e[a];return r},regPos:function(e){return/^\d+(\.\d+)?$/.test(e)}}},Ml8i:function(e,t,r){"use strict";var o=r("JNAD"),a=Object.prototype.hasOwnProperty,s={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:o.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},n=function(e,t,r){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,n=/(\[[^[\]]*])/.exec(o),i=n?o.slice(0,n.index):o,l=[];if(i){if(!r.plainObjects&&a.call(Object.prototype,i)&&!r.allowPrototypes)return;l.push(i)}for(var c=0;null!==(n=s.exec(o))&&c<r.depth;){if(c+=1,!r.plainObjects&&a.call(Object.prototype,n[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(n[1])}return n&&l.push("["+o.slice(n.index)+"]"),function(e,t,r){for(var o=t,a=e.length-1;a>=0;--a){var s,n=e[a];if("[]"===n)s=(s=[]).concat(o);else{s=r.plainObjects?Object.create(null):{};var i="["===n.charAt(0)&&"]"===n.charAt(n.length-1)?n.slice(1,-1):n,l=parseInt(i,10);!isNaN(l)&&n!==i&&String(l)===i&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(s=[])[l]=o:s[i]=o}o=s}return o}(l,t,r)}};e.exports=function(e,t){var r=t?o.assign({},t):{};if(null!==r.decoder&&void 0!==r.decoder&&"function"!=typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(r.ignoreQueryPrefix=!0===r.ignoreQueryPrefix,r.delimiter="string"==typeof r.delimiter||o.isRegExp(r.delimiter)?r.delimiter:s.delimiter,r.depth="number"==typeof r.depth?r.depth:s.depth,r.arrayLimit="number"==typeof r.arrayLimit?r.arrayLimit:s.arrayLimit,r.parseArrays=!1!==r.parseArrays,r.decoder="function"==typeof r.decoder?r.decoder:s.decoder,r.allowDots="boolean"==typeof r.allowDots?r.allowDots:s.allowDots,r.plainObjects="boolean"==typeof r.plainObjects?r.plainObjects:s.plainObjects,r.allowPrototypes="boolean"==typeof r.allowPrototypes?r.allowPrototypes:s.allowPrototypes,r.parameterLimit="number"==typeof r.parameterLimit?r.parameterLimit:s.parameterLimit,r.strictNullHandling="boolean"==typeof r.strictNullHandling?r.strictNullHandling:s.strictNullHandling,""===e||null===e||void 0===e)return r.plainObjects?Object.create(null):{};for(var i="string"==typeof e?function(e,t){for(var r={},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,n=t.parameterLimit===1/0?void 0:t.parameterLimit,i=o.split(t.delimiter,n),l=0;l<i.length;++l){var c,u,d=i[l],g=d.indexOf("]="),p=-1===g?d.indexOf("="):g+1;-1===p?(c=t.decoder(d,s.decoder),u=t.strictNullHandling?null:""):(c=t.decoder(d.slice(0,p),s.decoder),u=t.decoder(d.slice(p+1),s.decoder)),a.call(r,c)?r[c]=[].concat(r[c]).concat(u):r[c]=u}return r}(e,r):e,l=r.plainObjects?Object.create(null):{},c=Object.keys(i),u=0;u<c.length;++u){var d=c[u],g=n(d,i[d],r);l=o.merge(l,g,r)}return o.compact(l)}},NUnD:function(e,t,r){var o=r("/KQr"),a=o.JSON||(o.JSON={stringify:JSON.stringify});e.exports=function(e){return a.stringify.apply(a,arguments)}},P9l9:function(e,t,r){"use strict";r.d(t,"a",function(){return g}),r.d(t,"e",function(){return p}),r.d(t,"d",function(){return h}),r.d(t,"c",function(){return f}),r.d(t,"b",function(){return m});var o=r("rVsN"),a=r.n(o),s=r("lRwf"),n=r.n(s),i=r("6iV/"),l=r.n(i),c=r("Ip9M"),u=(r.n(c),r("0xDb"));n.a.axios.defaults.timeout=15e3;var d=window.location.origin;-1!=d.indexOf("localhost")&&(d="http://gicdev.demogic.com"),Object(u.a)(d),n.a.axios.interceptors.request.use(function(e){return Object(u.a)(d),e},function(e){return c.Message.error({message:"请求超时!"}),a.a.resolve(e)}),n.a.axios.interceptors.response.use(function(e){if(Object(u.a)("response data:",e),!e.status||200!=e.status||"error"!=e.data.status)return e;c.Message.error({message:e.data.msg})},function(e){return Object(u.a)("response err:",e),504==e.response.status||404==e.response.status||e.response.status,a.a.resolve(e)});var g=function(e,t){return t.requestProject="gic-clique",n.a.axios({method:"get",url:""+d+e,data:{},params:t,headers:{"content-type":"application/x-www-form-urlencoded"}})},p=function(e,t){return t.requestProject="gic-clique",n.a.axios({method:"post",url:""+d+e,data:l.a.stringify(t),headers:{"content-type":"application/x-www-form-urlencoded"}})},h=function(e,t){return t.requestProject="gic-clique",n.a.axios({method:"post",url:""+d+e,data:"{}",params:t,headers:{"Content-Type":"application/json;charset=UTF-8"}})},f=function(e,t){return n.a.axios({method:"post",url:""+d+e,data:t,params:{requestProject:"gic-clique"},headers:{"Content-Type":"application/json;charset=UTF-8"}})},m=function(e,t){return t.requestProject="gic-clique",n.a.axios({method:"post",url:""+d+e,data:t,headers:{}})}},Zd4j:function(e,t){},fL6L:function(e,t,r){r("MKOc"),r("rYUz"),e.exports=r("9Pyf")},kjgk:function(e,t){},qFr1:function(e,t,r){"use strict";var o=String.prototype.replace,a=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return o.call(e,a,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}}}); webpackJsonp([10],{"0irN":function(e,t){},"0xDb":function(e,t,r){"use strict";r.d(t,"a",function(){return s});var o=r("ZLEe"),a=(r.n(o),r("hRKE")),s=(r.n(a),function(e){0})},"3E4D":function(e,t,r){"use strict";var o=r("Ip9M");r.n(o);t.a={showmsg:function(e,t){Object(o.Message)({duration:1e3,message:e,type:t})}}},"3cXf":function(e,t,r){e.exports={default:r("NUnD"),__esModule:!0}},"6Mk3":function(e,t,r){"use strict";var o={name:"navpath",props:{navpath:{type:Array,default:function(){return[]}},navtip:{type:Boolean,default:!1}},methods:{}},a={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"navwrap boxbttom"},[r("el-breadcrumb",{attrs:{separator:"/"}},e._l(e.navpath,function(t,o){return r("el-breadcrumb-item",{key:o,staticClass:"no-link",class:{"link-active":""!=t.path&&o!=e.navpath.length-1},attrs:{to:{path:t.path}}},[e._v(e._s(t.name))])}),1),e._v(" "),e.navpath.length>0?r("h1",{staticClass:"navtitle"},[e._v(e._s(e.navpath[e.navpath.length-1].name))]):e._e()],1)},staticRenderFns:[]};var s=r("C7Lr")(o,a,!1,function(e){r("Zd4j")},"data-v-a87ca87c",null);t.a=s.exports},"6iV/":function(e,t,r){"use strict";var o=r("H9GB"),a=r("Ml8i"),s=r("qFr1");e.exports={formats:s,parse:a,stringify:o}},"7Z57":function(e,t){},"7qQh":function(e,t,r){"use strict";var o=r("HzJ8"),a=r.n(o),s=r("P9l9"),n=r("0xDb"),i=(r("6iV/"),{props:{selectCateData:{type:Array,default:function(){return[]}},selectCateType:{type:String,default:""}},data:function(){return{allDate:[],firstCate:[],classIndex1:0,refreshStatus:!1,seceltIndex1:"",seceltIndex2:"",showDrag:!1,showCateDrag:!0}},created:function(){this.getFirstCateList()},methods:{getFirstCateList:function(){var e=this;Object(s.a)("/api-mall/list-mall-goods-all-category",{requestProject:"gic-clique"}).then(function(t){0===t.data.errorCode?(e.allDate=[],e.allDate.push({search:"",arr:t.data.result})):e.$message.error(t.data.message)})},getNextCateList:function(e,t,r,o){var n=this;this.seceltIndex1=o,this.seceltIndex2=t,this.allDate.length=o+1,this.refreshStatus=!this.refreshStatus;var i=!0,l=!1,c=void 0;try{for(var u,d=a()(r.arr);!(i=(u=d.next()).done);i=!0){u.value.classIndex=-1}}catch(e){l=!0,c=e}finally{try{!i&&d.return&&d.return()}finally{if(l)throw c}}e.classIndex=t;var g={categoryId:e.categoryId};Object(s.e)("/api-mall/list-mall-goods-children-category",g).then(function(e){0===e.data.errorCode?e.data.result.length&&(n.allDate[o+1]={search:"",arr:e.data.result},n.refreshStatus=!n.refreshStatus):n.$message.error(e.data.message)})},handaleConfirmCate:function(){if(Object(n.a)(this.allDate),""===this.seceltIndex1||""===this.seceltIndex2)return this.showDrag=!1,!1;var e=[];if(this.selectCateData.forEach(function(t){e.push(t.categoryId)}),-1==e.indexOf(this.allDate[this.seceltIndex1].arr[this.seceltIndex2].categoryId)){this.selectCateData.push(this.allDate[this.seceltIndex1].arr[this.seceltIndex2]);var t=[];for(var r in this.selectCateData)t.push(this.selectCateData[r].categoryId);var o={};o.cateIdsList=t,o.selectCateType=this.selectCateType,this.$emit("getCateIds",o)}else this.$message.error("请勿重复添加")},cancelConfirmCate:function(){for(var e in this.allDate)for(var t in this.allDate[e].arr)this.allDate[e].arr[t].classIndex=-1;this.getFirstCateList(),this.showDrag=!1;var r={cateIdsList:[]};r.selectCateType=this.selectCateType,this.$emit("getCateIds",r)},handleClose:function(e){this.selectCateData.splice(this.selectCateData.indexOf(e),1);var t=[];for(var r in this.selectCateData)t.push(this.selectCateData[r].categoryId);var o={};o.cateIdsList=t,o.selectCateType=this.selectCateType,this.$emit("getCateIds",o)},searchCate:function(e,t,r,o){var a=this;if(o.cancelBubble=!0,this.allDate.length=t+1,0===t){var n={search:e};Object(s.e)("/api-mall/list-mall-goods-all-category",n).then(function(t){0===t.data.errorCode?(a.allDate=[],a.allDate.push({search:""!==e?e:"",arr:t.data.result})):a.$message.error(t.data.message)})}else{var i="";for(var l in this.allDate[t-1].arr)-1!==this.allDate[t-1].arr[l].classIndex&&(i=this.allDate[t-1].arr[l].categoryId);var c={search:e,categoryId:i};Object(s.e)("/api-mall/list-mall-goods-children-category",c).then(function(r){0===r.data.errorCode?(a.allDate[t]={search:""!==e?e:"",arr:r.data.result},a.refreshStatus=!a.refreshStatus):a.$message.error(r.data.message)})}},searchBlur:function(e){Object(n.a)(e)},showDragClick:function(){this.showDrag=!this.showDrag},hideDragClick:function(){this.showDrag=!1}},components:{}}),l={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"goods-cate-content"},[r("div",{staticClass:"goods-cate-title",on:{click:function(t){return t.stopPropagation(),e.showDragClick(t)}}},[e._l(e.selectCateData,function(t,o){return r("el-tag",{key:o,staticClass:"select-tag",attrs:{closable:"","disable-transitions":!1,size:"small"},on:{close:function(r){return e.handleClose(t)}}},[e._v("\n "+e._s(t.categoryName)+"\n ")])}),e._v(" "),r("i",{class:e.showDrag?"el-icon-arrow-down":"el-icon-arrow-up"})],2),e._v(" "),r("div",{directives:[{name:"show",rawName:"v-show",value:e.showDrag,expression:"showDrag"}],staticClass:"goods-cate-list-container",on:{click:function(t){return t.stopPropagation(),e.searchBlur(t)}}},[r("div",{staticClass:"goods-cate-list-content",on:{click:function(t){return t.stopPropagation(),e.searchBlur(t)}}},e._l(e.allDate,function(t,o){return r("div",{key:o,staticClass:"goods-cate-box",on:{click:function(t){return t.stopPropagation(),e.searchBlur(t)}}},[r("el-input",{staticClass:"cate-search",attrs:{placeholder:"请输入内容","prefix-icon":"el-icon-search",size:"small",clearable:""},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:function(r){return e.searchCate(t.search,o,t,r)}(r)}},model:{value:t.search,callback:function(r){e.$set(t,"search",r)},expression:"item.search"}}),e._v(" "),r("div",{staticClass:"goods-cate-list"},e._l(t.arr,function(a,s){return r("div",{key:a.categoryId,staticClass:"goods-cate-item",class:a.classIndex===s?"cate-item-active":"",on:{click:function(r){return r.stopPropagation(),e.getNextCateList(a,s,t,o)}}},[r("span",[e._v(e._s(a.categoryName))]),e._v(" "),a.isChildren?r("i",{staticClass:"el-icon-arrow-right"}):e._e()])}),0),e._v(" "),r("span",{staticStyle:{display:"none"}},[e._v(e._s(e.refreshStatus))])],1)}),0),e._v(" "),r("div",{staticClass:"goods-cate-footer"},[r("el-row",[r("el-button",{staticClass:"cancel-cate",attrs:{type:"text",size:"small"},on:{click:e.cancelConfirmCate}},[e._v("取消")]),e._v(" "),r("el-button",{staticClass:"confirm-cate",attrs:{type:"text",size:"small"},on:{click:function(t){return t.stopPropagation(),e.handaleConfirmCate(t)}}},[e._v("确认")])],1)],1)])])},staticRenderFns:[]};var c=r("C7Lr")(i,l,!1,function(e){r("M3XI")},"data-v-2c5d5f7a",null);t.a=c.exports},"8Td+":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MkZBQTNFQjQ4RDkzMTFFODk5QUY5MEYyNDkzRDE2ODIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MkZBQTNFQjU4RDkzMTFFODk5QUY5MEYyNDkzRDE2ODIiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo5MDc3MUI4OThENUQxMUU4OTlBRjkwRjI0OTNEMTY4MiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo5MDc3MUI4QThENUQxMUU4OTlBRjkwRjI0OTNEMTY4MiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PoVF8H0AAAOnSURBVHja7Jvba9NQHMdP0iRNsy0ddjd0OnFOJiIo6pOo+OSDKAoiQ8XLk1d88S8Q55PPCvPJCYI+Koj65A3RFxGc4gZSEHQXt7m1nTW9JX5Pm0HWbbFuPUna5gcfTtrSQ775nd/v/M5JwhmGQazGcRwp1Z4PJkJoRsHOvd0Nn4iHrFjXrPHL7DcIVNBEKsS4pXgYnu1GsxH8BmdAP5DBGDz91sseFpbY3zFwGcyAdeA2OAS+gu1V52GLp6lXh8A+eHawFmKYCl4D2iolhoVl/p/G8DMQdVvIt8m0iOYmqAMXQGxR11upVIPgXcAw6SnWNYtAqsc+gvdAAa+ZJC0vG6ukVXEmlDmOetD0lrtfG5sABzsi0rArgmFHQaeDDusAO8DDUv9Q7iHtRohwXj/ByothlJRb0TwBrdbvo+MppifLw5etYZGERN7xIXiiWKwTpmOmSWi6KzEX8Nr86sewL9gX7AuuHcGapqlgM5CqXjBEHkAzbK4vo/jcXe0evgW+mMUF/f16tZeWq8B9WZbvwbvncbzWroMmVST1QbapIJU1yMhUmpngp+AKxB4xxV61LblQ3woBtrskOd1g6uHjpshNoA/csOtgLJbJU7FDGkN5ihTuKvjzsC+4VjYArCYJHJFFttctnTOIlta9IbglLDIXTJN0dEzzhuCJeJYoDszDnhnSWkbP4yctF6z/1XcZnKsJwRBK71OfBUEcX6oFD9PbLm9MTS+ZxfCKeoHUyWw3MdPIEf8qX0/tbk/Cs3RJ24njgZNlfqhlzjwcFNguHrgSByKE0iXVA6ZZenQ6Q3g+y3Ye1j00LZX7hPxpyRfs8pAO8Fw+cbG0LBYPmZzhDcFtjSIJSYwXD8gR0Z8pbwiOJXN5D9TM4mFGy+Xxk5YvuMKyNOrU02goZGQysZ7n2V0rRRZJQ0hyVzApbMrvoQeZnE53x5kJlsSAP6TtJgpWHnauYLZ5cAUFyDtSuCNC7Rd4wUrwkFN601nd5jfjcUdEuuPEkH5ECu8oMbdUJgthC87ttNy6yzyG4/F4+PAWdXVXi9SL0nnGCdHj08li0XpEIX3bVhrtOJ8uoCxpM2GxB8TR4X4010jh/STZMqTIDyz6YxpCjWO900FIXVAgCmr1iGIQeX4A0os/AC6qqvphbhow/k+wKboZzQZSuEnebGkbAX0Nrx40mBeEvlyhFo2acClrA5CwLo5MIfS7PyBpZmJ662HaDKtZRsBniE3Mz3sLC/4rwADdgm5QNzjziAAAAABJRU5ErkJggg=="},"93Ik":function(e,t,r){"use strict";var o=r("P9l9"),a={name:"add-goods",props:{goodShow:Boolean,projectName:String,goodsType:String,goodsListId:Array},data:function(){return{goodsInput1:"",goodsInput2:"",repProjectName:"gic-clique",goodsTypeStr:"",goodsListAll1:[],goodsListSelect1:[],goodsListSelectId1:[],goodsListAll2:[],goodsListSelect2:[],goodsListSelectId2:[]}},watch:{goodShow:function(e,t){this.repProjectName=this.projectName||"gic-clique",this.goodsTypeStr=this.goodsType,e&&this.init()}},methods:{init:function(){"wx"==this.goodsTypeStr?(this.goodsListSelect1=this.goodsListId,this.goodsListSelect1&&this.goodsListSelect1.length>0&&(this.goodsInput1=this.goodsListSelect1.join(" "),this.getGoodsWx())):"line"==this.goodsTypeStr&&(this.goodsListSelect2=this.goodsListId,this.goodsListSelect2&&this.goodsListSelect2.length>0&&(this.goodsInput2=this.goodsListSelect2.join(" "),this.getGoodsLine()))},getGoodsWx:function(){var e=this,t={requestProject:e.repProjectName,proNos:e.goodsInput1};Object(o.e)("/api-mall/goods-search-by-pronos",t).then(function(t){var r=t.data;0==r.errorCode?r.result&&r.result.forEach(function(t){-1==e.goodsListSelectId1.indexOf(t.proNo)&&(e.goodsListSelectId1.push(t.proNo),e.goodsListAll1.push(t))}):e.$message.error({duration:1e3,message:r.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getGoodsLine:function(){var e=this,t={requestProject:e.repProjectName,proNos:e.goodsInput2};Object(o.e)("/api-goods/goods-search-by-pronos",t).then(function(t){var r=t.data;0==r.errorCode?r.result&&r.result.forEach(function(t){-1==e.goodsListSelectId2.indexOf(t.proNo)&&(e.goodsListSelectId2.push(t.proNo),e.goodsListAll2.push(t))}):e.$message.error({duration:1e3,message:r.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},confirm:function(){var e={strategyGoodsRelationIds:[]};if(e.goodsType=this.goodsTypeStr,this.$emit("selectGoods",e),"wx"==this.goodsTypeStr)if(this.goodsListAll1.length>0){var t={};t.strategyGoodsRelationIds=this.goodsListSelectId1,t.goodsType=this.goodsTypeStr,this.$emit("selectGoods",t)}else"line"==this.goodsTypeStr&&this.$message.error("请选择要添加的商品");else if(this.goodsListAll2.length>0){var r={};r.strategyGoodsRelationIds=this.goodsListSelectId2,r.goodsType=this.goodsTypeStr,this.$emit("selectGoods",r)}else this.$message.error("请选择要添加的商品")},handleClose:function(){this.cancle()},cancle:function(){this.$emit("update:goodShow",!1)},addGoods:function(){"wx"==this.goodsTypeStr?50==this.goodsListAll1.length?this.$message.error("最多添加50个商品"):""==this.goodsInput1?this.$message.error("请输入商品货号"):-1==this.goodsListSelectId1.indexOf(this.goodsInput1)&&this.getGoodsWx():"line"==this.goodsTypeStr&&(50==this.goodsListAll2.length?this.$message.error("最多添加50个商品"):""==this.goodsInput2?this.$message.error("请输入商品货号"):-1==this.goodsListSelectId2.indexOf(this.goodsInput2)&&this.getGoodsLine())},delGoods:function(){"wx"==this.goodsTypeStr?(this.goodsListSelectId1.splice(0,this.goodsListSelectId1.length),this.goodsListAll1.splice(0,this.goodsListAll1.length),this.goodsInput1=""):(this.goodsListSelectId2.splice(0,this.goodsListSelectId2.length),this.goodsListAll2.splice(0,this.goodsListAll2.length),this.goodsInput2="")}}},s={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-dialog",{attrs:{title:"添加适用单品",visible:e.goodShow,width:"516px","before-close":e.handleClose},on:{"update:visible":function(t){e.goodShow=t}}},[o("div",{staticClass:"dialogwrap"},[o("div",{staticClass:"good-input"},["wx"==e.goodsTypeStr?o("el-input",{attrs:{placeholder:"请输入商品货号,多个货号之间用空格隔开"},model:{value:e.goodsInput1,callback:function(t){e.goodsInput1=t},expression:"goodsInput1"}}):e._e(),e._v(" "),"line"==e.goodsTypeStr?o("el-input",{attrs:{placeholder:"请输入商品货号,多个货号之间用空格隔开"},model:{value:e.goodsInput2,callback:function(t){e.goodsInput2=t},expression:"goodsInput2"}}):e._e(),e._v(" "),o("el-button",{staticClass:"add-btn",on:{click:e.addGoods}},[e._v("添加")])],1),e._v(" "),o("div",{staticClass:"good-clear clearfix"},["wx"==e.goodsTypeStr?o("div",{staticClass:"flex-1"},[e._v("已添加"+e._s(e.goodsListAll1.length)+"件商品")]):e._e(),e._v(" "),"line"==e.goodsTypeStr?o("div",{staticClass:"flex-1"},[e._v("已添加"+e._s(e.goodsListAll2.length)+"件商品")]):e._e(),e._v(" "),o("el-button",{staticClass:"fr",staticStyle:{padding:"0"},attrs:{type:"text"},on:{click:e.delGoods}},[e._v("全部清除")])],1),e._v(" "),"wx"==e.goodsTypeStr?o("div",{staticClass:"good-list"},[e.goodsListAll1.length>0?o("ul",{staticClass:"goods-ul"},e._l(e.goodsListAll1,function(t){return o("li",{key:t.proId},[o("img",{attrs:{src:t.mainPicUrl,alt:t.name}}),e._v(" "),o("div",{staticClass:"good-info"},[o("div",{staticClass:"good-name"},[e._v(e._s(t.proName))]),e._v(" "),o("div",{staticClass:"good-num"},[e._v(e._s(t.proNo))])])])}),0):o("div",{staticClass:"no-data-wrap"},[o("div",{staticClass:"no-data-icon"},[o("img",{attrs:{src:r("8Td+"),alt:""}})]),e._v(" "),o("p",[e._v("暂无数据")])])]):e._e(),e._v(" "),"line"==e.goodsTypeStr?o("div",{staticClass:"good-list"},[e.goodsListAll2.length>0?o("ul",{staticClass:"goods-ul"},e._l(e.goodsListAll2,function(t){return o("li",{key:t.proId},[o("img",{attrs:{src:t.mainPicUrl,alt:t.name}}),e._v(" "),o("div",{staticClass:"good-info"},[o("div",{staticClass:"good-name"},[e._v(e._s(t.proName))]),e._v(" "),o("div",{staticClass:"good-num"},[e._v(e._s(t.proNo))])])])}),0):o("div",{staticClass:"no-data-wrap"},[o("div",{staticClass:"no-data-icon"},[o("img",{attrs:{src:r("8Td+"),alt:""}})]),e._v(" "),o("p",[e._v("暂无数据")])])]):e._e()]),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-row",[o("el-button",{on:{click:e.cancle}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.confirm}},[e._v("确 定")])],1)],1)])},staticRenderFns:[]};var n=r("C7Lr")(a,s,!1,function(e){r("7Z57")},"data-v-e023e6b2",null);t.a=n.exports},"9Pyf":function(e,t,r){var o=r("y4M0"),a=r("jdnV");e.exports=r("/KQr").getIterator=function(e){var t=a(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return o(t.call(e))}},"Ch4/":function(e,t,r){"use strict";var o=r("Ip9M");r.n(o);t.a={errorMsg:function(e){var t=window.location.origin;if(t.indexOf("localhost")&&(t="http://gicdev.demogic.com"),0!=e.errorCode){if(401==e.errorCode)return window.location.href=t+"/gic-web/#/",!1;o.Message.error({duration:1e3,message:e.message})}}}},H9GB:function(e,t,r){"use strict";var o=r("JNAD"),a=r("qFr1"),s={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},n=Date.prototype.toISOString,i={delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,serializeDate:function(e){return n.call(e)},skipNulls:!1,strictNullHandling:!1},l=function e(t,r,a,s,n,l,c,u,d,g,p,h){var f=t;if("function"==typeof c)f=c(r,f);else if(f instanceof Date)f=g(f);else if(null===f){if(s)return l&&!h?l(r,i.encoder):r;f=""}if("string"==typeof f||"number"==typeof f||"boolean"==typeof f||o.isBuffer(f))return l?[p(h?r:l(r,i.encoder))+"="+p(l(f,i.encoder))]:[p(r)+"="+p(String(f))];var m,v=[];if(void 0===f)return v;if(Array.isArray(c))m=c;else{var y=Object.keys(f);m=u?y.sort(u):y}for(var b=0;b<m.length;++b){var C=m[b];n&&null===f[C]||(v=Array.isArray(f)?v.concat(e(f[C],a(r,C),a,s,n,l,c,u,d,g,p,h)):v.concat(e(f[C],r+(d?"."+C:"["+C+"]"),a,s,n,l,c,u,d,g,p,h)))}return v};e.exports=function(e,t){var r=e,n=t?o.assign({},t):{};if(null!==n.encoder&&void 0!==n.encoder&&"function"!=typeof n.encoder)throw new TypeError("Encoder has to be a function.");var c=void 0===n.delimiter?i.delimiter:n.delimiter,u="boolean"==typeof n.strictNullHandling?n.strictNullHandling:i.strictNullHandling,d="boolean"==typeof n.skipNulls?n.skipNulls:i.skipNulls,g="boolean"==typeof n.encode?n.encode:i.encode,p="function"==typeof n.encoder?n.encoder:i.encoder,h="function"==typeof n.sort?n.sort:null,f=void 0!==n.allowDots&&n.allowDots,m="function"==typeof n.serializeDate?n.serializeDate:i.serializeDate,v="boolean"==typeof n.encodeValuesOnly?n.encodeValuesOnly:i.encodeValuesOnly;if(void 0===n.format)n.format=a.default;else if(!Object.prototype.hasOwnProperty.call(a.formatters,n.format))throw new TypeError("Unknown format option provided.");var y,b,C=a.formatters[n.format];"function"==typeof n.filter?r=(b=n.filter)("",r):Array.isArray(n.filter)&&(y=b=n.filter);var I,w=[];if("object"!=typeof r||null===r)return"";I=n.arrayFormat in s?n.arrayFormat:"indices"in n?n.indices?"indices":"repeat":"indices";var L=s[I];y||(y=Object.keys(r)),h&&y.sort(h);for(var D=0;D<y.length;++D){var S=y[D];d&&null===r[S]||(w=w.concat(l(r[S],S,L,u,d,g?p:null,b,h,f,m,C,v)))}var x=w.join(c),A=!0===n.addQueryPrefix?"?":"";return x.length>0?A+x:""}},HzJ8:function(e,t,r){e.exports={default:r("fL6L"),__esModule:!0}},JNAD:function(e,t,r){"use strict";var o=Object.prototype.hasOwnProperty,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void 0!==e[o]&&(r[o]=e[o]);return r};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],o=0;o<t.length;++o)for(var a=t[o],s=a.obj[a.prop],n=Object.keys(s),i=0;i<n.length;++i){var l=n[i],c=s[l];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(t.push({obj:s,prop:l}),r.push(c))}return function(e){for(var t;e.length;){var r=e.pop();if(t=r.obj[r.prop],Array.isArray(t)){for(var o=[],a=0;a<t.length;++a)void 0!==t[a]&&o.push(t[a]);r.obj[r.prop]=o}}return t}(t)},decode:function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},encode:function(e){if(0===e.length)return e;for(var t="string"==typeof e?e:String(e),r="",o=0;o<t.length;++o){var s=t.charCodeAt(o);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?r+=t.charAt(o):s<128?r+=a[s]:s<2048?r+=a[192|s>>6]+a[128|63&s]:s<55296||s>=57344?r+=a[224|s>>12]+a[128|s>>6&63]+a[128|63&s]:(o+=1,s=65536+((1023&s)<<10|1023&t.charCodeAt(o)),r+=a[240|s>>18]+a[128|s>>12&63]+a[128|s>>6&63]+a[128|63&s])}return r},isBuffer:function(e){return null!==e&&void 0!==e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,r,a){if(!r)return t;if("object"!=typeof r){if(Array.isArray(t))t.push(r);else{if("object"!=typeof t)return[t,r];(a.plainObjects||a.allowPrototypes||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if("object"!=typeof t)return[t].concat(r);var n=t;return Array.isArray(t)&&!Array.isArray(r)&&(n=s(t,a)),Array.isArray(t)&&Array.isArray(r)?(r.forEach(function(r,s){o.call(t,s)?t[s]&&"object"==typeof t[s]?t[s]=e(t[s],r,a):t.push(r):t[s]=r}),t):Object.keys(r).reduce(function(t,s){var n=r[s];return o.call(t,s)?t[s]=e(t[s],n,a):t[s]=n,t},n)}}},"KjG/":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r("3cXf"),a=r.n(o),s=r("6Mk3"),n=r("93Ik"),i=r("7qQh"),l=(r("0irN"),r("3E4D")),c=r("Ch4/"),u=r("Mk6G"),d=r("P9l9"),g=r("0xDb"),p={name:"addIntegralSytem",data:function(){return{repProjectName:"gic-clique",navpath:[{name:"集团管理",path:""},{name:"会员制度",path:""},{name:"积分制度",path:"/pointSystem"},{name:"编辑积分抵现策略",path:""}],rules:{strategyName:[{required:!0,message:"请填写策略名称",trigger:"blur"}]},goodShow:!1,cateNameLength:0,inputFlagNum:20,mechantOption:[],applyGoods:[{label:"所有商品",value:"1"}],ruleForm:{integralStrategyId:"ff80808163a7a09b0163b01171e202db",enterpriseId:"ff8080815dacd3a2015dacd3ef5c0000",strategyName:1,strategyType:1,useCrowd:"1",crowdJson:"",selectorParams:"",integralGetStatus:"1",integralGet:{fee:11,integral:12},integralGetStrategy:"1",integralGetFreezeDays:1,integralGetEffectiveDays:1,integralUseStatus:"0",integralUse:{fee:"",integral:""},channelList:[{integralStrategyChannelId:"ff808081649321d20164a1fafbdd01df",enterpriseId:"ff8080815dacd3a2015dacd3ef5c0000",integralStrategyId:"ff80808163a7a09b0163b01171e202db",channelType:"1",openStatus:1,channelRelationEnterpriseType:"1",channelRelationStoreType:"1",channelStoreType:"-1",channelRelationProType:"1",integralUseDiscountControl:"1",integralUseDiscountControlUpper:"0.0",integralUseDiscountControlLower:"0.0",useProportionalRestriction:"0.0",strategyGoodsRelationIdArr:[],storeRelationIdArr:[],enterpriseRelationIdArr:[]}]},applyObjOption:[{label:"所有会员",value:"1"},{label:"自定义人群",value:"2"}],dialogVisiblePeople:!1,sceneValue:"member",useId:"",searchParams:"",hasSearchData:"",toggleTag:!1,selectCount:0,goodsType:"wx",goodsListId:[],goodsListWx:[],goodsListLine:[],selectCateDataWx:[],selectCateDataLine:[],selectCateTypeWx:"wx",selectCateTypeLine:"line",cateDataWx:[],cateDataLine:[],storeGroupList:[],goodsTreeOptionsWx:[],valueWx:[],goodsTreeOptionsLine:[],valueLine:[],tpnEditBool:!1,tpnEnterpriseId:"ff808081671d3ceb01672adebf4e6149"}},created:function(){},mounted:function(){Object(g.a)(this.$route.query.integralStrategyId);var e=this.$route.query.integralStrategyId;this.ruleForm.integralStrategyId=e,this.getInfo(),this.getGoodsBrand(),this.getLoginInfo()},methods:{goBack:function(){this.$router.go(-1)},submitForm:function(e){var t=this,r=this;r.tpnEditBool||this.$refs[e].validate(function(e){if(!e)return Object(g.a)("error submit!!"),!1;var o=JSON.parse(a()(r.ruleForm));if(o.strategyName)if(o.channelList[0].enterpriseRelationIdArr.length){if(2==o.channelList[0].integralUseDiscountControl){var s=Number(o.channelList[0].integralUseDiscountControlLower)>=Number(o.channelList[0].integralUseDiscountControlUpper);if(!o.channelList[0].integralUseDiscountControlLower||!o.channelList[0].integralUseDiscountControlUpper)return void r.$message.error("折扣控制中的折扣不能为空");if(s)return void r.$message.error("折扣控制中的折扣格式有误")}var n=!o.integralUse.fee||""==String(o.integralUse.integral);if(1==o.integralUseStatus&&n)r.$message.error("请填写抵现规则");else{if(1==o.integralUseStatus){if(!Number(o.integralUse.fee))return void l.a.showmsg("抵现规则中的抵现金额不能为0","error");if(!Number(o.integralUse.integral))return void l.a.showmsg("抵现规则中的使用积分不能为0","error")}if(o.channelList[0].useProportionalRestriction)if(o.channelList[0].useProportionalRestriction>100)l.a.showmsg("比例限制不能大于100","error");else{var i=!0;o.channelList.forEach(function(e){if(1==e.channelType){if(2==e.channelRelationProType&&t.valueWx.length<1)return l.a.showmsg("请选择商品品牌","error"),i=!1;if(3==e.channelRelationProType&&t.cateDataWx.length<1)return l.a.showmsg("请选择商品品类","error"),i=!1;if(4==e.channelRelationProType&&t.goodsListWx.length<1)return l.a.showmsg("请选择单件商品","error"),i=!1}}),2==o.useCrowd&&t.selectCount<1?l.a.showmsg("请选择人群定向","error"):(delete o.selectorParamsId,o.integralUse=a()(o.integralUse),o.channelList&&o.channelList.forEach(function(e,t){e.openStatus=1}),i&&r.saveForm(o))}else l.a.showmsg("请填写比例限制","error")}}else l.a.showmsg("请选择商户","error");else l.a.showmsg("请填写策略名称","error")})},saveForm:function(e){var t=this,r=e;Object(d.c)("/api-admin/save-member-integral-strategy",r).then(function(e){Object(g.a)(e.data.result);var r=e.data;if(0==r.errorCode)return t.$message({message:"保存成功",type:"success"}),void t.changeRoute("/pointSystem");c.a.errorMsg(r)}).catch(function(e){Object(g.a)(e)})},toInput:function(e){var t=u.a.getByteVal(e.target.value,this.inputFlagNum);this.ruleForm.strategyName=t.trim(),this.cateNameLength=u.a.getZhLen(this.ruleForm.strategyName)},inputFocus:function(e,t,r){this.tempTag=t,this.tempData=e,this.tempFlag=r||""},formatInputChange:function(e){if(Object(g.a)(e),"integralUseDiscountControlLower"==this.tempTag||"integralUseDiscountControlUpper"==this.tempTag)return this.tempData[this.tempTag]="NaN"==Number(String(e).replace(/[^\.\d]/g,"")).toFixed(2)?"0.00":Number(String(e).replace(/[^\.\d]/g,"")).toFixed(2),void(Number(this.tempData[this.tempTag])>10&&(this.tempData[this.tempTag]=Number(10).toFixed(2)))},formatInput:function(e){Object(g.a)(e,e.target.value,this.tempData.integralUseDiscountControlLower),this.tempData.integralUseDiscountControlLower="NaN"==Number(String(this.tempData.integralUseDiscountControlLower).replace(/[^\.\d]/g,"")).toFixed(2)?"0.00":Number(String(this.tempData.integralUseDiscountControlLower).replace(/[^\.\d]/g,"")).toFixed(2),this.tempData.integralUseDiscountControlUpper="NaN"==Number(String(this.tempData.integralUseDiscountControlUpper).replace(/[^\.\d]/g,"")).toFixed(2)?"0.00":Number(String(this.tempData.integralUseDiscountControlUpper).replace(/[^\.\d]/g,"")).toFixed(2)},formatInputNum:function(e){this.ruleForm.integralUse.fee=u.a.getCharVal(String(this.ruleForm.integralUse.fee).replace(/[^\.\d]/g,""),6),this.ruleForm.integralUse.integral=u.a.getCharVal(String(this.ruleForm.integralUse.integral).replace(/[^\.\d]/g,""),8),this.ruleForm.channelList[0].useProportionalRestriction=u.a.getCharVal(String(this.ruleForm.channelList[0].useProportionalRestriction).replace(/[^\d]/g,""),3)},formatInputNumBlur:function(){this.ruleForm.integralUse.fee=Number(u.a.getCharVal(String(this.ruleForm.integralUse.fee).replace(/[^\.\d]/g,""),6)).toFixed(1)},changeRoute:function(e){this.$router.push(e)},getInfo:function(){var e=this,t=this,r={strategyId:t.ruleForm.integralStrategyId};Object(d.e)("/api-admin/get-member-integral-strategy",r).then(function(r){Object(g.a)(r.data.result);var o=r.data;if(0==o.errorCode){var a=r.data.result.enterpriseList;a.forEach(function(e,t){e.label=e.brandName,e.value=e.enterpriseId}),t.mechantOption=a;var s=r.data.result.strategy;if(s.channelList&&s.channelList.forEach(function(e){"1"==e.channelType&&(3==e.channelRelationProType&&e.goodsCategoryList&&e.goodsCategoryList.forEach(function(e){t.selectCateDataWx.push(e)}),4==e.channelRelationProType&&e.strategyGoodsRelationIdArr&&e.strategyGoodsRelationIdArr.forEach(function(e){t.goodsListWx.push(e)}),2==e.channelRelationProType&&e.strategyGoodsRelationIdArr&&e.strategyGoodsRelationIdArr.forEach(function(e){t.valueWx.push(e)}))}),2==s.useCrowd){var n=JSON.parse(s.crowdJson);e.selectCount=0,n.list&&n.list.forEach(function(t){t.list&&(e.selectCount+=t.list.length)}),e.useId=s.selectorParamsId,e.hasSearchData=s.crowdJson}return s.integralUse=JSON.parse(s.integralUse),s.integralUse||(s.integralUse={},s.integralUse.fee="",s.integralUse.integral=""),t.ruleForm=t.formatData(s),void(t.cateNameLength=u.a.getZhLen(t.ruleForm.strategyName))}c.a.errorMsg(o)}).catch(function(e){Object(g.a)(e),t.$message.error({duration:1e3,message:e.message})})},bouncer:function(e){return e.filter(function(e){return!(!e||""===e)})},formatData:function(e){return e.integralGetStatus=String(e.integralGetStatus),e.integralUseStatus=String(e.integralUseStatus),e.useCrowd=String(e.useCrowd),e.integralGet=JSON.parse(e.integralGet),e.channelList.forEach(function(e,t){e.channelType=String(e.channelType),e.channelRelationStoreType=String(e.channelRelationStoreType),e.channelStoreType=String(e.channelStoreType),e.channelRelationProType=String(e.channelRelationProType),e.integralUseDiscountControl=String(e.integralUseDiscountControl),e.integralUseDiscountControlUpper=String(e.integralUseDiscountControlUpper),e.integralUseDiscountControlLower=String(e.integralUseDiscountControlLower),e.useProportionalRestriction=String(e.useProportionalRestriction),e.strategyGoodsRelationIdArr&&e.strategyGoodsRelationIdArr.length||(e.strategyGoodsRelationIdArr=[]),e.storeRelationIdArr&&e.storeRelationIdArr.length||(e.storeRelationIdArr=[]),e.enterpriseRelationIdArr&&e.enterpriseRelationIdArr.length||(e.enterpriseRelationIdArr=[])}),e},getGoodsBrand:function(){var e=this;Object(d.a)("/api-mall/list-enterprise-brand",{}).then(function(t){var r=t.data;if(0==r.errorCode){var o=r.result;e.goodsTreeOptionsWx=o,e.goodsTreeOptionsLine=o}c.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},selectGoodsStoreWx:function(e){var t=this;this.valueWx=e,this.ruleForm.channelList.forEach(function(r,o){"1"==r.channelType&&(t.ruleForm.channelList[o].strategyGoodsRelationIdArr=[],e.forEach(function(e){t.ruleForm.channelList[o].strategyGoodsRelationIdArr.push(e)}))})},showGoodsDialog:function(e){this.goodsType=e,this.goodShow=!0,this.goodsListId=[],"wx"==e?this.goodsListId=this.goodsListWx:"line"==e&&(this.goodsListId=this.goodsListLine)},selectGoods:function(e){var t=this;t.goodShow=!1,t.goodsListId=[],e&&("wx"==e.goodsType?(t.ruleForm.channelList.forEach(function(r,o){"1"==r.channelType&&(t.ruleForm.channelList[o].strategyGoodsRelationIdArr=[],e.strategyGoodsRelationIds.forEach(function(e){t.ruleForm.channelList[o].strategyGoodsRelationIdArr.push(e)}))}),t.goodsListWx=e.strategyGoodsRelationIds):"line"==e.goodsType&&(t.ruleForm.channelList.forEach(function(r,o){"3"==r.channelType&&(t.ruleForm.channelList[o].strategyGoodsRelationIdArr=[],e.strategyGoodsRelationIds.forEach(function(e){t.ruleForm.channelList[o].strategyGoodsRelationIdArr.push(e)}))}),t.goodsListLine=e.strategyGoodsRelationIds))},changePeople:function(e){Object(g.a)(this.ruleForm.useCrowd)},showPeople:function(){this.dialogVisiblePeople=!0},getData:function(){this.$refs.peopleFilter.confirmSet()},findFilter:function(e){var t=this;if(Object(g.a)(e),this.ruleForm.crowdJson=e,this.searchParams=e,this.ruleForm.crowdJson){var r=JSON.parse(this.ruleForm.crowdJson);this.selectCount=0,r.list&&r.list.forEach(function(e){t.selectCount+=e.list.length})}},cancelFilter:function(){this.$refs.peopleFilter.cancelSet()},getBackData:function(e){Object(g.a)(e),this.ruleForm.selectorParams=e},hideBtn:function(){this.toggleTag=!1},editShow:function(){this.toggleTag=!0},editHide:function(){this.toggleTag=!1},getPeopleData:function(){var e=this;e.$refs.peopleFilter.confirmSet(),setTimeout(function(){e.searchParams&&e.lsSaveBtn(e.searchParams)},500)},lsSaveBtn:function(e){var t=this;Object(d.e)("/api-admin/get-screen-detail-param",{requestProject:"gic-web",tempBusinessId:this.tempBusinessId?this.tempBusinessId:"",detailParams:e}).then(function(e){0==e.data.errorCode?(t.tempBusinessId=e.data.result,t.useId=e.data.result,t.dialogVisiblePeople=!1,t.searchParams=""):t.$message.error(e.data.message)}).catch(function(e){Object(g.a)(e)})},getCateIds:function(e){var t=this;"wx"==e.selectCateType?this.ruleForm.channelList.forEach(function(r,o){"1"==r.channelType&&(t.ruleForm.channelList[o].strategyGoodsRelationIdArr=[],e.cateIdsList.forEach(function(e){t.ruleForm.channelList[o].strategyGoodsRelationIdArr.push(e),t.cateDataWx.push(e)}))}):"line"==e.selectCateType&&this.ruleForm.channelList.forEach(function(r,o){"3"==r.channelType&&(t.ruleForm.channelList[o].strategyGoodsRelationIdArr=[],e.cateIdsList.forEach(function(e){t.ruleForm.channelList[o].strategyGoodsRelationIdArr.push(e),t.cateDataLine.push(e)}))})},selectGoodsCateHide:function(){var e=this;this.ruleForm.channelList.length>0&&this.ruleForm.channelList.forEach(function(t,r){"1"==t.channelType&&3==t.channelRelationProType&&(e.$refs.selectGoodsCate instanceof Array?e.$refs.selectGoodsCate[0].hideDragClick():e.$refs.selectGoodsCate.hideDragClick())})},getLoginInfo:function(){var e=this;Object(d.e)("/api-auth/get-login-user-info",{}).then(function(t){var r=t.data;0==r.errorCode?r.result.enterpriseId==e.tpnEnterpriseId&&(e.tpnEditBool=!0):c.a.errorMsg(r)}).catch(function(e){Object(g.a)(e)})}},components:{topNavNew:s.a,addGoods:n.a,goodsCate:i.a}},h={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"right-wrap"},[r("topNavNew",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content",on:{click:e.selectGoodsCateHide}},[r("div",{staticClass:"right-box"},[r("div",{staticClass:"attention-wrap"},[r("div",{staticClass:"form-wrap"},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{staticClass:"padding-0 padding-r-45",attrs:{label:"策略名称",prop:"strategyName"}},[r("el-input",{staticClass:"w-340 padding-0",nativeOn:{keyup:function(t){return r=t,e.toInput(r);var r}},model:{value:e.ruleForm.strategyName,callback:function(t){e.$set(e.ruleForm,"strategyName",t)},expression:"ruleForm.strategyName"}}),e._v(" "),r("label",{staticClass:"input-label"},[e._v(e._s(e.cateNameLength)+"/20")])],1),e._v(" "),r("el-form-item",{staticClass:"margin-20",attrs:{label:"适用对象",prop:""}},[r("el-select",{attrs:{placeholder:"请选择"},on:{change:e.changePeople},model:{value:e.ruleForm.useCrowd,callback:function(t){e.$set(e.ruleForm,"useCrowd",t)},expression:"ruleForm.useCrowd"}},e._l(e.applyObjOption,function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),2==e.ruleForm.useCrowd?r("el-form-item",{staticClass:"padding-0",attrs:{label:"人群定向",prop:""}},[r("el-button",{on:{click:e.showPeople}},[e._v("已设置"+e._s(e.selectCount)+"项筛选")])],1):e._e(),e._v(" "),r("el-form-item",{staticClass:"padding-0",attrs:{label:"适用条件"}},[r("div",{staticClass:"title-tip"},[e._v("该设置只对微信商城中的积分抵现起作用。")])]),e._v(" "),e._l(e.ruleForm.channelList,function(t,o){return[1==t.channelType?[r("div",{key:o,staticClass:"form-child margin-20"},[r("el-form-item",{attrs:{label:"选择商户"}},[r("el-select",{attrs:{placeholder:"请选择",multiple:"",size:"small"},model:{value:t.enterpriseRelationIdArr,callback:function(r){e.$set(t,"enterpriseRelationIdArr",r)},expression:"item.enterpriseRelationIdArr"}},e._l(e.mechantOption,function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),r("el-form-item",{staticClass:"padding-0",attrs:{label:"适用商品"}},[r("el-select",{staticClass:"fl",staticStyle:{"margin-right":"10px"},attrs:{placeholder:"请选择"},model:{value:t.channelRelationProType,callback:function(r){e.$set(t,"channelRelationProType",r)},expression:"item.channelRelationProType"}},e._l(e.applyGoods,function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),2==t.channelRelationProType?r("el-select",{staticClass:"fl",attrs:{size:"small",multiple:"",placeholder:"请选择"},on:{change:e.selectGoodsStoreWx},model:{value:e.valueWx,callback:function(t){e.valueWx=t},expression:"valueWx"}},e._l(e.goodsTreeOptionsWx,function(e){return r("el-option",{key:e.brandId,attrs:{label:e.brandName,value:e.brandId}})}),1):e._e(),e._v(" "),3==t.channelRelationProType?r("div",{staticClass:"fl goods-cate"},[r("goodsCate",{ref:"selectGoodsCate",refInFor:!0,attrs:{selectCateType:e.selectCateTypeWx,selectCateData:e.selectCateDataWx},on:{getCateIds:e.getCateIds}})],1):e._e(),e._v(" "),4==t.channelRelationProType?r("el-button",{staticClass:"fl",staticStyle:{width:"202px"},on:{click:function(t){return e.showGoodsDialog("wx")}}},[e._v("已选"+e._s(e.goodsListWx.length)+"件商品")]):e._e()],1),e._v(" "),r("el-form-item",{attrs:{label:"折扣控制",prop:"region"}},[r("div",{staticClass:"radio-cell"},[r("el-radio",{attrs:{label:"1"},model:{value:t.integralUseDiscountControl,callback:function(r){e.$set(t,"integralUseDiscountControl",r)},expression:"item.integralUseDiscountControl"}},[e._v("所有折扣商品都适用")])],1),e._v(" "),r("div",{staticClass:"radio-cell margin-20"},[r("el-radio",{attrs:{label:"2"},model:{value:t.integralUseDiscountControl,callback:function(r){e.$set(t,"integralUseDiscountControl",r)},expression:"item.integralUseDiscountControl"}},[e._v("折扣")]),e._v(" "),r("el-input-number",{attrs:{precision:2,controls:!1,max:10,min:.01},model:{value:t.integralUseDiscountControlLower,callback:function(r){e.$set(t,"integralUseDiscountControlLower",r)},expression:"item.integralUseDiscountControlLower"}}),e._v(" "),r("label",[e._v("至")]),e._v(" "),r("el-input-number",{attrs:{precision:2,controls:!1,max:10,min:.01},model:{value:t.integralUseDiscountControlUpper,callback:function(r){e.$set(t,"integralUseDiscountControlUpper",r)},expression:"item.integralUseDiscountControlUpper"}}),e._v(" "),r("label",[e._v("折商品都适用")]),e._v(" "),r("span",{staticStyle:{"font-size":"13px",color:"#828282","line-height":"1","padding-left":"10px"}},[e._v("注意:折扣范围0.01-10.00,最低折扣不能大于最高折扣")])],1)])],1)]:e._e()]}),e._v(" "),r("el-form-item",{staticClass:"margin-20",attrs:{label:"抵现规则",prop:""}},[r("div",[r("el-radio",{attrs:{label:"1"},model:{value:e.ruleForm.integralUseStatus,callback:function(t){e.$set(e.ruleForm,"integralUseStatus",t)},expression:"ruleForm.integralUseStatus"}},[e._v("每使用")]),e._v(" "),r("el-input-number",{attrs:{precision:1,controls:!1,max:1e4,min:.1},model:{value:e.ruleForm.integralUse.integral,callback:function(t){e.$set(e.ruleForm.integralUse,"integral",t)},expression:"ruleForm.integralUse.integral"}}),e._v(" "),r("label",[e._v("积分,抵 ")]),e._v(" "),r("el-input-number",{attrs:{precision:1,controls:!1,max:1e4,min:.1},model:{value:e.ruleForm.integralUse.fee,callback:function(t){e.$set(e.ruleForm.integralUse,"fee",t)},expression:"ruleForm.integralUse.fee"}}),e._v(" "),r("label",[e._v("元")])],1),e._v(" "),r("div",[r("el-radio",{staticClass:"margin-20",attrs:{label:"0"},model:{value:e.ruleForm.integralUseStatus,callback:function(t){e.$set(e.ruleForm,"integralUseStatus",t)},expression:"ruleForm.integralUseStatus"}},[e._v("不支持抵现")])],1)]),e._v(" "),r("el-form-item",{attrs:{label:"比例限制",prop:"name"}},[r("label",{staticStyle:{color:"#606266"}},[e._v("最多可抵用商品金额的 ")]),e._v(" "),r("el-input",{nativeOn:{keyup:function(t){return e.formatInputNum(t)}},model:{value:e.ruleForm.channelList[0].useProportionalRestriction,callback:function(t){e.$set(e.ruleForm.channelList[0],"useProportionalRestriction",t)},expression:"ruleForm.channelList[0].useProportionalRestriction"}},[r("template",{slot:"append"},[e._v("\n %\n ")])],2)],1),e._v(" "),r("el-form-item",[r("el-row",[r("el-button",{attrs:{disabled:e.tpnEditBool,type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("保 存")]),e._v(" "),r("el-button",{on:{click:e.goBack}},[e._v("返 回")])],1)],1)],2)],1)])])]),e._v(" "),r("vue-gic-footer"),e._v(" "),r("add-goods",{attrs:{goodsListId:e.goodsListId,goodsType:e.goodsType,goodShow:e.goodShow,projectName:e.repProjectName},on:{"update:goodShow":function(t){e.goodShow=t},"update:good-show":function(t){e.goodShow=t},selectGoods:e.selectGoods}}),e._v(" "),r("el-dialog",{attrs:{title:"自定义人群",visible:e.dialogVisiblePeople,width:"980px"},on:{"update:visible":function(t){e.dialogVisiblePeople=t}}},[r("div",{staticClass:"select-people"},[r("vue-gic-group-people",{ref:"peopleFilter",attrs:{projectName:e.repProjectName,useId:e.useId,hasSearchData:e.hasSearchData,sceneValue:e.sceneValue},on:{findFilter:e.findFilter,getBackData:e.getBackData,editHide:e.editHide,editShow:e.editShow,hideBtn:e.hideBtn}}),e._v(" "),r("div",{directives:[{name:"show",rawName:"v-show",value:e.toggleTag,expression:"toggleTag"}],staticClass:"people-btn-wrap"},[r("el-row",[r("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.getData}},[e._v("确定")]),e._v(" "),r("el-button",{attrs:{size:"small"},on:{click:e.cancelFilter}},[e._v("取消")])],1)],1)],1),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-row",[r("el-button",{on:{click:function(t){e.dialogVisiblePeople=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.getPeopleData}},[e._v("确 定")])],1)],1)])],1)},staticRenderFns:[]};var f=r("C7Lr")(p,h,!1,function(e){r("XbMb")},"data-v-71aca406",null);t.default=f.exports},M3XI:function(e,t){},Mk6G:function(e,t,r){"use strict";t.a={getByteLen:function(e){for(var t=0,r=0;r<e.length;r++){null!=e.charAt(r).match(/[^\x00-\xff]/gi)?t+=2:t+=1}return t},getZhLen:function(e){for(var t=0,r=0;r<e.length;r++){null!=e.charAt(r).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)},cutStr:function(e,t,r){for(var o=0,a=0;a<e.length;a++){var s=e.charAt(a);if(1==r&&(encodeURI(s).length>2?o+=1:o+=.5),2==r&&(o+=1),o>=t){var n=o==t?a+1:a;return e.substr(0,n)}}},getByteVal:function(e,t){for(var r="",o=0,a=0;a<e.length&&(null!=e[a].match(/[^\x00-\xff]/gi)?o+=1:o+=.5,!(o>t));a++)r+=e[a];return r},getCharVal:function(e,t){for(var r="",o=0,a=0;a<e.length&&(null!=e[a].match(/[^\x00-\xff]/gi)?o+=2:o+=1,!(o>t));a++)r+=e[a];return r},regPos:function(e){return/^\d+(\.\d+)?$/.test(e)}}},Ml8i:function(e,t,r){"use strict";var o=r("JNAD"),a=Object.prototype.hasOwnProperty,s={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:o.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},n=function(e,t,r){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,n=/(\[[^[\]]*])/.exec(o),i=n?o.slice(0,n.index):o,l=[];if(i){if(!r.plainObjects&&a.call(Object.prototype,i)&&!r.allowPrototypes)return;l.push(i)}for(var c=0;null!==(n=s.exec(o))&&c<r.depth;){if(c+=1,!r.plainObjects&&a.call(Object.prototype,n[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(n[1])}return n&&l.push("["+o.slice(n.index)+"]"),function(e,t,r){for(var o=t,a=e.length-1;a>=0;--a){var s,n=e[a];if("[]"===n)s=(s=[]).concat(o);else{s=r.plainObjects?Object.create(null):{};var i="["===n.charAt(0)&&"]"===n.charAt(n.length-1)?n.slice(1,-1):n,l=parseInt(i,10);!isNaN(l)&&n!==i&&String(l)===i&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(s=[])[l]=o:s[i]=o}o=s}return o}(l,t,r)}};e.exports=function(e,t){var r=t?o.assign({},t):{};if(null!==r.decoder&&void 0!==r.decoder&&"function"!=typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(r.ignoreQueryPrefix=!0===r.ignoreQueryPrefix,r.delimiter="string"==typeof r.delimiter||o.isRegExp(r.delimiter)?r.delimiter:s.delimiter,r.depth="number"==typeof r.depth?r.depth:s.depth,r.arrayLimit="number"==typeof r.arrayLimit?r.arrayLimit:s.arrayLimit,r.parseArrays=!1!==r.parseArrays,r.decoder="function"==typeof r.decoder?r.decoder:s.decoder,r.allowDots="boolean"==typeof r.allowDots?r.allowDots:s.allowDots,r.plainObjects="boolean"==typeof r.plainObjects?r.plainObjects:s.plainObjects,r.allowPrototypes="boolean"==typeof r.allowPrototypes?r.allowPrototypes:s.allowPrototypes,r.parameterLimit="number"==typeof r.parameterLimit?r.parameterLimit:s.parameterLimit,r.strictNullHandling="boolean"==typeof r.strictNullHandling?r.strictNullHandling:s.strictNullHandling,""===e||null===e||void 0===e)return r.plainObjects?Object.create(null):{};for(var i="string"==typeof e?function(e,t){for(var r={},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,n=t.parameterLimit===1/0?void 0:t.parameterLimit,i=o.split(t.delimiter,n),l=0;l<i.length;++l){var c,u,d=i[l],g=d.indexOf("]="),p=-1===g?d.indexOf("="):g+1;-1===p?(c=t.decoder(d,s.decoder),u=t.strictNullHandling?null:""):(c=t.decoder(d.slice(0,p),s.decoder),u=t.decoder(d.slice(p+1),s.decoder)),a.call(r,c)?r[c]=[].concat(r[c]).concat(u):r[c]=u}return r}(e,r):e,l=r.plainObjects?Object.create(null):{},c=Object.keys(i),u=0;u<c.length;++u){var d=c[u],g=n(d,i[d],r);l=o.merge(l,g,r)}return o.compact(l)}},NUnD:function(e,t,r){var o=r("/KQr"),a=o.JSON||(o.JSON={stringify:JSON.stringify});e.exports=function(e){return a.stringify.apply(a,arguments)}},P9l9:function(e,t,r){"use strict";r.d(t,"a",function(){return g}),r.d(t,"e",function(){return p}),r.d(t,"d",function(){return h}),r.d(t,"c",function(){return f}),r.d(t,"b",function(){return m});var o=r("rVsN"),a=r.n(o),s=r("lRwf"),n=r.n(s),i=r("6iV/"),l=r.n(i),c=r("Ip9M"),u=(r.n(c),r("0xDb"));n.a.axios.defaults.timeout=15e3;var d=window.location.origin;-1!=d.indexOf("localhost")&&(d="http://gicdev.demogic.com"),Object(u.a)(d),n.a.axios.interceptors.request.use(function(e){return Object(u.a)(d),e},function(e){return c.Message.error({message:"请求超时!"}),a.a.resolve(e)}),n.a.axios.interceptors.response.use(function(e){if(Object(u.a)("response data:",e),!e.status||200!=e.status||"error"!=e.data.status)return e;c.Message.error({message:e.data.msg})},function(e){return Object(u.a)("response err:",e),504==e.response.status||404==e.response.status||e.response.status,a.a.resolve(e)});var g=function(e,t){return t.requestProject="gic-clique",n.a.axios({method:"get",url:""+d+e,data:{},params:t,headers:{"content-type":"application/x-www-form-urlencoded"}})},p=function(e,t){return t.requestProject="gic-clique",n.a.axios({method:"post",url:""+d+e,data:l.a.stringify(t),headers:{"content-type":"application/x-www-form-urlencoded"}})},h=function(e,t){return t.requestProject="gic-clique",n.a.axios({method:"post",url:""+d+e,data:"{}",params:t,headers:{"Content-Type":"application/json;charset=UTF-8"}})},f=function(e,t){return n.a.axios({method:"post",url:""+d+e,data:t,params:{requestProject:"gic-clique"},headers:{"Content-Type":"application/json;charset=UTF-8"}})},m=function(e,t){return t.requestProject="gic-clique",n.a.axios({method:"post",url:""+d+e,data:t,headers:{}})}},XbMb:function(e,t){},Zd4j:function(e,t){},fL6L:function(e,t,r){r("MKOc"),r("rYUz"),e.exports=r("9Pyf")},qFr1:function(e,t,r){"use strict";var o=String.prototype.replace,a=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return o.call(e,a,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}}});
//# sourceMappingURL=10.169e4ad17e4ff631e4de.js.map //# sourceMappingURL=10.780304d27afe459ee3f4.js.map
\ No newline at end of file \ 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.
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.
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.
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.
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.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([9],{"0irN":function(e,t){},"0xDb":function(e,t,r){"use strict";r.d(t,"a",function(){return s});var o=r("ZLEe"),a=(r.n(o),r("hRKE")),s=(r.n(a),function(e){0})},"3E4D":function(e,t,r){"use strict";var o=r("Ip9M");r.n(o);t.a={showmsg:function(e,t){Object(o.Message)({duration:1e3,message:e,type:t})}}},"3cXf":function(e,t,r){e.exports={default:r("NUnD"),__esModule:!0}},"6Mk3":function(e,t,r){"use strict";var o={name:"navpath",props:{navpath:{type:Array,default:function(){return[]}},navtip:{type:Boolean,default:!1}},methods:{}},a={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"navwrap boxbttom"},[r("el-breadcrumb",{attrs:{separator:"/"}},e._l(e.navpath,function(t,o){return r("el-breadcrumb-item",{key:o,staticClass:"no-link",class:{"link-active":""!=t.path&&o!=e.navpath.length-1},attrs:{to:{path:t.path}}},[e._v(e._s(t.name))])}),1),e._v(" "),e.navpath.length>0?r("h1",{staticClass:"navtitle"},[e._v(e._s(e.navpath[e.navpath.length-1].name))]):e._e()],1)},staticRenderFns:[]};var s=r("C7Lr")(o,a,!1,function(e){r("Zd4j")},"data-v-a87ca87c",null);t.a=s.exports},"6iV/":function(e,t,r){"use strict";var o=r("H9GB"),a=r("Ml8i"),s=r("qFr1");e.exports={formats:s,parse:a,stringify:o}},"7Z57":function(e,t){},"7qQh":function(e,t,r){"use strict";var o=r("HzJ8"),a=r.n(o),s=r("P9l9"),i=r("0xDb"),n=(r("6iV/"),{props:{selectCateData:{type:Array,default:function(){return[]}},selectCateType:{type:String,default:""}},data:function(){return{allDate:[],firstCate:[],classIndex1:0,refreshStatus:!1,seceltIndex1:"",seceltIndex2:"",showDrag:!1,showCateDrag:!0}},created:function(){this.getFirstCateList()},methods:{getFirstCateList:function(){var e=this;Object(s.a)("/api-mall/list-mall-goods-all-category",{requestProject:"gic-clique"}).then(function(t){0===t.data.errorCode?(e.allDate=[],e.allDate.push({search:"",arr:t.data.result})):e.$message.error(t.data.message)})},getNextCateList:function(e,t,r,o){var i=this;this.seceltIndex1=o,this.seceltIndex2=t,this.allDate.length=o+1,this.refreshStatus=!this.refreshStatus;var n=!0,l=!1,c=void 0;try{for(var u,d=a()(r.arr);!(n=(u=d.next()).done);n=!0){u.value.classIndex=-1}}catch(e){l=!0,c=e}finally{try{!n&&d.return&&d.return()}finally{if(l)throw c}}e.classIndex=t;var g={categoryId:e.categoryId};Object(s.e)("/api-mall/list-mall-goods-children-category",g).then(function(e){0===e.data.errorCode?e.data.result.length&&(i.allDate[o+1]={search:"",arr:e.data.result},i.refreshStatus=!i.refreshStatus):i.$message.error(e.data.message)})},handaleConfirmCate:function(){if(Object(i.a)(this.allDate),""===this.seceltIndex1||""===this.seceltIndex2)return this.showDrag=!1,!1;var e=[];if(this.selectCateData.forEach(function(t){e.push(t.categoryId)}),-1==e.indexOf(this.allDate[this.seceltIndex1].arr[this.seceltIndex2].categoryId)){this.selectCateData.push(this.allDate[this.seceltIndex1].arr[this.seceltIndex2]);var t=[];for(var r in this.selectCateData)t.push(this.selectCateData[r].categoryId);var o={};o.cateIdsList=t,o.selectCateType=this.selectCateType,this.$emit("getCateIds",o)}else this.$message.error("请勿重复添加")},cancelConfirmCate:function(){for(var e in this.allDate)for(var t in this.allDate[e].arr)this.allDate[e].arr[t].classIndex=-1;this.getFirstCateList(),this.showDrag=!1;var r={cateIdsList:[]};r.selectCateType=this.selectCateType,this.$emit("getCateIds",r)},handleClose:function(e){this.selectCateData.splice(this.selectCateData.indexOf(e),1);var t=[];for(var r in this.selectCateData)t.push(this.selectCateData[r].categoryId);var o={};o.cateIdsList=t,o.selectCateType=this.selectCateType,this.$emit("getCateIds",o)},searchCate:function(e,t,r,o){var a=this;if(o.cancelBubble=!0,this.allDate.length=t+1,0===t){var i={search:e};Object(s.e)("/api-mall/list-mall-goods-all-category",i).then(function(t){0===t.data.errorCode?(a.allDate=[],a.allDate.push({search:""!==e?e:"",arr:t.data.result})):a.$message.error(t.data.message)})}else{var n="";for(var l in this.allDate[t-1].arr)-1!==this.allDate[t-1].arr[l].classIndex&&(n=this.allDate[t-1].arr[l].categoryId);var c={search:e,categoryId:n};Object(s.e)("/api-mall/list-mall-goods-children-category",c).then(function(r){0===r.data.errorCode?(a.allDate[t]={search:""!==e?e:"",arr:r.data.result},a.refreshStatus=!a.refreshStatus):a.$message.error(r.data.message)})}},searchBlur:function(e){Object(i.a)(e)},showDragClick:function(){this.showDrag=!this.showDrag},hideDragClick:function(){this.showDrag=!1}},components:{}}),l={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"goods-cate-content"},[r("div",{staticClass:"goods-cate-title",on:{click:function(t){return t.stopPropagation(),e.showDragClick(t)}}},[e._l(e.selectCateData,function(t,o){return r("el-tag",{key:o,staticClass:"select-tag",attrs:{closable:"","disable-transitions":!1,size:"small"},on:{close:function(r){return e.handleClose(t)}}},[e._v("\n "+e._s(t.categoryName)+"\n ")])}),e._v(" "),r("i",{class:e.showDrag?"el-icon-arrow-down":"el-icon-arrow-up"})],2),e._v(" "),r("div",{directives:[{name:"show",rawName:"v-show",value:e.showDrag,expression:"showDrag"}],staticClass:"goods-cate-list-container",on:{click:function(t){return t.stopPropagation(),e.searchBlur(t)}}},[r("div",{staticClass:"goods-cate-list-content",on:{click:function(t){return t.stopPropagation(),e.searchBlur(t)}}},e._l(e.allDate,function(t,o){return r("div",{key:o,staticClass:"goods-cate-box",on:{click:function(t){return t.stopPropagation(),e.searchBlur(t)}}},[r("el-input",{staticClass:"cate-search",attrs:{placeholder:"请输入内容","prefix-icon":"el-icon-search",size:"small",clearable:""},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:function(r){return e.searchCate(t.search,o,t,r)}(r)}},model:{value:t.search,callback:function(r){e.$set(t,"search",r)},expression:"item.search"}}),e._v(" "),r("div",{staticClass:"goods-cate-list"},e._l(t.arr,function(a,s){return r("div",{key:a.categoryId,staticClass:"goods-cate-item",class:a.classIndex===s?"cate-item-active":"",on:{click:function(r){return r.stopPropagation(),e.getNextCateList(a,s,t,o)}}},[r("span",[e._v(e._s(a.categoryName))]),e._v(" "),a.isChildren?r("i",{staticClass:"el-icon-arrow-right"}):e._e()])}),0),e._v(" "),r("span",{staticStyle:{display:"none"}},[e._v(e._s(e.refreshStatus))])],1)}),0),e._v(" "),r("div",{staticClass:"goods-cate-footer"},[r("el-row",[r("el-button",{staticClass:"cancel-cate",attrs:{type:"text",size:"small"},on:{click:e.cancelConfirmCate}},[e._v("取消")]),e._v(" "),r("el-button",{staticClass:"confirm-cate",attrs:{type:"text",size:"small"},on:{click:function(t){return t.stopPropagation(),e.handaleConfirmCate(t)}}},[e._v("确认")])],1)],1)])])},staticRenderFns:[]};var c=r("C7Lr")(n,l,!1,function(e){r("M3XI")},"data-v-2c5d5f7a",null);t.a=c.exports},"8Td+":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MkZBQTNFQjQ4RDkzMTFFODk5QUY5MEYyNDkzRDE2ODIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MkZBQTNFQjU4RDkzMTFFODk5QUY5MEYyNDkzRDE2ODIiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo5MDc3MUI4OThENUQxMUU4OTlBRjkwRjI0OTNEMTY4MiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo5MDc3MUI4QThENUQxMUU4OTlBRjkwRjI0OTNEMTY4MiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PoVF8H0AAAOnSURBVHja7Jvba9NQHMdP0iRNsy0ddjd0OnFOJiIo6pOo+OSDKAoiQ8XLk1d88S8Q55PPCvPJCYI+Koj65A3RFxGc4gZSEHQXt7m1nTW9JX5Pm0HWbbFuPUna5gcfTtrSQ775nd/v/M5JwhmGQazGcRwp1Z4PJkJoRsHOvd0Nn4iHrFjXrPHL7DcIVNBEKsS4pXgYnu1GsxH8BmdAP5DBGDz91sseFpbY3zFwGcyAdeA2OAS+gu1V52GLp6lXh8A+eHawFmKYCl4D2iolhoVl/p/G8DMQdVvIt8m0iOYmqAMXQGxR11upVIPgXcAw6SnWNYtAqsc+gvdAAa+ZJC0vG6ukVXEmlDmOetD0lrtfG5sABzsi0rArgmFHQaeDDusAO8DDUv9Q7iHtRohwXj/ByothlJRb0TwBrdbvo+MppifLw5etYZGERN7xIXiiWKwTpmOmSWi6KzEX8Nr86sewL9gX7AuuHcGapqlgM5CqXjBEHkAzbK4vo/jcXe0evgW+mMUF/f16tZeWq8B9WZbvwbvncbzWroMmVST1QbapIJU1yMhUmpngp+AKxB4xxV61LblQ3woBtrskOd1g6uHjpshNoA/csOtgLJbJU7FDGkN5ihTuKvjzsC+4VjYArCYJHJFFttctnTOIlta9IbglLDIXTJN0dEzzhuCJeJYoDszDnhnSWkbP4yctF6z/1XcZnKsJwRBK71OfBUEcX6oFD9PbLm9MTS+ZxfCKeoHUyWw3MdPIEf8qX0/tbk/Cs3RJ24njgZNlfqhlzjwcFNguHrgSByKE0iXVA6ZZenQ6Q3g+y3Ye1j00LZX7hPxpyRfs8pAO8Fw+cbG0LBYPmZzhDcFtjSIJSYwXD8gR0Z8pbwiOJXN5D9TM4mFGy+Xxk5YvuMKyNOrU02goZGQysZ7n2V0rRRZJQ0hyVzApbMrvoQeZnE53x5kJlsSAP6TtJgpWHnauYLZ5cAUFyDtSuCNC7Rd4wUrwkFN601nd5jfjcUdEuuPEkH5ECu8oMbdUJgthC87ttNy6yzyG4/F4+PAWdXVXi9SL0nnGCdHj08li0XpEIX3bVhrtOJ8uoCxpM2GxB8TR4X4010jh/STZMqTIDyz6YxpCjWO900FIXVAgCmr1iGIQeX4A0os/AC6qqvphbhow/k+wKboZzQZSuEnebGkbAX0Nrx40mBeEvlyhFo2acClrA5CwLo5MIfS7PyBpZmJ662HaDKtZRsBniE3Mz3sLC/4rwADdgm5QNzjziAAAAABJRU5ErkJggg=="},"93Ik":function(e,t,r){"use strict";var o=r("P9l9"),a={name:"add-goods",props:{goodShow:Boolean,projectName:String,goodsType:String,goodsListId:Array},data:function(){return{goodsInput1:"",goodsInput2:"",repProjectName:"gic-clique",goodsTypeStr:"",goodsListAll1:[],goodsListSelect1:[],goodsListSelectId1:[],goodsListAll2:[],goodsListSelect2:[],goodsListSelectId2:[]}},watch:{goodShow:function(e,t){this.repProjectName=this.projectName||"gic-clique",this.goodsTypeStr=this.goodsType,e&&this.init()}},methods:{init:function(){"wx"==this.goodsTypeStr?(this.goodsListSelect1=this.goodsListId,this.goodsListSelect1&&this.goodsListSelect1.length>0&&(this.goodsInput1=this.goodsListSelect1.join(" "),this.getGoodsWx())):"line"==this.goodsTypeStr&&(this.goodsListSelect2=this.goodsListId,this.goodsListSelect2&&this.goodsListSelect2.length>0&&(this.goodsInput2=this.goodsListSelect2.join(" "),this.getGoodsLine()))},getGoodsWx:function(){var e=this,t={requestProject:e.repProjectName,proNos:e.goodsInput1};Object(o.e)("/api-mall/goods-search-by-pronos",t).then(function(t){var r=t.data;0==r.errorCode?r.result&&r.result.forEach(function(t){-1==e.goodsListSelectId1.indexOf(t.proNo)&&(e.goodsListSelectId1.push(t.proNo),e.goodsListAll1.push(t))}):e.$message.error({duration:1e3,message:r.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getGoodsLine:function(){var e=this,t={requestProject:e.repProjectName,proNos:e.goodsInput2};Object(o.e)("/api-goods/goods-search-by-pronos",t).then(function(t){var r=t.data;0==r.errorCode?r.result&&r.result.forEach(function(t){-1==e.goodsListSelectId2.indexOf(t.proNo)&&(e.goodsListSelectId2.push(t.proNo),e.goodsListAll2.push(t))}):e.$message.error({duration:1e3,message:r.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},confirm:function(){var e={strategyGoodsRelationIds:[]};if(e.goodsType=this.goodsTypeStr,this.$emit("selectGoods",e),"wx"==this.goodsTypeStr)if(this.goodsListAll1.length>0){var t={};t.strategyGoodsRelationIds=this.goodsListSelectId1,t.goodsType=this.goodsTypeStr,this.$emit("selectGoods",t)}else"line"==this.goodsTypeStr&&this.$message.error("请选择要添加的商品");else if(this.goodsListAll2.length>0){var r={};r.strategyGoodsRelationIds=this.goodsListSelectId2,r.goodsType=this.goodsTypeStr,this.$emit("selectGoods",r)}else this.$message.error("请选择要添加的商品")},handleClose:function(){this.cancle()},cancle:function(){this.$emit("update:goodShow",!1)},addGoods:function(){"wx"==this.goodsTypeStr?50==this.goodsListAll1.length?this.$message.error("最多添加50个商品"):""==this.goodsInput1?this.$message.error("请输入商品货号"):-1==this.goodsListSelectId1.indexOf(this.goodsInput1)&&this.getGoodsWx():"line"==this.goodsTypeStr&&(50==this.goodsListAll2.length?this.$message.error("最多添加50个商品"):""==this.goodsInput2?this.$message.error("请输入商品货号"):-1==this.goodsListSelectId2.indexOf(this.goodsInput2)&&this.getGoodsLine())},delGoods:function(){"wx"==this.goodsTypeStr?(this.goodsListSelectId1.splice(0,this.goodsListSelectId1.length),this.goodsListAll1.splice(0,this.goodsListAll1.length),this.goodsInput1=""):(this.goodsListSelectId2.splice(0,this.goodsListSelectId2.length),this.goodsListAll2.splice(0,this.goodsListAll2.length),this.goodsInput2="")}}},s={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-dialog",{attrs:{title:"添加适用单品",visible:e.goodShow,width:"516px","before-close":e.handleClose},on:{"update:visible":function(t){e.goodShow=t}}},[o("div",{staticClass:"dialogwrap"},[o("div",{staticClass:"good-input"},["wx"==e.goodsTypeStr?o("el-input",{attrs:{placeholder:"请输入商品货号,多个货号之间用空格隔开"},model:{value:e.goodsInput1,callback:function(t){e.goodsInput1=t},expression:"goodsInput1"}}):e._e(),e._v(" "),"line"==e.goodsTypeStr?o("el-input",{attrs:{placeholder:"请输入商品货号,多个货号之间用空格隔开"},model:{value:e.goodsInput2,callback:function(t){e.goodsInput2=t},expression:"goodsInput2"}}):e._e(),e._v(" "),o("el-button",{staticClass:"add-btn",on:{click:e.addGoods}},[e._v("添加")])],1),e._v(" "),o("div",{staticClass:"good-clear clearfix"},["wx"==e.goodsTypeStr?o("div",{staticClass:"flex-1"},[e._v("已添加"+e._s(e.goodsListAll1.length)+"件商品")]):e._e(),e._v(" "),"line"==e.goodsTypeStr?o("div",{staticClass:"flex-1"},[e._v("已添加"+e._s(e.goodsListAll2.length)+"件商品")]):e._e(),e._v(" "),o("el-button",{staticClass:"fr",staticStyle:{padding:"0"},attrs:{type:"text"},on:{click:e.delGoods}},[e._v("全部清除")])],1),e._v(" "),"wx"==e.goodsTypeStr?o("div",{staticClass:"good-list"},[e.goodsListAll1.length>0?o("ul",{staticClass:"goods-ul"},e._l(e.goodsListAll1,function(t){return o("li",{key:t.proId},[o("img",{attrs:{src:t.mainPicUrl,alt:t.name}}),e._v(" "),o("div",{staticClass:"good-info"},[o("div",{staticClass:"good-name"},[e._v(e._s(t.proName))]),e._v(" "),o("div",{staticClass:"good-num"},[e._v(e._s(t.proNo))])])])}),0):o("div",{staticClass:"no-data-wrap"},[o("div",{staticClass:"no-data-icon"},[o("img",{attrs:{src:r("8Td+"),alt:""}})]),e._v(" "),o("p",[e._v("暂无数据")])])]):e._e(),e._v(" "),"line"==e.goodsTypeStr?o("div",{staticClass:"good-list"},[e.goodsListAll2.length>0?o("ul",{staticClass:"goods-ul"},e._l(e.goodsListAll2,function(t){return o("li",{key:t.proId},[o("img",{attrs:{src:t.mainPicUrl,alt:t.name}}),e._v(" "),o("div",{staticClass:"good-info"},[o("div",{staticClass:"good-name"},[e._v(e._s(t.proName))]),e._v(" "),o("div",{staticClass:"good-num"},[e._v(e._s(t.proNo))])])])}),0):o("div",{staticClass:"no-data-wrap"},[o("div",{staticClass:"no-data-icon"},[o("img",{attrs:{src:r("8Td+"),alt:""}})]),e._v(" "),o("p",[e._v("暂无数据")])])]):e._e()]),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-row",[o("el-button",{on:{click:e.cancle}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.confirm}},[e._v("确 定")])],1)],1)])},staticRenderFns:[]};var i=r("C7Lr")(a,s,!1,function(e){r("7Z57")},"data-v-e023e6b2",null);t.a=i.exports},"9Pyf":function(e,t,r){var o=r("y4M0"),a=r("jdnV");e.exports=r("/KQr").getIterator=function(e){var t=a(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return o(t.call(e))}},"Ch4/":function(e,t,r){"use strict";var o=r("Ip9M");r.n(o);t.a={errorMsg:function(e){var t=window.location.origin;if(t.indexOf("localhost")&&(t="http://gicdev.demogic.com"),0!=e.errorCode){if(401==e.errorCode)return window.location.href=t+"/gic-web/#/",!1;o.Message.error({duration:1e3,message:e.message})}}}},H9GB:function(e,t,r){"use strict";var o=r("JNAD"),a=r("qFr1"),s={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},i=Date.prototype.toISOString,n={delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,serializeDate:function(e){return i.call(e)},skipNulls:!1,strictNullHandling:!1},l=function e(t,r,a,s,i,l,c,u,d,g,p,h){var f=t;if("function"==typeof c)f=c(r,f);else if(f instanceof Date)f=g(f);else if(null===f){if(s)return l&&!h?l(r,n.encoder):r;f=""}if("string"==typeof f||"number"==typeof f||"boolean"==typeof f||o.isBuffer(f))return l?[p(h?r:l(r,n.encoder))+"="+p(l(f,n.encoder))]:[p(r)+"="+p(String(f))];var m,v=[];if(void 0===f)return v;if(Array.isArray(c))m=c;else{var y=Object.keys(f);m=u?y.sort(u):y}for(var b=0;b<m.length;++b){var C=m[b];i&&null===f[C]||(v=Array.isArray(f)?v.concat(e(f[C],a(r,C),a,s,i,l,c,u,d,g,p,h)):v.concat(e(f[C],r+(d?"."+C:"["+C+"]"),a,s,i,l,c,u,d,g,p,h)))}return v};e.exports=function(e,t){var r=e,i=t?o.assign({},t):{};if(null!==i.encoder&&void 0!==i.encoder&&"function"!=typeof i.encoder)throw new TypeError("Encoder has to be a function.");var c=void 0===i.delimiter?n.delimiter:i.delimiter,u="boolean"==typeof i.strictNullHandling?i.strictNullHandling:n.strictNullHandling,d="boolean"==typeof i.skipNulls?i.skipNulls:n.skipNulls,g="boolean"==typeof i.encode?i.encode:n.encode,p="function"==typeof i.encoder?i.encoder:n.encoder,h="function"==typeof i.sort?i.sort:null,f=void 0!==i.allowDots&&i.allowDots,m="function"==typeof i.serializeDate?i.serializeDate:n.serializeDate,v="boolean"==typeof i.encodeValuesOnly?i.encodeValuesOnly:n.encodeValuesOnly;if(void 0===i.format)i.format=a.default;else if(!Object.prototype.hasOwnProperty.call(a.formatters,i.format))throw new TypeError("Unknown format option provided.");var y,b,C=a.formatters[i.format];"function"==typeof i.filter?r=(b=i.filter)("",r):Array.isArray(i.filter)&&(y=b=i.filter);var w,I=[];if("object"!=typeof r||null===r)return"";w=i.arrayFormat in s?i.arrayFormat:"indices"in i?i.indices?"indices":"repeat":"indices";var L=s[w];y||(y=Object.keys(r)),h&&y.sort(h);for(var x=0;x<y.length;++x){var D=y[x];d&&null===r[D]||(I=I.concat(l(r[D],D,L,u,d,g?p:null,b,h,f,m,C,v)))}var S=I.join(c),A=!0===i.addQueryPrefix?"?":"";return S.length>0?A+S:""}},HzJ8:function(e,t,r){e.exports={default:r("fL6L"),__esModule:!0}},JNAD:function(e,t,r){"use strict";var o=Object.prototype.hasOwnProperty,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void 0!==e[o]&&(r[o]=e[o]);return r};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],o=0;o<t.length;++o)for(var a=t[o],s=a.obj[a.prop],i=Object.keys(s),n=0;n<i.length;++n){var l=i[n],c=s[l];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(t.push({obj:s,prop:l}),r.push(c))}return function(e){for(var t;e.length;){var r=e.pop();if(t=r.obj[r.prop],Array.isArray(t)){for(var o=[],a=0;a<t.length;++a)void 0!==t[a]&&o.push(t[a]);r.obj[r.prop]=o}}return t}(t)},decode:function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},encode:function(e){if(0===e.length)return e;for(var t="string"==typeof e?e:String(e),r="",o=0;o<t.length;++o){var s=t.charCodeAt(o);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?r+=t.charAt(o):s<128?r+=a[s]:s<2048?r+=a[192|s>>6]+a[128|63&s]:s<55296||s>=57344?r+=a[224|s>>12]+a[128|s>>6&63]+a[128|63&s]:(o+=1,s=65536+((1023&s)<<10|1023&t.charCodeAt(o)),r+=a[240|s>>18]+a[128|s>>12&63]+a[128|s>>6&63]+a[128|63&s])}return r},isBuffer:function(e){return null!==e&&void 0!==e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,r,a){if(!r)return t;if("object"!=typeof r){if(Array.isArray(t))t.push(r);else{if("object"!=typeof t)return[t,r];(a.plainObjects||a.allowPrototypes||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if("object"!=typeof t)return[t].concat(r);var i=t;return Array.isArray(t)&&!Array.isArray(r)&&(i=s(t,a)),Array.isArray(t)&&Array.isArray(r)?(r.forEach(function(r,s){o.call(t,s)?t[s]&&"object"==typeof t[s]?t[s]=e(t[s],r,a):t.push(r):t[s]=r}),t):Object.keys(r).reduce(function(t,s){var i=r[s];return o.call(t,s)?t[s]=e(t[s],i,a):t[s]=i,t},i)}}},M3XI:function(e,t){},Mk6G:function(e,t,r){"use strict";t.a={getByteLen:function(e){for(var t=0,r=0;r<e.length;r++){null!=e.charAt(r).match(/[^\x00-\xff]/gi)?t+=2:t+=1}return t},getZhLen:function(e){for(var t=0,r=0;r<e.length;r++){null!=e.charAt(r).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)},cutStr:function(e,t,r){for(var o=0,a=0;a<e.length;a++){var s=e.charAt(a);if(1==r&&(encodeURI(s).length>2?o+=1:o+=.5),2==r&&(o+=1),o>=t){var i=o==t?a+1:a;return e.substr(0,i)}}},getByteVal:function(e,t){for(var r="",o=0,a=0;a<e.length&&(null!=e[a].match(/[^\x00-\xff]/gi)?o+=1:o+=.5,!(o>t));a++)r+=e[a];return r},getCharVal:function(e,t){for(var r="",o=0,a=0;a<e.length&&(null!=e[a].match(/[^\x00-\xff]/gi)?o+=2:o+=1,!(o>t));a++)r+=e[a];return r},regPos:function(e){return/^\d+(\.\d+)?$/.test(e)}}},Ml8i:function(e,t,r){"use strict";var o=r("JNAD"),a=Object.prototype.hasOwnProperty,s={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:o.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},i=function(e,t,r){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,i=/(\[[^[\]]*])/.exec(o),n=i?o.slice(0,i.index):o,l=[];if(n){if(!r.plainObjects&&a.call(Object.prototype,n)&&!r.allowPrototypes)return;l.push(n)}for(var c=0;null!==(i=s.exec(o))&&c<r.depth;){if(c+=1,!r.plainObjects&&a.call(Object.prototype,i[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(i[1])}return i&&l.push("["+o.slice(i.index)+"]"),function(e,t,r){for(var o=t,a=e.length-1;a>=0;--a){var s,i=e[a];if("[]"===i)s=(s=[]).concat(o);else{s=r.plainObjects?Object.create(null):{};var n="["===i.charAt(0)&&"]"===i.charAt(i.length-1)?i.slice(1,-1):i,l=parseInt(n,10);!isNaN(l)&&i!==n&&String(l)===n&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(s=[])[l]=o:s[n]=o}o=s}return o}(l,t,r)}};e.exports=function(e,t){var r=t?o.assign({},t):{};if(null!==r.decoder&&void 0!==r.decoder&&"function"!=typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(r.ignoreQueryPrefix=!0===r.ignoreQueryPrefix,r.delimiter="string"==typeof r.delimiter||o.isRegExp(r.delimiter)?r.delimiter:s.delimiter,r.depth="number"==typeof r.depth?r.depth:s.depth,r.arrayLimit="number"==typeof r.arrayLimit?r.arrayLimit:s.arrayLimit,r.parseArrays=!1!==r.parseArrays,r.decoder="function"==typeof r.decoder?r.decoder:s.decoder,r.allowDots="boolean"==typeof r.allowDots?r.allowDots:s.allowDots,r.plainObjects="boolean"==typeof r.plainObjects?r.plainObjects:s.plainObjects,r.allowPrototypes="boolean"==typeof r.allowPrototypes?r.allowPrototypes:s.allowPrototypes,r.parameterLimit="number"==typeof r.parameterLimit?r.parameterLimit:s.parameterLimit,r.strictNullHandling="boolean"==typeof r.strictNullHandling?r.strictNullHandling:s.strictNullHandling,""===e||null===e||void 0===e)return r.plainObjects?Object.create(null):{};for(var n="string"==typeof e?function(e,t){for(var r={},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,n=o.split(t.delimiter,i),l=0;l<n.length;++l){var c,u,d=n[l],g=d.indexOf("]="),p=-1===g?d.indexOf("="):g+1;-1===p?(c=t.decoder(d,s.decoder),u=t.strictNullHandling?null:""):(c=t.decoder(d.slice(0,p),s.decoder),u=t.decoder(d.slice(p+1),s.decoder)),a.call(r,c)?r[c]=[].concat(r[c]).concat(u):r[c]=u}return r}(e,r):e,l=r.plainObjects?Object.create(null):{},c=Object.keys(n),u=0;u<c.length;++u){var d=c[u],g=i(d,n[d],r);l=o.merge(l,g,r)}return o.compact(l)}},NUnD:function(e,t,r){var o=r("/KQr"),a=o.JSON||(o.JSON={stringify:JSON.stringify});e.exports=function(e){return a.stringify.apply(a,arguments)}},P9l9:function(e,t,r){"use strict";r.d(t,"a",function(){return g}),r.d(t,"e",function(){return p}),r.d(t,"d",function(){return h}),r.d(t,"c",function(){return f}),r.d(t,"b",function(){return m});var o=r("rVsN"),a=r.n(o),s=r("lRwf"),i=r.n(s),n=r("6iV/"),l=r.n(n),c=r("Ip9M"),u=(r.n(c),r("0xDb"));i.a.axios.defaults.timeout=15e3;var d=window.location.origin;-1!=d.indexOf("localhost")&&(d="http://gicdev.demogic.com"),Object(u.a)(d),i.a.axios.interceptors.request.use(function(e){return Object(u.a)(d),e},function(e){return c.Message.error({message:"请求超时!"}),a.a.resolve(e)}),i.a.axios.interceptors.response.use(function(e){if(Object(u.a)("response data:",e),!e.status||200!=e.status||"error"!=e.data.status)return e;c.Message.error({message:e.data.msg})},function(e){return Object(u.a)("response err:",e),504==e.response.status||404==e.response.status||e.response.status,a.a.resolve(e)});var g=function(e,t){return t.requestProject="gic-clique",i.a.axios({method:"get",url:""+d+e,data:{},params:t,headers:{"content-type":"application/x-www-form-urlencoded"}})},p=function(e,t){return t.requestProject="gic-clique",i.a.axios({method:"post",url:""+d+e,data:l.a.stringify(t),headers:{"content-type":"application/x-www-form-urlencoded"}})},h=function(e,t){return t.requestProject="gic-clique",i.a.axios({method:"post",url:""+d+e,data:"{}",params:t,headers:{"Content-Type":"application/json;charset=UTF-8"}})},f=function(e,t){return i.a.axios({method:"post",url:""+d+e,data:t,params:{requestProject:"gic-clique"},headers:{"Content-Type":"application/json;charset=UTF-8"}})},m=function(e,t){return t.requestProject="gic-clique",i.a.axios({method:"post",url:""+d+e,data:t,headers:{}})}},PpJr:function(e,t){},Zd4j:function(e,t){},fL6L:function(e,t,r){r("MKOc"),r("rYUz"),e.exports=r("9Pyf")},qFr1:function(e,t,r){"use strict";var o=String.prototype.replace,a=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return o.call(e,a,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},"tFd/":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r("3cXf"),a=r.n(o),s=r("6Mk3"),i=r("93Ik"),n=r("7qQh"),l=(r("0irN"),r("3E4D")),c=r("Ch4/"),u=r("Mk6G"),d=r("P9l9"),g=r("0xDb"),p={name:"addIntegralSytem",data:function(){return{repProjectName:"gic-clique",navpath:[{name:"集团管理",path:""},{name:"会员制度",path:""},{name:"积分制度",path:"/pointSystem"},{name:"添加积分抵现策略",path:""}],rules:{strategyName:[{required:!0,message:"请填写策略名称",trigger:"blur"}]},goodShow:!1,cateNameLength:0,inputFlagNum:20,mechantOption:[],applyGoods:[{label:"所有商品",value:"1"}],ruleForm:{integralStrategyId:"",enterpriseId:"",strategyName:"",strategyType:2,useCrowd:"1",crowdJson:"",selectorParams:"",integralGetStatus:"1",integralGetStrategy:"1",integralGetFreezeDays:1,integralGetEffectiveDays:1,integralUseStatus:"0",integralUse:{fee:"",integral:""},channelList:[{integralStrategyChannelId:"",enterpriseId:"",integralStrategyId:"",channelType:"1",openStatus:1,channelRelationEnterpriseType:"1",channelRelationStoreType:"1",channelStoreType:"-1",channelRelationProType:"1",integralUseDiscountControl:"1",integralUseDiscountControlUpper:"0.0",integralUseDiscountControlLower:"0.0",useProportionalRestriction:"0.0",strategyGoodsRelationIdArr:[],storeRelationIdArr:[],enterpriseRelationIdArr:[]}]},applyObjOption:[{label:"所有会员",value:"1"},{label:"自定义人群",value:"2"}],dialogVisiblePeople:!1,sceneValue:"member",useId:"",searchParams:"",hasSearchData:"",toggleTag:!1,selectCount:0,tempBusinessId:"",goodsType:"wx",goodsListId:[],goodsListWx:[],goodsListLine:[],selectCateDataWx:[],selectCateDataLine:[],selectCateTypeWx:"wx",selectCateTypeLine:"line",cateDataWx:[],cateDataLine:[],storeGroupList:[],goodsTreeOptionsWx:[],valueWx:[],goodsTreeOptionsLine:[],valueLine:[]}},created:function(){},methods:{goBack:function(){this.$router.go(-1)},submitForm:function(e){var t=this,r=this,o=JSON.parse(a()(r.ruleForm));this.$refs[e].validate(function(e){if(!e)return Object(g.a)("error submit!!"),!1;if(o.strategyName){if(2==o.channelList[0].integralUseDiscountControl){var s=Number(o.channelList[0].integralUseDiscountControlLower)>=Number(o.channelList[0].integralUseDiscountControlUpper);if(!o.channelList[0].integralUseDiscountControlLower||!o.channelList[0].integralUseDiscountControlUpper)return void r.$message.error("折扣控制中的折扣不能为空");if(s)return void r.$message.error("折扣控制中的折扣格式有误")}var i=!o.integralUse.fee||""==String(o.integralUse.integral);if(1==o.integralUseStatus&&i)r.$message.error("请填写抵现规则");else{if(1==o.integralUseStatus){if(!Number(o.integralUse.fee))return void l.a.showmsg("抵现规则中的抵现金额不能为0","error");if(!Number(o.integralUse.integral))return void l.a.showmsg("抵现规则中的使用积分不能为0","error")}if(o.channelList[0].useProportionalRestriction)if(o.channelList[0].useProportionalRestriction>100)l.a.showmsg("比例限制不能大于100","error");else{var n=!0;o.channelList.forEach(function(e){if(1==e.channelType){if(2==e.channelRelationProType&&t.valueWx.length<1)return l.a.showmsg("请选择商品品牌","error"),n=!1;if(3==e.channelRelationProType&&t.cateDataWx.length<1)return l.a.showmsg("请选择商品品类","error"),n=!1;if(4==e.channelRelationProType&&t.goodsListWx.length<1)return l.a.showmsg("请选择单件商品","error"),n=!1}}),2==o.useCrowd&&t.selectCount<1?l.a.showmsg("请选择人群定向","error"):(delete o.selectorParamsId,o.integralUse=a()(o.integralUse),o.channelList&&o.channelList.forEach(function(e,t){e.openStatus=1}),n&&r.saveForm(o))}else l.a.showmsg("请填写比例限制","error")}}else l.a.showmsg("请填写策略名称","error")})},saveForm:function(e){var t=this,r=e;Object(d.c)("/api-admin/save-member-integral-strategy",r).then(function(e){Object(g.a)(e.data.result);var r=e.data;if(0==r.errorCode)return t.$message({message:"添加成功",type:"success"}),void t.changeRoute("/pointSystem");c.a.errorMsg(r)}).catch(function(e){Object(g.a)(e)})},bouncer:function(e){return e.filter(function(e){return!(!e||""===e)})},toInput:function(e){var t=u.a.getByteVal(e.target.value,this.inputFlagNum);this.ruleForm.strategyName=t.trim(),this.cateNameLength=u.a.getZhLen(this.ruleForm.strategyName)},inputFocus:function(e,t,r){this.tempTag=t,this.tempData=e,this.tempFlag=r||""},formatInputChange:function(e){if("integralUseDiscountControlLower"==this.tempTag||"integralUseDiscountControlUpper"==this.tempTag)return this.tempData[this.tempTag]="NaN"==Number(String(e).replace(/[^\.\d]/g,"")).toFixed(2)?"0.00":Number(String(e).replace(/[^\.\d]/g,"")).toFixed(2),void(Number(this.tempData[this.tempTag])>10&&(this.tempData[this.tempTag]=Number(10).toFixed(2)))},formatInput:function(e){this.tempData.integralUseDiscountControlLower="NaN"==Number(String(this.tempData.integralUseDiscountControlLower).replace(/[^\.\d]/g,"")).toFixed(2)?"0.00":Number(String(this.tempData.integralUseDiscountControlLower).replace(/[^\.\d]/g,"")).toFixed(2),this.tempData.integralUseDiscountControlUpper="NaN"==Number(String(this.tempData.integralUseDiscountControlUpper).replace(/[^\.\d]/g,"")).toFixed(2)?"0.00":Number(String(this.tempData.integralUseDiscountControlUpper).replace(/[^\.\d]/g,"")).toFixed(2)},formatInputNum:function(e){this.ruleForm.integralUse.fee=u.a.getCharVal(String(this.ruleForm.integralUse.fee).replace(/[^\.\d]/g,""),6),this.ruleForm.integralUse.integral=u.a.getCharVal(String(this.ruleForm.integralUse.integral).replace(/[^\d]/g,""),8),this.ruleForm.channelList[0].useProportionalRestriction=u.a.getCharVal(String(this.ruleForm.channelList[0].useProportionalRestriction).replace(/[^\d]/g,""),3)},formatInputNumBlur:function(){this.ruleForm.integralUse.fee=Number(u.a.getCharVal(String(this.ruleForm.integralUse.fee).replace(/[^\.\d]/g,""),6)).toFixed(1)},changeRoute:function(e){this.$router.push(e)},getGoodsBrand:function(){var e=this;Object(d.a)("/api-mall/list-enterprise-brand",{}).then(function(t){var r=t.data;if(0==r.errorCode){var o=r.result;e.goodsTreeOptionsWx=o,e.goodsTreeOptionsLine=o}c.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},selectGoodsStoreWx:function(e){var t=this;this.valueWx=e,this.ruleForm.channelList.forEach(function(r,o){"1"==r.channelType&&(t.ruleForm.channelList[o].strategyGoodsRelationIdArr=[],e.forEach(function(e){t.ruleForm.channelList[o].strategyGoodsRelationIdArr.push(e)}))})},showGoodsDialog:function(e){this.goodsType=e,this.goodShow=!0,this.goodsListId=[],"wx"==e?this.goodsListId=this.goodsListWx:"line"==e&&(this.goodsListId=this.goodsListLine)},selectGoods:function(e){var t=this;t.goodShow=!1,t.goodsListId=[],e&&("wx"==e.goodsType?(t.ruleForm.channelList.forEach(function(r,o){"1"==r.channelType&&(t.ruleForm.channelList[o].strategyGoodsRelationIdArr=[],e.strategyGoodsRelationIds.forEach(function(e){t.ruleForm.channelList[o].strategyGoodsRelationIdArr.push(e)}))}),t.goodsListWx=e.strategyGoodsRelationIds):"line"==e.goodsType&&(t.ruleForm.channelList.forEach(function(r,o){"3"==r.channelType&&(t.ruleForm.channelList[o].strategyGoodsRelationIdArr=[],e.strategyGoodsRelationIds.forEach(function(e){t.ruleForm.channelList[o].strategyGoodsRelationIdArr.push(e)}))}),t.goodsListLine=e.strategyGoodsRelationIds))},changePeople:function(e){Object(g.a)(this.ruleForm.useCrowd)},showPeople:function(){this.dialogVisiblePeople=!0},getData:function(){this.$refs.peopleFilter.confirmSet()},getBackData:function(e){this.ruleForm.selectorParams=e},findFilter:function(e){var t=this;if(this.ruleForm.crowdJson=e,this.searchParams=e,this.ruleForm.crowdJson){var r=JSON.parse(this.ruleForm.crowdJson);this.selectCount=0,r.list&&r.list.forEach(function(e){t.selectCount+=e.list.length})}},getPeopleData:function(){var e=this;e.$refs.peopleFilter.confirmSet(),setTimeout(function(){e.searchParams&&e.lsSaveBtn(e.searchParams)},500)},lsSaveBtn:function(e){var t=this;Object(d.e)("/api-admin/get-screen-detail-param",{requestProject:this.repProjectName,tempBusinessId:this.tempBusinessId?this.tempBusinessId:"",detailParams:e}).then(function(e){0==e.data.errorCode?(t.tempBusinessId=e.data.result,t.useId=e.data.result,t.dialogVisiblePeople=!1,t.searchParams=""):t.$message.error(e.data.message)}).catch(function(e){Object(g.a)(e)})},cancelFilter:function(){this.$refs.peopleFilter.cancelSet()},hideBtn:function(){this.toggleTag=!1},editShow:function(){this.toggleTag=!0},editHide:function(){this.toggleTag=!1},getCateIds:function(e){var t=this;"wx"==e.selectCateType?this.ruleForm.channelList.forEach(function(r,o){"1"==r.channelType&&(t.ruleForm.channelList[o].strategyGoodsRelationIdArr=[],e.cateIdsList.forEach(function(e){t.ruleForm.channelList[o].strategyGoodsRelationIdArr.push(e),t.cateDataWx.push(e)}))}):"line"==e.selectCateType&&this.ruleForm.channelList.forEach(function(r,o){"3"==r.channelType&&(t.ruleForm.channelList[o].strategyGoodsRelationIdArr=[],e.cateIdsList.forEach(function(e){t.ruleForm.channelList[o].strategyGoodsRelationIdArr.push(e),t.cateDataLine.push(e)}))})},selectGoodsCateHide:function(){var e=this;this.ruleForm.channelList.length>0&&this.ruleForm.channelList.forEach(function(t,r){"1"==t.channelType&&3==t.channelRelationProType&&(e.$refs.selectGoodsCate instanceof Array?e.$refs.selectGoodsCate[0].hideDragClick():e.$refs.selectGoodsCate.hideDragClick())})},getCliqueInfo:function(){var e=this;Object(d.e)("/api-admin/list-enterprise",{}).then(function(t){var r=t.data;if(0==r.errorCode){var o=r.result.listEnterprise;return o.forEach(function(e,t){e.label=e.brandName,e.value=e.enterpriseId}),e.mechantOption=o,void(e.ruleForm.channelList[0].enterpriseRelationIdArr=[o[0].enterpriseId])}c.a.errorMsg(r)}).catch(function(e){Object(g.a)(e)})}},components:{topNavNew:s.a,addGoods:i.a,goodsCate:n.a},mounted:function(){this.getGoodsBrand(),this.getCliqueInfo()}},h={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"right-wrap"},[r("topNavNew",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content",on:{click:e.selectGoodsCateHide}},[r("div",{staticClass:"right-box"},[r("div",{staticClass:"attention-wrap"},[r("div",{staticClass:"form-wrap"},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{staticClass:"padding-0 padding-r-45",attrs:{label:"策略名称",prop:"strategyName"}},[r("el-input",{staticClass:"w-340 padding-0",nativeOn:{keyup:function(t){return r=t,e.toInput(r);var r}},model:{value:e.ruleForm.strategyName,callback:function(t){e.$set(e.ruleForm,"strategyName",t)},expression:"ruleForm.strategyName"}}),e._v(" "),r("label",{staticClass:"input-label"},[e._v(e._s(e.cateNameLength)+"/20")])],1),e._v(" "),r("el-form-item",{staticClass:"margin-20",attrs:{label:"适用对象",prop:""}},[r("el-select",{attrs:{placeholder:"请选择"},model:{value:e.ruleForm.useCrowd,callback:function(t){e.$set(e.ruleForm,"useCrowd",t)},expression:"ruleForm.useCrowd"}},e._l(e.applyObjOption,function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),2==e.ruleForm.useCrowd?r("el-form-item",{staticClass:"padding-0",attrs:{label:"人群定向",prop:""}},[r("el-button",{on:{click:e.showPeople}},[e._v("已设置"+e._s(e.selectCount)+"项筛选")])],1):e._e(),e._v(" "),r("el-form-item",{staticClass:"padding-0",attrs:{label:"适用条件"}},[r("div",{staticClass:"title-tip"},[e._v("该设置只对微信商城中的积分抵现起作用。")])]),e._v(" "),e._l(e.ruleForm.channelList,function(t,o){return[1==t.channelType?[r("div",{key:o,staticClass:"form-child margin-20"},[r("el-form-item",{attrs:{label:"选择商户"}},[r("el-select",{attrs:{placeholder:"请选择",multiple:"",size:"small"},model:{value:t.enterpriseRelationIdArr,callback:function(r){e.$set(t,"enterpriseRelationIdArr",r)},expression:"item.enterpriseRelationIdArr"}},e._l(e.mechantOption,function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),r("el-form-item",{staticClass:"padding-0",attrs:{label:"适用商品"}},[r("el-select",{staticClass:"fl",staticStyle:{"margin-right":"10px"},attrs:{placeholder:"请选择"},model:{value:t.channelRelationProType,callback:function(r){e.$set(t,"channelRelationProType",r)},expression:"item.channelRelationProType"}},e._l(e.applyGoods,function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),2==t.channelRelationProType?r("el-select",{staticClass:"fl",attrs:{size:"small",multiple:"",placeholder:"请选择"},on:{change:e.selectGoodsStoreWx},model:{value:e.valueWx,callback:function(t){e.valueWx=t},expression:"valueWx"}},e._l(e.goodsTreeOptionsWx,function(e){return r("el-option",{key:e.brandId,attrs:{label:e.brandName,value:e.brandId}})}),1):e._e(),e._v(" "),3==t.channelRelationProType?r("div",{staticClass:"fl goods-cate"},[r("goodsCate",{ref:"selectGoodsCate",refInFor:!0,attrs:{selectCateType:e.selectCateTypeWx,selectCateData:e.selectCateDataWx},on:{getCateIds:e.getCateIds}})],1):e._e(),e._v(" "),4==t.channelRelationProType?r("el-button",{staticClass:"fl",staticStyle:{width:"202px"},on:{click:function(t){return e.showGoodsDialog("wx")}}},[e._v("已选"+e._s(e.goodsListWx.length)+"件商品")]):e._e()],1),e._v(" "),r("el-form-item",{attrs:{label:"折扣控制",prop:"region"}},[r("div",{staticClass:"radio-cell"},[r("el-radio",{attrs:{label:"1"},model:{value:t.integralUseDiscountControl,callback:function(r){e.$set(t,"integralUseDiscountControl",r)},expression:"item.integralUseDiscountControl"}},[e._v("所有折扣商品都适用")])],1),e._v(" "),r("div",{staticClass:"radio-cell margin-20"},[r("el-radio",{attrs:{label:"2"},model:{value:t.integralUseDiscountControl,callback:function(r){e.$set(t,"integralUseDiscountControl",r)},expression:"item.integralUseDiscountControl"}},[e._v("折扣")]),e._v(" "),r("el-input-number",{attrs:{precision:2,controls:!1,max:10,min:.01},model:{value:t.integralUseDiscountControlLower,callback:function(r){e.$set(t,"integralUseDiscountControlLower",r)},expression:"item.integralUseDiscountControlLower"}}),e._v(" "),r("label",[e._v("至")]),e._v(" "),r("el-input-number",{attrs:{precision:2,controls:!1,max:10,min:.01},model:{value:t.integralUseDiscountControlUpper,callback:function(r){e.$set(t,"integralUseDiscountControlUpper",r)},expression:"item.integralUseDiscountControlUpper"}}),e._v(" "),r("label",[e._v("折商品都适用")]),e._v(" "),r("span",{staticStyle:{"font-size":"13px",color:"#828282","line-height":"1","padding-left":"10px"}},[e._v("注意:折扣范围0.01-10.00,最低折扣不能大于最高折扣")])],1)])],1)]:e._e()]}),e._v(" "),r("el-form-item",{staticClass:"margin-20",attrs:{label:"抵现规则",prop:""}},[r("div",[r("el-radio",{attrs:{label:"1"},model:{value:e.ruleForm.integralUseStatus,callback:function(t){e.$set(e.ruleForm,"integralUseStatus",t)},expression:"ruleForm.integralUseStatus"}},[e._v("每使用")]),e._v(" "),r("el-input-number",{attrs:{precision:1,controls:!1,max:1e4,min:.1},model:{value:e.ruleForm.integralUse.integral,callback:function(t){e.$set(e.ruleForm.integralUse,"integral",t)},expression:"ruleForm.integralUse.integral"}}),e._v(" "),r("label",[e._v("积分,抵 ")]),e._v(" "),r("el-input-number",{attrs:{precision:1,controls:!1,max:1e4,min:.1},model:{value:e.ruleForm.integralUse.fee,callback:function(t){e.$set(e.ruleForm.integralUse,"fee",t)},expression:"ruleForm.integralUse.fee"}}),e._v(" "),r("label",[e._v("元")])],1),e._v(" "),r("div",[r("el-radio",{staticClass:"margin-20",attrs:{label:"0"},model:{value:e.ruleForm.integralUseStatus,callback:function(t){e.$set(e.ruleForm,"integralUseStatus",t)},expression:"ruleForm.integralUseStatus"}},[e._v("不支持抵现")])],1)]),e._v(" "),r("el-form-item",{attrs:{label:"比例限制",prop:"name"}},[r("label",{staticStyle:{color:"#606266"}},[e._v("最多可抵用商品金额的 ")]),e._v(" "),r("el-input",{nativeOn:{keyup:function(t){return e.formatInputNum(t)}},model:{value:e.ruleForm.channelList[0].useProportionalRestriction,callback:function(t){e.$set(e.ruleForm.channelList[0],"useProportionalRestriction",t)},expression:"ruleForm.channelList[0].useProportionalRestriction"}},[r("template",{slot:"append"},[e._v("\n %\n ")])],2)],1),e._v(" "),r("el-form-item",[r("el-row",[r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("保 存")]),e._v(" "),r("el-button",{on:{click:e.goBack}},[e._v("返 回")])],1)],1)],2)],1)])])]),e._v(" "),r("vue-gic-footer"),e._v(" "),r("add-goods",{attrs:{goodsListId:e.goodsListId,goodsType:e.goodsType,goodShow:e.goodShow,projectName:e.repProjectName},on:{"update:goodShow":function(t){e.goodShow=t},"update:good-show":function(t){e.goodShow=t},selectGoods:e.selectGoods}}),e._v(" "),r("el-dialog",{attrs:{title:"自定义人群",visible:e.dialogVisiblePeople,width:"980px"},on:{"update:visible":function(t){e.dialogVisiblePeople=t}}},[r("div",{staticClass:"select-people"},[r("vue-gic-group-people",{ref:"peopleFilter",attrs:{projectName:e.repProjectName,useId:e.useId,hasSearchData:e.hasSearchData,sceneValue:e.sceneValue},on:{findFilter:e.findFilter,getBackData:e.getBackData,editHide:e.editHide,editShow:e.editShow,hideBtn:e.hideBtn}}),e._v(" "),r("div",{directives:[{name:"show",rawName:"v-show",value:e.toggleTag,expression:"toggleTag"}],staticClass:"people-btn-wrap"},[r("el-row",[r("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.getData}},[e._v("确定")]),e._v(" "),r("el-button",{attrs:{size:"small"},on:{click:e.cancelFilter}},[e._v("取消")])],1)],1)],1),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-row",[r("el-button",{on:{click:function(t){e.dialogVisiblePeople=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.getPeopleData}},[e._v("确 定")])],1)],1)])],1)},staticRenderFns:[]};var f=r("C7Lr")(p,h,!1,function(e){r("PpJr")},"data-v-80114392",null);t.default=f.exports}}); webpackJsonp([9],{"0irN":function(e,t){},"0xDb":function(e,t,r){"use strict";r.d(t,"a",function(){return s});var o=r("ZLEe"),a=(r.n(o),r("hRKE")),s=(r.n(a),function(e){0})},"3E4D":function(e,t,r){"use strict";var o=r("Ip9M");r.n(o);t.a={showmsg:function(e,t){Object(o.Message)({duration:1e3,message:e,type:t})}}},"3cXf":function(e,t,r){e.exports={default:r("NUnD"),__esModule:!0}},"6Mk3":function(e,t,r){"use strict";var o={name:"navpath",props:{navpath:{type:Array,default:function(){return[]}},navtip:{type:Boolean,default:!1}},methods:{}},a={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"navwrap boxbttom"},[r("el-breadcrumb",{attrs:{separator:"/"}},e._l(e.navpath,function(t,o){return r("el-breadcrumb-item",{key:o,staticClass:"no-link",class:{"link-active":""!=t.path&&o!=e.navpath.length-1},attrs:{to:{path:t.path}}},[e._v(e._s(t.name))])}),1),e._v(" "),e.navpath.length>0?r("h1",{staticClass:"navtitle"},[e._v(e._s(e.navpath[e.navpath.length-1].name))]):e._e()],1)},staticRenderFns:[]};var s=r("C7Lr")(o,a,!1,function(e){r("Zd4j")},"data-v-a87ca87c",null);t.a=s.exports},"6iV/":function(e,t,r){"use strict";var o=r("H9GB"),a=r("Ml8i"),s=r("qFr1");e.exports={formats:s,parse:a,stringify:o}},"7Z57":function(e,t){},"7qQh":function(e,t,r){"use strict";var o=r("HzJ8"),a=r.n(o),s=r("P9l9"),i=r("0xDb"),n=(r("6iV/"),{props:{selectCateData:{type:Array,default:function(){return[]}},selectCateType:{type:String,default:""}},data:function(){return{allDate:[],firstCate:[],classIndex1:0,refreshStatus:!1,seceltIndex1:"",seceltIndex2:"",showDrag:!1,showCateDrag:!0}},created:function(){this.getFirstCateList()},methods:{getFirstCateList:function(){var e=this;Object(s.a)("/api-mall/list-mall-goods-all-category",{requestProject:"gic-clique"}).then(function(t){0===t.data.errorCode?(e.allDate=[],e.allDate.push({search:"",arr:t.data.result})):e.$message.error(t.data.message)})},getNextCateList:function(e,t,r,o){var i=this;this.seceltIndex1=o,this.seceltIndex2=t,this.allDate.length=o+1,this.refreshStatus=!this.refreshStatus;var n=!0,l=!1,c=void 0;try{for(var u,d=a()(r.arr);!(n=(u=d.next()).done);n=!0){u.value.classIndex=-1}}catch(e){l=!0,c=e}finally{try{!n&&d.return&&d.return()}finally{if(l)throw c}}e.classIndex=t;var g={categoryId:e.categoryId};Object(s.e)("/api-mall/list-mall-goods-children-category",g).then(function(e){0===e.data.errorCode?e.data.result.length&&(i.allDate[o+1]={search:"",arr:e.data.result},i.refreshStatus=!i.refreshStatus):i.$message.error(e.data.message)})},handaleConfirmCate:function(){if(Object(i.a)(this.allDate),""===this.seceltIndex1||""===this.seceltIndex2)return this.showDrag=!1,!1;var e=[];if(this.selectCateData.forEach(function(t){e.push(t.categoryId)}),-1==e.indexOf(this.allDate[this.seceltIndex1].arr[this.seceltIndex2].categoryId)){this.selectCateData.push(this.allDate[this.seceltIndex1].arr[this.seceltIndex2]);var t=[];for(var r in this.selectCateData)t.push(this.selectCateData[r].categoryId);var o={};o.cateIdsList=t,o.selectCateType=this.selectCateType,this.$emit("getCateIds",o)}else this.$message.error("请勿重复添加")},cancelConfirmCate:function(){for(var e in this.allDate)for(var t in this.allDate[e].arr)this.allDate[e].arr[t].classIndex=-1;this.getFirstCateList(),this.showDrag=!1;var r={cateIdsList:[]};r.selectCateType=this.selectCateType,this.$emit("getCateIds",r)},handleClose:function(e){this.selectCateData.splice(this.selectCateData.indexOf(e),1);var t=[];for(var r in this.selectCateData)t.push(this.selectCateData[r].categoryId);var o={};o.cateIdsList=t,o.selectCateType=this.selectCateType,this.$emit("getCateIds",o)},searchCate:function(e,t,r,o){var a=this;if(o.cancelBubble=!0,this.allDate.length=t+1,0===t){var i={search:e};Object(s.e)("/api-mall/list-mall-goods-all-category",i).then(function(t){0===t.data.errorCode?(a.allDate=[],a.allDate.push({search:""!==e?e:"",arr:t.data.result})):a.$message.error(t.data.message)})}else{var n="";for(var l in this.allDate[t-1].arr)-1!==this.allDate[t-1].arr[l].classIndex&&(n=this.allDate[t-1].arr[l].categoryId);var c={search:e,categoryId:n};Object(s.e)("/api-mall/list-mall-goods-children-category",c).then(function(r){0===r.data.errorCode?(a.allDate[t]={search:""!==e?e:"",arr:r.data.result},a.refreshStatus=!a.refreshStatus):a.$message.error(r.data.message)})}},searchBlur:function(e){Object(i.a)(e)},showDragClick:function(){this.showDrag=!this.showDrag},hideDragClick:function(){this.showDrag=!1}},components:{}}),l={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"goods-cate-content"},[r("div",{staticClass:"goods-cate-title",on:{click:function(t){return t.stopPropagation(),e.showDragClick(t)}}},[e._l(e.selectCateData,function(t,o){return r("el-tag",{key:o,staticClass:"select-tag",attrs:{closable:"","disable-transitions":!1,size:"small"},on:{close:function(r){return e.handleClose(t)}}},[e._v("\n "+e._s(t.categoryName)+"\n ")])}),e._v(" "),r("i",{class:e.showDrag?"el-icon-arrow-down":"el-icon-arrow-up"})],2),e._v(" "),r("div",{directives:[{name:"show",rawName:"v-show",value:e.showDrag,expression:"showDrag"}],staticClass:"goods-cate-list-container",on:{click:function(t){return t.stopPropagation(),e.searchBlur(t)}}},[r("div",{staticClass:"goods-cate-list-content",on:{click:function(t){return t.stopPropagation(),e.searchBlur(t)}}},e._l(e.allDate,function(t,o){return r("div",{key:o,staticClass:"goods-cate-box",on:{click:function(t){return t.stopPropagation(),e.searchBlur(t)}}},[r("el-input",{staticClass:"cate-search",attrs:{placeholder:"请输入内容","prefix-icon":"el-icon-search",size:"small",clearable:""},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:function(r){return e.searchCate(t.search,o,t,r)}(r)}},model:{value:t.search,callback:function(r){e.$set(t,"search",r)},expression:"item.search"}}),e._v(" "),r("div",{staticClass:"goods-cate-list"},e._l(t.arr,function(a,s){return r("div",{key:a.categoryId,staticClass:"goods-cate-item",class:a.classIndex===s?"cate-item-active":"",on:{click:function(r){return r.stopPropagation(),e.getNextCateList(a,s,t,o)}}},[r("span",[e._v(e._s(a.categoryName))]),e._v(" "),a.isChildren?r("i",{staticClass:"el-icon-arrow-right"}):e._e()])}),0),e._v(" "),r("span",{staticStyle:{display:"none"}},[e._v(e._s(e.refreshStatus))])],1)}),0),e._v(" "),r("div",{staticClass:"goods-cate-footer"},[r("el-row",[r("el-button",{staticClass:"cancel-cate",attrs:{type:"text",size:"small"},on:{click:e.cancelConfirmCate}},[e._v("取消")]),e._v(" "),r("el-button",{staticClass:"confirm-cate",attrs:{type:"text",size:"small"},on:{click:function(t){return t.stopPropagation(),e.handaleConfirmCate(t)}}},[e._v("确认")])],1)],1)])])},staticRenderFns:[]};var c=r("C7Lr")(n,l,!1,function(e){r("M3XI")},"data-v-2c5d5f7a",null);t.a=c.exports},"8Td+":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MkZBQTNFQjQ4RDkzMTFFODk5QUY5MEYyNDkzRDE2ODIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MkZBQTNFQjU4RDkzMTFFODk5QUY5MEYyNDkzRDE2ODIiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo5MDc3MUI4OThENUQxMUU4OTlBRjkwRjI0OTNEMTY4MiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo5MDc3MUI4QThENUQxMUU4OTlBRjkwRjI0OTNEMTY4MiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PoVF8H0AAAOnSURBVHja7Jvba9NQHMdP0iRNsy0ddjd0OnFOJiIo6pOo+OSDKAoiQ8XLk1d88S8Q55PPCvPJCYI+Koj65A3RFxGc4gZSEHQXt7m1nTW9JX5Pm0HWbbFuPUna5gcfTtrSQ775nd/v/M5JwhmGQazGcRwp1Z4PJkJoRsHOvd0Nn4iHrFjXrPHL7DcIVNBEKsS4pXgYnu1GsxH8BmdAP5DBGDz91sseFpbY3zFwGcyAdeA2OAS+gu1V52GLp6lXh8A+eHawFmKYCl4D2iolhoVl/p/G8DMQdVvIt8m0iOYmqAMXQGxR11upVIPgXcAw6SnWNYtAqsc+gvdAAa+ZJC0vG6ukVXEmlDmOetD0lrtfG5sABzsi0rArgmFHQaeDDusAO8DDUv9Q7iHtRohwXj/ByothlJRb0TwBrdbvo+MppifLw5etYZGERN7xIXiiWKwTpmOmSWi6KzEX8Nr86sewL9gX7AuuHcGapqlgM5CqXjBEHkAzbK4vo/jcXe0evgW+mMUF/f16tZeWq8B9WZbvwbvncbzWroMmVST1QbapIJU1yMhUmpngp+AKxB4xxV61LblQ3woBtrskOd1g6uHjpshNoA/csOtgLJbJU7FDGkN5ihTuKvjzsC+4VjYArCYJHJFFttctnTOIlta9IbglLDIXTJN0dEzzhuCJeJYoDszDnhnSWkbP4yctF6z/1XcZnKsJwRBK71OfBUEcX6oFD9PbLm9MTS+ZxfCKeoHUyWw3MdPIEf8qX0/tbk/Cs3RJ24njgZNlfqhlzjwcFNguHrgSByKE0iXVA6ZZenQ6Q3g+y3Ye1j00LZX7hPxpyRfs8pAO8Fw+cbG0LBYPmZzhDcFtjSIJSYwXD8gR0Z8pbwiOJXN5D9TM4mFGy+Xxk5YvuMKyNOrU02goZGQysZ7n2V0rRRZJQ0hyVzApbMrvoQeZnE53x5kJlsSAP6TtJgpWHnauYLZ5cAUFyDtSuCNC7Rd4wUrwkFN601nd5jfjcUdEuuPEkH5ECu8oMbdUJgthC87ttNy6yzyG4/F4+PAWdXVXi9SL0nnGCdHj08li0XpEIX3bVhrtOJ8uoCxpM2GxB8TR4X4010jh/STZMqTIDyz6YxpCjWO900FIXVAgCmr1iGIQeX4A0os/AC6qqvphbhow/k+wKboZzQZSuEnebGkbAX0Nrx40mBeEvlyhFo2acClrA5CwLo5MIfS7PyBpZmJ662HaDKtZRsBniE3Mz3sLC/4rwADdgm5QNzjziAAAAABJRU5ErkJggg=="},"93Ik":function(e,t,r){"use strict";var o=r("P9l9"),a={name:"add-goods",props:{goodShow:Boolean,projectName:String,goodsType:String,goodsListId:Array},data:function(){return{goodsInput1:"",goodsInput2:"",repProjectName:"gic-clique",goodsTypeStr:"",goodsListAll1:[],goodsListSelect1:[],goodsListSelectId1:[],goodsListAll2:[],goodsListSelect2:[],goodsListSelectId2:[]}},watch:{goodShow:function(e,t){this.repProjectName=this.projectName||"gic-clique",this.goodsTypeStr=this.goodsType,e&&this.init()}},methods:{init:function(){"wx"==this.goodsTypeStr?(this.goodsListSelect1=this.goodsListId,this.goodsListSelect1&&this.goodsListSelect1.length>0&&(this.goodsInput1=this.goodsListSelect1.join(" "),this.getGoodsWx())):"line"==this.goodsTypeStr&&(this.goodsListSelect2=this.goodsListId,this.goodsListSelect2&&this.goodsListSelect2.length>0&&(this.goodsInput2=this.goodsListSelect2.join(" "),this.getGoodsLine()))},getGoodsWx:function(){var e=this,t={requestProject:e.repProjectName,proNos:e.goodsInput1};Object(o.e)("/api-mall/goods-search-by-pronos",t).then(function(t){var r=t.data;0==r.errorCode?r.result&&r.result.forEach(function(t){-1==e.goodsListSelectId1.indexOf(t.proNo)&&(e.goodsListSelectId1.push(t.proNo),e.goodsListAll1.push(t))}):e.$message.error({duration:1e3,message:r.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getGoodsLine:function(){var e=this,t={requestProject:e.repProjectName,proNos:e.goodsInput2};Object(o.e)("/api-goods/goods-search-by-pronos",t).then(function(t){var r=t.data;0==r.errorCode?r.result&&r.result.forEach(function(t){-1==e.goodsListSelectId2.indexOf(t.proNo)&&(e.goodsListSelectId2.push(t.proNo),e.goodsListAll2.push(t))}):e.$message.error({duration:1e3,message:r.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},confirm:function(){var e={strategyGoodsRelationIds:[]};if(e.goodsType=this.goodsTypeStr,this.$emit("selectGoods",e),"wx"==this.goodsTypeStr)if(this.goodsListAll1.length>0){var t={};t.strategyGoodsRelationIds=this.goodsListSelectId1,t.goodsType=this.goodsTypeStr,this.$emit("selectGoods",t)}else"line"==this.goodsTypeStr&&this.$message.error("请选择要添加的商品");else if(this.goodsListAll2.length>0){var r={};r.strategyGoodsRelationIds=this.goodsListSelectId2,r.goodsType=this.goodsTypeStr,this.$emit("selectGoods",r)}else this.$message.error("请选择要添加的商品")},handleClose:function(){this.cancle()},cancle:function(){this.$emit("update:goodShow",!1)},addGoods:function(){"wx"==this.goodsTypeStr?50==this.goodsListAll1.length?this.$message.error("最多添加50个商品"):""==this.goodsInput1?this.$message.error("请输入商品货号"):-1==this.goodsListSelectId1.indexOf(this.goodsInput1)&&this.getGoodsWx():"line"==this.goodsTypeStr&&(50==this.goodsListAll2.length?this.$message.error("最多添加50个商品"):""==this.goodsInput2?this.$message.error("请输入商品货号"):-1==this.goodsListSelectId2.indexOf(this.goodsInput2)&&this.getGoodsLine())},delGoods:function(){"wx"==this.goodsTypeStr?(this.goodsListSelectId1.splice(0,this.goodsListSelectId1.length),this.goodsListAll1.splice(0,this.goodsListAll1.length),this.goodsInput1=""):(this.goodsListSelectId2.splice(0,this.goodsListSelectId2.length),this.goodsListAll2.splice(0,this.goodsListAll2.length),this.goodsInput2="")}}},s={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-dialog",{attrs:{title:"添加适用单品",visible:e.goodShow,width:"516px","before-close":e.handleClose},on:{"update:visible":function(t){e.goodShow=t}}},[o("div",{staticClass:"dialogwrap"},[o("div",{staticClass:"good-input"},["wx"==e.goodsTypeStr?o("el-input",{attrs:{placeholder:"请输入商品货号,多个货号之间用空格隔开"},model:{value:e.goodsInput1,callback:function(t){e.goodsInput1=t},expression:"goodsInput1"}}):e._e(),e._v(" "),"line"==e.goodsTypeStr?o("el-input",{attrs:{placeholder:"请输入商品货号,多个货号之间用空格隔开"},model:{value:e.goodsInput2,callback:function(t){e.goodsInput2=t},expression:"goodsInput2"}}):e._e(),e._v(" "),o("el-button",{staticClass:"add-btn",on:{click:e.addGoods}},[e._v("添加")])],1),e._v(" "),o("div",{staticClass:"good-clear clearfix"},["wx"==e.goodsTypeStr?o("div",{staticClass:"flex-1"},[e._v("已添加"+e._s(e.goodsListAll1.length)+"件商品")]):e._e(),e._v(" "),"line"==e.goodsTypeStr?o("div",{staticClass:"flex-1"},[e._v("已添加"+e._s(e.goodsListAll2.length)+"件商品")]):e._e(),e._v(" "),o("el-button",{staticClass:"fr",staticStyle:{padding:"0"},attrs:{type:"text"},on:{click:e.delGoods}},[e._v("全部清除")])],1),e._v(" "),"wx"==e.goodsTypeStr?o("div",{staticClass:"good-list"},[e.goodsListAll1.length>0?o("ul",{staticClass:"goods-ul"},e._l(e.goodsListAll1,function(t){return o("li",{key:t.proId},[o("img",{attrs:{src:t.mainPicUrl,alt:t.name}}),e._v(" "),o("div",{staticClass:"good-info"},[o("div",{staticClass:"good-name"},[e._v(e._s(t.proName))]),e._v(" "),o("div",{staticClass:"good-num"},[e._v(e._s(t.proNo))])])])}),0):o("div",{staticClass:"no-data-wrap"},[o("div",{staticClass:"no-data-icon"},[o("img",{attrs:{src:r("8Td+"),alt:""}})]),e._v(" "),o("p",[e._v("暂无数据")])])]):e._e(),e._v(" "),"line"==e.goodsTypeStr?o("div",{staticClass:"good-list"},[e.goodsListAll2.length>0?o("ul",{staticClass:"goods-ul"},e._l(e.goodsListAll2,function(t){return o("li",{key:t.proId},[o("img",{attrs:{src:t.mainPicUrl,alt:t.name}}),e._v(" "),o("div",{staticClass:"good-info"},[o("div",{staticClass:"good-name"},[e._v(e._s(t.proName))]),e._v(" "),o("div",{staticClass:"good-num"},[e._v(e._s(t.proNo))])])])}),0):o("div",{staticClass:"no-data-wrap"},[o("div",{staticClass:"no-data-icon"},[o("img",{attrs:{src:r("8Td+"),alt:""}})]),e._v(" "),o("p",[e._v("暂无数据")])])]):e._e()]),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-row",[o("el-button",{on:{click:e.cancle}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.confirm}},[e._v("确 定")])],1)],1)])},staticRenderFns:[]};var i=r("C7Lr")(a,s,!1,function(e){r("7Z57")},"data-v-e023e6b2",null);t.a=i.exports},"9Pyf":function(e,t,r){var o=r("y4M0"),a=r("jdnV");e.exports=r("/KQr").getIterator=function(e){var t=a(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return o(t.call(e))}},"Ch4/":function(e,t,r){"use strict";var o=r("Ip9M");r.n(o);t.a={errorMsg:function(e){var t=window.location.origin;if(t.indexOf("localhost")&&(t="http://gicdev.demogic.com"),0!=e.errorCode){if(401==e.errorCode)return window.location.href=t+"/gic-web/#/",!1;o.Message.error({duration:1e3,message:e.message})}}}},H9GB:function(e,t,r){"use strict";var o=r("JNAD"),a=r("qFr1"),s={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},i=Date.prototype.toISOString,n={delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,serializeDate:function(e){return i.call(e)},skipNulls:!1,strictNullHandling:!1},l=function e(t,r,a,s,i,l,c,u,d,g,p,h){var f=t;if("function"==typeof c)f=c(r,f);else if(f instanceof Date)f=g(f);else if(null===f){if(s)return l&&!h?l(r,n.encoder):r;f=""}if("string"==typeof f||"number"==typeof f||"boolean"==typeof f||o.isBuffer(f))return l?[p(h?r:l(r,n.encoder))+"="+p(l(f,n.encoder))]:[p(r)+"="+p(String(f))];var m,v=[];if(void 0===f)return v;if(Array.isArray(c))m=c;else{var y=Object.keys(f);m=u?y.sort(u):y}for(var b=0;b<m.length;++b){var C=m[b];i&&null===f[C]||(v=Array.isArray(f)?v.concat(e(f[C],a(r,C),a,s,i,l,c,u,d,g,p,h)):v.concat(e(f[C],r+(d?"."+C:"["+C+"]"),a,s,i,l,c,u,d,g,p,h)))}return v};e.exports=function(e,t){var r=e,i=t?o.assign({},t):{};if(null!==i.encoder&&void 0!==i.encoder&&"function"!=typeof i.encoder)throw new TypeError("Encoder has to be a function.");var c=void 0===i.delimiter?n.delimiter:i.delimiter,u="boolean"==typeof i.strictNullHandling?i.strictNullHandling:n.strictNullHandling,d="boolean"==typeof i.skipNulls?i.skipNulls:n.skipNulls,g="boolean"==typeof i.encode?i.encode:n.encode,p="function"==typeof i.encoder?i.encoder:n.encoder,h="function"==typeof i.sort?i.sort:null,f=void 0!==i.allowDots&&i.allowDots,m="function"==typeof i.serializeDate?i.serializeDate:n.serializeDate,v="boolean"==typeof i.encodeValuesOnly?i.encodeValuesOnly:n.encodeValuesOnly;if(void 0===i.format)i.format=a.default;else if(!Object.prototype.hasOwnProperty.call(a.formatters,i.format))throw new TypeError("Unknown format option provided.");var y,b,C=a.formatters[i.format];"function"==typeof i.filter?r=(b=i.filter)("",r):Array.isArray(i.filter)&&(y=b=i.filter);var I,w=[];if("object"!=typeof r||null===r)return"";I=i.arrayFormat in s?i.arrayFormat:"indices"in i?i.indices?"indices":"repeat":"indices";var L=s[I];y||(y=Object.keys(r)),h&&y.sort(h);for(var x=0;x<y.length;++x){var D=y[x];d&&null===r[D]||(w=w.concat(l(r[D],D,L,u,d,g?p:null,b,h,f,m,C,v)))}var S=w.join(c),A=!0===i.addQueryPrefix?"?":"";return S.length>0?A+S:""}},HzJ8:function(e,t,r){e.exports={default:r("fL6L"),__esModule:!0}},JNAD:function(e,t,r){"use strict";var o=Object.prototype.hasOwnProperty,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void 0!==e[o]&&(r[o]=e[o]);return r};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],o=0;o<t.length;++o)for(var a=t[o],s=a.obj[a.prop],i=Object.keys(s),n=0;n<i.length;++n){var l=i[n],c=s[l];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(t.push({obj:s,prop:l}),r.push(c))}return function(e){for(var t;e.length;){var r=e.pop();if(t=r.obj[r.prop],Array.isArray(t)){for(var o=[],a=0;a<t.length;++a)void 0!==t[a]&&o.push(t[a]);r.obj[r.prop]=o}}return t}(t)},decode:function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},encode:function(e){if(0===e.length)return e;for(var t="string"==typeof e?e:String(e),r="",o=0;o<t.length;++o){var s=t.charCodeAt(o);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?r+=t.charAt(o):s<128?r+=a[s]:s<2048?r+=a[192|s>>6]+a[128|63&s]:s<55296||s>=57344?r+=a[224|s>>12]+a[128|s>>6&63]+a[128|63&s]:(o+=1,s=65536+((1023&s)<<10|1023&t.charCodeAt(o)),r+=a[240|s>>18]+a[128|s>>12&63]+a[128|s>>6&63]+a[128|63&s])}return r},isBuffer:function(e){return null!==e&&void 0!==e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,r,a){if(!r)return t;if("object"!=typeof r){if(Array.isArray(t))t.push(r);else{if("object"!=typeof t)return[t,r];(a.plainObjects||a.allowPrototypes||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if("object"!=typeof t)return[t].concat(r);var i=t;return Array.isArray(t)&&!Array.isArray(r)&&(i=s(t,a)),Array.isArray(t)&&Array.isArray(r)?(r.forEach(function(r,s){o.call(t,s)?t[s]&&"object"==typeof t[s]?t[s]=e(t[s],r,a):t.push(r):t[s]=r}),t):Object.keys(r).reduce(function(t,s){var i=r[s];return o.call(t,s)?t[s]=e(t[s],i,a):t[s]=i,t},i)}}},M3XI:function(e,t){},Mk6G:function(e,t,r){"use strict";t.a={getByteLen:function(e){for(var t=0,r=0;r<e.length;r++){null!=e.charAt(r).match(/[^\x00-\xff]/gi)?t+=2:t+=1}return t},getZhLen:function(e){for(var t=0,r=0;r<e.length;r++){null!=e.charAt(r).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)},cutStr:function(e,t,r){for(var o=0,a=0;a<e.length;a++){var s=e.charAt(a);if(1==r&&(encodeURI(s).length>2?o+=1:o+=.5),2==r&&(o+=1),o>=t){var i=o==t?a+1:a;return e.substr(0,i)}}},getByteVal:function(e,t){for(var r="",o=0,a=0;a<e.length&&(null!=e[a].match(/[^\x00-\xff]/gi)?o+=1:o+=.5,!(o>t));a++)r+=e[a];return r},getCharVal:function(e,t){for(var r="",o=0,a=0;a<e.length&&(null!=e[a].match(/[^\x00-\xff]/gi)?o+=2:o+=1,!(o>t));a++)r+=e[a];return r},regPos:function(e){return/^\d+(\.\d+)?$/.test(e)}}},Ml8i:function(e,t,r){"use strict";var o=r("JNAD"),a=Object.prototype.hasOwnProperty,s={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:o.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},i=function(e,t,r){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,i=/(\[[^[\]]*])/.exec(o),n=i?o.slice(0,i.index):o,l=[];if(n){if(!r.plainObjects&&a.call(Object.prototype,n)&&!r.allowPrototypes)return;l.push(n)}for(var c=0;null!==(i=s.exec(o))&&c<r.depth;){if(c+=1,!r.plainObjects&&a.call(Object.prototype,i[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(i[1])}return i&&l.push("["+o.slice(i.index)+"]"),function(e,t,r){for(var o=t,a=e.length-1;a>=0;--a){var s,i=e[a];if("[]"===i)s=(s=[]).concat(o);else{s=r.plainObjects?Object.create(null):{};var n="["===i.charAt(0)&&"]"===i.charAt(i.length-1)?i.slice(1,-1):i,l=parseInt(n,10);!isNaN(l)&&i!==n&&String(l)===n&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(s=[])[l]=o:s[n]=o}o=s}return o}(l,t,r)}};e.exports=function(e,t){var r=t?o.assign({},t):{};if(null!==r.decoder&&void 0!==r.decoder&&"function"!=typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(r.ignoreQueryPrefix=!0===r.ignoreQueryPrefix,r.delimiter="string"==typeof r.delimiter||o.isRegExp(r.delimiter)?r.delimiter:s.delimiter,r.depth="number"==typeof r.depth?r.depth:s.depth,r.arrayLimit="number"==typeof r.arrayLimit?r.arrayLimit:s.arrayLimit,r.parseArrays=!1!==r.parseArrays,r.decoder="function"==typeof r.decoder?r.decoder:s.decoder,r.allowDots="boolean"==typeof r.allowDots?r.allowDots:s.allowDots,r.plainObjects="boolean"==typeof r.plainObjects?r.plainObjects:s.plainObjects,r.allowPrototypes="boolean"==typeof r.allowPrototypes?r.allowPrototypes:s.allowPrototypes,r.parameterLimit="number"==typeof r.parameterLimit?r.parameterLimit:s.parameterLimit,r.strictNullHandling="boolean"==typeof r.strictNullHandling?r.strictNullHandling:s.strictNullHandling,""===e||null===e||void 0===e)return r.plainObjects?Object.create(null):{};for(var n="string"==typeof e?function(e,t){for(var r={},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,n=o.split(t.delimiter,i),l=0;l<n.length;++l){var c,u,d=n[l],g=d.indexOf("]="),p=-1===g?d.indexOf("="):g+1;-1===p?(c=t.decoder(d,s.decoder),u=t.strictNullHandling?null:""):(c=t.decoder(d.slice(0,p),s.decoder),u=t.decoder(d.slice(p+1),s.decoder)),a.call(r,c)?r[c]=[].concat(r[c]).concat(u):r[c]=u}return r}(e,r):e,l=r.plainObjects?Object.create(null):{},c=Object.keys(n),u=0;u<c.length;++u){var d=c[u],g=i(d,n[d],r);l=o.merge(l,g,r)}return o.compact(l)}},NUnD:function(e,t,r){var o=r("/KQr"),a=o.JSON||(o.JSON={stringify:JSON.stringify});e.exports=function(e){return a.stringify.apply(a,arguments)}},P9l9:function(e,t,r){"use strict";r.d(t,"a",function(){return g}),r.d(t,"e",function(){return p}),r.d(t,"d",function(){return h}),r.d(t,"c",function(){return f}),r.d(t,"b",function(){return m});var o=r("rVsN"),a=r.n(o),s=r("lRwf"),i=r.n(s),n=r("6iV/"),l=r.n(n),c=r("Ip9M"),u=(r.n(c),r("0xDb"));i.a.axios.defaults.timeout=15e3;var d=window.location.origin;-1!=d.indexOf("localhost")&&(d="http://gicdev.demogic.com"),Object(u.a)(d),i.a.axios.interceptors.request.use(function(e){return Object(u.a)(d),e},function(e){return c.Message.error({message:"请求超时!"}),a.a.resolve(e)}),i.a.axios.interceptors.response.use(function(e){if(Object(u.a)("response data:",e),!e.status||200!=e.status||"error"!=e.data.status)return e;c.Message.error({message:e.data.msg})},function(e){return Object(u.a)("response err:",e),504==e.response.status||404==e.response.status||e.response.status,a.a.resolve(e)});var g=function(e,t){return t.requestProject="gic-clique",i.a.axios({method:"get",url:""+d+e,data:{},params:t,headers:{"content-type":"application/x-www-form-urlencoded"}})},p=function(e,t){return t.requestProject="gic-clique",i.a.axios({method:"post",url:""+d+e,data:l.a.stringify(t),headers:{"content-type":"application/x-www-form-urlencoded"}})},h=function(e,t){return t.requestProject="gic-clique",i.a.axios({method:"post",url:""+d+e,data:"{}",params:t,headers:{"Content-Type":"application/json;charset=UTF-8"}})},f=function(e,t){return i.a.axios({method:"post",url:""+d+e,data:t,params:{requestProject:"gic-clique"},headers:{"Content-Type":"application/json;charset=UTF-8"}})},m=function(e,t){return t.requestProject="gic-clique",i.a.axios({method:"post",url:""+d+e,data:t,headers:{}})}},Zd4j:function(e,t){},fL6L:function(e,t,r){r("MKOc"),r("rYUz"),e.exports=r("9Pyf")},qFr1:function(e,t,r){"use strict";var o=String.prototype.replace,a=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return o.call(e,a,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},"tFd/":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r("3cXf"),a=r.n(o),s=r("6Mk3"),i=r("93Ik"),n=r("7qQh"),l=(r("0irN"),r("3E4D")),c=r("Ch4/"),u=r("Mk6G"),d=r("P9l9"),g=r("0xDb"),p={name:"addIntegralSytem",data:function(){return{repProjectName:"gic-clique",navpath:[{name:"集团管理",path:""},{name:"会员制度",path:""},{name:"积分制度",path:"/pointSystem"},{name:"添加积分抵现策略",path:""}],rules:{strategyName:[{required:!0,message:"请填写策略名称",trigger:"blur"}]},goodShow:!1,cateNameLength:0,inputFlagNum:20,mechantOption:[],applyGoods:[{label:"所有商品",value:"1"}],ruleForm:{integralStrategyId:"",enterpriseId:"",strategyName:"",strategyType:2,useCrowd:"1",crowdJson:"",selectorParams:"",integralGetStatus:"1",integralGetStrategy:"1",integralGetFreezeDays:1,integralGetEffectiveDays:1,integralUseStatus:"0",integralUse:{fee:"",integral:""},channelList:[{integralStrategyChannelId:"",enterpriseId:"",integralStrategyId:"",channelType:"1",openStatus:1,channelRelationEnterpriseType:"1",channelRelationStoreType:"1",channelStoreType:"-1",channelRelationProType:"1",integralUseDiscountControl:"1",integralUseDiscountControlUpper:"0.0",integralUseDiscountControlLower:"0.0",useProportionalRestriction:"0.0",strategyGoodsRelationIdArr:[],storeRelationIdArr:[],enterpriseRelationIdArr:[]}]},applyObjOption:[{label:"所有会员",value:"1"},{label:"自定义人群",value:"2"}],dialogVisiblePeople:!1,sceneValue:"member",useId:"",searchParams:"",hasSearchData:"",toggleTag:!1,selectCount:0,tempBusinessId:"",goodsType:"wx",goodsListId:[],goodsListWx:[],goodsListLine:[],selectCateDataWx:[],selectCateDataLine:[],selectCateTypeWx:"wx",selectCateTypeLine:"line",cateDataWx:[],cateDataLine:[],storeGroupList:[],goodsTreeOptionsWx:[],valueWx:[],goodsTreeOptionsLine:[],valueLine:[],tpnEditBool:!1,tpnEnterpriseId:"ff808081671d3ceb01672adebf4e6149"}},created:function(){},methods:{goBack:function(){this.$router.go(-1)},submitForm:function(e){var t=this,r=this;if(!r.tpnEditBool){var o=JSON.parse(a()(r.ruleForm));this.$refs[e].validate(function(e){if(!e)return Object(g.a)("error submit!!"),!1;if(o.strategyName)if(o.channelList[0].enterpriseRelationIdArr.length){if(2==o.channelList[0].integralUseDiscountControl){var s=Number(o.channelList[0].integralUseDiscountControlLower)>=Number(o.channelList[0].integralUseDiscountControlUpper);if(!o.channelList[0].integralUseDiscountControlLower||!o.channelList[0].integralUseDiscountControlUpper)return void r.$message.error("折扣控制中的折扣不能为空");if(s)return void r.$message.error("折扣控制中的折扣格式有误")}var i=!o.integralUse.fee||""==String(o.integralUse.integral);if(1==o.integralUseStatus&&i)r.$message.error("请填写抵现规则");else{if(1==o.integralUseStatus){if(!Number(o.integralUse.fee))return void l.a.showmsg("抵现规则中的抵现金额不能为0","error");if(!Number(o.integralUse.integral))return void l.a.showmsg("抵现规则中的使用积分不能为0","error")}if(o.channelList[0].useProportionalRestriction)if(o.channelList[0].useProportionalRestriction>100)l.a.showmsg("比例限制不能大于100","error");else{var n=!0;o.channelList.forEach(function(e){if(1==e.channelType){if(2==e.channelRelationProType&&t.valueWx.length<1)return l.a.showmsg("请选择商品品牌","error"),n=!1;if(3==e.channelRelationProType&&t.cateDataWx.length<1)return l.a.showmsg("请选择商品品类","error"),n=!1;if(4==e.channelRelationProType&&t.goodsListWx.length<1)return l.a.showmsg("请选择单件商品","error"),n=!1}}),2==o.useCrowd&&t.selectCount<1?l.a.showmsg("请选择人群定向","error"):(delete o.selectorParamsId,o.integralUse=a()(o.integralUse),o.channelList&&o.channelList.forEach(function(e,t){e.openStatus=1}),n&&r.saveForm(o))}else l.a.showmsg("请填写比例限制","error")}}else l.a.showmsg("请选择商户","error");else l.a.showmsg("请填写策略名称","error")})}},saveForm:function(e){var t=this,r=e;Object(d.c)("/api-admin/save-member-integral-strategy",r).then(function(e){Object(g.a)(e.data.result);var r=e.data;if(0==r.errorCode)return t.$message({message:"添加成功",type:"success"}),void t.changeRoute("/pointSystem");c.a.errorMsg(r)}).catch(function(e){Object(g.a)(e)})},bouncer:function(e){return e.filter(function(e){return!(!e||""===e)})},toInput:function(e){var t=u.a.getByteVal(e.target.value,this.inputFlagNum);this.ruleForm.strategyName=t.trim(),this.cateNameLength=u.a.getZhLen(this.ruleForm.strategyName)},inputFocus:function(e,t,r){this.tempTag=t,this.tempData=e,this.tempFlag=r||""},formatInputChange:function(e){if("integralUseDiscountControlLower"==this.tempTag||"integralUseDiscountControlUpper"==this.tempTag)return this.tempData[this.tempTag]="NaN"==Number(String(e).replace(/[^\.\d]/g,"")).toFixed(2)?"0.00":Number(String(e).replace(/[^\.\d]/g,"")).toFixed(2),void(Number(this.tempData[this.tempTag])>10&&(this.tempData[this.tempTag]=Number(10).toFixed(2)))},formatInput:function(e){this.tempData.integralUseDiscountControlLower="NaN"==Number(String(this.tempData.integralUseDiscountControlLower).replace(/[^\.\d]/g,"")).toFixed(2)?"0.00":Number(String(this.tempData.integralUseDiscountControlLower).replace(/[^\.\d]/g,"")).toFixed(2),this.tempData.integralUseDiscountControlUpper="NaN"==Number(String(this.tempData.integralUseDiscountControlUpper).replace(/[^\.\d]/g,"")).toFixed(2)?"0.00":Number(String(this.tempData.integralUseDiscountControlUpper).replace(/[^\.\d]/g,"")).toFixed(2)},formatInputNum:function(e){this.ruleForm.integralUse.fee=u.a.getCharVal(String(this.ruleForm.integralUse.fee).replace(/[^\.\d]/g,""),6),this.ruleForm.integralUse.integral=u.a.getCharVal(String(this.ruleForm.integralUse.integral).replace(/[^\d]/g,""),8),this.ruleForm.channelList[0].useProportionalRestriction=u.a.getCharVal(String(this.ruleForm.channelList[0].useProportionalRestriction).replace(/[^\d]/g,""),3)},formatInputNumBlur:function(){this.ruleForm.integralUse.fee=Number(u.a.getCharVal(String(this.ruleForm.integralUse.fee).replace(/[^\.\d]/g,""),6)).toFixed(1)},changeRoute:function(e){this.$router.push(e)},getGoodsBrand:function(){var e=this;Object(d.a)("/api-mall/list-enterprise-brand",{}).then(function(t){var r=t.data;if(0==r.errorCode){var o=r.result;e.goodsTreeOptionsWx=o,e.goodsTreeOptionsLine=o}c.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},selectGoodsStoreWx:function(e){var t=this;this.valueWx=e,this.ruleForm.channelList.forEach(function(r,o){"1"==r.channelType&&(t.ruleForm.channelList[o].strategyGoodsRelationIdArr=[],e.forEach(function(e){t.ruleForm.channelList[o].strategyGoodsRelationIdArr.push(e)}))})},showGoodsDialog:function(e){this.goodsType=e,this.goodShow=!0,this.goodsListId=[],"wx"==e?this.goodsListId=this.goodsListWx:"line"==e&&(this.goodsListId=this.goodsListLine)},selectGoods:function(e){var t=this;t.goodShow=!1,t.goodsListId=[],e&&("wx"==e.goodsType?(t.ruleForm.channelList.forEach(function(r,o){"1"==r.channelType&&(t.ruleForm.channelList[o].strategyGoodsRelationIdArr=[],e.strategyGoodsRelationIds.forEach(function(e){t.ruleForm.channelList[o].strategyGoodsRelationIdArr.push(e)}))}),t.goodsListWx=e.strategyGoodsRelationIds):"line"==e.goodsType&&(t.ruleForm.channelList.forEach(function(r,o){"3"==r.channelType&&(t.ruleForm.channelList[o].strategyGoodsRelationIdArr=[],e.strategyGoodsRelationIds.forEach(function(e){t.ruleForm.channelList[o].strategyGoodsRelationIdArr.push(e)}))}),t.goodsListLine=e.strategyGoodsRelationIds))},changePeople:function(e){Object(g.a)(this.ruleForm.useCrowd)},showPeople:function(){this.dialogVisiblePeople=!0},getData:function(){this.$refs.peopleFilter.confirmSet()},getBackData:function(e){this.ruleForm.selectorParams=e},findFilter:function(e){var t=this;if(this.ruleForm.crowdJson=e,this.searchParams=e,this.ruleForm.crowdJson){var r=JSON.parse(this.ruleForm.crowdJson);this.selectCount=0,r.list&&r.list.forEach(function(e){t.selectCount+=e.list.length})}},getPeopleData:function(){var e=this;e.$refs.peopleFilter.confirmSet(),setTimeout(function(){e.searchParams&&e.lsSaveBtn(e.searchParams)},500)},lsSaveBtn:function(e){var t=this;Object(d.e)("/api-admin/get-screen-detail-param",{requestProject:this.repProjectName,tempBusinessId:this.tempBusinessId?this.tempBusinessId:"",detailParams:e}).then(function(e){0==e.data.errorCode?(t.tempBusinessId=e.data.result,t.useId=e.data.result,t.dialogVisiblePeople=!1,t.searchParams=""):t.$message.error(e.data.message)}).catch(function(e){Object(g.a)(e)})},cancelFilter:function(){this.$refs.peopleFilter.cancelSet()},hideBtn:function(){this.toggleTag=!1},editShow:function(){this.toggleTag=!0},editHide:function(){this.toggleTag=!1},getCateIds:function(e){var t=this;"wx"==e.selectCateType?this.ruleForm.channelList.forEach(function(r,o){"1"==r.channelType&&(t.ruleForm.channelList[o].strategyGoodsRelationIdArr=[],e.cateIdsList.forEach(function(e){t.ruleForm.channelList[o].strategyGoodsRelationIdArr.push(e),t.cateDataWx.push(e)}))}):"line"==e.selectCateType&&this.ruleForm.channelList.forEach(function(r,o){"3"==r.channelType&&(t.ruleForm.channelList[o].strategyGoodsRelationIdArr=[],e.cateIdsList.forEach(function(e){t.ruleForm.channelList[o].strategyGoodsRelationIdArr.push(e),t.cateDataLine.push(e)}))})},selectGoodsCateHide:function(){var e=this;this.ruleForm.channelList.length>0&&this.ruleForm.channelList.forEach(function(t,r){"1"==t.channelType&&3==t.channelRelationProType&&(e.$refs.selectGoodsCate instanceof Array?e.$refs.selectGoodsCate[0].hideDragClick():e.$refs.selectGoodsCate.hideDragClick())})},getCliqueInfo:function(){var e=this;Object(d.e)("/api-admin/list-enterprise",{}).then(function(t){var r=t.data;if(0==r.errorCode){var o=r.result.listEnterprise;return o.forEach(function(e,t){e.label=e.brandName,e.value=e.enterpriseId}),void(e.mechantOption=o)}c.a.errorMsg(r)}).catch(function(e){Object(g.a)(e)})},getLoginInfo:function(){var e=this;Object(d.e)("/api-auth/get-login-user-info",{}).then(function(t){var r=t.data;0==r.errorCode?r.result.enterpriseId==e.tpnEnterpriseId&&(e.tpnEditBool=!0):c.a.errorMsg(r)}).catch(function(e){Object(g.a)(e)})}},components:{topNavNew:s.a,addGoods:i.a,goodsCate:n.a},mounted:function(){this.getGoodsBrand(),this.getCliqueInfo(),this.getLoginInfo()}},h={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"right-wrap"},[r("topNavNew",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content",on:{click:e.selectGoodsCateHide}},[r("div",{staticClass:"right-box"},[r("div",{staticClass:"attention-wrap"},[r("div",{staticClass:"form-wrap"},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{staticClass:"padding-0 padding-r-45",attrs:{label:"策略名称",prop:"strategyName"}},[r("el-input",{staticClass:"w-340 padding-0",nativeOn:{keyup:function(t){return r=t,e.toInput(r);var r}},model:{value:e.ruleForm.strategyName,callback:function(t){e.$set(e.ruleForm,"strategyName",t)},expression:"ruleForm.strategyName"}}),e._v(" "),r("label",{staticClass:"input-label"},[e._v(e._s(e.cateNameLength)+"/20")])],1),e._v(" "),r("el-form-item",{staticClass:"margin-20",attrs:{label:"适用对象",prop:""}},[r("el-select",{attrs:{placeholder:"请选择"},model:{value:e.ruleForm.useCrowd,callback:function(t){e.$set(e.ruleForm,"useCrowd",t)},expression:"ruleForm.useCrowd"}},e._l(e.applyObjOption,function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),2==e.ruleForm.useCrowd?r("el-form-item",{staticClass:"padding-0",attrs:{label:"人群定向",prop:""}},[r("el-button",{on:{click:e.showPeople}},[e._v("已设置"+e._s(e.selectCount)+"项筛选")])],1):e._e(),e._v(" "),r("el-form-item",{staticClass:"padding-0",attrs:{label:"适用条件"}},[r("div",{staticClass:"title-tip"},[e._v("该设置只对微信商城中的积分抵现起作用。")])]),e._v(" "),e._l(e.ruleForm.channelList,function(t,o){return[1==t.channelType?[r("div",{key:o,staticClass:"form-child margin-20"},[r("el-form-item",{attrs:{label:"选择商户"}},[r("el-select",{attrs:{placeholder:"请选择",multiple:"",size:"small"},model:{value:t.enterpriseRelationIdArr,callback:function(r){e.$set(t,"enterpriseRelationIdArr",r)},expression:"item.enterpriseRelationIdArr"}},e._l(e.mechantOption,function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),r("el-form-item",{staticClass:"padding-0",attrs:{label:"适用商品"}},[r("el-select",{staticClass:"fl",staticStyle:{"margin-right":"10px"},attrs:{placeholder:"请选择"},model:{value:t.channelRelationProType,callback:function(r){e.$set(t,"channelRelationProType",r)},expression:"item.channelRelationProType"}},e._l(e.applyGoods,function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),2==t.channelRelationProType?r("el-select",{staticClass:"fl",attrs:{size:"small",multiple:"",placeholder:"请选择"},on:{change:e.selectGoodsStoreWx},model:{value:e.valueWx,callback:function(t){e.valueWx=t},expression:"valueWx"}},e._l(e.goodsTreeOptionsWx,function(e){return r("el-option",{key:e.brandId,attrs:{label:e.brandName,value:e.brandId}})}),1):e._e(),e._v(" "),3==t.channelRelationProType?r("div",{staticClass:"fl goods-cate"},[r("goodsCate",{ref:"selectGoodsCate",refInFor:!0,attrs:{selectCateType:e.selectCateTypeWx,selectCateData:e.selectCateDataWx},on:{getCateIds:e.getCateIds}})],1):e._e(),e._v(" "),4==t.channelRelationProType?r("el-button",{staticClass:"fl",staticStyle:{width:"202px"},on:{click:function(t){return e.showGoodsDialog("wx")}}},[e._v("已选"+e._s(e.goodsListWx.length)+"件商品")]):e._e()],1),e._v(" "),r("el-form-item",{attrs:{label:"折扣控制",prop:"region"}},[r("div",{staticClass:"radio-cell"},[r("el-radio",{attrs:{label:"1"},model:{value:t.integralUseDiscountControl,callback:function(r){e.$set(t,"integralUseDiscountControl",r)},expression:"item.integralUseDiscountControl"}},[e._v("所有折扣商品都适用")])],1),e._v(" "),r("div",{staticClass:"radio-cell margin-20"},[r("el-radio",{attrs:{label:"2"},model:{value:t.integralUseDiscountControl,callback:function(r){e.$set(t,"integralUseDiscountControl",r)},expression:"item.integralUseDiscountControl"}},[e._v("折扣")]),e._v(" "),r("el-input-number",{attrs:{precision:2,controls:!1,max:10,min:.01},model:{value:t.integralUseDiscountControlLower,callback:function(r){e.$set(t,"integralUseDiscountControlLower",r)},expression:"item.integralUseDiscountControlLower"}}),e._v(" "),r("label",[e._v("至")]),e._v(" "),r("el-input-number",{attrs:{precision:2,controls:!1,max:10,min:.01},model:{value:t.integralUseDiscountControlUpper,callback:function(r){e.$set(t,"integralUseDiscountControlUpper",r)},expression:"item.integralUseDiscountControlUpper"}}),e._v(" "),r("label",[e._v("折商品都适用")]),e._v(" "),r("span",{staticStyle:{"font-size":"13px",color:"#828282","line-height":"1","padding-left":"10px"}},[e._v("注意:折扣范围0.01-10.00,最低折扣不能大于最高折扣")])],1)])],1)]:e._e()]}),e._v(" "),r("el-form-item",{staticClass:"margin-20",attrs:{label:"抵现规则",prop:""}},[r("div",[r("el-radio",{attrs:{label:"1"},model:{value:e.ruleForm.integralUseStatus,callback:function(t){e.$set(e.ruleForm,"integralUseStatus",t)},expression:"ruleForm.integralUseStatus"}},[e._v("每使用")]),e._v(" "),r("el-input-number",{attrs:{precision:1,controls:!1,max:1e4,min:.1},model:{value:e.ruleForm.integralUse.integral,callback:function(t){e.$set(e.ruleForm.integralUse,"integral",t)},expression:"ruleForm.integralUse.integral"}}),e._v(" "),r("label",[e._v("积分,抵 ")]),e._v(" "),r("el-input-number",{attrs:{precision:1,controls:!1,max:1e4,min:.1},model:{value:e.ruleForm.integralUse.fee,callback:function(t){e.$set(e.ruleForm.integralUse,"fee",t)},expression:"ruleForm.integralUse.fee"}}),e._v(" "),r("label",[e._v("元")])],1),e._v(" "),r("div",[r("el-radio",{staticClass:"margin-20",attrs:{label:"0"},model:{value:e.ruleForm.integralUseStatus,callback:function(t){e.$set(e.ruleForm,"integralUseStatus",t)},expression:"ruleForm.integralUseStatus"}},[e._v("不支持抵现")])],1)]),e._v(" "),r("el-form-item",{attrs:{label:"比例限制",prop:"name"}},[r("label",{staticStyle:{color:"#606266"}},[e._v("最多可抵用商品金额的 ")]),e._v(" "),r("el-input",{nativeOn:{keyup:function(t){return e.formatInputNum(t)}},model:{value:e.ruleForm.channelList[0].useProportionalRestriction,callback:function(t){e.$set(e.ruleForm.channelList[0],"useProportionalRestriction",t)},expression:"ruleForm.channelList[0].useProportionalRestriction"}},[r("template",{slot:"append"},[e._v("\n %\n ")])],2)],1),e._v(" "),r("el-form-item",[r("el-row",[r("el-button",{attrs:{disabled:e.tpnEditBool,type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("保 存")]),e._v(" "),r("el-button",{on:{click:e.goBack}},[e._v("返 回")])],1)],1)],2)],1)])])]),e._v(" "),r("vue-gic-footer"),e._v(" "),r("add-goods",{attrs:{goodsListId:e.goodsListId,goodsType:e.goodsType,goodShow:e.goodShow,projectName:e.repProjectName},on:{"update:goodShow":function(t){e.goodShow=t},"update:good-show":function(t){e.goodShow=t},selectGoods:e.selectGoods}}),e._v(" "),r("el-dialog",{attrs:{title:"自定义人群",visible:e.dialogVisiblePeople,width:"980px"},on:{"update:visible":function(t){e.dialogVisiblePeople=t}}},[r("div",{staticClass:"select-people"},[r("vue-gic-group-people",{ref:"peopleFilter",attrs:{projectName:e.repProjectName,useId:e.useId,hasSearchData:e.hasSearchData,sceneValue:e.sceneValue},on:{findFilter:e.findFilter,getBackData:e.getBackData,editHide:e.editHide,editShow:e.editShow,hideBtn:e.hideBtn}}),e._v(" "),r("div",{directives:[{name:"show",rawName:"v-show",value:e.toggleTag,expression:"toggleTag"}],staticClass:"people-btn-wrap"},[r("el-row",[r("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.getData}},[e._v("确定")]),e._v(" "),r("el-button",{attrs:{size:"small"},on:{click:e.cancelFilter}},[e._v("取消")])],1)],1)],1),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-row",[r("el-button",{on:{click:function(t){e.dialogVisiblePeople=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.getPeopleData}},[e._v("确 定")])],1)],1)])],1)},staticRenderFns:[]};var f=r("C7Lr")(p,h,!1,function(e){r("w1Ic")},"data-v-723bad92",null);t.default=f.exports},w1Ic:function(e,t){}});
//# sourceMappingURL=9.5999e2286ab73a7f96a9.js.map //# sourceMappingURL=9.871513f8c9bc4e125cff.js.map
\ No newline at end of file \ 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(f,r,t){for(var o,d,b,i=0,u=[];i<f.length;i++)d=f[i],a[d]&&u.push(a[d][0]),a[d]=0;for(o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);for(c&&c(f,r,t);u.length;)u.shift()();if(t)for(i=0;i<t.length;i++)b=n(n.s=t[i]);return b};var f={},a={40:0};function n(c){if(f[c])return f[c].exports;var a=f[c]={i:c,l:!1,exports:{}};return e[c].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.e=function(e){var c=a[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var f=new Promise(function(f,n){c=a[e]=[f,n]});c[2]=f;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:"08fb0d5f0434f8bf1a3e",1:"7022ec098f28856d54d4",2:"06984e75209b3ac2131d",3:"2ad9744fc945a86b15c6",4:"6f32962990c4f47b6b8a",5:"299374ef57c52933e3fe",6:"fa0b3cbce6811a485ff8",7:"4fec8739e76a3f34d874",8:"f253c806c0ae6effc39e",9:"5999e2286ab73a7f96a9",10:"169e4ad17e4ff631e4de",11:"a6800fdb0c0b1c69c00c",12:"668c99115fcb37fe30a1",13:"f33b586c30e59c45c7cc",14:"9d7866da23eae6beb141",15:"b2c8d912367a079fd91e",16:"c07857a2765d09cef9bb",17:"1a8636077b786a984423",18:"28ef221553603ed7ddcf",19:"0f382a583054f3167b3c",20:"6caf4733f6235b86c902",21:"1e46fdf5628c2ea199ac",22:"4dcc7f42a2940d2cfaaa",23:"9b9915c61ee9b5dc37ec",24:"2007b52ae4ed232d464a",25:"2757e7d76d8f6fef6fd2",26:"9f6788921b154bb28665",27:"05b1f553520b490c6be4",28:"9899b74c2257c5425799",29:"e6574cd5ad31292b8181",30:"29fc655ef81ad3f4b9fe",31:"5b98389d3ccc9a0294b7",32:"d6f295c90effdc17795c",33:"b8088f86fd677aea9cdd",34:"b78ea9446b213201043b",35:"b9f00764b65c553a53f8",36:"6c49aba9959f62a4a729",37:"a3f757e35216656052bd"}[e]+".js";var o=setTimeout(d,12e4);function d(){t.onerror=t.onload=null,clearTimeout(o);var c=a[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return t.onerror=t.onload=d,r.appendChild(t),f},n.m=e,n.c=f,n.d=function(e,c,f){n.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:f})},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}}([]); !function(e){var c=window.webpackJsonp;window.webpackJsonp=function(f,r,t){for(var o,d,b,i=0,u=[];i<f.length;i++)d=f[i],a[d]&&u.push(a[d][0]),a[d]=0;for(o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);for(c&&c(f,r,t);u.length;)u.shift()();if(t)for(i=0;i<t.length;i++)b=n(n.s=t[i]);return b};var f={},a={40:0};function n(c){if(f[c])return f[c].exports;var a=f[c]={i:c,l:!1,exports:{}};return e[c].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.e=function(e){var c=a[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var f=new Promise(function(f,n){c=a[e]=[f,n]});c[2]=f;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:"08fb0d5f0434f8bf1a3e",1:"7022ec098f28856d54d4",2:"06984e75209b3ac2131d",3:"2ad9744fc945a86b15c6",4:"6f32962990c4f47b6b8a",5:"299374ef57c52933e3fe",6:"757d0534ee41575596f2",7:"955b966d611ad2222aac",8:"b475bf47ec953d03b58c",9:"871513f8c9bc4e125cff",10:"780304d27afe459ee3f4",11:"a6800fdb0c0b1c69c00c",12:"668c99115fcb37fe30a1",13:"f33b586c30e59c45c7cc",14:"9d7866da23eae6beb141",15:"b2c8d912367a079fd91e",16:"c07857a2765d09cef9bb",17:"1a8636077b786a984423",18:"28ef221553603ed7ddcf",19:"0f382a583054f3167b3c",20:"6caf4733f6235b86c902",21:"1e46fdf5628c2ea199ac",22:"4dcc7f42a2940d2cfaaa",23:"9b9915c61ee9b5dc37ec",24:"2007b52ae4ed232d464a",25:"2757e7d76d8f6fef6fd2",26:"9f6788921b154bb28665",27:"05b1f553520b490c6be4",28:"9899b74c2257c5425799",29:"e6574cd5ad31292b8181",30:"29fc655ef81ad3f4b9fe",31:"5b98389d3ccc9a0294b7",32:"d6f295c90effdc17795c",33:"b8088f86fd677aea9cdd",34:"b78ea9446b213201043b",35:"b9f00764b65c553a53f8",36:"6c49aba9959f62a4a729",37:"a3f757e35216656052bd"}[e]+".js";var o=setTimeout(d,12e4);function d(){t.onerror=t.onload=null,clearTimeout(o);var c=a[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return t.onerror=t.onload=d,r.appendChild(t),f},n.m=e,n.c=f,n.d=function(e,c,f){n.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:f})},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}}([]);
//# sourceMappingURL=manifest.ed90ceecf5a7b42e7e71.js.map //# sourceMappingURL=manifest.3fabd88fccd61ea18123.js.map
\ No newline at end of file \ No newline at end of file
{"version":3,"sources":["webpack:///webpack/bootstrap eceaf0ed7de078898c9f"],"names":["parentJsonpFunction","window","chunkIds","moreModules","executeModules","moduleId","chunkId","result","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","shift","__webpack_require__","s","installedModules","40","exports","module","l","e","installedChunkData","Promise","resolve","promise","reject","head","document","getElementsByTagName","script","createElement","type","charset","async","timeout","nc","setAttribute","src","p","0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","setTimeout","onScriptComplete","onerror","onload","clearTimeout","chunk","Error","undefined","appendChild","m","c","d","name","getter","o","defineProperty","configurable","enumerable","get","n","__esModule","object","property","oe","err","console","error"],"mappings":"aACA,IAAAA,EAAAC,OAAA,aACAA,OAAA,sBAAAC,EAAAC,EAAAC,GAIA,IADA,IAAAC,EAAAC,EAAAC,EAAAC,EAAA,EAAAC,KACQD,EAAAN,EAAAQ,OAAoBF,IAC5BF,EAAAJ,EAAAM,GACAG,EAAAL,IACAG,EAAAG,KAAAD,EAAAL,GAAA,IAEAK,EAAAL,GAAA,EAEA,IAAAD,KAAAF,EACAU,OAAAC,UAAAC,eAAAC,KAAAb,EAAAE,KACAY,EAAAZ,GAAAF,EAAAE,IAIA,IADAL,KAAAE,EAAAC,EAAAC,GACAK,EAAAC,QACAD,EAAAS,OAAAT,GAEA,GAAAL,EACA,IAAAI,EAAA,EAAYA,EAAAJ,EAAAM,OAA2BF,IACvCD,EAAAY,IAAAC,EAAAhB,EAAAI,IAGA,OAAAD,GAIA,IAAAc,KAGAV,GACAW,GAAA,GAIA,SAAAH,EAAAd,GAGA,GAAAgB,EAAAhB,GACA,OAAAgB,EAAAhB,GAAAkB,QAGA,IAAAC,EAAAH,EAAAhB,IACAG,EAAAH,EACAoB,GAAA,EACAF,YAUA,OANAN,EAAAZ,GAAAW,KAAAQ,EAAAD,QAAAC,IAAAD,QAAAJ,GAGAK,EAAAC,GAAA,EAGAD,EAAAD,QAKAJ,EAAAO,EAAA,SAAApB,GACA,IAAAqB,EAAAhB,EAAAL,GACA,OAAAqB,EACA,WAAAC,QAAA,SAAAC,GAA0CA,MAI1C,GAAAF,EACA,OAAAA,EAAA,GAIA,IAAAG,EAAA,IAAAF,QAAA,SAAAC,EAAAE,GACAJ,EAAAhB,EAAAL,IAAAuB,EAAAE,KAEAJ,EAAA,GAAAG,EAGA,IAAAE,EAAAC,SAAAC,qBAAA,WACAC,EAAAF,SAAAG,cAAA,UACAD,EAAAE,KAAA,kBACAF,EAAAG,QAAA,QACAH,EAAAI,OAAA,EACAJ,EAAAK,QAAA,KAEArB,EAAAsB,IACAN,EAAAO,aAAA,QAAAvB,EAAAsB,IAEAN,EAAAQ,IAAAxB,EAAAyB,EAAA,aAAAtC,EAAA,KAAwEuC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,wBAA8hC5E,GAAA,MACtmC,IAAAkC,EAAA2C,WAAAC,EAAA,MAEA,SAAAA,IAEAjD,EAAAkD,QAAAlD,EAAAmD,OAAA,KACAC,aAAA/C,GACA,IAAAgD,EAAA7E,EAAAL,GACA,IAAAkF,IACAA,GACAA,EAAA,OAAAC,MAAA,iBAAAnF,EAAA,aAEAK,EAAAL,QAAAoF,GAKA,OAfAvD,EAAAkD,QAAAlD,EAAAmD,OAAAF,EAaApD,EAAA2D,YAAAxD,GAEAL,GAIAX,EAAAyE,EAAA3E,EAGAE,EAAA0E,EAAAxE,EAGAF,EAAA2E,EAAA,SAAAvE,EAAAwE,EAAAC,GACA7E,EAAA8E,EAAA1E,EAAAwE,IACAlF,OAAAqF,eAAA3E,EAAAwE,GACAI,cAAA,EACAC,YAAA,EACAC,IAAAL,KAMA7E,EAAAmF,EAAA,SAAA9E,GACA,IAAAwE,EAAAxE,KAAA+E,WACA,WAA2B,OAAA/E,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAL,EAAA2E,EAAAE,EAAA,IAAAA,GACAA,GAIA7E,EAAA8E,EAAA,SAAAO,EAAAC,GAAsD,OAAA5F,OAAAC,UAAAC,eAAAC,KAAAwF,EAAAC,IAGtDtF,EAAAyB,EAAA,KAGAzB,EAAAuF,GAAA,SAAAC,GAA8D,MAApBC,QAAAC,MAAAF,GAAoBA","file":"static/js/manifest.ed90ceecf5a7b42e7e71.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [], result;\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n \t\tif(executeModules) {\n \t\t\tfor(i=0; i < executeModules.length; i++) {\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = executeModules[i]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// objects to store loaded and loading chunks\n \tvar installedChunks = {\n \t\t40: 0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData === 0) {\n \t\t\treturn new Promise(function(resolve) { resolve(); });\n \t\t}\n\n \t\t// a Promise means \"currently loading\".\n \t\tif(installedChunkData) {\n \t\t\treturn installedChunkData[2];\n \t\t}\n\n \t\t// setup Promise in chunk cache\n \t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t});\n \t\tinstalledChunkData[2] = promise;\n\n \t\t// start chunk loading\n \t\tvar head = document.getElementsByTagName('head')[0];\n \t\tvar script = document.createElement('script');\n \t\tscript.type = \"text/javascript\";\n \t\tscript.charset = 'utf-8';\n \t\tscript.async = true;\n \t\tscript.timeout = 120000;\n\n \t\tif (__webpack_require__.nc) {\n \t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t}\n \t\tscript.src = __webpack_require__.p + \"static/js/\" + chunkId + \".\" + {\"0\":\"08fb0d5f0434f8bf1a3e\",\"1\":\"7022ec098f28856d54d4\",\"2\":\"06984e75209b3ac2131d\",\"3\":\"2ad9744fc945a86b15c6\",\"4\":\"6f32962990c4f47b6b8a\",\"5\":\"299374ef57c52933e3fe\",\"6\":\"fa0b3cbce6811a485ff8\",\"7\":\"4fec8739e76a3f34d874\",\"8\":\"f253c806c0ae6effc39e\",\"9\":\"5999e2286ab73a7f96a9\",\"10\":\"169e4ad17e4ff631e4de\",\"11\":\"a6800fdb0c0b1c69c00c\",\"12\":\"668c99115fcb37fe30a1\",\"13\":\"f33b586c30e59c45c7cc\",\"14\":\"9d7866da23eae6beb141\",\"15\":\"b2c8d912367a079fd91e\",\"16\":\"c07857a2765d09cef9bb\",\"17\":\"1a8636077b786a984423\",\"18\":\"28ef221553603ed7ddcf\",\"19\":\"0f382a583054f3167b3c\",\"20\":\"6caf4733f6235b86c902\",\"21\":\"1e46fdf5628c2ea199ac\",\"22\":\"4dcc7f42a2940d2cfaaa\",\"23\":\"9b9915c61ee9b5dc37ec\",\"24\":\"2007b52ae4ed232d464a\",\"25\":\"2757e7d76d8f6fef6fd2\",\"26\":\"9f6788921b154bb28665\",\"27\":\"05b1f553520b490c6be4\",\"28\":\"9899b74c2257c5425799\",\"29\":\"e6574cd5ad31292b8181\",\"30\":\"29fc655ef81ad3f4b9fe\",\"31\":\"5b98389d3ccc9a0294b7\",\"32\":\"d6f295c90effdc17795c\",\"33\":\"b8088f86fd677aea9cdd\",\"34\":\"b78ea9446b213201043b\",\"35\":\"b9f00764b65c553a53f8\",\"36\":\"6c49aba9959f62a4a729\",\"37\":\"a3f757e35216656052bd\"}[chunkId] + \".js\";\n \t\tvar timeout = setTimeout(onScriptComplete, 120000);\n \t\tscript.onerror = script.onload = onScriptComplete;\n \t\tfunction onScriptComplete() {\n \t\t\t// avoid mem leaks in IE.\n \t\t\tscript.onerror = script.onload = null;\n \t\t\tclearTimeout(timeout);\n \t\t\tvar chunk = installedChunks[chunkId];\n \t\t\tif(chunk !== 0) {\n \t\t\t\tif(chunk) {\n \t\t\t\t\tchunk[1](new Error('Loading chunk ' + chunkId + ' failed.'));\n \t\t\t\t}\n \t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t}\n \t\t};\n \t\thead.appendChild(script);\n\n \t\treturn promise;\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"./\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap eceaf0ed7de078898c9f"],"sourceRoot":""} {"version":3,"sources":["webpack:///webpack/bootstrap 965f2fe6553154b1060b"],"names":["parentJsonpFunction","window","chunkIds","moreModules","executeModules","moduleId","chunkId","result","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","shift","__webpack_require__","s","installedModules","40","exports","module","l","e","installedChunkData","Promise","resolve","promise","reject","head","document","getElementsByTagName","script","createElement","type","charset","async","timeout","nc","setAttribute","src","p","0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","setTimeout","onScriptComplete","onerror","onload","clearTimeout","chunk","Error","undefined","appendChild","m","c","d","name","getter","o","defineProperty","configurable","enumerable","get","n","__esModule","object","property","oe","err","console","error"],"mappings":"aACA,IAAAA,EAAAC,OAAA,aACAA,OAAA,sBAAAC,EAAAC,EAAAC,GAIA,IADA,IAAAC,EAAAC,EAAAC,EAAAC,EAAA,EAAAC,KACQD,EAAAN,EAAAQ,OAAoBF,IAC5BF,EAAAJ,EAAAM,GACAG,EAAAL,IACAG,EAAAG,KAAAD,EAAAL,GAAA,IAEAK,EAAAL,GAAA,EAEA,IAAAD,KAAAF,EACAU,OAAAC,UAAAC,eAAAC,KAAAb,EAAAE,KACAY,EAAAZ,GAAAF,EAAAE,IAIA,IADAL,KAAAE,EAAAC,EAAAC,GACAK,EAAAC,QACAD,EAAAS,OAAAT,GAEA,GAAAL,EACA,IAAAI,EAAA,EAAYA,EAAAJ,EAAAM,OAA2BF,IACvCD,EAAAY,IAAAC,EAAAhB,EAAAI,IAGA,OAAAD,GAIA,IAAAc,KAGAV,GACAW,GAAA,GAIA,SAAAH,EAAAd,GAGA,GAAAgB,EAAAhB,GACA,OAAAgB,EAAAhB,GAAAkB,QAGA,IAAAC,EAAAH,EAAAhB,IACAG,EAAAH,EACAoB,GAAA,EACAF,YAUA,OANAN,EAAAZ,GAAAW,KAAAQ,EAAAD,QAAAC,IAAAD,QAAAJ,GAGAK,EAAAC,GAAA,EAGAD,EAAAD,QAKAJ,EAAAO,EAAA,SAAApB,GACA,IAAAqB,EAAAhB,EAAAL,GACA,OAAAqB,EACA,WAAAC,QAAA,SAAAC,GAA0CA,MAI1C,GAAAF,EACA,OAAAA,EAAA,GAIA,IAAAG,EAAA,IAAAF,QAAA,SAAAC,EAAAE,GACAJ,EAAAhB,EAAAL,IAAAuB,EAAAE,KAEAJ,EAAA,GAAAG,EAGA,IAAAE,EAAAC,SAAAC,qBAAA,WACAC,EAAAF,SAAAG,cAAA,UACAD,EAAAE,KAAA,kBACAF,EAAAG,QAAA,QACAH,EAAAI,OAAA,EACAJ,EAAAK,QAAA,KAEArB,EAAAsB,IACAN,EAAAO,aAAA,QAAAvB,EAAAsB,IAEAN,EAAAQ,IAAAxB,EAAAyB,EAAA,aAAAtC,EAAA,KAAwEuC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,wBAA8hC5E,GAAA,MACtmC,IAAAkC,EAAA2C,WAAAC,EAAA,MAEA,SAAAA,IAEAjD,EAAAkD,QAAAlD,EAAAmD,OAAA,KACAC,aAAA/C,GACA,IAAAgD,EAAA7E,EAAAL,GACA,IAAAkF,IACAA,GACAA,EAAA,OAAAC,MAAA,iBAAAnF,EAAA,aAEAK,EAAAL,QAAAoF,GAKA,OAfAvD,EAAAkD,QAAAlD,EAAAmD,OAAAF,EAaApD,EAAA2D,YAAAxD,GAEAL,GAIAX,EAAAyE,EAAA3E,EAGAE,EAAA0E,EAAAxE,EAGAF,EAAA2E,EAAA,SAAAvE,EAAAwE,EAAAC,GACA7E,EAAA8E,EAAA1E,EAAAwE,IACAlF,OAAAqF,eAAA3E,EAAAwE,GACAI,cAAA,EACAC,YAAA,EACAC,IAAAL,KAMA7E,EAAAmF,EAAA,SAAA9E,GACA,IAAAwE,EAAAxE,KAAA+E,WACA,WAA2B,OAAA/E,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAL,EAAA2E,EAAAE,EAAA,IAAAA,GACAA,GAIA7E,EAAA8E,EAAA,SAAAO,EAAAC,GAAsD,OAAA5F,OAAAC,UAAAC,eAAAC,KAAAwF,EAAAC,IAGtDtF,EAAAyB,EAAA,KAGAzB,EAAAuF,GAAA,SAAAC,GAA8D,MAApBC,QAAAC,MAAAF,GAAoBA","file":"static/js/manifest.3fabd88fccd61ea18123.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [], result;\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n \t\tif(executeModules) {\n \t\t\tfor(i=0; i < executeModules.length; i++) {\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = executeModules[i]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// objects to store loaded and loading chunks\n \tvar installedChunks = {\n \t\t40: 0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData === 0) {\n \t\t\treturn new Promise(function(resolve) { resolve(); });\n \t\t}\n\n \t\t// a Promise means \"currently loading\".\n \t\tif(installedChunkData) {\n \t\t\treturn installedChunkData[2];\n \t\t}\n\n \t\t// setup Promise in chunk cache\n \t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t});\n \t\tinstalledChunkData[2] = promise;\n\n \t\t// start chunk loading\n \t\tvar head = document.getElementsByTagName('head')[0];\n \t\tvar script = document.createElement('script');\n \t\tscript.type = \"text/javascript\";\n \t\tscript.charset = 'utf-8';\n \t\tscript.async = true;\n \t\tscript.timeout = 120000;\n\n \t\tif (__webpack_require__.nc) {\n \t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t}\n \t\tscript.src = __webpack_require__.p + \"static/js/\" + chunkId + \".\" + {\"0\":\"08fb0d5f0434f8bf1a3e\",\"1\":\"7022ec098f28856d54d4\",\"2\":\"06984e75209b3ac2131d\",\"3\":\"2ad9744fc945a86b15c6\",\"4\":\"6f32962990c4f47b6b8a\",\"5\":\"299374ef57c52933e3fe\",\"6\":\"757d0534ee41575596f2\",\"7\":\"955b966d611ad2222aac\",\"8\":\"b475bf47ec953d03b58c\",\"9\":\"871513f8c9bc4e125cff\",\"10\":\"780304d27afe459ee3f4\",\"11\":\"a6800fdb0c0b1c69c00c\",\"12\":\"668c99115fcb37fe30a1\",\"13\":\"f33b586c30e59c45c7cc\",\"14\":\"9d7866da23eae6beb141\",\"15\":\"b2c8d912367a079fd91e\",\"16\":\"c07857a2765d09cef9bb\",\"17\":\"1a8636077b786a984423\",\"18\":\"28ef221553603ed7ddcf\",\"19\":\"0f382a583054f3167b3c\",\"20\":\"6caf4733f6235b86c902\",\"21\":\"1e46fdf5628c2ea199ac\",\"22\":\"4dcc7f42a2940d2cfaaa\",\"23\":\"9b9915c61ee9b5dc37ec\",\"24\":\"2007b52ae4ed232d464a\",\"25\":\"2757e7d76d8f6fef6fd2\",\"26\":\"9f6788921b154bb28665\",\"27\":\"05b1f553520b490c6be4\",\"28\":\"9899b74c2257c5425799\",\"29\":\"e6574cd5ad31292b8181\",\"30\":\"29fc655ef81ad3f4b9fe\",\"31\":\"5b98389d3ccc9a0294b7\",\"32\":\"d6f295c90effdc17795c\",\"33\":\"b8088f86fd677aea9cdd\",\"34\":\"b78ea9446b213201043b\",\"35\":\"b9f00764b65c553a53f8\",\"36\":\"6c49aba9959f62a4a729\",\"37\":\"a3f757e35216656052bd\"}[chunkId] + \".js\";\n \t\tvar timeout = setTimeout(onScriptComplete, 120000);\n \t\tscript.onerror = script.onload = onScriptComplete;\n \t\tfunction onScriptComplete() {\n \t\t\t// avoid mem leaks in IE.\n \t\t\tscript.onerror = script.onload = null;\n \t\t\tclearTimeout(timeout);\n \t\t\tvar chunk = installedChunks[chunkId];\n \t\t\tif(chunk !== 0) {\n \t\t\t\tif(chunk) {\n \t\t\t\t\tchunk[1](new Error('Loading chunk ' + chunkId + ' failed.'));\n \t\t\t\t}\n \t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t}\n \t\t};\n \t\thead.appendChild(script);\n\n \t\treturn promise;\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"./\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 965f2fe6553154b1060b"],"sourceRoot":""}
\ No newline at end of file \ No newline at end of file
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
<el-option v-for="item in applyObjOption" :key="item.value" :label="item.label" :value="item.value"> </el-option> <el-option v-for="item in applyObjOption" :key="item.value" :label="item.label" :value="item.value"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="人群定向" v-if="ruleForm.useCrowd == 2" prop="" class="padding-0"> <el-form-item label="人群定向" v-if="ruleForm.useCrowd == 2" prop="" class="padding-0">
<el-button @click="showPeople">已设置{{ selectCount }}项筛选</el-button> <el-button @click="showPeople">已设置{{ selectCount }}项筛选</el-button>
</el-form-item> </el-form-item>
...@@ -85,7 +84,7 @@ ...@@ -85,7 +84,7 @@
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-row> <el-row>
<el-button type="primary" @click="submitForm('ruleForm')">保 存</el-button> <el-button :disabled="tpnEditBool" type="primary" @click="submitForm('ruleForm')">保 存</el-button>
<el-button @click="goBack">返 回</el-button> <el-button @click="goBack">返 回</el-button>
</el-row> </el-row>
</el-form-item> </el-form-item>
...@@ -262,7 +261,10 @@ export default { ...@@ -262,7 +261,10 @@ export default {
goodsTreeOptionsWx: [], goodsTreeOptionsWx: [],
valueWx: [], valueWx: [],
goodsTreeOptionsLine: [], goodsTreeOptionsLine: [],
valueLine: [] valueLine: [],
// 太平鸟标识
tpnEditBool: false,
tpnEnterpriseId: 'ff808081671d3ceb01672adebf4e6149'
}; };
}, },
created() { created() {
...@@ -276,6 +278,7 @@ export default { ...@@ -276,6 +278,7 @@ export default {
// 保存 // 保存
submitForm(formName) { submitForm(formName) {
let that = this; let that = this;
if (!that.tpnEditBool) {
let data = JSON.parse(JSON.stringify(that.ruleForm)); let data = JSON.parse(JSON.stringify(that.ruleForm));
this.$refs[formName].validate(valid => { this.$refs[formName].validate(valid => {
if (valid) { if (valid) {
...@@ -284,12 +287,10 @@ export default { ...@@ -284,12 +287,10 @@ export default {
showMsg.showmsg('请填写策略名称', 'error'); showMsg.showmsg('请填写策略名称', 'error');
return; return;
} }
if (!data.channelList[0].enterpriseRelationIdArr.length) {
// if (!data.channelList[0].enterpriseRelationIdArr.length) { showMsg.showmsg('请选择商户', 'error');
// showMsg.showmsg('请填写选择商户','error') return;
// return; }
// }
if (data.channelList[0].integralUseDiscountControl == 2) { if (data.channelList[0].integralUseDiscountControl == 2) {
let flagA = Number(data.channelList[0].integralUseDiscountControlLower) >= Number(data.channelList[0].integralUseDiscountControlUpper); let flagA = Number(data.channelList[0].integralUseDiscountControlLower) >= Number(data.channelList[0].integralUseDiscountControlUpper);
...@@ -302,12 +303,6 @@ export default { ...@@ -302,12 +303,6 @@ export default {
return; return;
} }
} }
// if (data.channelList[0].integralUseDiscountControl==2 &&(!data.channelList[0].integralUseDiscountControlLower||!data.channelList[0].integralUseDiscountControlUpper||Number(data.channelList[0].integralUseDiscountControlLower)>=Number(data.channelList[0].integralUseDiscountControlUpper))) {
// showMsg.showmsg('折扣率格式不正确','error')
// return;
// }
let flag = !data.integralUse.fee || String(data.integralUse.integral) == ''; let flag = !data.integralUse.fee || String(data.integralUse.integral) == '';
if (data.integralUseStatus == 1 && flag) { if (data.integralUseStatus == 1 && flag) {
that.$message.error('请填写抵现规则'); that.$message.error('请填写抵现规则');
...@@ -379,6 +374,7 @@ export default { ...@@ -379,6 +374,7 @@ export default {
return false; return false;
} }
}); });
}
}, },
// 保存数据 // 保存数据
...@@ -683,7 +679,7 @@ export default { ...@@ -683,7 +679,7 @@ export default {
that.mechantOption = data; that.mechantOption = data;
// showMsg.showmsg('设置成功','success') // showMsg.showmsg('设置成功','success')
// 默认选择商户 // 默认选择商户
that.ruleForm.channelList[0].enterpriseRelationIdArr = [data[0].enterpriseId]; // that.ruleForm.channelList[0].enterpriseRelationIdArr = [data[0].enterpriseId];
return; return;
} }
errMsg.errorMsg(resData); errMsg.errorMsg(resData);
...@@ -691,6 +687,25 @@ export default { ...@@ -691,6 +687,25 @@ export default {
.catch(function(error) { .catch(function(error) {
log(error); log(error);
}); });
},
// 判断是否是太平鸟
getLoginInfo() {
let that = this;
let param = {};
postRequest('/api-auth/get-login-user-info', param)
.then(res => {
let resData = res.data;
if (resData.errorCode == 0) {
if (resData.result.enterpriseId == that.tpnEnterpriseId) {
that.tpnEditBool = true;
}
} else {
errMsg.errorMsg(resData);
}
})
.catch(function(error) {
log(error);
});
} }
}, },
components: { components: {
...@@ -703,6 +718,7 @@ export default { ...@@ -703,6 +718,7 @@ export default {
this.getGoodsBrand(); this.getGoodsBrand();
// 获取商户 // 获取商户
this.getCliqueInfo(); this.getCliqueInfo();
this.getLoginInfo();
} }
}; };
</script> </script>
......
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
<el-form-item label="积分冻结期" v-if="ruleForm.integralGetStatus == 1"> <el-input v-model="ruleForm.integralGetFreezeDays" @keyup.native="formatInputNum($event)"></el-input><label></label> </el-form-item> <el-form-item label="积分冻结期" v-if="ruleForm.integralGetStatus == 1"> <el-input v-model="ruleForm.integralGetFreezeDays" @keyup.native="formatInputNum($event)"></el-input><label></label> </el-form-item>
<el-form-item label="积分有效期" v-if="ruleForm.integralGetStatus == 1"> <el-input v-model="ruleForm.integralGetEffectiveDays" @keyup.native="formatInputNum($event)"></el-input><label></label> </el-form-item> <el-form-item label="积分有效期" v-if="ruleForm.integralGetStatus == 1"> <el-input v-model="ruleForm.integralGetEffectiveDays" @keyup.native="formatInputNum($event)"></el-input><label></label> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="submitForm('ruleForm')">保 存</el-button> <el-button :disabled="tpnEditBool" type="primary" @click="submitForm('ruleForm')">保 存</el-button>
<el-button @click="goBack">返 回</el-button> <el-button @click="goBack">返 回</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -456,7 +456,10 @@ export default { ...@@ -456,7 +456,10 @@ export default {
searchParams: '', searchParams: '',
hasSearchData: '', // 当前页回显的数据(接口返回) hasSearchData: '', // 当前页回显的数据(接口返回)
toggleTag: false, toggleTag: false,
selectCount: 0 selectCount: 0,
// 太平鸟标识
tpnEditBool: false,
tpnEnterpriseId: 'ff808081671d3ceb01672adebf4e6149'
}; };
}, },
...@@ -527,6 +530,7 @@ export default { ...@@ -527,6 +530,7 @@ export default {
// 保存 // 保存
submitForm(formName) { submitForm(formName) {
let that = this; let that = this;
if (!that.tpnEditBool) {
this.$refs[formName].validate(valid => { this.$refs[formName].validate(valid => {
if (valid) { if (valid) {
// 处理数据 // 处理数据
...@@ -601,6 +605,7 @@ export default { ...@@ -601,6 +605,7 @@ export default {
return false; return false;
} }
}); });
}
}, },
// 保存数据 // 保存数据
...@@ -977,8 +982,27 @@ export default { ...@@ -977,8 +982,27 @@ export default {
.catch(err => { .catch(err => {
log(err); log(err);
}); });
} },
/* end */ /* end */
// 判断是否是太平鸟
getLoginInfo() {
let that = this;
let param = {};
postRequest('/api-auth/get-login-user-info', param)
.then(res => {
let resData = res.data;
if (resData.errorCode == 0) {
if (resData.result.enterpriseId == that.tpnEnterpriseId) {
that.tpnEditBool = true;
}
} else {
errMsg.errorMsg(resData);
}
})
.catch(function(error) {
log(error);
});
}
}, },
components: { components: {
topNavNew, topNavNew,
...@@ -999,6 +1023,7 @@ export default { ...@@ -999,6 +1023,7 @@ export default {
// 获取门店分组 // 获取门店分组
that.getStoreGroup(); that.getStoreGroup();
that.getLoginInfo();
} }
}; };
</script> </script>
......
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-row> <el-row>
<el-button :disabled="contactBool" type="primary" @click="submitForm('ruleForm')">保 存</el-button> <el-button :disabled="tpnEditBool" type="primary" @click="submitForm('ruleForm')">保 存</el-button>
<el-button @click="goBack">返 回</el-button> <el-button @click="goBack">返 回</el-button>
</el-row> </el-row>
</el-form-item> </el-form-item>
...@@ -126,14 +126,6 @@ ...@@ -126,14 +126,6 @@
</el-row> </el-row>
</span> </span>
</el-dialog> </el-dialog>
<!-- 是否关联集团的提示 -->
<el-dialog title="提示" :visible.sync="contactDialog" width="500px">
<span>已关联集团,此页面只能查看不能编辑保存。</span>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="contactDialog = false">确 定</el-button>
</span>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -153,9 +145,7 @@ export default { ...@@ -153,9 +145,7 @@ export default {
name: 'addIntegralSytem', name: 'addIntegralSytem',
data() { data() {
return { return {
contactBool: false, // 是否关联集团的标识 repProjectName: 'gic-clique',
contactDialog: false,
repProjectName: 'gic-web',
navpath: [ navpath: [
{ {
name: '集团管理', name: '集团管理',
...@@ -284,7 +274,10 @@ export default { ...@@ -284,7 +274,10 @@ export default {
goodsTreeOptionsWx: [], goodsTreeOptionsWx: [],
valueWx: [], valueWx: [],
goodsTreeOptionsLine: [], goodsTreeOptionsLine: [],
valueLine: [] valueLine: [],
// 太平鸟标识
tpnEditBool: false,
tpnEnterpriseId: 'ff808081671d3ceb01672adebf4e6149'
}; };
}, },
created() { created() {
...@@ -300,34 +293,9 @@ export default { ...@@ -300,34 +293,9 @@ export default {
// 商品品牌 // 商品品牌
that.getGoodsBrand(); that.getGoodsBrand();
that.getLoginInfo();
// 是否关联集团
that.getContact();
}, },
methods: { methods: {
getContact() {
// 是否关联集团
let para = {};
getRequest('/api-auth/is-relevance-clique', para)
.then(res => {
let resData = res.data;
// log(resData);
if (resData.errorCode == 0) {
this.contactBool = resData.result;
this.contactDialog = resData.result;
} else {
errMsg.errorMsg(resData);
}
})
.catch(function(error) {
log(error);
this.$message.error({
duration: 1000,
message: error.message
});
});
},
// 返回 // 返回
goBack() { goBack() {
this.$router.go(-1); this.$router.go(-1);
...@@ -335,25 +303,22 @@ export default { ...@@ -335,25 +303,22 @@ export default {
// 保存 // 保存
submitForm(formName) { submitForm(formName) {
let that = this; let that = this;
if (!that.tpnEditBool) {
this.$refs[formName].validate(valid => { this.$refs[formName].validate(valid => {
if (valid) { if (valid) {
// log(that.ruleForm); // log(that.ruleForm);
let data = JSON.parse(JSON.stringify(that.ruleForm)); let data = JSON.parse(JSON.stringify(that.ruleForm));
// 非空验证 // 非空验证
if (!data.strategyName) { if (!data.strategyName) {
showMsg.showmsg('请填写策略名称', 'error'); showMsg.showmsg('请填写策略名称', 'error');
return; return;
} }
if (!data.channelList[0].enterpriseRelationIdArr.length) { if (!data.channelList[0].enterpriseRelationIdArr.length) {
showMsg.showmsg('请填写选择商户', 'error'); showMsg.showmsg('请选择商户', 'error');
return; return;
} }
if (data.channelList[0].integralUseDiscountControl == 2) { if (data.channelList[0].integralUseDiscountControl == 2) {
let flagA = Number(data.channelList[0].integralUseDiscountControlLower) >= Number(data.channelList[0].integralUseDiscountControlUpper); let flagA = Number(data.channelList[0].integralUseDiscountControlLower) >= Number(data.channelList[0].integralUseDiscountControlUpper);
if (!data.channelList[0].integralUseDiscountControlLower || !data.channelList[0].integralUseDiscountControlUpper) { if (!data.channelList[0].integralUseDiscountControlLower || !data.channelList[0].integralUseDiscountControlUpper) {
that.$message.error('折扣控制中的折扣不能为空'); that.$message.error('折扣控制中的折扣不能为空');
return; return;
...@@ -437,6 +402,7 @@ export default { ...@@ -437,6 +402,7 @@ export default {
return false; return false;
} }
}); });
}
}, },
// 保存数据 // 保存数据
...@@ -465,11 +431,6 @@ export default { ...@@ -465,11 +431,6 @@ export default {
}) })
.catch(function(error) { .catch(function(error) {
log(error); log(error);
// that.updateData()
that.$message.error({
duration: 1000,
message: error.message
});
}); });
}, },
...@@ -545,7 +506,7 @@ export default { ...@@ -545,7 +506,7 @@ export default {
// 商户列表 // 商户列表
let prise = res.data.result.enterpriseList; let prise = res.data.result.enterpriseList;
prise.forEach(function(ele, index) { prise.forEach(function(ele, index) {
ele.label = ele.enterpriseName; ele.label = ele.brandName;
ele.value = ele.enterpriseId; ele.value = ele.enterpriseId;
}); });
that.mechantOption = prise; that.mechantOption = prise;
...@@ -854,6 +815,25 @@ export default { ...@@ -854,6 +815,25 @@ export default {
} }
}); });
} }
},
// 判断是否是太平鸟
getLoginInfo() {
let that = this;
let param = {};
postRequest('/api-auth/get-login-user-info', param)
.then(res => {
let resData = res.data;
if (resData.errorCode == 0) {
if (resData.result.enterpriseId == that.tpnEnterpriseId) {
that.tpnEditBool = true;
}
} else {
errMsg.errorMsg(resData);
}
})
.catch(function(error) {
log(error);
});
} }
}, },
components: { components: {
......
...@@ -200,7 +200,7 @@ ...@@ -200,7 +200,7 @@
<el-form-item label="积分冻结期" v-if="ruleForm.integralGetStatus == 1"> <el-input v-model="ruleForm.integralGetFreezeDays" @keyup.native="formatInputNum($event)"></el-input><label></label> </el-form-item> <el-form-item label="积分冻结期" v-if="ruleForm.integralGetStatus == 1"> <el-input v-model="ruleForm.integralGetFreezeDays" @keyup.native="formatInputNum($event)"></el-input><label></label> </el-form-item>
<el-form-item label="积分有效期" v-if="ruleForm.integralGetStatus == 1"> <el-input v-model="ruleForm.integralGetEffectiveDays" @keyup.native="formatInputNum($event)"></el-input><label></label> </el-form-item> <el-form-item label="积分有效期" v-if="ruleForm.integralGetStatus == 1"> <el-input v-model="ruleForm.integralGetEffectiveDays" @keyup.native="formatInputNum($event)"></el-input><label></label> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click.stop="submitForm('ruleForm')">保 存</el-button> <el-button :disabled="tpnEditBool" type="primary" @click.stop="submitForm('ruleForm')">保 存</el-button>
<el-button @click="goBack">返 回</el-button> <el-button @click="goBack">返 回</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -436,7 +436,10 @@ export default { ...@@ -436,7 +436,10 @@ export default {
uuid: '', // 新增传空,编辑必传, uuid: '', // 新增传空,编辑必传,
options: [0, 1, 2, 3, 4, 5], // 0 全部 1 门店类型 2门店标签 3 门店区域 4 门店分组 5 部分门店 options: [0, 1, 2, 3, 4, 5], // 0 全部 1 门店类型 2门店标签 3 门店区域 4 门店分组 5 部分门店
isAdd: true, isAdd: true,
scencs: 'integral' scencs: 'integral',
// 太平鸟标识
tpnEditBool: false,
tpnEnterpriseId: 'ff808081671d3ceb01672adebf4e6149'
}; };
}, },
...@@ -520,6 +523,7 @@ export default { ...@@ -520,6 +523,7 @@ export default {
// 保存 // 保存
submitForm(formName) { submitForm(formName) {
let that = this; let that = this;
if (!that.tpnEditBool) {
this.$refs[formName].validate(valid => { this.$refs[formName].validate(valid => {
if (valid) { if (valid) {
// 处理数据 // 处理数据
...@@ -592,6 +596,7 @@ export default { ...@@ -592,6 +596,7 @@ export default {
return false; return false;
} }
}); });
}
}, },
// 保存数据 // 保存数据
...@@ -1116,8 +1121,27 @@ export default { ...@@ -1116,8 +1121,27 @@ export default {
.catch(err => { .catch(err => {
log(err); log(err);
}); });
} },
/* end */ /* end */
// 判断是否是太平鸟
getLoginInfo() {
let that = this;
let param = {};
postRequest('/api-auth/get-login-user-info', param)
.then(res => {
let resData = res.data;
if (resData.errorCode == 0) {
if (resData.result.enterpriseId == that.tpnEnterpriseId) {
that.tpnEditBool = true;
}
} else {
errMsg.errorMsg(resData);
}
})
.catch(function(error) {
log(error);
});
}
}, },
components: { components: {
topNavNew, topNavNew,
...@@ -1137,6 +1161,7 @@ export default { ...@@ -1137,6 +1161,7 @@ export default {
// 获取门店分组 // 获取门店分组
that.getStoreGroup(); that.getStoreGroup();
that.getLoginInfo();
} }
}; };
</script> </script>
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<div class="flex-lable">设置除通用积分获取规则以外的特殊策略</div> <div class="flex-lable">设置除通用积分获取规则以外的特殊策略</div>
</div> </div>
</div> </div>
<div class="fr btn-r-wrap"><el-button type="primary" @click="handleAdd('point')">新增策略</el-button></div> <div class="fr btn-r-wrap"><el-button :disabled="tpnEditBool" type="primary" @click="handleAdd('point')">新增策略</el-button></div>
<!-- table border--> <!-- table border-->
<div class="table-contain"> <div class="table-contain">
<el-table class="table-no-line-wrap" :data="achieveTableData" style="width: 100%"> <el-table class="table-no-line-wrap" :data="achieveTableData" style="width: 100%">
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
<div class="flex-lable">设置消费时使用积分抵现的规则(仅用于微信商城结算)</div> <div class="flex-lable">设置消费时使用积分抵现的规则(仅用于微信商城结算)</div>
</div> </div>
</div> </div>
<div class="fr btn-r-wrap"><el-button type="primary" @click="handleAdd('integ')">新增策略</el-button></div> <div class="fr btn-r-wrap"><el-button :disabled="tpnEditBool" type="primary" @click="handleAdd('integ')">新增策略</el-button></div>
<!-- table --> <!-- table -->
<div class="table-contain"> <div class="table-contain">
<el-table :data="exchangeTableData" style="width: 100%"> <el-table :data="exchangeTableData" style="width: 100%">
...@@ -170,11 +170,13 @@ export default { ...@@ -170,11 +170,13 @@ export default {
// form // form
pointInfo: {}, pointInfo: {},
bodyHtml: '', //富文本 tinymce 值 bodyHtml: '', //富文本 tinymce 值
// table 获取 // table 获取
achieveTableData: [], achieveTableData: [],
// table 抵现 // table 抵现
exchangeTableData: [] exchangeTableData: [],
// 太平鸟标识
tpnEditBool: false,
tpnEnterpriseId: 'ff808081671d3ceb01672adebf4e6149'
}; };
}, },
created() { created() {
...@@ -183,11 +185,13 @@ export default { ...@@ -183,11 +185,13 @@ export default {
methods: { methods: {
// 新增 // 新增
handleAdd(flag) { handleAdd(flag) {
if (!this.tpnEditBool) {
if (flag == 'point') { if (flag == 'point') {
this.$router.push('/addPointSystem'); this.$router.push('/addPointSystem');
} else { } else {
this.$router.push('/addIntegralSytem'); this.$router.push('/addIntegralSytem');
} }
}
}, },
// 删除 // 删除
handleDelClick(index, row, ArrData) { handleDelClick(index, row, ArrData) {
...@@ -291,6 +295,25 @@ export default { ...@@ -291,6 +295,25 @@ export default {
integralStrategyId: row.integralStrategyId integralStrategyId: row.integralStrategyId
} }
}); });
},
// 判断是否是太平鸟
getLoginInfo() {
let that = this;
let param = {};
postRequest('/api-auth/get-login-user-info', param)
.then(res => {
let resData = res.data;
if (resData.errorCode == 0) {
if (resData.result.enterpriseId == that.tpnEnterpriseId) {
that.tpnEditBool = true;
}
} else {
errMsg.errorMsg(resData);
}
})
.catch(function(error) {
log(error);
});
} }
}, },
components: { components: {
...@@ -300,6 +323,7 @@ export default { ...@@ -300,6 +323,7 @@ export default {
mounted() { mounted() {
let that = this; let that = this;
that.getPointInfo(); that.getPointInfo();
that.getLoginInfo();
} }
}; };
</script> </script>
......
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