Commit 47021eeb by KyleAlex

抵现增加微盟字段值

parent 50055693
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>GIC-集团后台</title><link href=./static/css/main.9de52e178f550ad0da1cc80fac5e4eac.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.05.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.1.0.1.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-new.2.0.46.js></script><script type=text/javascript src=./static/js/manifest.64a31d03ede0b04d2781.js></script><script type=text/javascript src=./static/js/vendor.191098631718b64db4bc.js></script><script type=text/javascript src=./static/js/main.a68b4233f775bd29f369.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.69568f664a2999400f826e7d14aa7d9a.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.05.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.1.0.1.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-new.2.0.46.js></script><script type=text/javascript src=./static/js/manifest.c2144b80106d371e0afb.js></script><script type=text/javascript src=./static/js/vendor.191098631718b64db4bc.js></script><script type=text/javascript src=./static/js/main.a68b4233f775bd29f369.js></script></body></html>
\ No newline at end of file \ No newline at end of file
webpackJsonp([7],{"0CQ3":function(e,t,r){"use strict";var o=r("8PIK"),n=Object.prototype.hasOwnProperty,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:o.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},i=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,r){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,i=/(\[[^[\]]*])/.exec(o),s=i?o.slice(0,i.index):o,l=[];if(s){if(!r.plainObjects&&n.call(Object.prototype,s)&&!r.allowPrototypes)return;l.push(s)}for(var c=0;null!==(i=a.exec(o))&&c<r.depth;){if(c+=1,!r.plainObjects&&n.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,n=e.length-1;n>=0;--n){var a,i=e[n];if("[]"===i&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var s="["===i.charAt(0)&&"]"===i.charAt(i.length-1)?i.slice(1,-1):i,l=parseInt(s,10);r.parseArrays||""!==s?!isNaN(l)&&i!==s&&String(l)===s&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(a=[])[l]=o:a[s]=o:a={0:o}}o=a}return o}(l,t,r)}};e.exports=function(e,t){var r=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||o.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth?e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null===e||void 0===e)return r.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var r,s={},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,c=t.parameterLimit===1/0?void 0:t.parameterLimit,u=l.split(t.delimiter,c),d=-1,p=t.charset;if(t.charsetSentinel)for(r=0;r<u.length;++r)0===u[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===u[r]?p="utf-8":"utf8=%26%2310003%3B"===u[r]&&(p="iso-8859-1"),d=r,r=u.length);for(r=0;r<u.length;++r)if(r!==d){var h,g,f=u[r],m=f.indexOf("]="),v=-1===m?f.indexOf("="):m+1;-1===v?(h=t.decoder(f,a.decoder,p),g=t.strictNullHandling?null:""):(h=t.decoder(f.slice(0,v),a.decoder,p),g=t.decoder(f.slice(v+1),a.decoder,p)),g&&t.interpretNumericEntities&&"iso-8859-1"===p&&(g=i(g)),g&&t.comma&&g.indexOf(",")>-1&&(g=g.split(",")),n.call(s,h)?s[h]=o.combine(s[h],g):s[h]=g}return s}(e,r):e,c=r.plainObjects?Object.create(null):{},u=Object.keys(l),d=0;d<u.length;++d){var p=u[d],h=s(p,l[p],r);c=o.merge(c,h,r)}return o.compact(c)}},"0irN":function(e,t){},"0xDb":function(e,t,r){"use strict";r.d(t,"b",function(){return a}),t.a=function(e,t){var r={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length)));for(var o in r)new RegExp("("+o+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?r[o]:("00"+r[o]).substr((""+r[o]).length)));return t};var o=r("ZLEe"),n=(r.n(o),r("hRKE")),a=(r.n(n),function(e){0})},"26lS":function(e,t){},"3E4D":function(e,t,r){"use strict";var o=r("TcQY");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("L+o2"),__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:{}},n={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 a=r("C7Lr")(o,n,!1,function(e){r("Vzx8")},"data-v-2e25ceb8",null);t.a=a.exports},"7qQh":function(e,t,r){"use strict";var o=r("HzJ8"),n=r.n(o),a=r("P9l9"),i=r("0xDb"),s=(r("CtzY"),{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(a.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 s=!0,l=!1,c=void 0;try{for(var u,d=n()(r.arr);!(s=(u=d.next()).done);s=!0){u.value.classIndex=-1}}catch(e){l=!0,c=e}finally{try{!s&&d.return&&d.return()}finally{if(l)throw c}}e.classIndex=t;var p={categoryId:e.categoryId};Object(a.e)("/api-mall/list-mall-goods-children-category",p).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.b)(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 n=this;if(o.cancelBubble=!0,this.allDate.length=t+1,0===t){var i={search:e};Object(a.e)("/api-mall/list-mall-goods-all-category",i).then(function(t){0===t.data.errorCode?(n.allDate=[],n.allDate.push({search:""!==e?e:"",arr:t.data.result})):n.$message.error(t.data.message)})}else{var s="";for(var l in this.allDate[t-1].arr)-1!==this.allDate[t-1].arr[l].classIndex&&(s=this.allDate[t-1].arr[l].categoryId);var c={search:e,categoryId:s};Object(a.e)("/api-mall/list-mall-goods-children-category",c).then(function(r){0===r.data.errorCode?(n.allDate[t]={search:""!==e?e:"",arr:r.data.result},n.refreshStatus=!n.refreshStatus):n.$message.error(r.data.message)})}},searchBlur:function(e){Object(i.b)(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(n,a){return r("div",{key:n.categoryId,staticClass:"goods-cate-item",class:n.classIndex===a?"cate-item-active":"",on:{click:function(r){return r.stopPropagation(),e.getNextCateList(n,a,t,o)}}},[r("span",[e._v(e._s(n.categoryName))]),e._v(" "),n.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")(s,l,!1,function(e){r("yWzc")},"data-v-7fe7171c",null);t.a=c.exports},"8PIK":function(e,t,r){"use strict";var o=Object.prototype.hasOwnProperty,n=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),i=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:i,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],o=0;o<t.length;++o)for(var a=t[o],i=a.obj[a.prop],s=Object.keys(i),l=0;l<s.length;++l){var c=s[l],u=i[c];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:i,prop:c}),r.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(n(r)){for(var o=[],a=0;a<r.length;++a)void 0!==r[a]&&o.push(r[a]);t.obj[t.prop]=o}}}(t),e},decode:function(e,t,r){var o=e.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},encode:function(e,t,r){if(0===e.length)return e;var o="string"==typeof e?e:String(e);if("iso-8859-1"===r)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var n="",i=0;i<o.length;++i){var s=o.charCodeAt(i);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?n+=o.charAt(i):s<128?n+=a[s]:s<2048?n+=a[192|s>>6]+a[128|63&s]:s<55296||s>=57344?n+=a[224|s>>12]+a[128|s>>6&63]+a[128|63&s]:(i+=1,s=65536+((1023&s)<<10|1023&o.charCodeAt(i)),n+=a[240|s>>18]+a[128|s>>12&63]+a[128|s>>6&63]+a[128|63&s])}return n},isBuffer:function(e){return!(!e||"object"!=typeof 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(n(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(a&&(a.plainObjects||a.allowPrototypes)||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var s=t;return n(t)&&!n(r)&&(s=i(t,a)),n(t)&&n(r)?(r.forEach(function(r,n){if(o.call(t,n)){var i=t[n];i&&"object"==typeof i&&r&&"object"==typeof r?t[n]=e(i,r,a):t.push(r)}else t[n]=r}),t):Object.keys(r).reduce(function(t,n){var i=r[n];return o.call(t,n)?t[n]=e(t[n],i,a):t[n]=i,t},s)}}},"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"),n={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="")}}},a={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")(n,a,!1,function(e){r("26lS")},"data-v-bbbbd62a",null);t.a=i.exports},"Ch4/":function(e,t,r){"use strict";var o=r("TcQY");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})}}}},CtzY:function(e,t,r){"use strict";var o=r("EU61"),n=r("0CQ3"),a=r("lVfG");e.exports={formats:a,parse:n,stringify:o}},EU61:function(e,t,r){"use strict";var o=r("8PIK"),n=r("lVfG"),a=Object.prototype.hasOwnProperty,i={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,l=Array.prototype.push,c=function(e,t){l.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,formatter:n.formatters[n.default],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,r,n,a,i,l,u,p,h,g,f,m,v){var y=t;if("function"==typeof u?y=u(r,y):y instanceof Date?y=g(y):"comma"===n&&s(y)&&(y=y.join(",")),null===y){if(a)return l&&!m?l(r,d.encoder,v):r;y=""}if("string"==typeof y||"number"==typeof y||"boolean"==typeof y||o.isBuffer(y))return l?[f(m?r:l(r,d.encoder,v))+"="+f(l(y,d.encoder,v))]:[f(r)+"="+f(String(y))];var b,C=[];if(void 0===y)return C;if(s(u))b=u;else{var w=Object.keys(y);b=p?w.sort(p):w}for(var x=0;x<b.length;++x){var I=b[x];i&&null===y[I]||(s(y)?c(C,e(y[I],"function"==typeof n?n(r,I):r,n,a,i,l,u,p,h,g,f,m,v)):c(C,e(y[I],r+(h?"."+I:"["+I+"]"),n,a,i,l,u,p,h,g,f,m,v)))}return C};e.exports=function(e,t){var r,o=e,l=function(e){if(!e)return d;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=n.default;if(void 0!==e.format){if(!a.call(n.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var o=n.formatters[r],i=d.filter;return("function"==typeof e.filter||s(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:void 0===e.allowDots?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:i,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}}(t);"function"==typeof l.filter?o=(0,l.filter)("",o):s(l.filter)&&(r=l.filter);var u,h=[];if("object"!=typeof o||null===o)return"";u=t&&t.arrayFormat in i?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var g=i[u];r||(r=Object.keys(o)),l.sort&&r.sort(l.sort);for(var f=0;f<r.length;++f){var m=r[f];l.skipNulls&&null===o[m]||c(h,p(o[m],m,g,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.formatter,l.encodeValuesOnly,l.charset))}var v=h.join(l.delimiter),y=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),v.length>0?y+v:""}},G69j:function(e,t,r){"use strict";var o=r("P9l9");t.a={data:function(){return{isJinHua:!1,storeValue:""}},created:function(){this.getUserInfo()},methods:{getUserInfo:function(){var e=this;Object(o.a)("/api-auth/get-login-user-info",{}).then(function(t){0===t.data.errorCode&&("ff8080816a36326c016a53380d8b5f52"===t.data.result.enterpriseId?e.isJinHua=!0:e.wMGoodOption=[{label:"所有商品",value:"1"}])})}}}},HzJ8:function(e,t,r){e.exports={default:r("P/sN"),__esModule:!0}},J0Oq:function(e,t,r){"use strict";t.__esModule=!0;var o,n=r("rVsN"),a=(o=n)&&o.__esModule?o:{default:o};t.default=function(e){return function(){var t=e.apply(this,arguments);return new a.default(function(e,r){return function o(n,i){try{var s=t[n](i),l=s.value}catch(e){return void r(e)}if(!s.done)return a.default.resolve(l).then(function(e){o("next",e)},function(e){o("throw",e)});e(l)}("next")})}}},"L+o2":function(e,t,r){var o=r("ZuHZ"),n=o.JSON||(o.JSON={stringify:JSON.stringify});e.exports=function(e){return n.stringify.apply(n,arguments)}},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,n=0;n<e.length;n++){var a=e.charAt(n);if(1==r&&(encodeURI(a).length>2?o+=1:o+=.5),2==r&&(o+=1),o>=t){var i=o==t?n+1:n;return e.substr(0,i)}}},getByteVal:function(e,t){for(var r="",o=0,n=0;n<e.length&&(null!=e[n].match(/[^\x00-\xff]/gi)?o+=1:o+=.5,!(o>t));n++)r+=e[n];return r},getCharVal:function(e,t){for(var r="",o=0,n=0;n<e.length&&(null!=e[n].match(/[^\x00-\xff]/gi)?o+=2:o+=1,!(o>t));n++)r+=e[n];return r},regPos:function(e){return/^\d+(\.\d+)?$/.test(e)}}},OyTP:function(e,t){},"P/sN":function(e,t,r){r("MJJS"),r("at0p"),e.exports=r("eBrH")},P9l9:function(e,t,r){"use strict";r.d(t,"a",function(){return d}),r.d(t,"e",function(){return p}),r.d(t,"d",function(){return h}),r.d(t,"c",function(){return g}),r.d(t,"b",function(){return f});var o=r("rVsN"),n=r.n(o),a=r("lRwf"),i=r.n(a),s=r("CtzY"),l=r.n(s),c=r("TcQY"),u=(r.n(c),window.location.origin);-1!=u.indexOf("localhost")&&(u="http://gicdev.demogic.com"),i.a.axios.interceptors.request.use(function(e){return e},function(e){return c.Message.error({message:"请求超时!"}),n.a.resolve(e)}),i.a.axios.interceptors.response.use(function(e){if(!e.status||200!=e.status||"error"!=e.data.status)return e;c.Message.error({message:e.data.msg})},function(e){return 504==e.response.status||404==e.response.status||e.response.status,n.a.resolve(e)});var d=function(e,t){return t.requestProject="gic-clique",i.a.axios({method:"get",url:""+u+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:""+u+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:""+u+e,data:"{}",params:t,headers:{"Content-Type":"application/json;charset=UTF-8"}})},g=function(e,t){return i.a.axios({method:"post",url:""+u+e,data:t,params:{requestProject:"gic-clique"},headers:{"Content-Type":"application/json;charset=UTF-8"}})},f=function(e,t){return t.requestProject="gic-clique",i.a.axios({method:"post",url:""+u+e,data:t,headers:{}})}},Vzx8:function(e,t){},XqSp:function(e,t,r){var o=function(){return this}()||Function("return this")(),n=o.regeneratorRuntime&&Object.getOwnPropertyNames(o).indexOf("regeneratorRuntime")>=0,a=n&&o.regeneratorRuntime;if(o.regeneratorRuntime=void 0,e.exports=r("k9rz"),n)o.regeneratorRuntime=a;else try{delete o.regeneratorRuntime}catch(e){o.regeneratorRuntime=void 0}},eBrH:function(e,t,r){var o=r("xgeF"),n=r("PsHI");e.exports=r("ZuHZ").getIterator=function(e){var t=n(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return o(t.call(e))}},k9rz:function(e,t){!function(t){"use strict";var r,o=Object.prototype,n=o.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag",c="object"==typeof e,u=t.regeneratorRuntime;if(u)c&&(e.exports=u);else{(u=t.regeneratorRuntime=c?e.exports:{}).wrap=C;var d="suspendedStart",p="suspendedYield",h="executing",g="completed",f={},m={};m[i]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v(T([])));y&&y!==o&&n.call(y,i)&&(m=y);var b=L.prototype=x.prototype=Object.create(m);I.prototype=b.constructor=L,L.constructor=I,L[l]=I.displayName="GeneratorFunction",u.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===I||"GeneratorFunction"===(t.displayName||t.name))},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,L):(e.__proto__=L,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(b),e},u.awrap=function(e){return{__await:e}},S(D.prototype),D.prototype[s]=function(){return this},u.AsyncIterator=D,u.async=function(e,t,r,o){var n=new D(C(e,t,r,o));return u.isGeneratorFunction(t)?n:n.next().then(function(e){return e.done?e.value:n.next()})},S(b),b[l]="Generator",b[i]=function(){return this},b.toString=function(){return"[object Generator]"},u.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var o=t.pop();if(o in e)return r.value=o,r.done=!1,r}return r.done=!0,r}},u.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=r)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(o,n){return s.type="throw",s.arg=e,t.next=o,n&&(t.method="next",t.arg=r),!!n}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var n=o.arg;k(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,o){return this.delegate={iterator:T(e),resultName:t,nextLoc:o},"next"===this.method&&(this.arg=r),f}}}function C(e,t,r,o){var n=t&&t.prototype instanceof x?t:x,a=Object.create(n.prototype),i=new A(o||[]);return a._invoke=function(e,t,r){var o=d;return function(n,a){if(o===h)throw new Error("Generator is already running");if(o===g){if("throw"===n)throw a;return N()}for(r.method=n,r.arg=a;;){var i=r.delegate;if(i){var s=_(i,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=w(e,t,r);if("normal"===l.type){if(o=r.done?g:p,l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=g,r.method="throw",r.arg=l.arg)}}}(e,r,i),a}function w(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function x(){}function I(){}function L(){}function S(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function D(e){var t;this._invoke=function(r,o){function a(){return new Promise(function(t,a){!function t(r,o,a,i){var s=w(e[r],e,o);if("throw"!==s.type){var l=s.arg,c=l.value;return c&&"object"==typeof c&&n.call(c,"__await")?Promise.resolve(c.__await).then(function(e){t("next",e,a,i)},function(e){t("throw",e,a,i)}):Promise.resolve(c).then(function(e){l.value=e,a(l)},i)}i(s.arg)}(r,o,t,a)})}return t=t?t.then(a,a):a()}}function _(e,t){var o=e.iterator[t.method];if(o===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=r,_(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=w(o,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,f;var a=n.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,f):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function F(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(F,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function t(){for(;++o<e.length;)if(n.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=r,t.done=!0,t};return a.next=a}}return{next:N}}function N(){return{value:r,done:!0}}}(function(){return this}()||Function("return this")())},lC5x:function(e,t,r){e.exports=r("XqSp")},lVfG:function(e,t,r){"use strict";var o=String.prototype.replace,n=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return o.call(e,n,"+")},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"),n=r.n(o),a=r("lC5x"),i=r.n(a),s=r("J0Oq"),l=r.n(s),c=r("6Mk3"),u=r("93Ik"),d=r("7qQh"),p=(r("0irN"),r("3E4D")),h=r("Ch4/"),g=r("Mk6G"),f=r("P9l9"),m=r("0xDb"),v=r("G69j"),y={year:(new Date).getFullYear(),month:(new Date).getMonth(),day:(new Date).getDate()},b={name:"addIntegralSytem",mixins:[v.a],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"}],wMShopOption:[{label:"所有店铺",value:"1"}],wMGoodOption:[{label:"所有商品",value:"1"}],uuid:"",options:[0,1,2,3,4,5],isAdd:!0,scencs:"integral",wmuuid:"",ruleForm:{integralStrategyId:"",enterpriseId:"",strategyName:"",strategyType:2,useCrowd:"1",crowdJson:"",selectorParams:"",integralGetStatus:"1",integralGetStrategy:"1",integralGetFreezeDays:1,integralGetEffectiveDays:1,integralUseStatus:"0",integralUse:{fee:"",integral:""},perpetualFlag:1,channelList:[{integralStrategyChannelId:"",enterpriseId:"",integralStrategyId:"",channelType:"1",openStatus:!0,channelRelationEnterpriseType:"1",channelRelationStoreType:"1",channelStoreType:"-1",channelRelationProType:"1",integralUseDiscountControl:"1",integralUseDiscountControlUpper:"0.0",integralUseDiscountControlLower:"0.0",useProportionalRestriction:"0.0",strategyGoodsRelationIdArr:[],storeRelationIdArr:[],enterpriseRelationIdArr:[]},{integralStrategyChannelId:"",enterpriseId:"",integralStrategyId:"",channelType:"9",openStatus:!0,channelRelationEnterpriseType:"1",channelRelationStoreType:"1",channelStoreType:"-1",channelRelationProType:"1",integralUseDiscountControl:"1",integralUseDiscountControlUpper:"0.0",integralUseDiscountControlLower:"0.0",useProportionalRestriction:"0.0",strategyGoodsRelationIdArr:[],storeRelationIdArr:[],enterpriseRelationIdArr:[]}],perpetualDate:[new Date(y.year,y.month,y.day,0,0).getTime(),new Date(y.year,y.month,y.day,23,59).getTime()]},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)},checkListValue:function(e){var t=this;return l()(i.a.mark(function r(){var o,n,a,s,l,c;return i.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(o={flag:!0,text:""},!e.channelList.length){r.next=37;break}n=0;case 3:if(!(n<e.channelList.length)){r.next=37;break}if(!e.channelList[n].openStatus){r.next=34;break}if(e.channelList[n].openStatus&&2==e.channelList[n].integralUseDiscountControl&&(e.channelList[n].integralUseDiscountControlUpper&&e.channelList[n].integralUseDiscountControlLower||(o.flag=!1,o.text="请填写折扣"),(parseInt(e.channelList[n].integralUseDiscountControlUpper)>10||parseInt(e.channelList[n].integralUseDiscountControlLower)>10||Number(e.channelList[n].integralUseDiscountControlUpper)<=Number(e.channelList[n].integralUseDiscountControlLower))&&(o.flag=!1,o.text="折扣格式有误")),1!=e.channelList[n].channelType||e.channelList[n].enterpriseRelationIdArr.length||(o.flag=!1,o.text="请选择商户"),9!=e.channelList[n].channelType||e.channelList[n].enterpriseRelationIdArr.length||(o.flag=!1,o.text="请选择商户"),3!=e.channelList[n].channelType){r.next=21;break}if(a=t.$refs.storeGroup,s=null,!(a instanceof Array)){r.next=17;break}return r.next=14,t.$refs.storeGroup[0].isStoreSave();case 14:s=r.sent,r.next=20;break;case 17:return r.next=19,t.$refs.storeGroup.isStoreSave();case 19:s=r.sent;case 20:s||(o.flag=!1,o.text="请选择门店");case 21:if(9!=e.channelList[n].channelType||!t.isJinHua){r.next=34;break}if(l=t.$refs.wmstoreGroup,c=null,!(l instanceof Array)){r.next=30;break}return r.next=27,t.$refs.wmstoreGroup[0].isStoreSave();case 27:c=r.sent,r.next=33;break;case 30:return r.next=32,t.$refs.wmstoreGroup.isStoreSave();case 32:c=r.sent;case 33:c||(o.flag=!1,o.text="请选择门店");case 34:n++,r.next=3;break;case 37:return r.abrupt("return",o);case 38:case"end":return r.stop()}},r,t)}))()},submitForm:function(e){var t=this,r=this;if(!r.tpnEditBool){var o=JSON.parse(n()(r.ruleForm));this.$refs[e].validate(function(e){if(!e)return Object(m.b)("error submit!!"),!1;if(o.strategyName){var a=!o.integralUse.fee||""==String(o.integralUse.integral);if(1==o.integralUseStatus&&a)r.$message.error("请填写抵现规则");else{if(1==o.integralUseStatus){if(!Number(o.integralUse.fee))return void p.a.showmsg("抵现规则中的抵现金额不能为0","error");if(!Number(o.integralUse.integral))return void p.a.showmsg("抵现规则中的使用积分不能为0","error")}r.checkListValue(o).then(function(e){if(e.flag){var a=void 0;o.channelList.forEach(function(e,t){e.openStatus=1==e.openStatus?1:0,1==e.channelType&&(e.strategyGoodsRelationIdArr=e.goodsRelationIdArr,delete e.goodsRelationIdArr),e.enterpriseRelationIdArr&&e.enterpriseRelationIdArr.length||(e.enterpriseRelationIdArr=[]),e.storeRelationIdArr&&e.storeRelationIdArr.length||(e.storeRelationIdArr=[]),e.strategyGoodsRelationIdArr&&e.strategyGoodsRelationIdArr.length||(e.strategyGoodsRelationIdArr=[]),"9"==e.channelType&&(e.storeControlId=r.wmuuid),0==t?a=e.useProportionalRestriction:e.useProportionalRestriction=a});var i=!0;o.channelList.forEach(function(e){if(1==e.channelType&&1==e.openStatus){if(2==e.channelRelationProType&&t.valueWx.length<1)return p.a.showmsg("请选择商品品牌","error"),i=!1;if(3==e.channelRelationProType&&t.cateDataWx.length<1)return p.a.showmsg("请选择商品品类","error"),i=!1;if(4==e.channelRelationProType&&t.goodsListWx.length<1)return p.a.showmsg("请选择单件商品","error"),i=!1}}),2==o.useCrowd&&t.selectCount<1?p.a.showmsg("请选择人群定向","error"):(delete o.selectorParamsId,o.integralUse=n()(o.integralUse),1===o.perpetualFlag||(o.startValidTime=o.perpetualDate[0],o.endValidTime=o.perpetualDate[1]),delete o.perpetualDate,i&&r.saveForm(o))}else p.a.showmsg(e.text,"error")})}}else p.a.showmsg("请填写策略名称","error")})}},saveForm:function(e){var t=this,r=e;Object(f.c)("/api-admin/save-member-integral-strategy",r).then(function(e){Object(m.b)(e.data.result);var r=e.data;if(0==r.errorCode)return t.$message({message:"添加成功",type:"success"}),void t.changeRoute("/pointSystem");h.a.errorMsg(r)}).catch(function(e){Object(m.b)(e)})},bouncer:function(e){return e.filter(function(e){return!(!e||""===e)})},toInput:function(e){var t=g.a.getByteVal(e.target.value,this.inputFlagNum);this.ruleForm.strategyName=t.trim(),this.cateNameLength=g.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=g.a.getCharVal(String(this.ruleForm.integralUse.fee).replace(/[^\.\d]/g,""),6),this.ruleForm.integralUse.integral=g.a.getCharVal(String(this.ruleForm.integralUse.integral).replace(/[^\d]/g,""),8),this.ruleForm.channelList[0].useProportionalRestriction=g.a.getCharVal(String(this.ruleForm.channelList[0].useProportionalRestriction).replace(/[^\d]/g,""),3)},formatInputNumBlur:function(){this.ruleForm.integralUse.fee=Number(g.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(f.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}h.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(m.b)(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(f.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(m.b)(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(f.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)}h.a.errorMsg(r)}).catch(function(e){Object(m.b)(e)})},getLoginInfo:function(){var e=this;Object(f.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):h.a.errorMsg(r)}).catch(function(e){Object(m.b)(e)})}},components:{topNavNew:c.a,addGoods:u.a,goodsCate:d.a},mounted:function(){this.getGoodsBrand(),this.getCliqueInfo(),this.getLoginInfo()}},C={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("el-form-item",{key:o,attrs:{label:"适用微信商城",prop:""}},[r("el-switch",{model:{value:t.openStatus,callback:function(r){e.$set(t,"openStatus",r)},expression:"item.openStatus"}})],1),e._v(" "),t.openStatus?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._e(),e._v(" "),9==t.channelType?[r("el-form-item",{key:o,attrs:{label:"微盟渠道",prop:""}},[r("el-switch",{model:{value:t.openStatus,callback:function(r){e.$set(t,"openStatus",r)},expression:"item.openStatus"}})],1),e._v(" "),1==t.openStatus?r("div",{key:o,staticClass:"form-child margin-20"},[r("el-form-item",{attrs:{label:"选择商户"}},[r("el-select",{attrs:{size:"small",placeholder:"请选择",multiple:""},model:{value:t.enterpriseRelationIdArr,callback:function(r){e.$set(t,"enterpriseRelationIdArr",r)},expression:"item.enterpriseRelationIdArr"}},e._l(e.mechantOption,function(e,t){return r("el-option",{key:t,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"选择店铺"}},[e.isJinHua?r("vue-gic-store-new",{ref:"wmstoreGroup",refInFor:!0,attrs:{scenesVal:e.scencs,options:e.options,isAdd:e.isAdd,uuid:e.wmuuid},on:{"update:uuid":function(t){e.wmuuid=t}}}):r("el-select",{model:{value:e.storeValue,callback:function(t){e.storeValue=t},expression:"storeValue"}},[r("el-option",{attrs:{label:"所有门店",value:""}})],1)],1),e._v(" "),r("el-form-item",{staticClass:"padding-0",attrs:{label:"微盟商品"}},[r("el-select",{attrs:{placeholder:"请选择"},model:{value:t.channelRelationProType,callback:function(r){e.$set(t,"channelRelationProType",r)},expression:"item.channelRelationProType"}},e._l(e.wMGoodOption,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:"input-margin-b",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._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("%")])],2)],1),e._v(" "),r("el-form-item",{attrs:{label:"策略有效期",prop:""}},[r("el-radio",{attrs:{label:1},model:{value:e.ruleForm.perpetualFlag,callback:function(t){e.$set(e.ruleForm,"perpetualFlag",t)},expression:"ruleForm.perpetualFlag"}},[e._v("永久有效")]),e._v(" "),r("el-radio",{attrs:{label:0},model:{value:e.ruleForm.perpetualFlag,callback:function(t){e.$set(e.ruleForm,"perpetualFlag",t)},expression:"ruleForm.perpetualFlag"}},[e._v("\n 在该时段内有效\n "),0===e.ruleForm.perpetualFlag?r("el-date-picker",{attrs:{type:"datetimerange","start-placeholder":"开始日期","end-placeholder":"结束日期",format:"yyyy-MM-dd HH:mm","value-format":"timestamp","default-time":["00:00:00","23:59:59"]},model:{value:e.ruleForm.perpetualDate,callback:function(t){e.$set(e.ruleForm,"perpetualDate",t)},expression:"ruleForm.perpetualDate"}}):e._e()],1)],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 w=r("C7Lr")(b,C,!1,function(e){r("OyTP")},"data-v-70029d5a",null);t.default=w.exports},yWzc:function(e,t){}});
//# sourceMappingURL=7.293369dd98a94ce504fe.js.map
\ 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([7],{"0CQ3":function(e,t,r){"use strict";var o=r("8PIK"),n=Object.prototype.hasOwnProperty,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:o.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},i=function(e,t,r){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=/(\[[^[\]]*])/.exec(o),i=s?o.slice(0,s.index):o,l=[];if(i){if(!r.plainObjects&&n.call(Object.prototype,i)&&!r.allowPrototypes)return;l.push(i)}for(var c=0;null!==(s=a.exec(o))&&c<r.depth;){if(c+=1,!r.plainObjects&&n.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(s[1])}return s&&l.push("["+o.slice(s.index)+"]"),function(e,t,r){for(var o=t,n=e.length-1;n>=0;--n){var a,s=e[n];if("[]"===s&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var i="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(i,10);r.parseArrays||""!==i?!isNaN(l)&&s!==i&&String(l)===i&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(a=[])[l]=o:a[i]=o:a={0:o}}o=a}return o}(l,t,r)}};e.exports=function(e,t){var r=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||o.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth?e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null===e||void 0===e)return r.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var r,i={},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,c=t.parameterLimit===1/0?void 0:t.parameterLimit,u=l.split(t.delimiter,c),d=-1,p=t.charset;if(t.charsetSentinel)for(r=0;r<u.length;++r)0===u[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===u[r]?p="utf-8":"utf8=%26%2310003%3B"===u[r]&&(p="iso-8859-1"),d=r,r=u.length);for(r=0;r<u.length;++r)if(r!==d){var h,g,f=u[r],m=f.indexOf("]="),v=-1===m?f.indexOf("="):m+1;-1===v?(h=t.decoder(f,a.decoder,p),g=t.strictNullHandling?null:""):(h=t.decoder(f.slice(0,v),a.decoder,p),g=t.decoder(f.slice(v+1),a.decoder,p)),g&&t.interpretNumericEntities&&"iso-8859-1"===p&&(g=s(g)),g&&t.comma&&g.indexOf(",")>-1&&(g=g.split(",")),n.call(i,h)?i[h]=o.combine(i[h],g):i[h]=g}return i}(e,r):e,c=r.plainObjects?Object.create(null):{},u=Object.keys(l),d=0;d<u.length;++d){var p=u[d],h=i(p,l[p],r);c=o.merge(c,h,r)}return o.compact(c)}},"0irN":function(e,t){},"0xDb":function(e,t,r){"use strict";r.d(t,"b",function(){return a}),t.a=function(e,t){var r={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length)));for(var o in r)new RegExp("("+o+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?r[o]:("00"+r[o]).substr((""+r[o]).length)));return t};var o=r("ZLEe"),n=(r.n(o),r("hRKE")),a=(r.n(n),function(e){0})},"26lS":function(e,t){},"3E4D":function(e,t,r){"use strict";var o=r("TcQY");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("L+o2"),__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:{}},n={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 a=r("C7Lr")(o,n,!1,function(e){r("Vzx8")},"data-v-2e25ceb8",null);t.a=a.exports},"7qQh":function(e,t,r){"use strict";var o=r("HzJ8"),n=r.n(o),a=r("P9l9"),s=r("0xDb"),i=(r("CtzY"),{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(a.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 s=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=n()(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 p={categoryId:e.categoryId};Object(a.e)("/api-mall/list-mall-goods-children-category",p).then(function(e){0===e.data.errorCode?e.data.result.length&&(s.allDate[o+1]={search:"",arr:e.data.result},s.refreshStatus=!s.refreshStatus):s.$message.error(e.data.message)})},handaleConfirmCate:function(){if(Object(s.b)(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 n=this;if(o.cancelBubble=!0,this.allDate.length=t+1,0===t){var s={search:e};Object(a.e)("/api-mall/list-mall-goods-all-category",s).then(function(t){0===t.data.errorCode?(n.allDate=[],n.allDate.push({search:""!==e?e:"",arr:t.data.result})):n.$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(a.e)("/api-mall/list-mall-goods-children-category",c).then(function(r){0===r.data.errorCode?(n.allDate[t]={search:""!==e?e:"",arr:r.data.result},n.refreshStatus=!n.refreshStatus):n.$message.error(r.data.message)})}},searchBlur:function(e){Object(s.b)(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(n,a){return r("div",{key:n.categoryId,staticClass:"goods-cate-item",class:n.classIndex===a?"cate-item-active":"",on:{click:function(r){return r.stopPropagation(),e.getNextCateList(n,a,t,o)}}},[r("span",[e._v(e._s(n.categoryName))]),e._v(" "),n.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("yWzc")},"data-v-7fe7171c",null);t.a=c.exports},"8PIK":function(e,t,r){"use strict";var o=Object.prototype.hasOwnProperty,n=Array.isArray,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)},combine:function(e,t){return[].concat(e,t)},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),l=0;l<i.length;++l){var c=i[l],u=s[c];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:s,prop:c}),r.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(n(r)){for(var o=[],a=0;a<r.length;++a)void 0!==r[a]&&o.push(r[a]);t.obj[t.prop]=o}}}(t),e},decode:function(e,t,r){var o=e.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},encode:function(e,t,r){if(0===e.length)return e;var o="string"==typeof e?e:String(e);if("iso-8859-1"===r)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var n="",s=0;s<o.length;++s){var i=o.charCodeAt(s);45===i||46===i||95===i||126===i||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122?n+=o.charAt(s):i<128?n+=a[i]:i<2048?n+=a[192|i>>6]+a[128|63&i]:i<55296||i>=57344?n+=a[224|i>>12]+a[128|i>>6&63]+a[128|63&i]:(s+=1,i=65536+((1023&i)<<10|1023&o.charCodeAt(s)),n+=a[240|i>>18]+a[128|i>>12&63]+a[128|i>>6&63]+a[128|63&i])}return n},isBuffer:function(e){return!(!e||"object"!=typeof 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(n(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(a&&(a.plainObjects||a.allowPrototypes)||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var i=t;return n(t)&&!n(r)&&(i=s(t,a)),n(t)&&n(r)?(r.forEach(function(r,n){if(o.call(t,n)){var s=t[n];s&&"object"==typeof s&&r&&"object"==typeof r?t[n]=e(s,r,a):t.push(r)}else t[n]=r}),t):Object.keys(r).reduce(function(t,n){var s=r[n];return o.call(t,n)?t[n]=e(t[n],s,a):t[n]=s,t},i)}}},"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"),n={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="")}}},a={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 s=r("C7Lr")(n,a,!1,function(e){r("26lS")},"data-v-bbbbd62a",null);t.a=s.exports},"Ch4/":function(e,t,r){"use strict";var o=r("TcQY");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})}}}},CtzY:function(e,t,r){"use strict";var o=r("EU61"),n=r("0CQ3"),a=r("lVfG");e.exports={formats:a,parse:n,stringify:o}},EU61:function(e,t,r){"use strict";var o=r("8PIK"),n=r("lVfG"),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},i=Array.isArray,l=Array.prototype.push,c=function(e,t){l.apply(e,i(t)?t:[t])},u=Date.prototype.toISOString,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,formatter:n.formatters[n.default],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,r,n,a,s,l,u,p,h,g,f,m,v){var y=t;if("function"==typeof u?y=u(r,y):y instanceof Date?y=g(y):"comma"===n&&i(y)&&(y=y.join(",")),null===y){if(a)return l&&!m?l(r,d.encoder,v):r;y=""}if("string"==typeof y||"number"==typeof y||"boolean"==typeof y||o.isBuffer(y))return l?[f(m?r:l(r,d.encoder,v))+"="+f(l(y,d.encoder,v))]:[f(r)+"="+f(String(y))];var b,C=[];if(void 0===y)return C;if(i(u))b=u;else{var w=Object.keys(y);b=p?w.sort(p):w}for(var x=0;x<b.length;++x){var I=b[x];s&&null===y[I]||(i(y)?c(C,e(y[I],"function"==typeof n?n(r,I):r,n,a,s,l,u,p,h,g,f,m,v)):c(C,e(y[I],r+(h?"."+I:"["+I+"]"),n,a,s,l,u,p,h,g,f,m,v)))}return C};e.exports=function(e,t){var r,o=e,l=function(e){if(!e)return d;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=n.default;if(void 0!==e.format){if(!a.call(n.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var o=n.formatters[r],s=d.filter;return("function"==typeof e.filter||i(e.filter))&&(s=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:void 0===e.allowDots?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:s,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}}(t);"function"==typeof l.filter?o=(0,l.filter)("",o):i(l.filter)&&(r=l.filter);var u,h=[];if("object"!=typeof o||null===o)return"";u=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var g=s[u];r||(r=Object.keys(o)),l.sort&&r.sort(l.sort);for(var f=0;f<r.length;++f){var m=r[f];l.skipNulls&&null===o[m]||c(h,p(o[m],m,g,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.formatter,l.encodeValuesOnly,l.charset))}var v=h.join(l.delimiter),y=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),v.length>0?y+v:""}},G69j:function(e,t,r){"use strict";var o=r("P9l9");t.a={data:function(){return{isJinHua:!1,storeValue:""}},created:function(){this.getUserInfo()},methods:{getUserInfo:function(){var e=this;Object(o.a)("/api-auth/get-login-user-info",{}).then(function(t){0===t.data.errorCode&&("ff8080816a36326c016a53380d8b5f52"===t.data.result.enterpriseId?e.isJinHua=!0:e.wMGoodOption=[{label:"所有商品",value:"1"}])})}}}},HzJ8:function(e,t,r){e.exports={default:r("P/sN"),__esModule:!0}},J0Oq:function(e,t,r){"use strict";t.__esModule=!0;var o,n=r("rVsN"),a=(o=n)&&o.__esModule?o:{default:o};t.default=function(e){return function(){var t=e.apply(this,arguments);return new a.default(function(e,r){return function o(n,s){try{var i=t[n](s),l=i.value}catch(e){return void r(e)}if(!i.done)return a.default.resolve(l).then(function(e){o("next",e)},function(e){o("throw",e)});e(l)}("next")})}}},"L+o2":function(e,t,r){var o=r("ZuHZ"),n=o.JSON||(o.JSON={stringify:JSON.stringify});e.exports=function(e){return n.stringify.apply(n,arguments)}},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,n=0;n<e.length;n++){var a=e.charAt(n);if(1==r&&(encodeURI(a).length>2?o+=1:o+=.5),2==r&&(o+=1),o>=t){var s=o==t?n+1:n;return e.substr(0,s)}}},getByteVal:function(e,t){for(var r="",o=0,n=0;n<e.length&&(null!=e[n].match(/[^\x00-\xff]/gi)?o+=1:o+=.5,!(o>t));n++)r+=e[n];return r},getCharVal:function(e,t){for(var r="",o=0,n=0;n<e.length&&(null!=e[n].match(/[^\x00-\xff]/gi)?o+=2:o+=1,!(o>t));n++)r+=e[n];return r},regPos:function(e){return/^\d+(\.\d+)?$/.test(e)}}},"P/sN":function(e,t,r){r("MJJS"),r("at0p"),e.exports=r("eBrH")},P9l9:function(e,t,r){"use strict";r.d(t,"a",function(){return d}),r.d(t,"e",function(){return p}),r.d(t,"d",function(){return h}),r.d(t,"c",function(){return g}),r.d(t,"b",function(){return f});var o=r("rVsN"),n=r.n(o),a=r("lRwf"),s=r.n(a),i=r("CtzY"),l=r.n(i),c=r("TcQY"),u=(r.n(c),window.location.origin);-1!=u.indexOf("localhost")&&(u="http://gicdev.demogic.com"),s.a.axios.interceptors.request.use(function(e){return e},function(e){return c.Message.error({message:"请求超时!"}),n.a.resolve(e)}),s.a.axios.interceptors.response.use(function(e){if(!e.status||200!=e.status||"error"!=e.data.status)return e;c.Message.error({message:e.data.msg})},function(e){return 504==e.response.status||404==e.response.status||e.response.status,n.a.resolve(e)});var d=function(e,t){return t.requestProject="gic-clique",s.a.axios({method:"get",url:""+u+e,data:{},params:t,headers:{"content-type":"application/x-www-form-urlencoded"}})},p=function(e,t){return t.requestProject="gic-clique",s.a.axios({method:"post",url:""+u+e,data:l.a.stringify(t),headers:{"content-type":"application/x-www-form-urlencoded"}})},h=function(e,t){return t.requestProject="gic-clique",s.a.axios({method:"post",url:""+u+e,data:"{}",params:t,headers:{"Content-Type":"application/json;charset=UTF-8"}})},g=function(e,t){return s.a.axios({method:"post",url:""+u+e,data:t,params:{requestProject:"gic-clique"},headers:{"Content-Type":"application/json;charset=UTF-8"}})},f=function(e,t){return t.requestProject="gic-clique",s.a.axios({method:"post",url:""+u+e,data:t,headers:{}})}},Vzx8:function(e,t){},XqSp:function(e,t,r){var o=function(){return this}()||Function("return this")(),n=o.regeneratorRuntime&&Object.getOwnPropertyNames(o).indexOf("regeneratorRuntime")>=0,a=n&&o.regeneratorRuntime;if(o.regeneratorRuntime=void 0,e.exports=r("k9rz"),n)o.regeneratorRuntime=a;else try{delete o.regeneratorRuntime}catch(e){o.regeneratorRuntime=void 0}},eBrH:function(e,t,r){var o=r("xgeF"),n=r("PsHI");e.exports=r("ZuHZ").getIterator=function(e){var t=n(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return o(t.call(e))}},k9rz:function(e,t){!function(t){"use strict";var r,o=Object.prototype,n=o.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag",c="object"==typeof e,u=t.regeneratorRuntime;if(u)c&&(e.exports=u);else{(u=t.regeneratorRuntime=c?e.exports:{}).wrap=C;var d="suspendedStart",p="suspendedYield",h="executing",g="completed",f={},m={};m[s]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v(T([])));y&&y!==o&&n.call(y,s)&&(m=y);var b=L.prototype=x.prototype=Object.create(m);I.prototype=b.constructor=L,L.constructor=I,L[l]=I.displayName="GeneratorFunction",u.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===I||"GeneratorFunction"===(t.displayName||t.name))},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,L):(e.__proto__=L,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(b),e},u.awrap=function(e){return{__await:e}},S(D.prototype),D.prototype[i]=function(){return this},u.AsyncIterator=D,u.async=function(e,t,r,o){var n=new D(C(e,t,r,o));return u.isGeneratorFunction(t)?n:n.next().then(function(e){return e.done?e.value:n.next()})},S(b),b[l]="Generator",b[s]=function(){return this},b.toString=function(){return"[object Generator]"},u.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var o=t.pop();if(o in e)return r.value=o,r.done=!1,r}return r.done=!0,r}},u.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=r)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(o,n){return i.type="throw",i.arg=e,t.next=o,n&&(t.method="next",t.arg=r),!!n}for(var a=this.tryEntries.length-1;a>=0;--a){var s=this.tryEntries[a],i=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var l=n.call(s,"catchLoc"),c=n.call(s,"finallyLoc");if(l&&c){if(this.prev<s.catchLoc)return o(s.catchLoc,!0);if(this.prev<s.finallyLoc)return o(s.finallyLoc)}else if(l){if(this.prev<s.catchLoc)return o(s.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return o(s.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var s=a?a.completion:{};return s.type=e,s.arg=t,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var n=o.arg;k(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,o){return this.delegate={iterator:T(e),resultName:t,nextLoc:o},"next"===this.method&&(this.arg=r),f}}}function C(e,t,r,o){var n=t&&t.prototype instanceof x?t:x,a=Object.create(n.prototype),s=new A(o||[]);return a._invoke=function(e,t,r){var o=d;return function(n,a){if(o===h)throw new Error("Generator is already running");if(o===g){if("throw"===n)throw a;return N()}for(r.method=n,r.arg=a;;){var s=r.delegate;if(s){var i=_(s,r);if(i){if(i===f)continue;return i}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=w(e,t,r);if("normal"===l.type){if(o=r.done?g:p,l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=g,r.method="throw",r.arg=l.arg)}}}(e,r,s),a}function w(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function x(){}function I(){}function L(){}function S(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function D(e){var t;this._invoke=function(r,o){function a(){return new Promise(function(t,a){!function t(r,o,a,s){var i=w(e[r],e,o);if("throw"!==i.type){var l=i.arg,c=l.value;return c&&"object"==typeof c&&n.call(c,"__await")?Promise.resolve(c.__await).then(function(e){t("next",e,a,s)},function(e){t("throw",e,a,s)}):Promise.resolve(c).then(function(e){l.value=e,a(l)},s)}s(i.arg)}(r,o,t,a)})}return t=t?t.then(a,a):a()}}function _(e,t){var o=e.iterator[t.method];if(o===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=r,_(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=w(o,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,f;var a=n.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,f):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function F(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(F,this),this.reset(!0)}function T(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function t(){for(;++o<e.length;)if(n.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=r,t.done=!0,t};return a.next=a}}return{next:N}}function N(){return{value:r,done:!0}}}(function(){return this}()||Function("return this")())},lC5x:function(e,t,r){e.exports=r("XqSp")},lVfG:function(e,t,r){"use strict";var o=String.prototype.replace,n=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return o.call(e,n,"+")},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"),n=r.n(o),a=r("lC5x"),s=r.n(a),i=r("J0Oq"),l=r.n(i),c=r("6Mk3"),u=r("93Ik"),d=r("7qQh"),p=(r("0irN"),r("3E4D")),h=r("Ch4/"),g=r("Mk6G"),f=r("P9l9"),m=r("0xDb"),v=r("G69j"),y={year:(new Date).getFullYear(),month:(new Date).getMonth(),day:(new Date).getDate()},b={name:"addIntegralSytem",mixins:[v.a],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"}],wMShopOption:[{label:"所有店铺",value:"1"}],wMGoodOption:[{label:"所有商品",value:"1"}],uuid:"",options:[0,1,2,3,4,5],isAdd:!0,scencs:"integral",wmuuid:"",ruleForm:{integralStrategyId:"",enterpriseId:"",strategyName:"",strategyType:2,useCrowd:"1",crowdJson:"",selectorParams:"",integralGetStatus:"1",integralGetStrategy:"1",integralGetFreezeDays:1,integralGetEffectiveDays:1,integralUseStatus:"0",integralUse:{fee:"",integral:""},perpetualFlag:1,channelList:[{integralStrategyChannelId:"",enterpriseId:"",integralStrategyId:"",channelType:"1",openStatus:!0,channelRelationEnterpriseType:"1",channelRelationStoreType:"1",channelStoreType:"-1",channelRelationProType:"1",integralUseDiscountControl:"1",integralUseDiscountControlUpper:"0.0",integralUseDiscountControlLower:"0.0",useProportionalRestriction:"0.0",strategyGoodsRelationIdArr:[],storeRelationIdArr:[],enterpriseRelationIdArr:[]},{integralStrategyChannelId:"",enterpriseId:"",integralStrategyId:"",channelType:"9",openStatus:!0,channelRelationEnterpriseType:"1",channelRelationStoreType:"1",channelStoreType:"-1",channelRelationProType:"1",integralUseDiscountControl:"1",integralUseDiscountControlUpper:"0.0",integralUseDiscountControlLower:"0.0",useProportionalRestriction:"0.0",strategyGoodsRelationIdArr:[],storeRelationIdArr:[],enterpriseRelationIdArr:[]}],perpetualDate:[new Date(y.year,y.month,y.day,0,0).getTime(),new Date(y.year,y.month,y.day,23,59).getTime()]},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)},checkListValue:function(e){var t=this;return l()(s.a.mark(function r(){var o,n,a,i,l,c;return s.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(o={flag:!0,text:""},!e.channelList.length){r.next=37;break}n=0;case 3:if(!(n<e.channelList.length)){r.next=37;break}if(!e.channelList[n].openStatus){r.next=34;break}if(e.channelList[n].openStatus&&2==e.channelList[n].integralUseDiscountControl&&(e.channelList[n].integralUseDiscountControlUpper&&e.channelList[n].integralUseDiscountControlLower||(o.flag=!1,o.text="请填写折扣"),(parseInt(e.channelList[n].integralUseDiscountControlUpper)>10||parseInt(e.channelList[n].integralUseDiscountControlLower)>10||Number(e.channelList[n].integralUseDiscountControlUpper)<=Number(e.channelList[n].integralUseDiscountControlLower))&&(o.flag=!1,o.text="折扣格式有误")),1!=e.channelList[n].channelType||e.channelList[n].enterpriseRelationIdArr.length||(o.flag=!1,o.text="请选择商户"),9!=e.channelList[n].channelType||e.channelList[n].enterpriseRelationIdArr.length||(o.flag=!1,o.text="请选择商户"),3!=e.channelList[n].channelType){r.next=21;break}if(a=t.$refs.storeGroup,i=null,!(a instanceof Array)){r.next=17;break}return r.next=14,t.$refs.storeGroup[0].isStoreSave();case 14:i=r.sent,r.next=20;break;case 17:return r.next=19,t.$refs.storeGroup.isStoreSave();case 19:i=r.sent;case 20:i||(o.flag=!1,o.text="请选择门店");case 21:if(9!=e.channelList[n].channelType||!t.isJinHua){r.next=34;break}if(l=t.$refs.wmstoreGroup,c=null,!(l instanceof Array)){r.next=30;break}return r.next=27,t.$refs.wmstoreGroup[0].isStoreSave();case 27:c=r.sent,r.next=33;break;case 30:return r.next=32,t.$refs.wmstoreGroup.isStoreSave();case 32:c=r.sent;case 33:c||(o.flag=!1,o.text="请选择门店");case 34:n++,r.next=3;break;case 37:return r.abrupt("return",o);case 38:case"end":return r.stop()}},r,t)}))()},submitForm:function(e){var t=this,r=this;if(!r.tpnEditBool){var o=JSON.parse(n()(r.ruleForm));this.$refs[e].validate(function(e){if(!e)return Object(m.b)("error submit!!"),!1;if(o.strategyName){var a=!o.integralUse.fee||""==String(o.integralUse.integral);if(1==o.integralUseStatus&&a)r.$message.error("请填写抵现规则");else{if(1==o.integralUseStatus){if(!Number(o.integralUse.fee))return void p.a.showmsg("抵现规则中的抵现金额不能为0","error");if(!Number(o.integralUse.integral))return void p.a.showmsg("抵现规则中的使用积分不能为0","error")}r.checkListValue(o).then(function(e){if(e.flag){o.channelList.forEach(function(e,t){e.openStatus=1==e.openStatus?1:0,1==e.channelType&&(e.strategyGoodsRelationIdArr=e.goodsRelationIdArr,delete e.goodsRelationIdArr),e.enterpriseRelationIdArr&&e.enterpriseRelationIdArr.length||(e.enterpriseRelationIdArr=[]),e.storeRelationIdArr&&e.storeRelationIdArr.length||(e.storeRelationIdArr=[]),e.strategyGoodsRelationIdArr&&e.strategyGoodsRelationIdArr.length||(e.strategyGoodsRelationIdArr=[]),"9"==e.channelType&&(e.storeControlId=r.wmuuid)});var a=!0;o.channelList.forEach(function(e){if(1==e.channelType&&1==e.openStatus){if(2==e.channelRelationProType&&t.valueWx.length<1)return p.a.showmsg("请选择商品品牌","error"),a=!1;if(3==e.channelRelationProType&&t.cateDataWx.length<1)return p.a.showmsg("请选择商品品类","error"),a=!1;if(4==e.channelRelationProType&&t.goodsListWx.length<1)return p.a.showmsg("请选择单件商品","error"),a=!1}}),2==o.useCrowd&&t.selectCount<1?p.a.showmsg("请选择人群定向","error"):(delete o.selectorParamsId,o.integralUse=n()(o.integralUse),1===o.perpetualFlag||(o.startValidTime=o.perpetualDate[0],o.endValidTime=o.perpetualDate[1]),delete o.perpetualDate,a&&r.saveForm(o))}else p.a.showmsg(e.text,"error")})}}else p.a.showmsg("请填写策略名称","error")})}},saveForm:function(e){var t=this,r=e;Object(f.c)("/api-admin/save-member-integral-strategy",r).then(function(e){Object(m.b)(e.data.result);var r=e.data;if(0==r.errorCode)return t.$message({message:"添加成功",type:"success"}),void t.changeRoute("/pointSystem");h.a.errorMsg(r)}).catch(function(e){Object(m.b)(e)})},bouncer:function(e){return e.filter(function(e){return!(!e||""===e)})},toInput:function(e){var t=g.a.getByteVal(e.target.value,this.inputFlagNum);this.ruleForm.strategyName=t.trim(),this.cateNameLength=g.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=g.a.getCharVal(String(this.ruleForm.integralUse.fee).replace(/[^\.\d]/g,""),6),this.ruleForm.integralUse.integral=g.a.getCharVal(String(this.ruleForm.integralUse.integral).replace(/[^\d]/g,""),8),this.ruleForm.channelList[0].useProportionalRestriction=g.a.getCharVal(String(this.ruleForm.channelList[0].useProportionalRestriction).replace(/[^\d]/g,""),3)},formatInputNumBlur:function(){this.ruleForm.integralUse.fee=Number(g.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(f.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}h.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(m.b)(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(f.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(m.b)(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(f.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)}h.a.errorMsg(r)}).catch(function(e){Object(m.b)(e)})},getLoginInfo:function(){var e=this;Object(f.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):h.a.errorMsg(r)}).catch(function(e){Object(m.b)(e)})}},components:{topNavNew:c.a,addGoods:u.a,goodsCate:d.a},mounted:function(){this.getGoodsBrand(),this.getCliqueInfo(),this.getLoginInfo()}},C={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("el-form-item",{key:o,attrs:{label:"适用微信商城",prop:""}},[r("el-switch",{model:{value:t.openStatus,callback:function(r){e.$set(t,"openStatus",r)},expression:"item.openStatus"}})],1),e._v(" "),t.openStatus?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._e(),e._v(" "),9==t.channelType?[r("el-form-item",{key:o,attrs:{label:"微盟渠道",prop:""}},[r("el-switch",{model:{value:t.openStatus,callback:function(r){e.$set(t,"openStatus",r)},expression:"item.openStatus"}})],1),e._v(" "),1==t.openStatus?r("div",{key:o,staticClass:"form-child margin-20"},[r("el-form-item",{attrs:{label:"选择商户"}},[r("el-select",{attrs:{size:"small",placeholder:"请选择",multiple:""},model:{value:t.enterpriseRelationIdArr,callback:function(r){e.$set(t,"enterpriseRelationIdArr",r)},expression:"item.enterpriseRelationIdArr"}},e._l(e.mechantOption,function(e,t){return r("el-option",{key:t,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"选择店铺"}},[e.isJinHua?r("vue-gic-store-new",{ref:"wmstoreGroup",refInFor:!0,attrs:{scenesVal:e.scencs,options:e.options,isAdd:e.isAdd,uuid:e.wmuuid},on:{"update:uuid":function(t){e.wmuuid=t}}}):r("el-select",{model:{value:e.storeValue,callback:function(t){e.storeValue=t},expression:"storeValue"}},[r("el-option",{attrs:{label:"所有门店",value:""}})],1)],1),e._v(" "),r("el-form-item",{staticClass:"padding-0",attrs:{label:"微盟商品"}},[r("el-select",{attrs:{placeholder:"请选择"},model:{value:t.channelRelationProType,callback:function(r){e.$set(t,"channelRelationProType",r)},expression:"item.channelRelationProType"}},e._l(e.wMGoodOption,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:"input-margin-b",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._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("%")])],2)],1),e._v(" "),r("el-form-item",{attrs:{label:"策略有效期",prop:""}},[r("el-radio",{attrs:{label:1},model:{value:e.ruleForm.perpetualFlag,callback:function(t){e.$set(e.ruleForm,"perpetualFlag",t)},expression:"ruleForm.perpetualFlag"}},[e._v("永久有效")]),e._v(" "),r("el-radio",{attrs:{label:0},model:{value:e.ruleForm.perpetualFlag,callback:function(t){e.$set(e.ruleForm,"perpetualFlag",t)},expression:"ruleForm.perpetualFlag"}},[e._v("\n 在该时段内有效\n "),0===e.ruleForm.perpetualFlag?r("el-date-picker",{attrs:{type:"datetimerange","start-placeholder":"开始日期","end-placeholder":"结束日期",format:"yyyy-MM-dd HH:mm","value-format":"timestamp","default-time":["00:00:00","23:59:59"]},model:{value:e.ruleForm.perpetualDate,callback:function(t){e.$set(e.ruleForm,"perpetualDate",t)},expression:"ruleForm.perpetualDate"}}):e._e()],1)],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 w=r("C7Lr")(b,C,!1,function(e){r("ttWc")},"data-v-9dd5ad76",null);t.default=w.exports},ttWc:function(e,t){},yWzc:function(e,t){}});
//# sourceMappingURL=7.e0dc07c838093ee0105c.js.map
\ 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([8],{"0CQ3":function(e,t,r){"use strict";var o=r("8PIK"),n=Object.prototype.hasOwnProperty,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:o.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},i=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,r){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,i=/(\[[^[\]]*])/.exec(o),s=i?o.slice(0,i.index):o,l=[];if(s){if(!r.plainObjects&&n.call(Object.prototype,s)&&!r.allowPrototypes)return;l.push(s)}for(var c=0;null!==(i=a.exec(o))&&c<r.depth;){if(c+=1,!r.plainObjects&&n.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,n=e.length-1;n>=0;--n){var a,i=e[n];if("[]"===i&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var s="["===i.charAt(0)&&"]"===i.charAt(i.length-1)?i.slice(1,-1):i,l=parseInt(s,10);r.parseArrays||""!==s?!isNaN(l)&&i!==s&&String(l)===s&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(a=[])[l]=o:a[s]=o:a={0:o}}o=a}return o}(l,t,r)}};e.exports=function(e,t){var r=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||o.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth?e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null===e||void 0===e)return r.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var r,s={},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,c=t.parameterLimit===1/0?void 0:t.parameterLimit,u=l.split(t.delimiter,c),d=-1,p=t.charset;if(t.charsetSentinel)for(r=0;r<u.length;++r)0===u[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===u[r]?p="utf-8":"utf8=%26%2310003%3B"===u[r]&&(p="iso-8859-1"),d=r,r=u.length);for(r=0;r<u.length;++r)if(r!==d){var h,g,f=u[r],m=f.indexOf("]="),v=-1===m?f.indexOf("="):m+1;-1===v?(h=t.decoder(f,a.decoder,p),g=t.strictNullHandling?null:""):(h=t.decoder(f.slice(0,v),a.decoder,p),g=t.decoder(f.slice(v+1),a.decoder,p)),g&&t.interpretNumericEntities&&"iso-8859-1"===p&&(g=i(g)),g&&t.comma&&g.indexOf(",")>-1&&(g=g.split(",")),n.call(s,h)?s[h]=o.combine(s[h],g):s[h]=g}return s}(e,r):e,c=r.plainObjects?Object.create(null):{},u=Object.keys(l),d=0;d<u.length;++d){var p=u[d],h=s(p,l[p],r);c=o.merge(c,h,r)}return o.compact(c)}},"0irN":function(e,t){},"0xDb":function(e,t,r){"use strict";r.d(t,"b",function(){return a}),t.a=function(e,t){var r={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length)));for(var o in r)new RegExp("("+o+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?r[o]:("00"+r[o]).substr((""+r[o]).length)));return t};var o=r("ZLEe"),n=(r.n(o),r("hRKE")),a=(r.n(n),function(e){0})},"26lS":function(e,t){},"3E4D":function(e,t,r){"use strict";var o=r("TcQY");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("L+o2"),__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:{}},n={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 a=r("C7Lr")(o,n,!1,function(e){r("Vzx8")},"data-v-2e25ceb8",null);t.a=a.exports},"7qQh":function(e,t,r){"use strict";var o=r("HzJ8"),n=r.n(o),a=r("P9l9"),i=r("0xDb"),s=(r("CtzY"),{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(a.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 s=!0,l=!1,c=void 0;try{for(var u,d=n()(r.arr);!(s=(u=d.next()).done);s=!0){u.value.classIndex=-1}}catch(e){l=!0,c=e}finally{try{!s&&d.return&&d.return()}finally{if(l)throw c}}e.classIndex=t;var p={categoryId:e.categoryId};Object(a.e)("/api-mall/list-mall-goods-children-category",p).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.b)(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 n=this;if(o.cancelBubble=!0,this.allDate.length=t+1,0===t){var i={search:e};Object(a.e)("/api-mall/list-mall-goods-all-category",i).then(function(t){0===t.data.errorCode?(n.allDate=[],n.allDate.push({search:""!==e?e:"",arr:t.data.result})):n.$message.error(t.data.message)})}else{var s="";for(var l in this.allDate[t-1].arr)-1!==this.allDate[t-1].arr[l].classIndex&&(s=this.allDate[t-1].arr[l].categoryId);var c={search:e,categoryId:s};Object(a.e)("/api-mall/list-mall-goods-children-category",c).then(function(r){0===r.data.errorCode?(n.allDate[t]={search:""!==e?e:"",arr:r.data.result},n.refreshStatus=!n.refreshStatus):n.$message.error(r.data.message)})}},searchBlur:function(e){Object(i.b)(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(n,a){return r("div",{key:n.categoryId,staticClass:"goods-cate-item",class:n.classIndex===a?"cate-item-active":"",on:{click:function(r){return r.stopPropagation(),e.getNextCateList(n,a,t,o)}}},[r("span",[e._v(e._s(n.categoryName))]),e._v(" "),n.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")(s,l,!1,function(e){r("yWzc")},"data-v-7fe7171c",null);t.a=c.exports},"8Hsn":function(e,t){},"8PIK":function(e,t,r){"use strict";var o=Object.prototype.hasOwnProperty,n=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),i=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:i,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],o=0;o<t.length;++o)for(var a=t[o],i=a.obj[a.prop],s=Object.keys(i),l=0;l<s.length;++l){var c=s[l],u=i[c];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:i,prop:c}),r.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(n(r)){for(var o=[],a=0;a<r.length;++a)void 0!==r[a]&&o.push(r[a]);t.obj[t.prop]=o}}}(t),e},decode:function(e,t,r){var o=e.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},encode:function(e,t,r){if(0===e.length)return e;var o="string"==typeof e?e:String(e);if("iso-8859-1"===r)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var n="",i=0;i<o.length;++i){var s=o.charCodeAt(i);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?n+=o.charAt(i):s<128?n+=a[s]:s<2048?n+=a[192|s>>6]+a[128|63&s]:s<55296||s>=57344?n+=a[224|s>>12]+a[128|s>>6&63]+a[128|63&s]:(i+=1,s=65536+((1023&s)<<10|1023&o.charCodeAt(i)),n+=a[240|s>>18]+a[128|s>>12&63]+a[128|s>>6&63]+a[128|63&s])}return n},isBuffer:function(e){return!(!e||"object"!=typeof 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(n(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(a&&(a.plainObjects||a.allowPrototypes)||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var s=t;return n(t)&&!n(r)&&(s=i(t,a)),n(t)&&n(r)?(r.forEach(function(r,n){if(o.call(t,n)){var i=t[n];i&&"object"==typeof i&&r&&"object"==typeof r?t[n]=e(i,r,a):t.push(r)}else t[n]=r}),t):Object.keys(r).reduce(function(t,n){var i=r[n];return o.call(t,n)?t[n]=e(t[n],i,a):t[n]=i,t},s)}}},"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"),n={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="")}}},a={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")(n,a,!1,function(e){r("26lS")},"data-v-bbbbd62a",null);t.a=i.exports},"Ch4/":function(e,t,r){"use strict";var o=r("TcQY");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})}}}},CtzY:function(e,t,r){"use strict";var o=r("EU61"),n=r("0CQ3"),a=r("lVfG");e.exports={formats:a,parse:n,stringify:o}},EU61:function(e,t,r){"use strict";var o=r("8PIK"),n=r("lVfG"),a=Object.prototype.hasOwnProperty,i={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,l=Array.prototype.push,c=function(e,t){l.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,formatter:n.formatters[n.default],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,r,n,a,i,l,u,p,h,g,f,m,v){var y=t;if("function"==typeof u?y=u(r,y):y instanceof Date?y=g(y):"comma"===n&&s(y)&&(y=y.join(",")),null===y){if(a)return l&&!m?l(r,d.encoder,v):r;y=""}if("string"==typeof y||"number"==typeof y||"boolean"==typeof y||o.isBuffer(y))return l?[f(m?r:l(r,d.encoder,v))+"="+f(l(y,d.encoder,v))]:[f(r)+"="+f(String(y))];var b,C=[];if(void 0===y)return C;if(s(u))b=u;else{var w=Object.keys(y);b=p?w.sort(p):w}for(var x=0;x<b.length;++x){var I=b[x];i&&null===y[I]||(s(y)?c(C,e(y[I],"function"==typeof n?n(r,I):r,n,a,i,l,u,p,h,g,f,m,v)):c(C,e(y[I],r+(h?"."+I:"["+I+"]"),n,a,i,l,u,p,h,g,f,m,v)))}return C};e.exports=function(e,t){var r,o=e,l=function(e){if(!e)return d;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=n.default;if(void 0!==e.format){if(!a.call(n.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var o=n.formatters[r],i=d.filter;return("function"==typeof e.filter||s(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:void 0===e.allowDots?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:i,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}}(t);"function"==typeof l.filter?o=(0,l.filter)("",o):s(l.filter)&&(r=l.filter);var u,h=[];if("object"!=typeof o||null===o)return"";u=t&&t.arrayFormat in i?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var g=i[u];r||(r=Object.keys(o)),l.sort&&r.sort(l.sort);for(var f=0;f<r.length;++f){var m=r[f];l.skipNulls&&null===o[m]||c(h,p(o[m],m,g,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.formatter,l.encodeValuesOnly,l.charset))}var v=h.join(l.delimiter),y=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),v.length>0?y+v:""}},G69j:function(e,t,r){"use strict";var o=r("P9l9");t.a={data:function(){return{isJinHua:!1,storeValue:""}},created:function(){this.getUserInfo()},methods:{getUserInfo:function(){var e=this;Object(o.a)("/api-auth/get-login-user-info",{}).then(function(t){0===t.data.errorCode&&("ff8080816a36326c016a53380d8b5f52"===t.data.result.enterpriseId?e.isJinHua=!0:e.wMGoodOption=[{label:"所有商品",value:"1"}])})}}}},HzJ8:function(e,t,r){e.exports={default:r("P/sN"),__esModule:!0}},J0Oq:function(e,t,r){"use strict";t.__esModule=!0;var o,n=r("rVsN"),a=(o=n)&&o.__esModule?o:{default:o};t.default=function(e){return function(){var t=e.apply(this,arguments);return new a.default(function(e,r){return function o(n,i){try{var s=t[n](i),l=s.value}catch(e){return void r(e)}if(!s.done)return a.default.resolve(l).then(function(e){o("next",e)},function(e){o("throw",e)});e(l)}("next")})}}},"KjG/":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r("3cXf"),n=r.n(o),a=r("lC5x"),i=r.n(a),s=r("J0Oq"),l=r.n(s),c=r("6Mk3"),u=r("93Ik"),d=r("7qQh"),p=(r("0irN"),r("3E4D")),h=r("Ch4/"),g=r("Mk6G"),f=r("P9l9"),m=r("0xDb"),v=r("G69j"),y={year:(new Date).getFullYear(),month:(new Date).getMonth(),day:(new Date).getDate()},b={name:"addIntegralSytem",mixins:[v.a],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"}],wMShopOption:[{label:"所有店铺",value:"1"}],wMGoodOption:[{label:"所有商品",value:"1"}],uuid:"",options:[0,1,2,3,4,5],isAdd:!0,scencs:"integral",wmuuid:"",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:""},perpetualFlag:1,channelList:[{integralStrategyChannelId:"ff808081649321d20164a1fafbdd01df",enterpriseId:"ff8080815dacd3a2015dacd3ef5c0000",integralStrategyId:"ff80808163a7a09b0163b01171e202db",channelType:"1",openStatus:!0,channelRelationEnterpriseType:"1",channelRelationStoreType:"1",channelStoreType:"-1",channelRelationProType:"1",integralUseDiscountControl:"1",integralUseDiscountControlUpper:"0.0",integralUseDiscountControlLower:"0.0",useProportionalRestriction:"0.0",strategyGoodsRelationIdArr:[],storeRelationIdArr:[],enterpriseRelationIdArr:[]}],perpetualDate:[new Date(y.year,y.month,y.day,0,0).getTime(),new Date(y.year,y.month,y.day,23,59).getTime()]},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(m.b)(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)},checkListValue:function(e){var t=this;return l()(i.a.mark(function r(){var o,n,a,s;return i.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(o={flag:!0,text:""},!e.channelList.length){r.next=24;break}n=0;case 3:if(!(n<e.channelList.length)){r.next=24;break}if(!e.channelList[n].openStatus){r.next=21;break}if(2==e.channelList[n].integralUseDiscountControl&&(e.channelList[n].integralUseDiscountControlUpper&&e.channelList[n].integralUseDiscountControlLower||(o.flag=!1,o.text="请填写折扣"),(parseInt(e.channelList[n].integralUseDiscountControlUpper)>10||parseInt(e.channelList[n].integralUseDiscountControlLower)>10||Number(e.channelList[n].integralUseDiscountControlUpper)<=Number(e.channelList[n].integralUseDiscountControlLower))&&(o.flag=!1,o.text="折扣格式有误")),1!=e.channelList[n].channelType||e.channelList[n].enterpriseRelationIdArr.length||(o.flag=!1,o.text="请选择商户"),9!=e.channelList[n].channelType||e.channelList[n].enterpriseRelationIdArr.length||(o.flag=!1,o.text="请选择商户"),9!=e.channelList[n].channelType||!t.isJinHua){r.next=21;break}if(a=t.$refs.wmstoreGroup,s=null,!(a instanceof Array)){r.next=17;break}return r.next=14,t.$refs.wmstoreGroup[0].isStoreSave();case 14:s=r.sent,r.next=20;break;case 17:return r.next=19,t.$refs.wmstoreGroup.isStoreSave();case 19:s=r.sent;case 20:s||(o.flag=!1,o.text="请选择门店");case 21:n++,r.next=3;break;case 24:return r.abrupt("return",o);case 25:case"end":return r.stop()}},r,t)}))()},submitForm:function(e){var t=this,r=this;r.tpnEditBool||this.$refs[e].validate(function(e){if(!e)return Object(m.b)("error submit!!"),!1;var o=JSON.parse(n()(r.ruleForm));if(o.strategyName){var a=!o.integralUse.fee||""==String(o.integralUse.integral);if(1==o.integralUseStatus&&a)r.$message.error("请填写抵现规则");else{if(1==o.integralUseStatus){if(!Number(o.integralUse.fee))return void p.a.showmsg("抵现规则中的抵现金额不能为0","error");if(!Number(o.integralUse.integral))return void p.a.showmsg("抵现规则中的使用积分不能为0","error")}r.checkListValue(o).then(function(e){if(e.flag){o.channelList.forEach(function(e,t){e.openStatus=1==e.openStatus?1:0,1==e.channelType&&(e.strategyGoodsRelationIdArr=e.goodsRelationIdArr,delete e.goodsRelationIdArr),e.enterpriseRelationIdArr&&e.enterpriseRelationIdArr.length||(e.enterpriseRelationIdArr=[]),e.storeRelationIdArr&&e.storeRelationIdArr.length||(e.storeRelationIdArr=[]),e.strategyGoodsRelationIdArr&&e.strategyGoodsRelationIdArr.length||(e.strategyGoodsRelationIdArr=[]),"9"==e.channelType&&(e.storeControlId=r.wmuuid)});var a=!0;o.channelList.forEach(function(e){if(1==e.channelType&&1==e.openStatus){if(2==e.channelRelationProType&&t.valueWx.length<1)return p.a.showmsg("请选择商品品牌","error"),a=!1;if(3==e.channelRelationProType&&t.cateDataWx.length<1)return p.a.showmsg("请选择商品品类","error"),a=!1;if(4==e.channelRelationProType&&t.goodsListWx.length<1)return p.a.showmsg("请选择单件商品","error"),a=!1}}),2==o.useCrowd&&t.selectCount<1?p.a.showmsg("请选择人群定向","error"):(delete o.selectorParamsId,o.integralUse=n()(o.integralUse),1===o.perpetualFlag||(o.startValidTime=o.perpetualDate[0],o.endValidTime=o.perpetualDate[1]),delete o.perpetualDate,a&&r.saveForm(o))}else p.a.showmsg(e.text,"error")})}}else p.a.showmsg("请填写策略名称","error")})},saveForm:function(e){var t=this,r=e;Object(f.c)("/api-admin/save-member-integral-strategy",r).then(function(e){Object(m.b)(e.data.result);var r=e.data;if(0==r.errorCode)return t.$message({message:"保存成功",type:"success"}),void t.changeRoute("/pointSystem");h.a.errorMsg(r)}).catch(function(e){Object(m.b)(e)})},toInput:function(e){var t=g.a.getByteVal(e.target.value,this.inputFlagNum);this.ruleForm.strategyName=t.trim(),this.cateNameLength=g.a.getZhLen(this.ruleForm.strategyName)},inputFocus:function(e,t,r){this.tempTag=t,this.tempData=e,this.tempFlag=r||""},formatInputChange:function(e){if(Object(m.b)(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(m.b)(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=g.a.getCharVal(String(this.ruleForm.integralUse.fee).replace(/[^\.\d]/g,""),6),this.ruleForm.integralUse.integral=g.a.getCharVal(String(this.ruleForm.integralUse.integral).replace(/[^\.\d]/g,""),8),this.ruleForm.channelList[0].useProportionalRestriction=g.a.getCharVal(String(this.ruleForm.channelList[0].useProportionalRestriction).replace(/[^\d]/g,""),3)},formatInputNumBlur:function(){this.ruleForm.integralUse.fee=Number(g.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(f.e)("/api-admin/get-member-integral-strategy",r).then(function(r){Object(m.b)(r.data.result);var o=r.data;if(0==o.errorCode){var n=r.data.result.enterpriseList;n.forEach(function(e,t){e.label=e.brandName,e.value=e.enterpriseId}),t.mechantOption=n;var a=r.data.result.strategy;if(a.channelList&&a.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==a.useCrowd){var i=JSON.parse(a.crowdJson);e.selectCount=0,i.list&&i.list.forEach(function(t){t.list&&(e.selectCount+=t.list.length)}),e.useId=a.selectorParamsId,e.hasSearchData=a.crowdJson}return a.integralUse=JSON.parse(a.integralUse),a.integralUse||(a.integralUse={},a.integralUse.fee="",a.integralUse.integral=""),t.ruleForm=t.formatData(a),t.cateNameLength=g.a.getZhLen(t.ruleForm.strategyName),t.$set(t.ruleForm,"perpetualDate",[]),t.ruleForm.perpetualDate[1]=e.ruleForm.endValidTime,void(t.ruleForm.perpetualDate[0]=e.ruleForm.startValidTime)}h.a.errorMsg(o)}).catch(function(e){Object(m.b)(e),t.$message.error({duration:1e3,message:e.message})})},bouncer:function(e){return e.filter(function(e){return!(!e||""===e)})},formatData:function(e){var t=this;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,r){e.openStatus=0!=e.openStatus,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=[]),9==e.channelType&&(t.wmuuid=e.storeControlId,t.isAdd=!1)}),!e.channelList.some(function(e){return 9==e.channelType})&&e.channelList.push({integralStrategyChannelId:"",enterpriseId:"",integralStrategyId:"",channelType:"9",openStatus:!0,channelRelationEnterpriseType:"1",channelRelationStoreType:"1",channelStoreType:"-1",channelRelationProType:"1",integralUseDiscountControl:"1",integralUseDiscountControlUpper:"0.0",integralUseDiscountControlLower:"0.0",useProportionalRestriction:"0.0",strategyGoodsRelationIdArr:[],storeRelationIdArr:[],enterpriseRelationIdArr:[]}),e},getGoodsBrand:function(){var e=this;Object(f.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}h.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(m.b)(this.ruleForm.useCrowd)},showPeople:function(){this.dialogVisiblePeople=!0},getData:function(){this.$refs.peopleFilter.confirmSet()},findFilter:function(e){var t=this;if(Object(m.b)(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(m.b)(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(f.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(m.b)(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(f.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):h.a.errorMsg(r)}).catch(function(e){Object(m.b)(e)})}},components:{topNavNew:c.a,addGoods:u.a,goodsCate:d.a}},C={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("el-form-item",{key:o,attrs:{label:"适用微信商城",prop:""}},[r("el-switch",{attrs:{"active-text":"启用","inactive-text":"停用"},model:{value:t.openStatus,callback:function(r){e.$set(t,"openStatus",r)},expression:"item.openStatus"}})],1),e._v(" "),t.openStatus?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._e(),e._v(" "),9==t.channelType?[r("el-form-item",{key:o,attrs:{label:"微盟渠道",prop:""}},[r("el-switch",{model:{value:t.openStatus,callback:function(r){e.$set(t,"openStatus",r)},expression:"item.openStatus"}})],1),e._v(" "),t.openStatus?r("div",{key:o,staticClass:"form-child margin-20"},[r("el-form-item",{attrs:{label:"选择商户"}},[r("el-select",{attrs:{size:"small",placeholder:"请选择",multiple:""},model:{value:t.enterpriseRelationIdArr,callback:function(r){e.$set(t,"enterpriseRelationIdArr",r)},expression:"item.enterpriseRelationIdArr"}},e._l(e.mechantOption,function(e,t){return r("el-option",{key:t,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"选择店铺"}},[e.isJinHua?r("vue-gic-store-new",{ref:"wmstoreGroup",refInFor:!0,attrs:{scenesVal:e.scencs,options:e.options,isAdd:e.isAdd,uuid:e.wmuuid},on:{"update:uuid":function(t){e.wmuuid=t}}}):r("el-select",{model:{value:e.storeValue,callback:function(t){e.storeValue=t},expression:"storeValue"}},[r("el-option",{attrs:{label:"所有门店",value:""}})],1)],1),e._v(" "),r("el-form-item",{staticClass:"padding-0",attrs:{label:"微盟商品"}},[r("el-select",{attrs:{placeholder:"请选择"},model:{value:t.channelRelationProType,callback:function(r){e.$set(t,"channelRelationProType",r)},expression:"item.channelRelationProType"}},e._l(e.wMGoodOption,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:"input-margin-b",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._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",{attrs:{label:"策略有效期",prop:""}},[r("el-radio",{attrs:{label:1},model:{value:e.ruleForm.perpetualFlag,callback:function(t){e.$set(e.ruleForm,"perpetualFlag",t)},expression:"ruleForm.perpetualFlag"}},[e._v("永久有效")]),e._v(" "),r("el-radio",{attrs:{label:0},model:{value:e.ruleForm.perpetualFlag,callback:function(t){e.$set(e.ruleForm,"perpetualFlag",t)},expression:"ruleForm.perpetualFlag"}},[e._v("\n 在该时段内有效\n "),0===e.ruleForm.perpetualFlag?r("el-date-picker",{attrs:{type:"datetimerange","start-placeholder":"开始日期","end-placeholder":"结束日期",format:"yyyy-MM-dd HH:mm","value-format":"timestamp","default-time":["00:00:00","23:59:59"]},model:{value:e.ruleForm.perpetualDate,callback:function(t){e.$set(e.ruleForm,"perpetualDate",t)},expression:"ruleForm.perpetualDate"}}):e._e()],1)],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 w=r("C7Lr")(b,C,!1,function(e){r("8Hsn")},"data-v-1bbb6e10",null);t.default=w.exports},"L+o2":function(e,t,r){var o=r("ZuHZ"),n=o.JSON||(o.JSON={stringify:JSON.stringify});e.exports=function(e){return n.stringify.apply(n,arguments)}},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,n=0;n<e.length;n++){var a=e.charAt(n);if(1==r&&(encodeURI(a).length>2?o+=1:o+=.5),2==r&&(o+=1),o>=t){var i=o==t?n+1:n;return e.substr(0,i)}}},getByteVal:function(e,t){for(var r="",o=0,n=0;n<e.length&&(null!=e[n].match(/[^\x00-\xff]/gi)?o+=1:o+=.5,!(o>t));n++)r+=e[n];return r},getCharVal:function(e,t){for(var r="",o=0,n=0;n<e.length&&(null!=e[n].match(/[^\x00-\xff]/gi)?o+=2:o+=1,!(o>t));n++)r+=e[n];return r},regPos:function(e){return/^\d+(\.\d+)?$/.test(e)}}},"P/sN":function(e,t,r){r("MJJS"),r("at0p"),e.exports=r("eBrH")},P9l9:function(e,t,r){"use strict";r.d(t,"a",function(){return d}),r.d(t,"e",function(){return p}),r.d(t,"d",function(){return h}),r.d(t,"c",function(){return g}),r.d(t,"b",function(){return f});var o=r("rVsN"),n=r.n(o),a=r("lRwf"),i=r.n(a),s=r("CtzY"),l=r.n(s),c=r("TcQY"),u=(r.n(c),window.location.origin);-1!=u.indexOf("localhost")&&(u="http://gicdev.demogic.com"),i.a.axios.interceptors.request.use(function(e){return e},function(e){return c.Message.error({message:"请求超时!"}),n.a.resolve(e)}),i.a.axios.interceptors.response.use(function(e){if(!e.status||200!=e.status||"error"!=e.data.status)return e;c.Message.error({message:e.data.msg})},function(e){return 504==e.response.status||404==e.response.status||e.response.status,n.a.resolve(e)});var d=function(e,t){return t.requestProject="gic-clique",i.a.axios({method:"get",url:""+u+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:""+u+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:""+u+e,data:"{}",params:t,headers:{"Content-Type":"application/json;charset=UTF-8"}})},g=function(e,t){return i.a.axios({method:"post",url:""+u+e,data:t,params:{requestProject:"gic-clique"},headers:{"Content-Type":"application/json;charset=UTF-8"}})},f=function(e,t){return t.requestProject="gic-clique",i.a.axios({method:"post",url:""+u+e,data:t,headers:{}})}},Vzx8:function(e,t){},XqSp:function(e,t,r){var o=function(){return this}()||Function("return this")(),n=o.regeneratorRuntime&&Object.getOwnPropertyNames(o).indexOf("regeneratorRuntime")>=0,a=n&&o.regeneratorRuntime;if(o.regeneratorRuntime=void 0,e.exports=r("k9rz"),n)o.regeneratorRuntime=a;else try{delete o.regeneratorRuntime}catch(e){o.regeneratorRuntime=void 0}},eBrH:function(e,t,r){var o=r("xgeF"),n=r("PsHI");e.exports=r("ZuHZ").getIterator=function(e){var t=n(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return o(t.call(e))}},k9rz:function(e,t){!function(t){"use strict";var r,o=Object.prototype,n=o.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag",c="object"==typeof e,u=t.regeneratorRuntime;if(u)c&&(e.exports=u);else{(u=t.regeneratorRuntime=c?e.exports:{}).wrap=C;var d="suspendedStart",p="suspendedYield",h="executing",g="completed",f={},m={};m[i]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v(R([])));y&&y!==o&&n.call(y,i)&&(m=y);var b=S.prototype=x.prototype=Object.create(m);I.prototype=b.constructor=S,S.constructor=I,S[l]=I.displayName="GeneratorFunction",u.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===I||"GeneratorFunction"===(t.displayName||t.name))},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,S):(e.__proto__=S,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(b),e},u.awrap=function(e){return{__await:e}},L(D.prototype),D.prototype[s]=function(){return this},u.AsyncIterator=D,u.async=function(e,t,r,o){var n=new D(C(e,t,r,o));return u.isGeneratorFunction(t)?n:n.next().then(function(e){return e.done?e.value:n.next()})},L(b),b[l]="Generator",b[i]=function(){return this},b.toString=function(){return"[object Generator]"},u.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var o=t.pop();if(o in e)return r.value=o,r.done=!1,r}return r.done=!0,r}},u.values=R,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(A),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=r)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(o,n){return s.type="throw",s.arg=e,t.next=o,n&&(t.method="next",t.arg=r),!!n}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var n=o.arg;A(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,o){return this.delegate={iterator:R(e),resultName:t,nextLoc:o},"next"===this.method&&(this.arg=r),f}}}function C(e,t,r,o){var n=t&&t.prototype instanceof x?t:x,a=Object.create(n.prototype),i=new T(o||[]);return a._invoke=function(e,t,r){var o=d;return function(n,a){if(o===h)throw new Error("Generator is already running");if(o===g){if("throw"===n)throw a;return k()}for(r.method=n,r.arg=a;;){var i=r.delegate;if(i){var s=_(i,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=w(e,t,r);if("normal"===l.type){if(o=r.done?g:p,l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=g,r.method="throw",r.arg=l.arg)}}}(e,r,i),a}function w(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function x(){}function I(){}function S(){}function L(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function D(e){var t;this._invoke=function(r,o){function a(){return new Promise(function(t,a){!function t(r,o,a,i){var s=w(e[r],e,o);if("throw"!==s.type){var l=s.arg,c=l.value;return c&&"object"==typeof c&&n.call(c,"__await")?Promise.resolve(c.__await).then(function(e){t("next",e,a,i)},function(e){t("throw",e,a,i)}):Promise.resolve(c).then(function(e){l.value=e,a(l)},i)}i(s.arg)}(r,o,t,a)})}return t=t?t.then(a,a):a()}}function _(e,t){var o=e.iterator[t.method];if(o===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=r,_(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=w(o,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,f;var a=n.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,f):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function F(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(F,this),this.reset(!0)}function R(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function t(){for(;++o<e.length;)if(n.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=r,t.done=!0,t};return a.next=a}}return{next:k}}function k(){return{value:r,done:!0}}}(function(){return this}()||Function("return this")())},lC5x:function(e,t,r){e.exports=r("XqSp")},lVfG:function(e,t,r){"use strict";var o=String.prototype.replace,n=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return o.call(e,n,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},yWzc:function(e,t){}});
//# sourceMappingURL=8.3159773239a5b12d6d19.js.map
\ 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([8],{"0CQ3":function(e,t,r){"use strict";var o=r("8PIK"),n=Object.prototype.hasOwnProperty,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:o.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},i=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,r){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,i=/(\[[^[\]]*])/.exec(o),s=i?o.slice(0,i.index):o,l=[];if(s){if(!r.plainObjects&&n.call(Object.prototype,s)&&!r.allowPrototypes)return;l.push(s)}for(var c=0;null!==(i=a.exec(o))&&c<r.depth;){if(c+=1,!r.plainObjects&&n.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,n=e.length-1;n>=0;--n){var a,i=e[n];if("[]"===i&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var s="["===i.charAt(0)&&"]"===i.charAt(i.length-1)?i.slice(1,-1):i,l=parseInt(s,10);r.parseArrays||""!==s?!isNaN(l)&&i!==s&&String(l)===s&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(a=[])[l]=o:a[s]=o:a={0:o}}o=a}return o}(l,t,r)}};e.exports=function(e,t){var r=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||o.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth?e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null===e||void 0===e)return r.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var r,s={},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,c=t.parameterLimit===1/0?void 0:t.parameterLimit,u=l.split(t.delimiter,c),d=-1,p=t.charset;if(t.charsetSentinel)for(r=0;r<u.length;++r)0===u[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===u[r]?p="utf-8":"utf8=%26%2310003%3B"===u[r]&&(p="iso-8859-1"),d=r,r=u.length);for(r=0;r<u.length;++r)if(r!==d){var h,g,f=u[r],m=f.indexOf("]="),v=-1===m?f.indexOf("="):m+1;-1===v?(h=t.decoder(f,a.decoder,p),g=t.strictNullHandling?null:""):(h=t.decoder(f.slice(0,v),a.decoder,p),g=t.decoder(f.slice(v+1),a.decoder,p)),g&&t.interpretNumericEntities&&"iso-8859-1"===p&&(g=i(g)),g&&t.comma&&g.indexOf(",")>-1&&(g=g.split(",")),n.call(s,h)?s[h]=o.combine(s[h],g):s[h]=g}return s}(e,r):e,c=r.plainObjects?Object.create(null):{},u=Object.keys(l),d=0;d<u.length;++d){var p=u[d],h=s(p,l[p],r);c=o.merge(c,h,r)}return o.compact(c)}},"0irN":function(e,t){},"0xDb":function(e,t,r){"use strict";r.d(t,"b",function(){return a}),t.a=function(e,t){var r={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length)));for(var o in r)new RegExp("("+o+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?r[o]:("00"+r[o]).substr((""+r[o]).length)));return t};var o=r("ZLEe"),n=(r.n(o),r("hRKE")),a=(r.n(n),function(e){0})},"26lS":function(e,t){},"3E4D":function(e,t,r){"use strict";var o=r("TcQY");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("L+o2"),__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:{}},n={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 a=r("C7Lr")(o,n,!1,function(e){r("Vzx8")},"data-v-2e25ceb8",null);t.a=a.exports},"7qQh":function(e,t,r){"use strict";var o=r("HzJ8"),n=r.n(o),a=r("P9l9"),i=r("0xDb"),s=(r("CtzY"),{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(a.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 s=!0,l=!1,c=void 0;try{for(var u,d=n()(r.arr);!(s=(u=d.next()).done);s=!0){u.value.classIndex=-1}}catch(e){l=!0,c=e}finally{try{!s&&d.return&&d.return()}finally{if(l)throw c}}e.classIndex=t;var p={categoryId:e.categoryId};Object(a.e)("/api-mall/list-mall-goods-children-category",p).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.b)(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 n=this;if(o.cancelBubble=!0,this.allDate.length=t+1,0===t){var i={search:e};Object(a.e)("/api-mall/list-mall-goods-all-category",i).then(function(t){0===t.data.errorCode?(n.allDate=[],n.allDate.push({search:""!==e?e:"",arr:t.data.result})):n.$message.error(t.data.message)})}else{var s="";for(var l in this.allDate[t-1].arr)-1!==this.allDate[t-1].arr[l].classIndex&&(s=this.allDate[t-1].arr[l].categoryId);var c={search:e,categoryId:s};Object(a.e)("/api-mall/list-mall-goods-children-category",c).then(function(r){0===r.data.errorCode?(n.allDate[t]={search:""!==e?e:"",arr:r.data.result},n.refreshStatus=!n.refreshStatus):n.$message.error(r.data.message)})}},searchBlur:function(e){Object(i.b)(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(n,a){return r("div",{key:n.categoryId,staticClass:"goods-cate-item",class:n.classIndex===a?"cate-item-active":"",on:{click:function(r){return r.stopPropagation(),e.getNextCateList(n,a,t,o)}}},[r("span",[e._v(e._s(n.categoryName))]),e._v(" "),n.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")(s,l,!1,function(e){r("yWzc")},"data-v-7fe7171c",null);t.a=c.exports},"8PIK":function(e,t,r){"use strict";var o=Object.prototype.hasOwnProperty,n=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),i=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:i,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],o=0;o<t.length;++o)for(var a=t[o],i=a.obj[a.prop],s=Object.keys(i),l=0;l<s.length;++l){var c=s[l],u=i[c];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:i,prop:c}),r.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(n(r)){for(var o=[],a=0;a<r.length;++a)void 0!==r[a]&&o.push(r[a]);t.obj[t.prop]=o}}}(t),e},decode:function(e,t,r){var o=e.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},encode:function(e,t,r){if(0===e.length)return e;var o="string"==typeof e?e:String(e);if("iso-8859-1"===r)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var n="",i=0;i<o.length;++i){var s=o.charCodeAt(i);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?n+=o.charAt(i):s<128?n+=a[s]:s<2048?n+=a[192|s>>6]+a[128|63&s]:s<55296||s>=57344?n+=a[224|s>>12]+a[128|s>>6&63]+a[128|63&s]:(i+=1,s=65536+((1023&s)<<10|1023&o.charCodeAt(i)),n+=a[240|s>>18]+a[128|s>>12&63]+a[128|s>>6&63]+a[128|63&s])}return n},isBuffer:function(e){return!(!e||"object"!=typeof 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(n(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(a&&(a.plainObjects||a.allowPrototypes)||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var s=t;return n(t)&&!n(r)&&(s=i(t,a)),n(t)&&n(r)?(r.forEach(function(r,n){if(o.call(t,n)){var i=t[n];i&&"object"==typeof i&&r&&"object"==typeof r?t[n]=e(i,r,a):t.push(r)}else t[n]=r}),t):Object.keys(r).reduce(function(t,n){var i=r[n];return o.call(t,n)?t[n]=e(t[n],i,a):t[n]=i,t},s)}}},"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"),n={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="")}}},a={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")(n,a,!1,function(e){r("26lS")},"data-v-bbbbd62a",null);t.a=i.exports},"Ch4/":function(e,t,r){"use strict";var o=r("TcQY");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})}}}},CtzY:function(e,t,r){"use strict";var o=r("EU61"),n=r("0CQ3"),a=r("lVfG");e.exports={formats:a,parse:n,stringify:o}},EU61:function(e,t,r){"use strict";var o=r("8PIK"),n=r("lVfG"),a=Object.prototype.hasOwnProperty,i={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,l=Array.prototype.push,c=function(e,t){l.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,formatter:n.formatters[n.default],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,r,n,a,i,l,u,p,h,g,f,m,v){var y=t;if("function"==typeof u?y=u(r,y):y instanceof Date?y=g(y):"comma"===n&&s(y)&&(y=y.join(",")),null===y){if(a)return l&&!m?l(r,d.encoder,v):r;y=""}if("string"==typeof y||"number"==typeof y||"boolean"==typeof y||o.isBuffer(y))return l?[f(m?r:l(r,d.encoder,v))+"="+f(l(y,d.encoder,v))]:[f(r)+"="+f(String(y))];var b,C=[];if(void 0===y)return C;if(s(u))b=u;else{var w=Object.keys(y);b=p?w.sort(p):w}for(var x=0;x<b.length;++x){var I=b[x];i&&null===y[I]||(s(y)?c(C,e(y[I],"function"==typeof n?n(r,I):r,n,a,i,l,u,p,h,g,f,m,v)):c(C,e(y[I],r+(h?"."+I:"["+I+"]"),n,a,i,l,u,p,h,g,f,m,v)))}return C};e.exports=function(e,t){var r,o=e,l=function(e){if(!e)return d;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=n.default;if(void 0!==e.format){if(!a.call(n.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var o=n.formatters[r],i=d.filter;return("function"==typeof e.filter||s(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:void 0===e.allowDots?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:i,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}}(t);"function"==typeof l.filter?o=(0,l.filter)("",o):s(l.filter)&&(r=l.filter);var u,h=[];if("object"!=typeof o||null===o)return"";u=t&&t.arrayFormat in i?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var g=i[u];r||(r=Object.keys(o)),l.sort&&r.sort(l.sort);for(var f=0;f<r.length;++f){var m=r[f];l.skipNulls&&null===o[m]||c(h,p(o[m],m,g,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.formatter,l.encodeValuesOnly,l.charset))}var v=h.join(l.delimiter),y=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),v.length>0?y+v:""}},G69j:function(e,t,r){"use strict";var o=r("P9l9");t.a={data:function(){return{isJinHua:!1,storeValue:""}},created:function(){this.getUserInfo()},methods:{getUserInfo:function(){var e=this;Object(o.a)("/api-auth/get-login-user-info",{}).then(function(t){0===t.data.errorCode&&("ff8080816a36326c016a53380d8b5f52"===t.data.result.enterpriseId?e.isJinHua=!0:e.wMGoodOption=[{label:"所有商品",value:"1"}])})}}}},HzJ8:function(e,t,r){e.exports={default:r("P/sN"),__esModule:!0}},J0Oq:function(e,t,r){"use strict";t.__esModule=!0;var o,n=r("rVsN"),a=(o=n)&&o.__esModule?o:{default:o};t.default=function(e){return function(){var t=e.apply(this,arguments);return new a.default(function(e,r){return function o(n,i){try{var s=t[n](i),l=s.value}catch(e){return void r(e)}if(!s.done)return a.default.resolve(l).then(function(e){o("next",e)},function(e){o("throw",e)});e(l)}("next")})}}},"KjG/":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r("3cXf"),n=r.n(o),a=r("lC5x"),i=r.n(a),s=r("J0Oq"),l=r.n(s),c=r("6Mk3"),u=r("93Ik"),d=r("7qQh"),p=(r("0irN"),r("3E4D")),h=r("Ch4/"),g=r("Mk6G"),f=r("P9l9"),m=r("0xDb"),v=r("G69j"),y={year:(new Date).getFullYear(),month:(new Date).getMonth(),day:(new Date).getDate()},b={name:"addIntegralSytem",mixins:[v.a],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"}],wMShopOption:[{label:"所有店铺",value:"1"}],wMGoodOption:[{label:"所有商品",value:"1"}],uuid:"",options:[0,1,2,3,4,5],isAdd:!0,scencs:"integral",wmuuid:"",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:""},perpetualFlag:1,channelList:[{integralStrategyChannelId:"ff808081649321d20164a1fafbdd01df",enterpriseId:"ff8080815dacd3a2015dacd3ef5c0000",integralStrategyId:"ff80808163a7a09b0163b01171e202db",channelType:"1",openStatus:!0,channelRelationEnterpriseType:"1",channelRelationStoreType:"1",channelStoreType:"-1",channelRelationProType:"1",integralUseDiscountControl:"1",integralUseDiscountControlUpper:"0.0",integralUseDiscountControlLower:"0.0",useProportionalRestriction:"0.0",strategyGoodsRelationIdArr:[],storeRelationIdArr:[],enterpriseRelationIdArr:[]}],perpetualDate:[new Date(y.year,y.month,y.day,0,0).getTime(),new Date(y.year,y.month,y.day,23,59).getTime()]},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(m.b)(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)},checkListValue:function(e){var t=this;return l()(i.a.mark(function r(){var o,n,a,s;return i.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(o={flag:!0,text:""},!e.channelList.length){r.next=24;break}n=0;case 3:if(!(n<e.channelList.length)){r.next=24;break}if(!e.channelList[n].openStatus){r.next=21;break}if(2==e.channelList[n].integralUseDiscountControl&&(e.channelList[n].integralUseDiscountControlUpper&&e.channelList[n].integralUseDiscountControlLower||(o.flag=!1,o.text="请填写折扣"),(parseInt(e.channelList[n].integralUseDiscountControlUpper)>10||parseInt(e.channelList[n].integralUseDiscountControlLower)>10||Number(e.channelList[n].integralUseDiscountControlUpper)<=Number(e.channelList[n].integralUseDiscountControlLower))&&(o.flag=!1,o.text="折扣格式有误")),1!=e.channelList[n].channelType||e.channelList[n].enterpriseRelationIdArr.length||(o.flag=!1,o.text="请选择商户"),9!=e.channelList[n].channelType||e.channelList[n].enterpriseRelationIdArr.length||(o.flag=!1,o.text="请选择商户"),9!=e.channelList[n].channelType||!t.isJinHua){r.next=21;break}if(a=t.$refs.wmstoreGroup,s=null,!(a instanceof Array)){r.next=17;break}return r.next=14,t.$refs.wmstoreGroup[0].isStoreSave();case 14:s=r.sent,r.next=20;break;case 17:return r.next=19,t.$refs.wmstoreGroup.isStoreSave();case 19:s=r.sent;case 20:s||(o.flag=!1,o.text="请选择门店");case 21:n++,r.next=3;break;case 24:return r.abrupt("return",o);case 25:case"end":return r.stop()}},r,t)}))()},submitForm:function(e){var t=this,r=this;r.tpnEditBool||this.$refs[e].validate(function(e){if(!e)return Object(m.b)("error submit!!"),!1;var o=JSON.parse(n()(r.ruleForm));if(o.strategyName){var a=!o.integralUse.fee||""==String(o.integralUse.integral);if(1==o.integralUseStatus&&a)r.$message.error("请填写抵现规则");else{if(1==o.integralUseStatus){if(!Number(o.integralUse.fee))return void p.a.showmsg("抵现规则中的抵现金额不能为0","error");if(!Number(o.integralUse.integral))return void p.a.showmsg("抵现规则中的使用积分不能为0","error")}r.checkListValue(o).then(function(e){if(e.flag){var a=void 0;o.channelList.forEach(function(e,t){e.openStatus=1==e.openStatus?1:0,1==e.channelType&&(e.strategyGoodsRelationIdArr=e.goodsRelationIdArr,delete e.goodsRelationIdArr),e.enterpriseRelationIdArr&&e.enterpriseRelationIdArr.length||(e.enterpriseRelationIdArr=[]),e.storeRelationIdArr&&e.storeRelationIdArr.length||(e.storeRelationIdArr=[]),e.strategyGoodsRelationIdArr&&e.strategyGoodsRelationIdArr.length||(e.strategyGoodsRelationIdArr=[]),"9"==e.channelType&&(e.storeControlId=r.wmuuid),0==t?a=e.useProportionalRestriction:e.useProportionalRestriction=a});var i=!0;o.channelList.forEach(function(e){if(1==e.channelType&&1==e.openStatus){if(2==e.channelRelationProType&&t.valueWx.length<1)return p.a.showmsg("请选择商品品牌","error"),i=!1;if(3==e.channelRelationProType&&t.cateDataWx.length<1)return p.a.showmsg("请选择商品品类","error"),i=!1;if(4==e.channelRelationProType&&t.goodsListWx.length<1)return p.a.showmsg("请选择单件商品","error"),i=!1}}),2==o.useCrowd&&t.selectCount<1?p.a.showmsg("请选择人群定向","error"):(delete o.selectorParamsId,o.integralUse=n()(o.integralUse),1===o.perpetualFlag||(o.startValidTime=o.perpetualDate[0],o.endValidTime=o.perpetualDate[1]),delete o.perpetualDate,i&&r.saveForm(o))}else p.a.showmsg(e.text,"error")})}}else p.a.showmsg("请填写策略名称","error")})},saveForm:function(e){var t=this,r=e;Object(f.c)("/api-admin/save-member-integral-strategy",r).then(function(e){Object(m.b)(e.data.result);var r=e.data;if(0==r.errorCode)return t.$message({message:"保存成功",type:"success"}),void t.changeRoute("/pointSystem");h.a.errorMsg(r)}).catch(function(e){Object(m.b)(e)})},toInput:function(e){var t=g.a.getByteVal(e.target.value,this.inputFlagNum);this.ruleForm.strategyName=t.trim(),this.cateNameLength=g.a.getZhLen(this.ruleForm.strategyName)},inputFocus:function(e,t,r){this.tempTag=t,this.tempData=e,this.tempFlag=r||""},formatInputChange:function(e){if(Object(m.b)(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(m.b)(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=g.a.getCharVal(String(this.ruleForm.integralUse.fee).replace(/[^\.\d]/g,""),6),this.ruleForm.integralUse.integral=g.a.getCharVal(String(this.ruleForm.integralUse.integral).replace(/[^\.\d]/g,""),8),this.ruleForm.channelList[0].useProportionalRestriction=g.a.getCharVal(String(this.ruleForm.channelList[0].useProportionalRestriction).replace(/[^\d]/g,""),3)},formatInputNumBlur:function(){this.ruleForm.integralUse.fee=Number(g.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(f.e)("/api-admin/get-member-integral-strategy",r).then(function(r){Object(m.b)(r.data.result);var o=r.data;if(0==o.errorCode){var n=r.data.result.enterpriseList;n.forEach(function(e,t){e.label=e.brandName,e.value=e.enterpriseId}),t.mechantOption=n;var a=r.data.result.strategy;if(a.channelList&&a.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==a.useCrowd){var i=JSON.parse(a.crowdJson);e.selectCount=0,i.list&&i.list.forEach(function(t){t.list&&(e.selectCount+=t.list.length)}),e.useId=a.selectorParamsId,e.hasSearchData=a.crowdJson}return a.integralUse=JSON.parse(a.integralUse),a.integralUse||(a.integralUse={},a.integralUse.fee="",a.integralUse.integral=""),t.ruleForm=t.formatData(a),t.cateNameLength=g.a.getZhLen(t.ruleForm.strategyName),t.$set(t.ruleForm,"perpetualDate",[]),t.ruleForm.perpetualDate[1]=e.ruleForm.endValidTime,void(t.ruleForm.perpetualDate[0]=e.ruleForm.startValidTime)}h.a.errorMsg(o)}).catch(function(e){Object(m.b)(e),t.$message.error({duration:1e3,message:e.message})})},bouncer:function(e){return e.filter(function(e){return!(!e||""===e)})},formatData:function(e){var t=this;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,r){e.openStatus=0!=e.openStatus,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=[]),9==e.channelType&&(t.wmuuid=e.storeControlId,t.isAdd=!1)}),!e.channelList.some(function(e){return 9==e.channelType})&&e.channelList.push({integralStrategyChannelId:"",enterpriseId:"",integralStrategyId:"",channelType:"9",openStatus:!0,channelRelationEnterpriseType:"1",channelRelationStoreType:"1",channelStoreType:"-1",channelRelationProType:"1",integralUseDiscountControl:"1",integralUseDiscountControlUpper:"0.0",integralUseDiscountControlLower:"0.0",useProportionalRestriction:"0.0",strategyGoodsRelationIdArr:[],storeRelationIdArr:[],enterpriseRelationIdArr:[]}),e},getGoodsBrand:function(){var e=this;Object(f.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}h.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(m.b)(this.ruleForm.useCrowd)},showPeople:function(){this.dialogVisiblePeople=!0},getData:function(){this.$refs.peopleFilter.confirmSet()},findFilter:function(e){var t=this;if(Object(m.b)(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(m.b)(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(f.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(m.b)(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(f.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):h.a.errorMsg(r)}).catch(function(e){Object(m.b)(e)})}},components:{topNavNew:c.a,addGoods:u.a,goodsCate:d.a}},C={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("el-form-item",{key:o,attrs:{label:"适用微信商城",prop:""}},[r("el-switch",{attrs:{"active-text":"启用","inactive-text":"停用"},model:{value:t.openStatus,callback:function(r){e.$set(t,"openStatus",r)},expression:"item.openStatus"}})],1),e._v(" "),t.openStatus?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._e(),e._v(" "),9==t.channelType?[r("el-form-item",{key:o,attrs:{label:"微盟渠道",prop:""}},[r("el-switch",{model:{value:t.openStatus,callback:function(r){e.$set(t,"openStatus",r)},expression:"item.openStatus"}})],1),e._v(" "),t.openStatus?r("div",{key:o,staticClass:"form-child margin-20"},[r("el-form-item",{attrs:{label:"选择商户"}},[r("el-select",{attrs:{size:"small",placeholder:"请选择",multiple:""},model:{value:t.enterpriseRelationIdArr,callback:function(r){e.$set(t,"enterpriseRelationIdArr",r)},expression:"item.enterpriseRelationIdArr"}},e._l(e.mechantOption,function(e,t){return r("el-option",{key:t,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"选择店铺"}},[e.isJinHua?r("vue-gic-store-new",{ref:"wmstoreGroup",refInFor:!0,attrs:{scenesVal:e.scencs,options:e.options,isAdd:e.isAdd,uuid:e.wmuuid},on:{"update:uuid":function(t){e.wmuuid=t}}}):r("el-select",{model:{value:e.storeValue,callback:function(t){e.storeValue=t},expression:"storeValue"}},[r("el-option",{attrs:{label:"所有门店",value:""}})],1)],1),e._v(" "),r("el-form-item",{staticClass:"padding-0",attrs:{label:"微盟商品"}},[r("el-select",{attrs:{placeholder:"请选择"},model:{value:t.channelRelationProType,callback:function(r){e.$set(t,"channelRelationProType",r)},expression:"item.channelRelationProType"}},e._l(e.wMGoodOption,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:"input-margin-b",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._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",{attrs:{label:"策略有效期",prop:""}},[r("el-radio",{attrs:{label:1},model:{value:e.ruleForm.perpetualFlag,callback:function(t){e.$set(e.ruleForm,"perpetualFlag",t)},expression:"ruleForm.perpetualFlag"}},[e._v("永久有效")]),e._v(" "),r("el-radio",{attrs:{label:0},model:{value:e.ruleForm.perpetualFlag,callback:function(t){e.$set(e.ruleForm,"perpetualFlag",t)},expression:"ruleForm.perpetualFlag"}},[e._v("\n 在该时段内有效\n "),0===e.ruleForm.perpetualFlag?r("el-date-picker",{attrs:{type:"datetimerange","start-placeholder":"开始日期","end-placeholder":"结束日期",format:"yyyy-MM-dd HH:mm","value-format":"timestamp","default-time":["00:00:00","23:59:59"]},model:{value:e.ruleForm.perpetualDate,callback:function(t){e.$set(e.ruleForm,"perpetualDate",t)},expression:"ruleForm.perpetualDate"}}):e._e()],1)],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 w=r("C7Lr")(b,C,!1,function(e){r("VTa+")},"data-v-2598222c",null);t.default=w.exports},"L+o2":function(e,t,r){var o=r("ZuHZ"),n=o.JSON||(o.JSON={stringify:JSON.stringify});e.exports=function(e){return n.stringify.apply(n,arguments)}},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,n=0;n<e.length;n++){var a=e.charAt(n);if(1==r&&(encodeURI(a).length>2?o+=1:o+=.5),2==r&&(o+=1),o>=t){var i=o==t?n+1:n;return e.substr(0,i)}}},getByteVal:function(e,t){for(var r="",o=0,n=0;n<e.length&&(null!=e[n].match(/[^\x00-\xff]/gi)?o+=1:o+=.5,!(o>t));n++)r+=e[n];return r},getCharVal:function(e,t){for(var r="",o=0,n=0;n<e.length&&(null!=e[n].match(/[^\x00-\xff]/gi)?o+=2:o+=1,!(o>t));n++)r+=e[n];return r},regPos:function(e){return/^\d+(\.\d+)?$/.test(e)}}},"P/sN":function(e,t,r){r("MJJS"),r("at0p"),e.exports=r("eBrH")},P9l9:function(e,t,r){"use strict";r.d(t,"a",function(){return d}),r.d(t,"e",function(){return p}),r.d(t,"d",function(){return h}),r.d(t,"c",function(){return g}),r.d(t,"b",function(){return f});var o=r("rVsN"),n=r.n(o),a=r("lRwf"),i=r.n(a),s=r("CtzY"),l=r.n(s),c=r("TcQY"),u=(r.n(c),window.location.origin);-1!=u.indexOf("localhost")&&(u="http://gicdev.demogic.com"),i.a.axios.interceptors.request.use(function(e){return e},function(e){return c.Message.error({message:"请求超时!"}),n.a.resolve(e)}),i.a.axios.interceptors.response.use(function(e){if(!e.status||200!=e.status||"error"!=e.data.status)return e;c.Message.error({message:e.data.msg})},function(e){return 504==e.response.status||404==e.response.status||e.response.status,n.a.resolve(e)});var d=function(e,t){return t.requestProject="gic-clique",i.a.axios({method:"get",url:""+u+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:""+u+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:""+u+e,data:"{}",params:t,headers:{"Content-Type":"application/json;charset=UTF-8"}})},g=function(e,t){return i.a.axios({method:"post",url:""+u+e,data:t,params:{requestProject:"gic-clique"},headers:{"Content-Type":"application/json;charset=UTF-8"}})},f=function(e,t){return t.requestProject="gic-clique",i.a.axios({method:"post",url:""+u+e,data:t,headers:{}})}},"VTa+":function(e,t){},Vzx8:function(e,t){},XqSp:function(e,t,r){var o=function(){return this}()||Function("return this")(),n=o.regeneratorRuntime&&Object.getOwnPropertyNames(o).indexOf("regeneratorRuntime")>=0,a=n&&o.regeneratorRuntime;if(o.regeneratorRuntime=void 0,e.exports=r("k9rz"),n)o.regeneratorRuntime=a;else try{delete o.regeneratorRuntime}catch(e){o.regeneratorRuntime=void 0}},eBrH:function(e,t,r){var o=r("xgeF"),n=r("PsHI");e.exports=r("ZuHZ").getIterator=function(e){var t=n(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return o(t.call(e))}},k9rz:function(e,t){!function(t){"use strict";var r,o=Object.prototype,n=o.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag",c="object"==typeof e,u=t.regeneratorRuntime;if(u)c&&(e.exports=u);else{(u=t.regeneratorRuntime=c?e.exports:{}).wrap=C;var d="suspendedStart",p="suspendedYield",h="executing",g="completed",f={},m={};m[i]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v(R([])));y&&y!==o&&n.call(y,i)&&(m=y);var b=S.prototype=x.prototype=Object.create(m);I.prototype=b.constructor=S,S.constructor=I,S[l]=I.displayName="GeneratorFunction",u.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===I||"GeneratorFunction"===(t.displayName||t.name))},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,S):(e.__proto__=S,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(b),e},u.awrap=function(e){return{__await:e}},L(D.prototype),D.prototype[s]=function(){return this},u.AsyncIterator=D,u.async=function(e,t,r,o){var n=new D(C(e,t,r,o));return u.isGeneratorFunction(t)?n:n.next().then(function(e){return e.done?e.value:n.next()})},L(b),b[l]="Generator",b[i]=function(){return this},b.toString=function(){return"[object Generator]"},u.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var o=t.pop();if(o in e)return r.value=o,r.done=!1,r}return r.done=!0,r}},u.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=r)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(o,n){return s.type="throw",s.arg=e,t.next=o,n&&(t.method="next",t.arg=r),!!n}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var n=o.arg;T(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,o){return this.delegate={iterator:R(e),resultName:t,nextLoc:o},"next"===this.method&&(this.arg=r),f}}}function C(e,t,r,o){var n=t&&t.prototype instanceof x?t:x,a=Object.create(n.prototype),i=new A(o||[]);return a._invoke=function(e,t,r){var o=d;return function(n,a){if(o===h)throw new Error("Generator is already running");if(o===g){if("throw"===n)throw a;return k()}for(r.method=n,r.arg=a;;){var i=r.delegate;if(i){var s=_(i,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=w(e,t,r);if("normal"===l.type){if(o=r.done?g:p,l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=g,r.method="throw",r.arg=l.arg)}}}(e,r,i),a}function w(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function x(){}function I(){}function S(){}function L(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function D(e){var t;this._invoke=function(r,o){function a(){return new Promise(function(t,a){!function t(r,o,a,i){var s=w(e[r],e,o);if("throw"!==s.type){var l=s.arg,c=l.value;return c&&"object"==typeof c&&n.call(c,"__await")?Promise.resolve(c.__await).then(function(e){t("next",e,a,i)},function(e){t("throw",e,a,i)}):Promise.resolve(c).then(function(e){l.value=e,a(l)},i)}i(s.arg)}(r,o,t,a)})}return t=t?t.then(a,a):a()}}function _(e,t){var o=e.iterator[t.method];if(o===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=r,_(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=w(o,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,f;var a=n.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,f):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function F(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(F,this),this.reset(!0)}function R(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function t(){for(;++o<e.length;)if(n.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=r,t.done=!0,t};return a.next=a}}return{next:k}}function k(){return{value:r,done:!0}}}(function(){return this}()||Function("return this")())},lC5x:function(e,t,r){e.exports=r("XqSp")},lVfG:function(e,t,r){"use strict";var o=String.prototype.replace,n=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return o.call(e,n,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},yWzc:function(e,t){}});
//# sourceMappingURL=8.629aaa99e337e3f0f32b.js.map
\ 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 a=window.webpackJsonp;window.webpackJsonp=function(c,r,t){for(var d,o,b,i=0,u=[];i<c.length;i++)o=c[i],f[o]&&u.push(f[o][0]),f[o]=0;for(d in r)Object.prototype.hasOwnProperty.call(r,d)&&(e[d]=r[d]);for(a&&a(c,r,t);u.length;)u.shift()();if(t)for(i=0;i<t.length;i++)b=n(n.s=t[i]);return b};var c={},f={44:0};function n(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,n),f.l=!0,f.exports}n.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,n){a=f[e]=[c,n]});a[2]=c;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:"2f33ab3e109a5841fc0f",1:"385e557f391e558f5b52",2:"4400b301e978f2178b70",3:"603ec5bcb8045fafa6c6",4:"83048b124395daf15a7e",5:"76008f7c4ac7738a7fb6",6:"7238e563404dfb6e4a4e",7:"e0dc07c838093ee0105c",8:"3159773239a5b12d6d19",9:"27af71db5e09e313a10e",10:"e217eeeaa52be3ce0777",11:"6833d565b45e668a8f04",12:"40de817517a924ea1136",13:"30922a748c42d0069cc5",14:"9e4d2a6299696198fa6f",15:"f746c3d84fe215b0e8d8",16:"476faf210bab30163969",17:"d0b53f24a900366d2933",18:"345771d2f681dbc8940e",19:"bfc0a3c36a966ff0ec49",20:"301bfd1b9e4d6225b51b",21:"57dd7adf4aaa3a5a68ac",22:"452c39e097b94701947e",23:"188fb3bfadba88630f8a",24:"8d3ccc3d6684a9a37e3a",25:"597dc8acb4c5a084ef35",26:"3ca55a78dcdee5b0816d",27:"a72adbc49522e5ec7bab",28:"3d668c97a2c8f654037b",29:"e91d985a85837913a1de",30:"8b7f5e3a4bf531bc2dae",31:"51afc94c5bc16376c2f7",32:"e49c4e56704cc4798815",33:"875776191c5435e59905",34:"3fa688c4f4ab66c5c2f7",35:"4cf8227630d734bf50d6",36:"131f888c7703f2eacb53",37:"9a4bf737d809200a1480",38:"8d049d09f371dd8c3f10",39:"06217df77f10a0aee881",40:"6f905491d4588f8e08fd",41:"a97999411877ea1626da"}[e]+".js";var d=setTimeout(o,12e4);function o(){t.onerror=t.onload=null,clearTimeout(d);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return t.onerror=t.onload=o,r.appendChild(t),c},n.m=e,n.c=c,n.d=function(e,a,c){n.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},n.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(a,"a",a),a},n.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},n.p="./",n.oe=function(e){throw console.error(e),e}}([]); !function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,r,t){for(var o,d,b,i=0,u=[];i<c.length;i++)d=c[i],f[d]&&u.push(f[d][0]),f[d]=0;for(o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);for(a&&a(c,r,t);u.length;)u.shift()();if(t)for(i=0;i<t.length;i++)b=n(n.s=t[i]);return b};var c={},f={44:0};function n(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,n),f.l=!0,f.exports}n.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,n){a=f[e]=[c,n]});a[2]=c;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:"2f33ab3e109a5841fc0f",1:"385e557f391e558f5b52",2:"4400b301e978f2178b70",3:"603ec5bcb8045fafa6c6",4:"83048b124395daf15a7e",5:"76008f7c4ac7738a7fb6",6:"7238e563404dfb6e4a4e",7:"293369dd98a94ce504fe",8:"629aaa99e337e3f0f32b",9:"27af71db5e09e313a10e",10:"e217eeeaa52be3ce0777",11:"6833d565b45e668a8f04",12:"40de817517a924ea1136",13:"30922a748c42d0069cc5",14:"9e4d2a6299696198fa6f",15:"f746c3d84fe215b0e8d8",16:"476faf210bab30163969",17:"d0b53f24a900366d2933",18:"345771d2f681dbc8940e",19:"bfc0a3c36a966ff0ec49",20:"301bfd1b9e4d6225b51b",21:"57dd7adf4aaa3a5a68ac",22:"452c39e097b94701947e",23:"188fb3bfadba88630f8a",24:"8d3ccc3d6684a9a37e3a",25:"597dc8acb4c5a084ef35",26:"3ca55a78dcdee5b0816d",27:"a72adbc49522e5ec7bab",28:"3d668c97a2c8f654037b",29:"e91d985a85837913a1de",30:"8b7f5e3a4bf531bc2dae",31:"51afc94c5bc16376c2f7",32:"e49c4e56704cc4798815",33:"875776191c5435e59905",34:"3fa688c4f4ab66c5c2f7",35:"4cf8227630d734bf50d6",36:"131f888c7703f2eacb53",37:"9a4bf737d809200a1480",38:"8d049d09f371dd8c3f10",39:"06217df77f10a0aee881",40:"6f905491d4588f8e08fd",41:"a97999411877ea1626da"}[e]+".js";var o=setTimeout(d,12e4);function d(){t.onerror=t.onload=null,clearTimeout(o);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return t.onerror=t.onload=d,r.appendChild(t),c},n.m=e,n.c=c,n.d=function(e,a,c){n.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},n.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(a,"a",a),a},n.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},n.p="./",n.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.64a31d03ede0b04d2781.js.map //# sourceMappingURL=manifest.c2144b80106d371e0afb.js.map
\ No newline at end of file \ No newline at end of file
{"version":3,"sources":["webpack:///webpack/bootstrap 363285e782f69c2923d2"],"names":["parentJsonpFunction","window","chunkIds","moreModules","executeModules","moduleId","chunkId","result","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","shift","__webpack_require__","s","installedModules","44","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","38","39","40","41","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,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,wBAA8oChF,GAAA,MACttC,IAAAkC,EAAA+C,WAAAC,EAAA,MAEA,SAAAA,IAEArD,EAAAsD,QAAAtD,EAAAuD,OAAA,KACAC,aAAAnD,GACA,IAAAoD,EAAAjF,EAAAL,GACA,IAAAsF,IACAA,GACAA,EAAA,OAAAC,MAAA,iBAAAvF,EAAA,aAEAK,EAAAL,QAAAwF,GAKA,OAfA3D,EAAAsD,QAAAtD,EAAAuD,OAAAF,EAaAxD,EAAA+D,YAAA5D,GAEAL,GAIAX,EAAA6E,EAAA/E,EAGAE,EAAA8E,EAAA5E,EAGAF,EAAA+E,EAAA,SAAA3E,EAAA4E,EAAAC,GACAjF,EAAAkF,EAAA9E,EAAA4E,IACAtF,OAAAyF,eAAA/E,EAAA4E,GACAI,cAAA,EACAC,YAAA,EACAC,IAAAL,KAMAjF,EAAAuF,EAAA,SAAAlF,GACA,IAAA4E,EAAA5E,KAAAmF,WACA,WAA2B,OAAAnF,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAL,EAAA+E,EAAAE,EAAA,IAAAA,GACAA,GAIAjF,EAAAkF,EAAA,SAAAO,EAAAC,GAAsD,OAAAhG,OAAAC,UAAAC,eAAAC,KAAA4F,EAAAC,IAGtD1F,EAAAyB,EAAA,KAGAzB,EAAA2F,GAAA,SAAAC,GAA8D,MAApBC,QAAAC,MAAAF,GAAoBA","file":"static/js/manifest.64a31d03ede0b04d2781.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\t44: 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\":\"2f33ab3e109a5841fc0f\",\"1\":\"385e557f391e558f5b52\",\"2\":\"4400b301e978f2178b70\",\"3\":\"603ec5bcb8045fafa6c6\",\"4\":\"83048b124395daf15a7e\",\"5\":\"76008f7c4ac7738a7fb6\",\"6\":\"7238e563404dfb6e4a4e\",\"7\":\"e0dc07c838093ee0105c\",\"8\":\"3159773239a5b12d6d19\",\"9\":\"27af71db5e09e313a10e\",\"10\":\"e217eeeaa52be3ce0777\",\"11\":\"6833d565b45e668a8f04\",\"12\":\"40de817517a924ea1136\",\"13\":\"30922a748c42d0069cc5\",\"14\":\"9e4d2a6299696198fa6f\",\"15\":\"f746c3d84fe215b0e8d8\",\"16\":\"476faf210bab30163969\",\"17\":\"d0b53f24a900366d2933\",\"18\":\"345771d2f681dbc8940e\",\"19\":\"bfc0a3c36a966ff0ec49\",\"20\":\"301bfd1b9e4d6225b51b\",\"21\":\"57dd7adf4aaa3a5a68ac\",\"22\":\"452c39e097b94701947e\",\"23\":\"188fb3bfadba88630f8a\",\"24\":\"8d3ccc3d6684a9a37e3a\",\"25\":\"597dc8acb4c5a084ef35\",\"26\":\"3ca55a78dcdee5b0816d\",\"27\":\"a72adbc49522e5ec7bab\",\"28\":\"3d668c97a2c8f654037b\",\"29\":\"e91d985a85837913a1de\",\"30\":\"8b7f5e3a4bf531bc2dae\",\"31\":\"51afc94c5bc16376c2f7\",\"32\":\"e49c4e56704cc4798815\",\"33\":\"875776191c5435e59905\",\"34\":\"3fa688c4f4ab66c5c2f7\",\"35\":\"4cf8227630d734bf50d6\",\"36\":\"131f888c7703f2eacb53\",\"37\":\"9a4bf737d809200a1480\",\"38\":\"8d049d09f371dd8c3f10\",\"39\":\"06217df77f10a0aee881\",\"40\":\"6f905491d4588f8e08fd\",\"41\":\"a97999411877ea1626da\"}[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 363285e782f69c2923d2"],"sourceRoot":""} {"version":3,"sources":["webpack:///webpack/bootstrap a338ce7a0f865f0c28cc"],"names":["parentJsonpFunction","window","chunkIds","moreModules","executeModules","moduleId","chunkId","result","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","shift","__webpack_require__","s","installedModules","44","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","38","39","40","41","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,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,wBAA8oChF,GAAA,MACttC,IAAAkC,EAAA+C,WAAAC,EAAA,MAEA,SAAAA,IAEArD,EAAAsD,QAAAtD,EAAAuD,OAAA,KACAC,aAAAnD,GACA,IAAAoD,EAAAjF,EAAAL,GACA,IAAAsF,IACAA,GACAA,EAAA,OAAAC,MAAA,iBAAAvF,EAAA,aAEAK,EAAAL,QAAAwF,GAKA,OAfA3D,EAAAsD,QAAAtD,EAAAuD,OAAAF,EAaAxD,EAAA+D,YAAA5D,GAEAL,GAIAX,EAAA6E,EAAA/E,EAGAE,EAAA8E,EAAA5E,EAGAF,EAAA+E,EAAA,SAAA3E,EAAA4E,EAAAC,GACAjF,EAAAkF,EAAA9E,EAAA4E,IACAtF,OAAAyF,eAAA/E,EAAA4E,GACAI,cAAA,EACAC,YAAA,EACAC,IAAAL,KAMAjF,EAAAuF,EAAA,SAAAlF,GACA,IAAA4E,EAAA5E,KAAAmF,WACA,WAA2B,OAAAnF,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAL,EAAA+E,EAAAE,EAAA,IAAAA,GACAA,GAIAjF,EAAAkF,EAAA,SAAAO,EAAAC,GAAsD,OAAAhG,OAAAC,UAAAC,eAAAC,KAAA4F,EAAAC,IAGtD1F,EAAAyB,EAAA,KAGAzB,EAAA2F,GAAA,SAAAC,GAA8D,MAApBC,QAAAC,MAAAF,GAAoBA","file":"static/js/manifest.c2144b80106d371e0afb.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\t44: 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\":\"2f33ab3e109a5841fc0f\",\"1\":\"385e557f391e558f5b52\",\"2\":\"4400b301e978f2178b70\",\"3\":\"603ec5bcb8045fafa6c6\",\"4\":\"83048b124395daf15a7e\",\"5\":\"76008f7c4ac7738a7fb6\",\"6\":\"7238e563404dfb6e4a4e\",\"7\":\"293369dd98a94ce504fe\",\"8\":\"629aaa99e337e3f0f32b\",\"9\":\"27af71db5e09e313a10e\",\"10\":\"e217eeeaa52be3ce0777\",\"11\":\"6833d565b45e668a8f04\",\"12\":\"40de817517a924ea1136\",\"13\":\"30922a748c42d0069cc5\",\"14\":\"9e4d2a6299696198fa6f\",\"15\":\"f746c3d84fe215b0e8d8\",\"16\":\"476faf210bab30163969\",\"17\":\"d0b53f24a900366d2933\",\"18\":\"345771d2f681dbc8940e\",\"19\":\"bfc0a3c36a966ff0ec49\",\"20\":\"301bfd1b9e4d6225b51b\",\"21\":\"57dd7adf4aaa3a5a68ac\",\"22\":\"452c39e097b94701947e\",\"23\":\"188fb3bfadba88630f8a\",\"24\":\"8d3ccc3d6684a9a37e3a\",\"25\":\"597dc8acb4c5a084ef35\",\"26\":\"3ca55a78dcdee5b0816d\",\"27\":\"a72adbc49522e5ec7bab\",\"28\":\"3d668c97a2c8f654037b\",\"29\":\"e91d985a85837913a1de\",\"30\":\"8b7f5e3a4bf531bc2dae\",\"31\":\"51afc94c5bc16376c2f7\",\"32\":\"e49c4e56704cc4798815\",\"33\":\"875776191c5435e59905\",\"34\":\"3fa688c4f4ab66c5c2f7\",\"35\":\"4cf8227630d734bf50d6\",\"36\":\"131f888c7703f2eacb53\",\"37\":\"9a4bf737d809200a1480\",\"38\":\"8d049d09f371dd8c3f10\",\"39\":\"06217df77f10a0aee881\",\"40\":\"6f905491d4588f8e08fd\",\"41\":\"a97999411877ea1626da\"}[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 a338ce7a0f865f0c28cc"],"sourceRoot":""}
\ No newline at end of file \ No newline at end of file
...@@ -601,6 +601,7 @@ export default { ...@@ -601,6 +601,7 @@ export default {
showMsg.showmsg(res.text, 'error'); showMsg.showmsg(res.text, 'error');
return; return;
} else { } else {
let useProportionalRestriction = undefined;
// 设置开启状态 1-->true // 设置开启状态 1-->true
data.channelList.forEach(function(ele, index) { data.channelList.forEach(function(ele, index) {
ele.openStatus = ele.openStatus == true ? 1 : 0; ele.openStatus = ele.openStatus == true ? 1 : 0;
...@@ -620,6 +621,11 @@ export default { ...@@ -620,6 +621,11 @@ export default {
if (ele.channelType == '9') { if (ele.channelType == '9') {
ele.storeControlId = that.wmuuid; ele.storeControlId = that.wmuuid;
} }
if(index == 0) {
useProportionalRestriction = ele.useProportionalRestriction;
} else {
ele.useProportionalRestriction = useProportionalRestriction;
}
}); });
let saveBool = true; let saveBool = true;
data.channelList.forEach(item => { data.channelList.forEach(item => {
......
...@@ -562,6 +562,7 @@ export default { ...@@ -562,6 +562,7 @@ export default {
showMsg.showmsg(res.text, 'error'); showMsg.showmsg(res.text, 'error');
return; return;
} else { } else {
let useProportionalRestriction = undefined;
// 设置开启状态 1-->true // 设置开启状态 1-->true
data.channelList.forEach(function(ele, index) { data.channelList.forEach(function(ele, index) {
ele.openStatus = ele.openStatus == true ? 1 : 0; ele.openStatus = ele.openStatus == true ? 1 : 0;
...@@ -581,6 +582,11 @@ export default { ...@@ -581,6 +582,11 @@ export default {
if (ele.channelType == '9') { if (ele.channelType == '9') {
ele.storeControlId = that.wmuuid; ele.storeControlId = that.wmuuid;
} }
if(index == 0) {
useProportionalRestriction = ele.useProportionalRestriction;
} else {
ele.useProportionalRestriction = useProportionalRestriction;
}
}); });
let saveBool = true; let saveBool = true;
data.channelList.forEach(item => { data.channelList.forEach(item => {
......
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