徐总多门店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
42 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-61b12639"],{"0d42":function(t,e,r){"use strict";r.d(e,"d",(function(){return a})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){return o})),r.d(e,"b",(function(){return s}));var n=r("b6bd");function a(t){return Object(n.a)({url:"marketing/discounts/save",method:"post",data:t})}function i(t){return Object(n.a)({url:"marketing/discounts/list",method:"get",params:t})}function o(t){return Object(n.a)({url:"marketing/discounts/set_status/".concat(t.id,"/").concat(t.status),method:"get",params:t})}function s(t){return Object(n.a)({url:"marketing/discounts/info/"+t,method:"get"})}},"0f0e":function(t,e,r){"use strict";var n=r("c4c8"),a={name:"userLabel",props:{},data:function(){return{labelList:[],dataLabel:[],isUser:!1}},mounted:function(){},methods:{inArray:function(t,e){for(var r in e)if(e[r].id===t)return!0;return!1},userLabel:function(t){var e=this;this.dataLabel=t,Object(n.ob)().then((function(t){t.data.map((function(t){t.children&&t.children.length&&(e.isUser=!0,t.children.map((function(t){e.inArray(t.id,e.dataLabel)?t.disabled=!0:t.disabled=!1})))})),e.labelList=t.data})).catch((function(t){e.$Message.error(t.msg)}))},selectLabel:function(t){if(t.disabled){var e=this.dataLabel.indexOf(this.dataLabel.filter((function(e){return e.id===t.id}))[0]);this.dataLabel.splice(e,1),t.disabled=!1}else this.dataLabel.push({label_name:t.label_name,id:t.id,tag_id:t.tag_id}),t.disabled=!0},subBtn:function(){this.$emit("activeData",JSON.parse(JSON.stringify(this.dataLabel)))},cancel:function(){this.$emit("close")}}},i=(r("a405"),r("2877")),o=Object(i.a)(a,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"label-wrapper"},[e("div",{staticClass:"list-box"},[t._l(t.labelList,(function(r,n){return t.isUser?e("div",{key:n,staticClass:"label-box"},[r.children&&r.children.length?e("div",{staticClass:"title"},[t._v("\n "+t._s(r.label_name)+"\n ")]):t._e(),r.children&&r.children.length?e("div",{staticClass:"list"},t._l(r.children,(function(r,n){return e("div",{key:n,staticClass:"label-item",class:{on:r.disabled},on:{click:function(e){return t.selectLabel(r)}}},[t._v("\n "+t._s(r.label_name)+"\n ")])})),0):t._e()]):t._e()})),t.isUser?t._e():e("div",[t._v("暂无标签")])],2),e("div",{staticClass:"footer"},[e("Button",{staticClass:"btns",attrs:{type:"primary"},on:{click:t.subBtn}},[t._v("确定")]),e("Button",{staticClass:"btns",attrs:{type:"primary",ghost:""},on:{click:t.cancel}},[t._v("取消")])],1)])}),[],!1,null,"ea2c8f16",null);e.a=o.exports},"61f7":function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function o(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var a=r.call(t,e||"default");if("object"!=n(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var r={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(var n in r)if(new RegExp("(".concat(n,")")).test(e)){var a=r[n]+"";e=e.replace(RegExp.$1,1===RegExp.$1.length?a:c(a))}return e}function c(t){return("00"+t).substr(t.length)}r.d(e,"a",(function(){return s})),r.d(e,"c",(function(){return d})),r.d(e,"b",(function(){return f}));var u={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"},l=function(t,e){t.message=function(t){return e.replace("%s",t||"")}};function d(t){return i({required:!0,message:t,type:"string"},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}function f(t){return p.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}l(d,"请输入%s"),l(f,"%s格式不正确");var p=Object.keys(u).reduce((function(t,e){return t[e]=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a="range"===e?{min:t[0],max:t[1]}:o({},e,t);return i(i({message:r.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},a),n)},l(t[e],u[e]),t}),{})},6959:function(module,__webpack_exports__,__webpack_require__){"use strict";var vuex__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("2f62"),_components_goodsList_index__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("c4ad"),_components_uploadPictures__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("b0e7"),_api_discounts__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("0d42"),_api_user__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("c24f"),_formRule_discountsFrom__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("c52d"),_api_product__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("c4c8"),_api_marketing__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("b7be"),_utils_validate__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("61f7"),_components_labelList__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("0f0e"),_setting__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("d708");function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),s=new k(n||[]);return a(o,"_invoke",{value:E(t,r,s)}),o}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",p="suspendedYield",m="executing",_="completed",h={};function b(){}function g(){}function v(){}var y={};u(y,o,(function(){return this}));var O=Object.getPrototypeOf,w=O&&O(O(C([])));w&&w!==r&&n.call(w,o)&&(y=w);var P=v.prototype=b.prototype=Object.create(y);function j(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){function r(a,i,o,s){var c=d(t[a],t,i);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==_typeof(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(l).then((function(t){u.value=t,o(u)}),(function(t){return r("throw",t,o,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function a(){return new e((function(e,a){r(t,n,e,a)}))}return i=i?i.then(a,a):a()}})}function E(e,r,n){var a=f;return function(i,o){if(a===m)throw Error("Generator is already running");if(a===_){if("throw"===i)throw o;return{value:t,done:!0}}for(n.method=i,n.arg=o;;){var s=n.delegate;if(s){var c=L(s,n);if(c){if(c===h)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===f)throw a=_,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=m;var u=d(e,r,n);if("normal"===u.type){if(a=n.done?_:p,u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=_,n.method="throw",n.arg=u.arg)}}}function L(e,r){var n=r.method,a=e.iterator[n];if(a===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=d(a,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,h;var o=i.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,h):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(n.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(_typeof(e)+" is not iterable")}return g.prototype=v,a(P,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:g,configurable:!0}),g.displayName=u(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,u(t,c,"GeneratorFunction")),t.prototype=Object.create(P),t},e.awrap=function(t){return{__await:t}},j(D.prototype),u(D.prototype,s,(function(){return this})),e.AsyncIterator=D,e.async=function(t,r,n,a,i){void 0===i&&(i=Promise);var o=new D(l(t,r,n,a),i);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},j(P),u(P,c,"Generator"),u(P,o,(function(){return this})),u(P,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(x),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function a(n,a){return s.type="throw",s.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(c&&u){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;x(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),h}},e}function asyncGeneratorStep(t,e,r,n,a,i,o){try{var s=t[i](o),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,a)}function _asyncToGenerator(t){return function(){var e=this,r=arguments;return new Promise((function(n,a){var i=t.apply(e,r);function o(t){asyncGeneratorStep(i,n,a,o,s,"next",t)}function s(t){asyncGeneratorStep(i,n,a,o,s,"throw",t)}o(void 0)}))}}function _createForOfIteratorHelper(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function ownKeys(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(r),!0).forEach((function(e){_defineProperty(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _defineProperty(t,e,r){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(t,e){if("object"!=_typeof(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}__webpack_exports__.a={name:"lotteryCreate",components:{goodsList:_components_goodsList_index__WEBPACK_IMPORTED_MODULE_1__.default,uploadPictures:_components_uploadPictures__WEBPACK_IMPORTED_MODULE_2__.a,userLabel:_components_labelList__WEBPACK_IMPORTED_MODULE_9__.a},data:function(){var t=this;return{roterPre:_setting__WEBPACK_IMPORTED_MODULE_10__.a.roterPre,dataLabel:[],datavipLabel:[],labelShow:!1,ggModel:!1,modals:!1,loading:!1,manyFormValidate:[],selectProductAttrList:[],header:[{type:"selection",width:60,align:"center"},{title:"图片",slot:"image",width:120,align:"center"},{title:"规格",key:"value",align:"center",minWidth:120},{title:"售价",key:"p_price",align:"center",minWidth:120},{title:"数量",key:"pnum",align:"center",minWidth:120,render:function(e,r){return e("div",[e("InputNumber",{props:{min:0,value:r.row.pnum},on:{"on-change":function(e){r.row.pnum=e,t.manyFormValidate[r.index]=r.row,t.selectProductAttrList.forEach((function(e,n){e.value===r.row.value&&t.selectProductAttrList.splice(n,1,r.row)}))}}})])}},{title:"优惠价",key:"price",align:"center",minWidth:120,render:function(e,r){return e("div",[e("InputNumber",{props:{min:0,value:r.row.price},on:{"on-change":function(e){r.row.price=e,t.manyFormValidate[r.index]=r.row,t.selectProductAttrList.forEach((function(e,n){e.value===r.row.value&&t.selectProductAttrList.splice(n,1,r.row)}))}}})])}}],userLevelListApi:[],submitOpen:!1,spinShow:!1,addGoodsModel:!1,editData:{},isChoice:"单选",current:0,modalPic:!1,modal_loading:!1,images:[],templateList:[{id:0,name:"非付费会员"},{id:1,name:"付费会员"}],columns:[{title:"商品名称",slot:"store_name",width:300,align:"center"},{title:"参与规格",slot:"attr",align:"center",minWidth:120},{title:"操作",slot:"setting",align:"center",width:180}],goodsAddType:"",specsMainData:[],specsData:[],formValidate:{title:"",type:0,image:"",is_time:0,vip_type:0,is_limit:0,limit_num:0,link_ids:[],time:[],sort:0,free_shipping:1,status:1,products:[]},ruleValidate:_formRule_discountsFrom__WEBPACK_IMPORTED_MODULE_5__.a,currentid:"",picTit:"",tableIndex:0,copy:0,editIndex:null,id:"",rate_price:0}},filters:{typeName:function(t){return 1==t?"未中奖":2==t?"积分":3==t?"余额":4==t?"红包":5==t?"优惠券":6==t?"商品":void 0}},computed:_objectSpread(_objectSpread({},Object(vuex__WEBPACK_IMPORTED_MODULE_0__.e)("admin/layout",["isMobile","menuCollapse"])),{},{labelWidth:function(){return this.isMobile?void 0:135},labelPosition:function(){return this.isMobile?"top":"right"}}),mounted:function(){this.$route.query.id&&(this.id=this.$route.query.id,this.current=0,this.copy=this.$route.query.copy||0,this.getInfo()),this.getMemberShip()},methods:{closeLabel:function(t){var e=this.dataLabel.indexOf(this.dataLabel.filter((function(e){return e.id==t.id}))[0]);this.dataLabel.splice(e,1)},activeData:function(t){this.labelShow=!1,this.dataLabel=t},openLabel:function(t){this.labelShow=!0,this.$refs.userLabel.userLabel(JSON.parse(JSON.stringify(this.dataLabel)))},labelClose:function(){this.labelShow=!1},selectOne:function(t){this.selectProductAttrList=t},getAttr:function(){if(!this.selectProductAttrList.length)return this.$Message.warning("请先选择规格");var t;t="Main"===this.goodsAddType?this.specsMainData:this.specsData,this.$set(t[this.tabIndex],"attr",this.selectProductAttrList),this.$set(t[this.tabIndex],"items",this.selectProductAttrList[0].items),this.ggModel=!1},clearOne:function(t){},getMemberShip:function(){var t=this;this.loading=!0,Object(_api_user__WEBPACK_IMPORTED_MODULE_4__.bb)().then((function(e){t.loading=!1;var r=e.data,n=(r.count,r.list);t.datavipLabel=n})).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},changeRatePrice:function(){var t,e=_createForOfIteratorHelper(this.manyFormValidate);try{for(e.s();!(t=e.n()).done;){var r=t.value;this.$set(r,"price",this.rate_price);for(var n=this.selectProductAttrList,a=0;a<n.length;a++)r.value===n[a].value&&this.$set(r,"_checked",!0)}}catch(t){e.e(t)}finally{e.f()}},generate:function(t,e){var r=this;Object(_api_marketing__WEBPACK_IMPORTED_MODULE_7__.sb)(t,e).then((function(t){for(var e=JSON.parse(JSON.stringify(t.data.info.attrs)),n=JSON.parse(JSON.stringify(t.data.info.items)),a=0;a<e.length;a++)e[a].items=n;var i="Main"===r.goodsAddType?r.specsMainData[r.tabIndex].attr||[]:r.specsData[r.tabIndex].attr||[];if(r.selectProductAttrList=[],i.length)for(var o=0;o<i.length;o++)for(var s=i[o],c=0;c<e.length;c++)s.value===e[c].value&&(r.$set(e[c],"price",s.price),r.$set(e[c],"pnum",s.pnum),r.$set(e[c],"_checked",!0),r.selectProductAttrList.push(e[c]));r.manyFormValidate=e,r.ggModel=!0})).catch((function(t){r.$Message.error(t.msg)}))},getProductId:function(t){var e=this;if("Main"===this.goodsAddType&&(t.length>1||this.specsMainData.length>0))this.$Message.warning("最多添加一个商品");else{for(var r=JSON.parse(JSON.stringify(t)),n=0;n<r.length;n++)r[n].attr=[];this.$nextTick((function(t){if("Main"===e.goodsAddType){if(e.concat_arr(e.specsData,r).length)return e.$Message.warning("已存在搭配商品");e.specsMainData=e.specsMainData.concat(r)}else{var n=e.concat_arr(e.specsData,r),a=e.concat_arr(e.specsMainData,r);if(n.length||a.length)return e.$Message.warning("已存在相同主商品/搭配商品");e.specsData=e.specsData.concat(r)}e.modals=!1}))}},onchangeTime:function(t){var e=this;this.$nextTick((function(){e.$set(e.formValidate,"time",t)}))},getInfo:function(){var t=this;this.spinShow=!0,Object(_api_discounts__WEBPACK_IMPORTED_MODULE_3__.b)(this.id).then((function(e){t.spinShow=!1,t.formValidate=e.data,t.dataLabel=e.data.link_ids||[],t.formValidate.time=e.data.time||[];for(var r=0;r<e.data.products.length;r++){var n=e.data.products[r];1==n.type?t.specsMainData.push(n):t.specsData.push(n)}}))},next:function(t){var e,r=this;if(1===this.formValidate.type&&!this.specsMainData.length)return this.$Message.warning("请选择主商品");if(0===this.formValidate.type&&!this.specsData.length)return this.$Message.warning("请选择套餐商品");this.specsMainData.forEach((function(t){t.type=1})),this.specsData.forEach((function(t){t.type=0})),e=1==this.formValidate.type?this.specsMainData.concat(this.specsData):this.specsData;for(var n=0;n<e.length;n++){var a=e[n];if(!a.items)return this.$Message.warning("请选择 ".concat(a.store_name," 的规格"))}this.formValidate.products=e;var i=[];if(this.dataLabel.forEach((function(t){i.push(t.id)})),this.formValidate.link_ids=i,this.submitOpen)return!1;this.$refs[t].validate((function(t){if(!t)return!1;r.submitOpen=!0,r.id&&!r.copy?Object(_api_discounts__WEBPACK_IMPORTED_MODULE_3__.d)(r.formValidate).then(function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r.$Message.success(e.msg),setTimeout((function(){r.submitOpen=!1,r.$router.push({path:r.roterPre+"/marketing/store_discounts/index"})}),500);case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){r.submitOpen=!1,r.$Message.error(t.msg)})):Object(_api_discounts__WEBPACK_IMPORTED_MODULE_3__.d)(r.formValidate).then(function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r.$Message.success(e.msg),setTimeout((function(){r.submitOpen=!1,r.$router.push({path:r.roterPre+"/marketing/store_discounts/index"})}),500);case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){r.submitOpen=!1,r.$Message.error(t.msg)}))}))},concat_arr:function(t,e){for(var r=[],n=0;n<t.length;n++){for(var a=t[n],i=a.product_id,o=!1,s=0;s<e.length;s++)if(e[s].product_id==i){o=!0;break}o&&r.push(a)}return r},modalPicTap:function(t,e,r){this.modalPic=!0,this.isChoice="dan"===t?"单选":"多选",this.picTit=e||"",this.tableIndex=r},getPic:function(t){switch(this.picTit){case"danFrom":this.formValidate.image=t.att_dir;break;default:this.specsData[this.tableIndex].image=t.att_dir}this.modalPic=!1},handleRemove:function(){this.formValidate.image=""},validate:function(t,e,r){return!1!==e||(this.$Message.error(r),!1)},cancel:function(){this.modals=!1},addGoods:function(t){this.goodsAddType=t,this.modals=!0},editGoods:function(t,e,r){this.goodsAddType=r,this.tabIndex=e,this.generate(t.product_id,0)},deleteGoods:function(t,e){"Main"===e?this.specsMainData.splice(t,1):this.specsData.splice(t,1)},sumArr:function sumArr(arr,name){for(var arrData=[],i=0;i<arr.length;i++)arrData.push(arr[i][name]);return eval(arrData.join("+"))},addGoodsData:function(t){null!=this.editIndex?this.specsData.concat(t):this.specsData.length<8?this.specsData.push(t):this.$Message.warning("最多添加8个奖品"),this.addGoodsModel=!1,this.editIndex=null},onDragDrop:function(t,e){var r;(r=this.specsData).splice.apply(r,[e,1].concat(_toConsumableArray(this.specsData.splice(t,1,this.specsData[e]))))},formatDate:function(t){if(t){var e=new Date(1e3*t);return Object(_utils_validate__WEBPACK_IMPORTED_MODULE_8__.a)(e,"yyyy-MM-dd hh:mm")}return""}}}},"8b6f":function(t,e,r){},"90d5":function(t,e,r){"use strict";r("8b6f")},a24d:function(t,e,r){"use strict";r.r(e);var n=r("6959").a,a=(r("90d5"),r("2877")),i=Object(a.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-submit"},[e("div",{staticClass:"i-layout-page-header"},[e("PageHeader",{staticClass:"product_tabs",attrs:{"hidden-breadcrumb":""}},[e("div",{attrs:{slot:"title"},slot:"title"},[e("router-link",{attrs:{to:{path:"".concat(t.roterPre,"/marketing/store_discounts/index")}}},[e("div",{staticClass:"font-sm after-line"},[e("span",{staticClass:"iconfont iconfanhui"}),e("span",{staticClass:"pl10"},[t._v("返回")])])]),e("span",{staticClass:"mr20 ml16",domProps:{textContent:t._s(t.$route.query.id?"编辑套餐信息":"添加套餐信息")}})],1)])],1),e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("Row",{staticClass:"acea-row row-middle",attrs:{type:"flex"}},[e("Col",{attrs:{span:"23"}},[e("Form",{ref:"formValidate",staticClass:"form",attrs:{rules:t.ruleValidate,model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition},on:{"on-validate":t.validate},nativeOn:{submit:function(t){t.preventDefault()}}},[e("Row",{directives:[{name:"show",rawName:"v-show",value:0===t.current,expression:"current === 0"}],attrs:{type:"flex"}},[e("Col",{attrs:{span:"24"}},[e("FormItem",{attrs:{label:"套餐名称:",prop:"title","label-for":"title"}},[e("Input",{staticClass:"perW30",attrs:{placeholder:"请输入套餐名称","element-id":"title",maxlength:20},model:{value:t.formValidate.title,callback:function(e){t.$set(t.formValidate,"title",e)},expression:"formValidate.title"}})],1)],1),t._e(),e("Col",{attrs:{span:"24"}},[e("FormItem",{attrs:{label:"关联会员卡类型:",prop:"vip_type","label-for":"vip_type"}},[e("RadioGroup",{attrs:{"element-id":"vip_type"},model:{value:t.formValidate.vip_type,callback:function(e){t.$set(t.formValidate,"vip_type",e)},expression:"formValidate.vip_type"}},t._l(t.datavipLabel,(function(r,n){return e("Radio",{key:n,attrs:{label:r.id}},[t._v(t._s(r.title))])})),1)],1)],1),e("Col",{attrs:{span:"24"}},[e("FormItem",{attrs:{label:"套餐类型:",prop:"type","label-for":"type"}},[e("RadioGroup",{attrs:{"element-id":"type"},model:{value:t.formValidate.type,callback:function(e){t.$set(t.formValidate,"type",e)},expression:"formValidate.type"}},[e("Radio",{staticClass:"radio",attrs:{label:0}},[t._v("固定套餐")]),e("Radio",{attrs:{label:1}},[t._v("搭配套餐")])],1),e("div",{staticClass:"ml100 grey"},[t._v("\n "+t._s(0==t.formValidate.type?"套餐内所有商品打包销售,消费者需成套购买整个套餐":"套餐内主商品必选,搭配商品任意选择1件及以上即可购买套餐")+"\n ")])],1)],1),1==t.formValidate.type?e("Col",{attrs:{span:"24"}},[e("FormItem",{attrs:{label:"套餐主商品:",prop:"products","label-for":"products"}},[e("Table",{attrs:{data:t.specsMainData,columns:t.columns,border:""},on:{"on-drag-drop":t.onDragDrop},scopedSlots:t._u([{key:"store_name",fn:function(r){var n=r.row;return r.index,[e("div",{staticClass:"product-data"},[e("img",{staticClass:"image",attrs:{src:n.image}}),e("div",[t._v(t._s(n.store_name))])])]}},{key:"attr",fn:function(r){var n=r.row;return r.index,t._l(n.attr,(function(r,n){return e("div",{key:n},[t._v("\n "+t._s(r.value)+" | "+t._s(r.price)+"\n ")])}))}},{key:"setting",fn:function(r){var n=r.row,a=r.index;return[e("a",{on:{click:function(e){return t.editGoods(n,a,"Main")}}},[t._v("设置规格")]),e("Divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.deleteGoods(a,"Main")}}},[t._v("删除")])]}}],null,!1,3194663423)}),t.specsMainData.length<1?e("Button",{staticClass:"submission mr15 mt20",attrs:{type:"primary"},on:{click:function(e){return t.addGoods("Main")}}},[t._v("添加商品")]):t._e()],1)],1):t._e(),e("Col",{attrs:{span:"24"}},[e("FormItem",{attrs:{label:1==t.formValidate.type?"套餐搭配商品:":"套餐商品",prop:"products","label-for":"products"}},[e("Table",{attrs:{data:t.specsData,columns:t.columns,border:""},on:{"on-drag-drop":t.onDragDrop},scopedSlots:t._u([{key:"store_name",fn:function(r){var n=r.row;return r.index,[e("div",{staticClass:"product-data"},[e("img",{staticClass:"image",attrs:{src:n.image}}),e("div",{staticClass:"info"},[e("Tooltip",{attrs:{"max-width":"200",placement:"bottom"}},[e("span",{staticClass:"line2"},[t._v(t._s(n.store_name)+t._s(n.suk))]),e("p",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(n.store_name)+t._s(n.suk))])])],1)])]}},{key:"attr",fn:function(r){var n=r.row;return r.index,t._l(n.attr,(function(r,n){return e("div",{key:n},[t._v("\n "+t._s(r.value)+" | 数量:"+t._s(r.pnum)+" | 优惠价:"+t._s(r.price)+"\n ")])}))}},{key:"setting",fn:function(r){var n=r.row,a=r.index;return[e("a",{on:{click:function(e){return t.editGoods(n,a,"Other")}}},[t._v("设置规格")]),e("Divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.deleteGoods(a,"Other")}}},[t._v("删除")])]}}])}),t.specsData.length<50?e("Button",{staticClass:"submission mr15 mt20",attrs:{type:"primary"},on:{click:function(e){return t.addGoods("Other")}}},[t._v("添加商品")]):t._e()],1)],1),e("Col",{attrs:{span:"24"}},[e("FormItem",{attrs:{prop:"image"}},[e("div",{staticClass:"custom-label",attrs:{slot:"label"},slot:"label"},[e("div",[e("div",[t._v("套餐主图")]),e("div",[t._v("(750*750)")])]),e("div",[t._v(":")])]),e("div",{staticClass:"acea-row"},[t.formValidate.image?e("div",{staticClass:"pictrue"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.formValidate.image,expression:"formValidate.image"}]}),e("Button",{staticClass:"btndel",attrs:{shape:"circle",icon:"md-close"},nativeOn:{click:function(e){return t.handleRemove()}}})],1):e("div",{staticClass:"upLoad acea-row row-center-wrapper",on:{click:function(e){return t.modalPicTap("dan","danFrom")}}},[e("Icon",{staticClass:"iconfonts",attrs:{type:"ios-camera-outline",size:"26"}})],1)])])],1),t._e(),t._e(),e("Col",{attrs:{span:"24"}},[e("FormItem",{attrs:{label:"排序:","label-for":"sort"}},[e("InputNumber",{staticClass:"perW30",attrs:{placeholder:"请输入排序序号","element-id":"sort",min:0,max:999999,precision:0},model:{value:t.formValidate.sort,callback:function(e){t.$set(t.formValidate,"sort",e)},expression:"formValidate.sort"}})],1)],1),e("Col",{attrs:{span:"24"}},[e("FormItem",{attrs:{label:"套餐包邮:",prop:"free_shipping","label-for":"status"}},[e("i-switch",{attrs:{size:"large","element-id":"free_shipping","false-value":0,"true-value":1},model:{value:t.formValidate.free_shipping,callback:function(e){t.$set(t.formValidate,"free_shipping",e)},expression:"formValidate.free_shipping"}},[e("span",{attrs:{slot:"close","false-value":"0"},slot:"close"},[t._v("否")]),e("span",{attrs:{slot:"open","true-value":"1"},slot:"open"},[t._v("是")])]),e("div",{staticClass:"ml100 grey"},[t._v("\n 不包邮时,将按照商品的运费模板进行计算\n ")])],1)],1),e("Col",{attrs:{span:"24"}},[e("FormItem",{attrs:{label:"上架状态:",prop:"status","label-for":"status"}},[e("i-switch",{attrs:{size:"large","element-id":"status","false-value":0,"true-value":1},model:{value:t.formValidate.status,callback:function(e){t.$set(t.formValidate,"status",e)},expression:"formValidate.status"}},[e("span",{attrs:{slot:"close"},slot:"close"},[t._v("下架")]),e("span",{attrs:{slot:"open"},slot:"open"},[t._v("上架")])])],1)],1)],1),t.spinShow?e("Spin",{attrs:{size:"large",fix:""}}):t._e()],1)],1)],1)],1),e("Card",{staticClass:"fixed-card",style:{left:"".concat(t.menuCollapse?t.isMobile?"0":"80px":"200px")},attrs:{bordered:!1,"dis-hover":""}},[e("Form",[e("FormItem",[e("Button",{staticClass:"submission",attrs:{type:"primary",loading:t.submitOpen},on:{click:function(e){return t.next("formValidate")}}},[t.submitOpen?e("div",[t._v("提交中")]):e("div",[t._v("提交")])])],1)],1)],1),e("Modal",{attrs:{width:"960px",scrollable:"","footer-hide":"",closable:"",title:"上传商品图","mask-closable":!1,"z-index":1},model:{value:t.modalPic,callback:function(e){t.modalPic=e},expression:"modalPic"}},[t.modalPic?e("uploadPictures",{attrs:{isChoice:t.isChoice},on:{getPic:t.getPic}}):t._e()],1),e("Modal",{staticClass:"paymentFooter",attrs:{title:"商品列表",footerHide:"",scrollable:"",width:"900"},on:{"on-cancel":t.cancel},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[t.modals?e("goods-list",{ref:"goodslist",attrs:{ischeckbox:!0,goodsType:1},on:{getProductId:t.getProductId}}):t._e()],1),e("Modal",{staticClass:"paymentFooter",attrs:{title:"规格设置",footerHide:"",scrollable:"",width:"900"},on:{"on-cancel":t.cancel},model:{value:t.ggModel,callback:function(e){t.ggModel=e},expression:"ggModel"}},[e("div",{staticClass:"df"},[e("span",{staticStyle:{width:"75px"}},[t._v(" 优惠价:")]),e("InputNumber",{staticClass:"m10",staticStyle:{width:"100%"},attrs:{min:0},model:{value:t.rate_price,callback:function(e){t.rate_price=e},expression:"rate_price"}}),e("Button",{attrs:{type:"primary"},on:{click:function(e){return t.changeRatePrice()}}},[e("div",[t._v("批量添加")])])],1),t.ggModel?e("Table",{attrs:{data:t.manyFormValidate,columns:t.header,border:"",height:"500"},on:{"on-selection-change":t.selectOne},scopedSlots:t._u([{key:"image",fn:function(t){var r=t.row;return t.index,[e("div",{staticClass:"product-data"},[e("img",{staticClass:"image",attrs:{src:r.pic}})])]}}],null,!1,1116546709)}):t._e(),e("Button",{staticClass:"mt10",attrs:{type:"primary",long:""},on:{click:function(e){return t.getAttr()}}},[e("div",[t._v("提交")])])],1),e("Modal",{attrs:{scrollable:"",title:"选择用户标签",closable:!0,width:"540","footer-hide":!0,"mask-closable":!1},model:{value:t.labelShow,callback:function(e){t.labelShow=e},expression:"labelShow"}},[e("userLabel",{ref:"userLabel",on:{activeData:t.activeData,close:t.labelClose}})],1)],1)}),[],!1,null,"1b24de04",null);e.default=i.exports},a405:function(t,e,r){"use strict";r("d5fd")},c24f:function(t,e,r){"use strict";r.d(e,"X",(function(){return a})),r.d(e,"N",(function(){return i})),r.d(e,"M",(function(){return o})),r.d(e,"k",(function(){return s})),r.d(e,"r",(function(){return c})),r.d(e,"d",(function(){return u})),r.d(e,"h",(function(){return l})),r.d(e,"g",(function(){return d})),r.d(e,"q",(function(){return f})),r.d(e,"s",(function(){return p})),r.d(e,"J",(function(){return m})),r.d(e,"P",(function(){return _})),r.d(e,"L",(function(){return h})),r.d(e,"K",(function(){return b})),r.d(e,"f",(function(){return g})),r.d(e,"e",(function(){return v})),r.d(e,"n",(function(){return y})),r.d(e,"R",(function(){return O})),r.d(e,"p",(function(){return w})),r.d(e,"Q",(function(){return P})),r.d(e,"cb",(function(){return j})),r.d(e,"U",(function(){return D})),r.d(e,"S",(function(){return E})),r.d(e,"T",(function(){return L})),r.d(e,"W",(function(){return M})),r.d(e,"V",(function(){return x})),r.d(e,"Y",(function(){return k})),r.d(e,"v",(function(){return C})),r.d(e,"w",(function(){return A})),r.d(e,"Z",(function(){return T})),r.d(e,"i",(function(){return I})),r.d(e,"bb",(function(){return S})),r.d(e,"C",(function(){return $})),r.d(e,"db",(function(){return V})),r.d(e,"m",(function(){return R})),r.d(e,"ab",(function(){return W})),r.d(e,"F",(function(){return B})),r.d(e,"B",(function(){return U})),r.d(e,"A",(function(){return F})),r.d(e,"z",(function(){return G})),r.d(e,"D",(function(){return K})),r.d(e,"y",(function(){return N})),r.d(e,"x",(function(){return q})),r.d(e,"u",(function(){return J})),r.d(e,"t",(function(){return H})),r.d(e,"o",(function(){return z})),r.d(e,"l",(function(){return Y})),r.d(e,"G",(function(){return Q})),r.d(e,"I",(function(){return X})),r.d(e,"eb",(function(){return Z})),r.d(e,"O",(function(){return tt})),r.d(e,"E",(function(){return et})),r.d(e,"b",(function(){return rt})),r.d(e,"a",(function(){return nt})),r.d(e,"fb",(function(){return at})),r.d(e,"j",(function(){return it})),r.d(e,"c",(function(){return ot})),r.d(e,"H",(function(){return st}));var n=r("b6bd");function a(t){return Object(n.a)({url:"user/user",method:"get",params:t})}function i(t){return Object(n.a)({url:"setting/config/user/".concat(t),method:"get"})}function o(t,e){return Object(n.a)({url:"setting/config/user/".concat(t),method:"post",data:e})}function s(t){return Object(n.a)({url:"user/user/".concat(t,"/edit"),method:"get"})}function c(t){return Object(n.a)({url:"user/set_status/".concat(t.status,"/").concat(t.id),method:"put"})}function u(t){return Object(n.a)({url:"marketing/coupon/grant",method:"get",params:t})}function l(t){return Object(n.a)({url:"user/edit_other/".concat(t),method:"get"})}function d(t){return Object(n.a)({url:"user/user/".concat(t),method:"get"})}function f(t){return Object(n.a)({url:"user/one_info/".concat(t.id),method:"get",params:t.datas})}function p(t){return Object(n.a)({url:"user/user_level/vip_list",method:"get",params:t})}function m(t){return Object(n.a)({url:"user/user_level/set_show/".concat(t.id,"/").concat(t.is_show),method:"PUT"})}function _(t,e){return Object(n.a)({url:"user/user_level/task/".concat(t),method:"get",params:e})}function h(t){return Object(n.a)({url:"user/user_level/set_task_show/".concat(t.id,"/").concat(t.is_show),method:"PUT"})}function b(t){return Object(n.a)({url:"user/user_level/set_task_must/".concat(t.id,"/").concat(t.is_must),method:"PUT"})}function g(t){return Object(n.a)({url:"/user/user_level/create_task",method:"get",params:t})}function v(t){return Object(n.a)({url:"user/user_level/create",method:"get",params:t})}function y(t){return Object(n.a)({url:"user/give_level/".concat(t),method:"get"})}function O(t){return Object(n.a)({url:"user/user_group/list",method:"get",params:t})}function w(t){return Object(n.a)({url:"user/user_group/add/".concat(t),method:"get"})}function P(t){return Object(n.a)({url:"setting/update_admin",method:"PUT",data:t})}function j(t){return Object(n.a)({url:"user/set_group",method:"post",data:t})}function D(t){return Object(n.a)({url:"user/user_label",method:"get",params:t})}function E(t,e){return Object(n.a)({url:"user/user_label/add/".concat(t),method:"get",params:e})}function L(t){return Object(n.a)({url:"user/user_label_cate/all",method:"get",params:t})}function M(t){return Object(n.a)({url:"user/user_label_cate/".concat(t,"/edit"),method:"get"})}function x(t){return Object(n.a)({url:"user/user_label_cate/create",method:"get"})}function k(t){return Object(n.a)({url:"/user/member_batch/index",method:"get",params:t})}function C(t,e){return Object(n.a)({url:"/user/member_batch/save/".concat(t),method:"post",data:e})}function A(t,e){return Object(n.a)({url:"/user/member_batch/set_value/".concat(t),method:"get",params:e})}function T(t,e){return Object(n.a)({url:"/user/member_card/index/".concat(t),method:"get",params:e})}function I(t,e){return Object(n.a)({url:"/export/memberCard/".concat(t),method:"get",params:e})}function S(){return Object(n.a)({url:"/user/member/ship",method:"get"})}function $(t,e){return Object(n.a)({url:"/user/member_ship/save/".concat(t),method:"post",data:e})}function V(){return Object(n.a)({url:"/user/user/syncUsers",method:"get"})}function R(){return Object(n.a)({url:"/user/user/create",method:"get"})}function W(){return Object(n.a)({url:"/user/member_scan",method:"get"})}function B(t,e){return Object(n.a)({url:"user/label/".concat(t),method:"post",data:e})}function U(t){return Object(n.a)({url:"user/member_right/save/".concat(t.id),method:"post",data:t})}function F(){return Object(n.a)({url:"user/member/right",method:"get"})}function G(t){return Object(n.a)({url:"/user/member/record",method:"get",params:t})}function K(){return Object(n.a)({url:"user/member/ship_select",method:"get"})}function N(t){return Object(n.a)({url:"user/member_card/set_status",method:"get",params:t})}function q(t){return Object(n.a)({url:"user/member_ship/set_ship_status",method:"get",params:t})}function J(t,e){return Object(n.a)({url:"user/member_agreement/save/".concat(t),method:"post",data:e})}function H(){return Object(n.a)({url:"user/member/agreement",method:"get"})}function z(t){return Object(n.a)({url:"user/give_level_time/".concat(t),method:"get"})}function Y(t){return Object(n.a)({url:"user/label/".concat(t),method:"get"})}function Q(t){return Object(n.a)({url:"user/save_set_label",method:"put",data:t})}function X(t){return Object(n.a)({url:"setting/info",method:"get"})}function Z(t){return Object(n.a)({url:"user/visit_list/".concat(t.id),method:"get",params:t.datas})}function tt(t){return Object(n.a)({url:"user/spread_list/".concat(t.id),method:"get",params:t.datas})}function et(t){return Object(n.a)({url:"user/user/".concat(t.uid),method:"put",data:t})}function rt(t,e){return Object(n.a)({url:"agent/set_agent_agreement/".concat(t),method:"post",data:e})}function nt(){return Object(n.a)({url:"agent/get_agent_agreement",method:"get"})}function at(){return Object(n.a)({url:"user/synchro/work/label",method:"get"})}function it(t){return Object(n.a)({url:"user/user/extend_info/".concat(t),method:"get"})}function ot(t){return Object(n.a)({url:"user/batch_process",method:"post",data:t})}function st(t,e){return Object(n.a)({url:"/user/member/save/content/".concat(t),method:"post",data:e})}},c52d:function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));var n={title:[{required:!0,message:"请输入套餐名称",trigger:"blur"}],type:[{required:!0,type:"number",message:"请选择套餐类型",trigger:"change"}],time:[{required:!0,validator:function(t,e,r){if(Array.isArray(e))e.map((function(t){if(""===t)return r("日期不能为空")}));else if(""===e)return r("日期不能为空");return r()},trigger:"change"}],limit_num:[{required:!0,type:"number",message:"请输入套餐数量",trigger:"blur"}],image:[{required:!0,message:"请上传套餐主图",trigger:"change"}]}},d5fd:function(t,e,r){}}]);