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 line
55 KiB
1 line
55 KiB
4 months ago
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-ef5bdba6"],{"082a":function(t,e,r){"use strict";r.r(e);var a=r("2f62"),n=r("b7be"),o=r("c24f"),i=r("c4c8"),s=r("5671"),c=r("f1c7"),l=r("0f0e"),u=r("c4ad"),d=r("e449"),f=r("d708");function m(t){return(m="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 p(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,a)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?p(Object(r),!0).forEach((function(e){b(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function b(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=m(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var a=r.call(t,e||"default");if("object"!=m(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==m(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var v={name:"addPiecesDiscount",components:{userLabel:l.a,goodsList:u.default,couponList:d.a,storeLabelList:c.a,storeList:s.a},data:function(){return{storesList:[],storeModals:!1,roterPre:f.a.roterPre,storeDataLabel:[],storeLabelShow:!1,props:{emitPath:!1,multiple:!0},brandData:[],goodsType:0,grid:{xl:7,lg:7,md:12,sm:24,xs:24},modals:!1,tableData:[],headTab:[{name:"基础设置",type:"1"},{name:"添加商品",type:"2"},{name:"适用门店",type:"3"}],discountType:[{name:"满N元",title:"例:满100元减10元",id:1},{name:"满N件",title:"例:满3件减10元",id:2}],activityType:[{name:"优惠券",type:"5"},{name:"第N件N折",type:"2"},{name:"限时折扣",type:"1"}],currentTab:"1",dataLabel:[],labelShow:!1,formValidate:{applicable_type:1,name:"",section_time:[],is_label:0,label_id:[],is_overlay:"0",overlay:[],product_partake_type:1,product_id:[],threshold_type:1,promotions_cate:"1",promotions:[],brand_id:[],store_label_id:[]},promotionsData:[{threshold:0,discount_type:1,discount:1,money:0}],indexCoupon:0,indexGoods:0,ruleValidate:{name:[{required:!0,message:"请输入活动名称",trigger:"blur"}],section_time:[{required:!0,type:"array",message:"请选择活动时间",trigger:"change"}],promotions_cate:[{required:!0,message:"请设置满送方式",trigger:"change"}],is_overlay:[{required:!0,message:"请设置优惠叠加",trigger:"change"}]}}},computed:h(h({},Object(a.e)("admin/layout",["isMobile","menuCollapse"])),{},{labelWidth:function(){return this.isMobile?void 0:96},labelPosition:function(){return this.isMobile?"top":"right"},labelBottom:function(){return this.isMobile?void 0:15}}),created:function(){},mounted:function(){this.setCopyrightShow({value:!1}),0!=this.$route.params.id&&this.getDiscountInfo()},destroyed:function(){this.setCopyrightShow({value:!0})},methods:h(h({},Object(a.d)("admin/layout",["setCopyrightShow"])),{},{delte:function(t){var e=this;this.storesList.forEach((function(r,a){t.id==r.id&&e.storesList.splice(a,1)}))},addStore:function(){this.storeModals=!0},cancelStore:function(){this.storeModals=!1},getStoreId:function(t){this.storeModals=!1;var e=this.storesList.concat(t),r=this.unique(e);this.storesList=r},closeStoreLabel:function(t){var e=this.storeDataLabel.indexOf(this.storeDataLabel.filter((function(e){return e.id==t.id}))[0]);this.storeDataLabel.splice(e,1)},openStoreLabel:function(){this.storeLabelShow=!0,this.$refs.storeLabel.storeLabel(JSON.parse(JSON.stringify(this.storeDataLabel)))},activeStoreData:function(t){this.storeLabelShow=!1,this.storeDataLabel=t},storeLabelClose:function(){this.storeLabelShow=!1},goodTap:function(t){4==t&&th
|