chunk-de500dc4.a317fcd0.js 29 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-de500dc4"],{"138d":function(t,e,a){"use strict";var r=a("2966");a.n(r).a},2966:function(t,e,a){},4977:function(t,e,a){},5671:function(t,e,a){"use strict";var r=a("2f62"),o=a("73f5");function i(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,r)}return a}function n(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var s={name:"index",data:function(){return{selectEquips:[],selectEquipsIds:[],modal_loading:!1,treeSelect:[],formValidate:{page:1,limit:10,cate_id:[],name:""},total:0,loading:!1,grid:{xl:10,lg:10,md:12,sm:24,xs:24},tableList:[],columns:[{type:"selection",width:60,align:"center"},{title:"ID",key:"id",width:60},{title:"门店图片",slot:"image",minWidth:80},{title:"门店名称",key:"name",minWidth:80},{title:"门店分类",key:"cate_name",minWidth:80},{title:"联系电话",key:"phone",minWidth:90},{title:"门店地址",key:"address",ellipsis:!0,minWidth:150},{title:"营业时间",key:"day_time",minWidth:120},{title:"营业状态",key:"status_name",minWidth:80}]}},computed:function(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?i(a,!0).forEach((function(e){n(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):i(a).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}({},Object(r.e)("admin/layout",["isMobile"]),{labelWidth:function(){return this.isMobile?void 0:120},labelPosition:function(){return this.isMobile?"top":"right"}}),created:function(){},mounted:function(){this.getList(),this.goodsCategory()},methods:{sortData:function(){var t=this;this.selectEquipsIds.length&&this.tableList.forEach((function(e){t.selectEquipsIds.includes(e.id)&&(e._checked=!0)}))},TableSelectRow:function(t,e){this.selectEquipsIds.includes(e.id)||(this.selectEquipsIds.push(e.id),this.selectEquips.push(e))},TableSelectCancelRow:function(t,e){var a=this.selectEquipsIds.indexOf(e.id);-1!=a&&(this.selectEquipsIds.splice(a,1),this.selectEquips.splice(a,1))},selectAll:function(){for(var t=this.tableList.length-1;t>=0;t--)this.TableSelectRow(null,this.tableList[t])},cancelAll:function(){for(var t=this.tableList.length-1;t>=0;t--)this.TableSelectCancelRow(null,this.tableList[t])},handleSelectAll:function(){this.$refs.table.selectAll(!1)},pageChange:function(t){this.formValidate.page=t,this.getList()},goodsCategory:function(){var t=this;Object(o.a)(1).then((function(e){t.treeSelect=e.data})).catch((function(e){t.$Message.error(e.msg)}))},getList:function(){var t=this;this.loading=!0,Object(o.J)(this.formValidate).then((function(e){t.tableList=e.data.list,t.total=e.data.count,t.sortData(),t.loading=!1})).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},ok:function(){var t=[];this.selectEquips.forEach((function(e){var a={image:e.image,product_id:e.id,store_name:e.store_name,temp_id:e.temp_id};t.push(a)})),t.length>0?this.$emit("getStoreId",this.selectEquips):this.$Message.warning("请先选择商品")},userSearchs:function(){this.formValidate.page=1,this.getList()}}},c=(a("cff2"),a("2877")),u=Object(c.a)(s,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"goodList"},[a("Form",{ref:"formValidate",staticClass:"tabform",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition,inline:""}},[a("FormItem",{attrs:{label:"门店分类:","label-for":"pid"}},[a("Cascader",{staticClass:"input-add",attrs:{data:t.treeSelect,placeholder:"请选择门店分类","change-on-select":"",filterable:""},model:{value:t.formValidate.cate_id,callback:function(e){t.$set(t.formValidate,"cate_id",e)},expression:"formValidate.cate_id"}})],1),a("FormItem",{attrs:{label:"门店搜索:","label-for":"name"}},[a("Input",{staticClass:"input-add mr14",attrs:{placeholder:"请输入门店名称"},model:{value:t.formValidate.name,callback:function(e){t.$set(t.formValidate,"name",e)},expression:"formValidate.name"}}),a("Button",{attrs:{type:"primary"},on:{click:t.userSearchs}},[t._v("搜索")])],1)],1),a("Table",{ref:"table",staticClass:"mr-20",attrs:{"no-data-text":"暂无数据","no-filtered-data-text":"暂无筛选结果",columns:t.columns,data:t.tableList,loading:t.loading,height:"350"},on:{"on-select-all":t.selectAll,"on-select-all-cancel":t.cancelAll,"on-select":t.TableSelectRow,"on-select-cancel":t.TableSelectCancelRow},scopedSlots:t._u([{key:"image",fn:function(t){var e=t.row;return[a("viewer",[a("div",{staticClass:"tabBox_img"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.image,expression:"row.image"}]})])])]}}])}),a("div",{staticClass:"acea-row row-right page"},[a("Page",{attrs:{total:t.total,"show-elevator":"","show-total":"","page-size":t.formValidate.limit},on:{"on-change":t.pageChange}})],1),a("div",{staticClass:"footer",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"primary",size:"large",loading:t.modal_loading,long:""},on:{click:t.ok}},[t._v("提交")])],1)],1)}),[],!1,null,"326ba106",null);e.a=u.exports},"6da2":function(t,e,a){"use strict";a.r(e);var r=a("a34a"),o=a.n(r),i=a("2f62"),n=a("5671"),s=a("c4ad"),c=a("b7be"),u=a("c4c8"),l=a("d708");function d(t,e,a,r,o,i,n){try{var s=t[i](n),c=s.value}catch(t){return void a(t)}s.done?e(c):Promise.resolve(c).then(r,o)}function m(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,r)}return a}function f(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var p={name:"storeCouponCreate",components:{goodsList:s.default,storeList:n.a},data:function(){return{roterPre:l.a.roterPre,couponType:[{name:"满减券",title:"满N元减N元",id:1},{name:"折扣券",title:"满N元打N折",id:2}],disabled:!1,storesList:[],formData:{coupon_title:"",coupon_price:0,type:0,use_min_price:0,coupon_time:1,start_use_time:0,end_use_time:0,start_time:0,end_time:0,receive_type:1,is_permanent:1,total_count:1,sort:0,status:1,product_id:"",category_id:[],brand_id:[],coupon_type:1,applicable_type:1,applicable_store_id:[]},categoryList:[],brandList:[],productList:[],isMinPrice:0,isCouponTime:1,isReceiveTime:0,modals:!1,datetime1:[],datetime2:[],storeModals:!1,currentTab:"1"}},computed:function(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?m(a,!0).forEach((function(e){f(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):m(a).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}({},Object(i.e)("admin/layout",["isMobile","menuCollapse"])),created:function(){this.getBrandList(),this.getCategoryList(),this.$route.params.id&&this.getCouponDetail()},methods:{delte:function(t){var e=this;this.storesList.forEach((function(a,r){t.id==a.id&&e.storesList.splice(r,1)}))},addStore:function(){this.storeModals=!0},cancelStore:function(){this.storeModals=!1},uniqueId:function(t){var e=new Map;return t.filter((function(t){return!e.has(t.id)&&e.set(t.id,1)}))},getStoreId:function(t){this.storeModals=!1;var e=this.storesList.concat(t),a=this.uniqueId(e);this.storesList=a},couponTypeTap:function(t){this.formData.coupon_price=0,this.formData.coupon_type=t.id},getCategoryList:function(){var t=this;Object(c.t)(1).then(function(){var e,a=(e=o.a.mark((function e(a){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a.data.forEach((function(t){t.cate_name="".concat(t.html).concat(t.cate_name)})),t.categoryList=a.data;case 2:case"end":return e.stop()}}),e)})),function(){var t=this,a=arguments;return new Promise((function(r,o){var i=e.apply(t,a);function n(t){d(i,r,o,n,s,"next",t)}function s(t){d(i,r,o,n,s,"throw",t)}n(void 0)}))});return function(t){return a.apply(this,arguments)}}())},getBrandList:function(){var t=this;Object(u.f)().then((function(e){t.brandList=e.data}))},getCouponDetail:function(){var t=this;Object(c.v)(this.$route.params.id).then((function(e){var a=e.data;t.formData.coupon_title=a.coupon_title,t.formData.coupon_type=a.coupon_type,t.formData.type=a.type,t.formData.category_id=a.category_id,t.formData.brand_id=a.brand_id,t.formData.coupon_price=parseFloat(a.coupon_price),t.formData.use_min_price=parseFloat(a.use_min_price),t.formData.coupon_time=a.coupon_time,t.formData.receive_type=a.receive_type,t.formData.is_permanent=a.is_permanent,t.formData.status=a.status,t.formData.product_id=a.product_id,t.formData.start_time=a.start_time,t.formData.end_time=a.end_time,t.formData.total_count=a.total_count,t.formData.sort=a.sort,t.formData.applicable_type=a.applicable_type,t.storesList=a.stores||[],"productInfo"in a&&(t.productList=a.productInfo),a.coupon_time||(t.isCouponTime=0,t.datetime1=[1e3*a.start_use_time,1e3*a.end_use_time],t.formData.start_use_time=t.makeDate(1e3*a.start_use_time),t.formData.end_use_time=t.makeDate(1e3*a.end_use_time)),a.start_time&&(t.isReceiveTime=1,t.datetime2=[1e3*a.start_time,1e3*a.end_time],t.formData.start_time=t.makeDate(1e3*a.start_time),t.formData.end_time=t.makeDate(1e3*a.end_time)),"0.00"!==a.use_min_price&&(t.isMinPrice=1)})).catch((function(e){t.$Message.error(e.msg)}))},makeDate:function(t){var e=new Date(t);return e.getFullYear()+"-"+(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-"+(e.getDate()<10?"0"+e.getDate():e.getDate())+" "+(e.getHours()<10?"0"+e.getHours():e.getHours())+":"+(e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes())+":"+(e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds())},upTab:function(){"2"==this.currentTab&&(this.currentTab=(Number(this.currentTab)-1).toString())},downTab:function(){if(!this.formData.coupon_title)return this.$Message.error("请输入优惠券名称");if(2===this.formData.type&&!this.formData.product_id)return this.$Message.error("请选择商品");if(1===this.formData.type&&!this.formData.category_id)return this.$Message.error("请选择品类");if(3===this.formData.type&&!this.formData.brand_id)return this.$Message.error("请选择品牌");if(this.formData.coupon_price<=0)return this.$Message.error("优惠券面值不能小于0");if(this.isMinPrice){if(this.formData.use_min_price<1)return this.$Message.error("优惠券最低消费不能小于0")}else this.formData.use_min_price=0;if(this.isCouponTime){if(this.formData.start_use_time=0,this.formData.end_use_time=0,this.formData.coupon_time<1)return this.$Message.error("使用有效期限不能小于1天")}else if(this.formData.coupon_time=0,!this.formData.start_use_time)return this.$Message.error("请选择使用有效期限");if(this.isReceiveTime){if(!this.formData.start_time)return this.$Message.error("请选择领取时间")}else this.formData.start_time=0,this.formData.end_time=0;if(this.formData.is_permanent)this.formData.total_count=0;else if(this.formData.total_count<1)return this.$Message.error("发布数量不能小于1");this.currentTab="2"},save:function(){var t=this;this.downTab(),this.disabled=!1;var e=[];if(this.storesList.forEach((function(t){e.push(t.id)})),2==this.formData.applicable_type&&!e.length)return this.$Message.warning("请添加适用门店");this.formData.applicable_store_id=e,Object(c.y)(this.formData).then((function(e){t.disabled=!0,t.$Message.success(e.msg),setTimeout((function(){t.$router.push({path:t.roterPre+"/marketing/store_coupon_issue/index"})}),1e3)})).catch((function(e){t.$Message.error(e.msg)}))},dateChange:function(t){this.formData.start_use_time=t[0],this.formData.end_use_time=t[1]},timeChange:function(t){this.formData.start_time=t[0],this.formData.end_time=t[1]},unique:function(t){var e=new Map;return t.filter((function(t){return!e.has(t.product_id)&&e.set(t.product_id,1)}))},getProductId:function(t){var e=this;this.modals=!1,this.productList=this.unique(this.productList.concat(t)),this.formData.product_id="",this.productList.forEach((function(t){e.formData.product_id?e.formData.product_id+=",".concat(t.product_id):e.formData.product_id+="".concat(t.product_id)}))},cancel:function(){this.modals=!1},remove:function(t){for(var e=this,a=0;a<this.productList.length;a++)this.productList[a].product_id==t&&this.productList.splice(a,1);this.formData.product_id="",this.productList.forEach((function(t){e.formData.product_id?e.formData.product_id+=",".concat(t.product_id):e.formData.product_id+="".concat(t.product_id)}))}}},h=(a("138d"),a("2877")),_=Object(h.a)(p,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form-submit"},[a("div",{staticClass:"i-layout-page-header"},[a("PageHeader",{staticClass:"product_tabs",attrs:{"hidden-breadcrumb":""}},[a("div",{attrs:{slot:"title"},slot:"title"},[a("router-link",{attrs:{to:{path:t.roterPre+"/marketing/store_coupon_issue/index"}}},[a("div",{staticClass:"font-sm after-line"},[a("span",{staticClass:"iconfont iconfanhui"}),a("span",{staticClass:"pl10"},[t._v("返回")])])]),a("span",{staticClass:"mr20 ml16",domProps:{textContent:t._s(t.$route.params.id?"编辑优惠券":"添加优惠券")}})],1)])],1),a("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[a("Form",{attrs:{model:t.formData,"label-width":150}},[a("Tabs",{model:{value:t.currentTab,callback:function(e){t.currentTab=e},expression:"currentTab"}},[a("TabPane",{attrs:{label:"基础设置",name:"1"}},[a("FormItem",{attrs:{label:"优惠类型:",props:"coupon_type"}},t._l(t.couponType,(function(e,r){return a("div",{key:r,staticClass:"productType",class:t.formData.coupon_type==e.id?"on":"",on:{click:function(a){return t.couponTypeTap(e)}}},[a("div",{staticClass:"name",class:t.formData.coupon_type==e.id?"on":""},[t._v("\n\t\t\t "+t._s(e.name)+"\n\t\t\t ")]),a("div",{staticClass:"title"},[t._v("("+t._s(e.title)+")")]),t.formData.coupon_type==e.id?a("div",{staticClass:"jiao"}):t._e(),t.formData.coupon_type==e.id?a("div",{staticClass:"iconfont iconduihao"}):t._e()])})),0),a("FormItem",{attrs:{label:"优惠券名称",required:""}},[a("Input",{directives:[{name:"width",rawName:"v-width",value:320,expression:"320"}],attrs:{placeholder:"请输入优惠券名称"},model:{value:t.formData.coupon_title,callback:function(e){t.$set(t.formData,"coupon_title",e)},expression:"formData.coupon_title"}})],1),a("FormItem",{attrs:{label:"优惠券面值",required:""}},[1==t.formData.coupon_type?a("InputNumber",{directives:[{name:"width",rawName:"v-width",value:320,expression:"320"}],attrs:{min:1,max:1e8},model:{value:t.formData.coupon_price,callback:function(e){t.$set(t.formData,"coupon_price",e)},expression:"formData.coupon_price"}}):a("InputNumber",{directives:[{name:"width",rawName:"v-width",value:320,expression:"320"}],attrs:{min:0,max:100,precision:0},model:{value:t.formData.coupon_price,callback:function(e){t.$set(t.formData,"coupon_price",e)},expression:"formData.coupon_price"}}),a("span",{staticClass:"ml10"},[t._v(t._s(1==t.formData.coupon_type?"元":"%"))])],1),a("FormItem",{attrs:{label:"领取方式"}},[a("RadioGroup",{model:{value:t.formData.receive_type,callback:function(e){t.$set(t.formData,"receive_type",e)},expression:"formData.receive_type"}},[a("Radio",{attrs:{label:1}},[t._v("手动领取")]),a("Radio",{attrs:{label:3}},[t._v("后台发放")])],1),a("div",{staticClass:"info"},[t._v("手动领取:用户需要在移动端的领券中心领取优惠券;后台发放:后台发放用于后台发放指定用户使用,移动端不能领取;")])],1),a("FormItem",{attrs:{label:"适用类型"}},[a("RadioGroup",{model:{value:t.formData.type,callback:function(e){t.$set(t.formData,"type",e)},expression:"formData.type"}},[a("Radio",{attrs:{label:0}},[t._v("通用券")]),a("Radio",{attrs:{label:1}},[t._v("品类券")]),a("Radio",{attrs:{label:2}},[t._v("商品券")]),a("Radio",{attrs:{label:3}},[t._v("品牌券")])],1)],1),a("FormItem",{directives:[{name:"show",rawName:"v-show",value:2===t.formData.type,expression:"formData.type === 2"}]},[t._l(t.productList,(function(e){return a("div",{key:e.product_id,staticClass:"upload-list"},[a("img",{attrs:{src:e.image}}),a("Icon",{attrs:{type:"ios-close-circle",size:"16"},on:{click:function(a){return t.remove(e.product_id)}}})],1)})),a("Icon",{attrs:{type:"ios-camera-outline",size:"26"},on:{click:function(e){t.modals=!0}}}),a("div",{staticClass:"info"},[t._v("选择商品")])],2),a("FormItem",{directives:[{name:"show",rawName:"v-show",value:1===t.formData.type,expression:"formData.type === 1"}]},[a("Cascader",{staticStyle:{width:"320px"},attrs:{data:t.categoryList,placeholder:"请选择商品分类","change-on-select":"",filterable:""},model:{value:t.formData.category_id,callback:function(e){t.$set(t.formData,"category_id",e)},expression:"formData.category_id"}}),a("div",{staticClass:"info"},[t._v("选择商品的品类")])],1),a("FormItem",{directives:[{name:"show",rawName:"v-show",value:3===t.formData.type,expression:"formData.type === 3"}]},[a("Cascader",{staticStyle:{width:"320px"},attrs:{data:t.brandList,placeholder:"请选择商品品牌","change-on-select":"",filterable:""},model:{value:t.formData.brand_id,callback:function(e){t.$set(t.formData,"brand_id",e)},expression:"formData.brand_id"}}),a("div",{staticClass:"info"},[t._v("选择商品的品牌")])],1),a("FormItem",{attrs:{label:"使用门槛"}},[a("RadioGroup",{model:{value:t.isMinPrice,callback:function(e){t.isMinPrice=e},expression:"isMinPrice"}},[a("Radio",{attrs:{label:0}},[t._v("无门槛")]),a("Radio",{attrs:{label:1}},[t._v("有门槛")])],1)],1),a("FormItem",{directives:[{name:"show",rawName:"v-show",value:t.isMinPrice,expression:"isMinPrice"}]},[a("InputNumber",{attrs:{min:1,max:1e8},model:{value:t.formData.use_min_price,callback:function(e){t.$set(t.formData,"use_min_price",e)},expression:"formData.use_min_price"}}),a("div",{staticClass:"info"},[t._v("填写优惠券的最低消费金额")])],1),a("FormItem",{attrs:{label:"使用时间"}},[a("RadioGroup",{model:{value:t.isCouponTime,callback:function(e){t.isCouponTime=e},expression:"isCouponTime"}},[a("Radio",{attrs:{label:1}},[t._v("天数")]),a("Radio",{attrs:{label:0}},[t._v("时间段")])],1)],1),a("FormItem",{directives:[{name:"show",rawName:"v-show",value:t.isCouponTime,expression:"isCouponTime"}],attrs:{label:""}},[a("InputNumber",{attrs:{min:1,precision:0},model:{value:t.formData.coupon_time,callback:function(e){t.$set(t.formData,"coupon_time",e)},expression:"formData.coupon_time"}}),a("div",{staticClass:"info"},[t._v("领取后多少天内有效")])],1),a("FormItem",{directives:[{name:"show",rawName:"v-show",value:!t.isCouponTime,expression:"!isCouponTime"}],attrs:{label:""}},[a("DatePicker",{attrs:{transfer:!0,value:t.datetime1,editable:!1,type:"datetimerange",placeholder:"领取后在这个时间段内可以使用"},on:{"on-change":t.dateChange}})],1),a("FormItem",{attrs:{label:"领取时间"}},[a("RadioGroup",{model:{value:t.isReceiveTime,callback:function(e){t.isReceiveTime=e},expression:"isReceiveTime"}},[a("Radio",{attrs:{label:1}},[t._v("限时")]),a("Radio",{attrs:{label:0}},[t._v("不限时")])],1)],1),a("FormItem",{directives:[{name:"show",rawName:"v-show",value:t.isReceiveTime,expression:"isReceiveTime"}],attrs:{label:""}},[a("DatePicker",{attrs:{value:t.datetime2,type:"datetimerange",placeholder:"在这个时间段内可领取"},on:{"on-change":t.timeChange}})],1),a("FormItem",{attrs:{label:"是否限量"}},[a("RadioGroup",{model:{value:t.formData.is_permanent,callback:function(e){t.$set(t.formData,"is_permanent",e)},expression:"formData.is_permanent"}},[2!=t.formData.receive_type&&3!=t.formData.receive_type?a("Radio",{attrs:{label:0}},[t._v("限量")]):t._e(),a("Radio",{attrs:{label:1}},[t._v("不限量")])],1)],1),a("FormItem",{directives:[{name:"show",rawName:"v-show",value:!t.formData.is_permanent&&(1==t.formData.receive_type||4==t.formData.receive_type),expression:"!formData.is_permanent && (formData.receive_type==1 || formData.receive_type==4)"}],attrs:{label:""}},[a("InputNumber",{attrs:{min:1,max:1e8,precision:0},model:{value:t.formData.total_count,callback:function(e){t.$set(t.formData,"total_count",e)},expression:"formData.total_count"}}),a("div",{staticClass:"info"},[t._v("填写优惠券的发布数量")])],1),a("FormItem",{attrs:{label:"是否开启"}},[a("i-switch",{attrs:{"true-value":1,"false-value":0,size:"large"},model:{value:t.formData.status,callback:function(e){t.$set(t.formData,"status",e)},expression:"formData.status"}},[a("span",{attrs:{slot:"open"},slot:"open"},[t._v("开启")]),a("span",{attrs:{slot:"close"},slot:"close"},[t._v("关闭")])])],1)],1),a("TabPane",{attrs:{label:"适用门店",name:"2"}},[a("Row",{staticClass:"mb20",attrs:{gutter:24,type:"flex"}},[a("Col",{attrs:{span:"24"}},[a("RadioGroup",{model:{value:t.formData.applicable_type,callback:function(e){t.$set(t.formData,"applicable_type",e)},expression:"formData.applicable_type"}},[a("Radio",{attrs:{label:1}},[t._v("全部门店")]),a("Radio",{attrs:{label:2}},[t._v("部分门店")]),a("Radio",{attrs:{label:0}},[t._v("仅平台适用")])],1),a("div",{staticClass:"tips"},[t._v("可选择优惠券在哪些门店使用,选择“仅平台适用“则购买门店商品不享受活动")])],1),2==t.formData.applicable_type?a("Col",{staticClass:"mt20",attrs:{span:"24"}},[a("Button",{attrs:{type:"primary"},on:{click:t.addStore}},[t._v("添加门店")])],1):t._e()],1),2==t.formData.applicable_type?a("div",{staticClass:"vxeTable"},[a("vxe-table",{ref:"xTree",attrs:{border:"inner","row-id":"id",data:t.storesList}},[a("vxe-column",{attrs:{field:"id",title:"ID","min-width":"60"}}),a("vxe-column",{attrs:{field:"info",title:"门店图片","tree-node":"","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(t){var e=t.row;return[a("div",{staticClass:"imgPic acea-row row-middle"},[a("viewer",[a("div",{staticClass:"pictrue"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.image,expression:"row.image"}]})])])],1)]}}],null,!1,3598873617)}),a("vxe-column",{attrs:{field:"cate_name",title:"门店分类","min-width":"110"}}),a("vxe-column",{attrs:{field:"name",title:"门店名称","min-width":"110"}}),a("vxe-column",{attrs:{field:"phone",title:"联系电话","min-width":"110"}}),a("vxe-column",{attrs:{field:"address",title:"门店地址","min-width":"150"}}),a("vxe-column",{attrs:{field:"day_time",title:"营业时间","min-width":"140"}}),a("vxe-column",{attrs:{field:"status_name",title:"营业状态","min-width":"80"}}),a("vxe-column",{attrs:{field:"date",title:"操作","min-width":"100",fixed:"right",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[a("a",{on:{click:function(e){return t.delte(r)}}},[t._v("删除")])]}}],null,!1,3111734551)})],1)],1):t._e()],1)],1)],1)],1),a("Card",{staticClass:"fixed-card",style:{left:t.menuCollapse?t.isMobile?"0":"80px":"200px"},attrs:{bordered:!1,"dis-hover":""}},[a("Form",[a("FormItem",["1"!==t.currentTab?a("Button",{staticStyle:{"margin-right":"10px"},on:{click:t.upTab}},[t._v("上一步")]):t._e(),"2"!==t.currentTab?a("Button",{staticClass:"submission",attrs:{type:"primary"},on:{click:t.downTab}},[t._v("下一步")]):a("Button",{staticClass:"submission",attrs:{type:"primary",disabled:t.disabled},on:{click:t.save}},[t._v("立即创建")])],1)],1)],1),a("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?a("goods-list",{ref:"goodslist",attrs:{ischeckbox:!0},on:{getProductId:t.getProductId}}):t._e()],1),a("Modal",{attrs:{title:"门店列表",footerHide:"",scrollable:"",width:"900"},on:{"on-cancel":t.cancelStore},model:{value:t.storeModals,callback:function(e){t.storeModals=e},expression:"storeModals"}},[t.storeModals?a("store-list",{ref:"storelist",on:{getStoreId:t.getStoreId}}):t._e()],1)],1)}),[],!1,null,"07638402",null);e.default=_.exports},"73f5":function(t,e,a){"use strict";a.d(e,"y",(function(){return o})),a.d(e,"r",(function(){return i})),a.d(e,"n",(function(){return n})),a.d(e,"q",(function(){return s})),a.d(e,"s",(function(){return c})),a.d(e,"t",(function(){return u})),a.d(e,"j",(function(){return l})),a.d(e,"i",(function(){return d})),a.d(e,"P",(function(){return m})),a.d(e,"h",(function(){return f})),a.d(e,"v",(function(){return p})),a.d(e,"u",(function(){return h})),a.d(e,"w",(function(){return _})),a.d(e,"p",(function(){return b})),a.d(e,"G",(function(){return v})),a.d(e,"H",(function(){return g})),a.d(e,"E",(function(){return D})),a.d(e,"F",(function(){return y})),a.d(e,"g",(function(){return w})),a.d(e,"B",(function(){return O})),a.d(e,"C",(function(){return x})),a.d(e,"D",(function(){return C})),a.d(e,"O",(function(){return j})),a.d(e,"J",(function(){return k})),a.d(e,"I",(function(){return T})),a.d(e,"e",(function(){return I})),a.d(e,"N",(function(){return M})),a.d(e,"l",(function(){return P})),a.d(e,"K",(function(){return L})),a.d(e,"L",(function(){return R})),a.d(e,"M",(function(){return $})),a.d(e,"k",(function(){return S})),a.d(e,"o",(function(){return F})),a.d(e,"z",(function(){return E})),a.d(e,"m",(function(){return N})),a.d(e,"x",(function(){return q})),a.d(e,"f",(function(){return V})),a.d(e,"A",(function(){return z})),a.d(e,"b",(function(){return B})),a.d(e,"d",(function(){return W})),a.d(e,"c",(function(){return G})),a.d(e,"a",(function(){return A}));var r=a("b6bd");function o(t){return Object(r.a)({url:"merchant/store_list",method:"get",params:t})}function i(t){return Object(r.a)({url:"store/order/list",method:"get",params:t})}function n(t){return Object(r.a)({url:"store/order/chart",method:"get",params:t})}function s(t){return Object(r.a)({url:"store/order/header",method:"get"})}function c(t){return Object(r.a)({url:"store/recharge",method:"get",params:t})}function u(t){return Object(r.a)({url:"store/vip_order",method:"get",params:t})}function l(t){return Object(r.a)({url:"store/order/edit/".concat(t),method:"get"})}function d(t){return Object(r.a)({url:"store/order/distribution/".concat(t),method:"get"})}function m(t){return Object(r.a)({url:"store/order/write_update/".concat(t),method:"put"})}function f(t){return Object(r.a)({url:"store/order/info/".concat(t),method:"get"})}function p(t){return Object(r.a)({url:"order/remark/".concat(t.id),method:"put",data:t.remark})}function h(t){return Object(r.a)({url:"store/recharge/remark/".concat(t.id),method:"put",data:t.remark})}function _(t){return Object(r.a)({url:"store/vip/remark/".concat(t.id),method:"put",data:t.remark})}function b(t,e){return Object(r.a)({url:"store/order/export/".concat(e),method:"post",data:t})}function v(t){return Object(r.a)({url:"store/finance_flow/list",method:"get",params:t})}function g(t,e){return Object(r.a)({url:"store/finance_flow/mark/".concat(t),method:"put",params:e})}function D(t){return Object(r.a)({url:"store/finance_flow/fund_record",method:"get",params:t})}function y(t){return Object(r.a)({url:"store/finance_flow/fund_record_info",method:"get",params:t})}function w(t){return Object(r.a)({url:"/export/storeFinanceRecord",method:"get",params:t})}function O(t){return Object(r.a)({url:"/store/extract/list",method:"get",params:t})}function x(t,e){return Object(r.a)({url:"store/extract/mark/".concat(t),method:"post",data:e})}function C(t,e){return Object(r.a)({url:"store/extract/verify/".concat(t),method:"post",data:e})}function j(t){return Object(r.a)({url:"store/extract/transfer/".concat(t),method:"get"})}function k(t){return Object(r.a)({url:"store/store",method:"get",params:t})}function T(t){return Object(r.a)({url:"store/store/get_info/".concat(t),method:"get"})}function I(t){return Object(r.a)({url:"city",method:"get",params:t})}function M(t,e){return Object(r.a)({url:"store/store/".concat(t),method:"post",data:e})}function P(){return Object(r.a)({url:"store/store/address",method:"get"})}function L(t){return Object(r.a)({url:"store/store/login/".concat(t),method:"get"})}function R(t,e){return Object(r.a)({url:"store/store/set_show/".concat(t,"/").concat(e),method:"put"})}function $(t){return Object(r.a)({url:"store/share/order",method:"post",params:t})}function S(t){return Object(r.a)({url:"store/home/header",method:"get",params:t})}function F(t){return Object(r.a)({url:"store/home/orderChart",method:"get",params:t})}function E(t){return Object(r.a)({url:"store/home/store",method:"get",params:t})}function N(t){return Object(r.a)({url:"store/home/operate",method:"get",params:t})}function q(t){return Object(r.a)({url:"store/store/reset_admin/".concat(t),method:"get"})}function V(t,e,a){return Object(r.a)({url:"export/storeFlowExport?store_id=".concat(t,"&keyword=").concat(e,"&data=").concat(a),method:"get"})}function z(t){return Object(r.a)({url:"/store/category",params:t,method:"get"})}function B(t){return Object(r.a)({url:"/store/category/create/".concat(t),method:"get"})}function W(t){return Object(r.a)({url:"/store/category/tree/".concat(t),method:"get"})}function G(t){return Object(r.a)({url:"/store/category/set_show/".concat(t.id,"/").concat(t.is_show),method:"PUT"})}function A(t){return Object(r.a)({url:"store/category/cascader_list/".concat(t),method:"get"})}},cff2:function(t,e,a){"use strict";var r=a("4977");a.n(r).a}}]);