(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1cd2d7da"],{"207e":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"check-product-content"},[i("range-goods",{attrs:{scopeTitle:"限购商品范围",editObj:t.dataSource,oldValue:t.oldValue,firstData:t.firstData},on:{backFirst:t.backFirst,manageProduct:t.manageProduct},scopedSlots:t._u([{key:"customBread",fn:function(){return[i("custom-bread",{attrs:{breadList:t.breadList}})]},proxy:!0}])})],1)},r=[],o=(i("7f7f"),i("ac6a"),i("96cf"),i("1da1")),a=i("5633"),d=i("c7b9"),u=i("ac0d"),c=i("60be"),s=i("8916"),l={name:"LineDetail",data:function(){return{breadList:{current:"商品管理",loopBread:[{name:"1",title:"工作台",href:"/dashboard"},{name:"2",title:"设置"},{name:"3",title:"店铺管理",href:"/setting/shopManage/list"},{name:"4",title:"商品数量限购",href:this.$route.params.line_id?"/setting/shopManage/list?tab=limited&storeId=".concat(this.$route.params.store_id,"&lineId=").concat(this.$route.params.line_id):"/setting/shopManage/list?tab=limited&storeId=".concat(this.$route.params.store_id)},{name:"5",title:"商品数量限购详情",href:this.$route.params.line_id?"/setting/shopManage/proLimited/limitedDetail/".concat(this.$route.params.store_id,"/").concat(this.$route.params.id,"/").concat(this.$route.params.line_id,"/websiteId/").concat(this.$route.params.site_id):"/setting/shopManage/proLimited/limitedDetail/".concat(this.$route.params.store_id,"/").concat(this.$route.params.id,"/websiteId/").concat(this.$route.params.site_id)},{name:"6",title:"商品管理"}]},dataSource:{},firstData:{store_id:1*this.$route.params.store_id},oldValue:"",loading:!1}},mixins:[u["k"]],components:{customBread:a["a"],rangeGoods:d["a"]},methods:{initData:function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(){var e,i=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.loading=!0,e={rule_id:1*this.$route.params.rule_id},t.next=4,Object(s["x"])(e).then((function(t){var e=t.data;e&&(i.loading=!1,i.oldValue=e.scope_type,e.categories.include.length>0&&e.categories.include.forEach((function(t){t.title="".concat(t.name," (ID: ").concat(t.id,")")})),e.categories.exclude.length>0&&e.categories.exclude.forEach((function(t){t.title="".concat(t.name," (ID: ").concat(t.id,")")})),e.brand.include.length>0&&e.brand.include.forEach((function(t){t.title="".concat(t.name," (ID: ").concat(t.id,")")})),e.brand.exclude.length>0&&e.brand.exclude.forEach((function(t){t.title="".concat(t.name," (ID: ").concat(t.id,")")})),i.dataSource=e)}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),manageProduct:function(t){var e=this;t.entity_id=1*this.$route.params.id,t.store_id=1*this.$route.params.store_id,this.$route.params.line_id&&(t.line_id=1*this.$route.params.line_id);var i=this.$route.params.line_id?c["D"]:c["E"];i(t).then((function(t){0===t.status&&e.returnData()}))},returnData:function(){this.$route.params.line_id?this.$router.push({path:"/setting/shopManage/proLimited/limitedDetail/".concat(this.$route.params.store_id,"/").concat(this.$route.params.id,"/").concat(this.$route.params.line_id,"/websiteId/").concat(this.$route.params.site_id)}):this.$router.push({path:"/setting/shopManage/proLimited/limitedDetail/".concat(this.$route.params.store_id,"/").concat(this.$route.params.id,"/websiteId/").concat(this.$route.params.site_id)})},backFirst:function(){this.returnData()}},created:function(){this.initData()}},p=l,m=i("2877"),b=Object(m["a"])(p,n,r,!1,null,"2c8bc612",null);e["default"]=b.exports},"60be":function(t,e,i){"use strict";i.d(e,"c",(function(){return a})),i.d(e,"C",(function(){return d})),i.d(e,"A",(function(){return u})),i.d(e,"H",(function(){return c})),i.d(e,"b",(function(){return s})),i.d(e,"I",(function(){return l})),i.d(e,"z",(function(){return p})),i.d(e,"G",(function(){return m})),i.d(e,"F",(function(){return b})),i.d(e,"y",(function(){return g})),i.d(e,"a",(function(){return f})),i.d(e,"o",(function(){return h})),i.d(e,"e",(function(){return L})),i.d(e,"f",(function(){return _})),i.d(e,"g",(function(){return k})),i.d(e,"B",(function(){return O})),i.d(e,"j",(function(){return j})),i.d(e,"m",(function(){return D})),i.d(e,"k",(function(){return $})),i.d(e,"l",(function(){return S})),i.d(e,"u",(function(){return y})),i.d(e,"i",(function(){return I})),i.d(e,"q",(function(){return P})),i.d(e,"h",(function(){return w})),i.d(e,"v",(function(){return U})),i.d(e,"r",(function(){return v})),i.d(e,"x",(function(){return x})),i.d(e,"t",(function(){return B})),i.d(e,"w",(function(){return A})),i.d(e,"s",(function(){return E})),i.d(e,"E",(function(){return M})),i.d(e,"D",(function(){return R})),i.d(e,"d",(function(){return C})),i.d(e,"n",(function(){return F})),i.d(e,"p",(function(){return V}));var n=i("b775"),r="/api-config",o={configList:r+"/backend/website/config/list",configUpdate:r+"/backend/website/config/update",getSiteInfo:r+"/backend/website/detail",updateSiteInfo:r+"/backend/website/update",businessAll:r+"/backend/merchant/all",warehousesAll:r+"/backend/stock/all",getShopList:r+"/backend/store/tree",getShopInfo:r+"/backend/store/detail",getMainShopInfo:r+"/backend/main_store/detail",updateShopInfo:r+"/backend/store/base_update",updateOrderSendInfo:r+"/backend/store/other_update",addShop:r+"/backend/store/add",getOpCategoryList:r+"/backend/op_category/first",getExchangeRateList:r+"/backend/store/exchange_rate/list",getLineLogDetail:r+"/backend/line/logistics_option_detail",getLineLogUpdate:r+"/backend/line/logistics_option_update",getStoreLogUpdate:r+"/backend/store/logistics_option_update",getLogisticsBuyLimit:r+"/backend/logistics_buy_limit/store_detail",getLogisticsBuyLimitUpdate:r+"/backend/logistics_buy_limit/store_update",getLogisticsBuyLimitLine:r+"/backend/logistics_buy_limit/line_detail",getLogisticsBuyLimitLineUpdate:r+"/backend/logistics_buy_limit/line_update",getProLimitedList:r+"/backend/product_limit/store_list",getLineProLimitedList:r+"/backend/product_limit/line_list",getProLimitedAdd:r+"/backend/product_limit/store_add",getLineProLimitedAdd:r+"/backend/product_limit/line_add",getProLimitedStoreDetail:r+"/backend/product_limit/store_detail",getProLimitedLineDetail:r+"/backend/product_limit/line_detail",getProLimitedStoreUpdate:r+"/backend/product_limit/store_update",getProLimitedLineUpdate:r+"/backend/product_limit/line_update",getProLimitedStoreDetailDel:r+"/backend/product_limit/store_delete",getProLimitedLineDetailDel:r+"/backend/product_limit/line_delete",scopeRuleUpdate:r+"/backend/product_limit/store_product_update",scopeRuleLineUpdate:r+"/backend/product_limit/line_product_update",deliveryAreaList:r+"/backend/delivery_area/list",operateLogList:r+"/backend/operate_log/list"};function a(t){return Object(n["b"])({url:o.configList,method:"get",params:t,timeout:6e4})}function d(t){return Object(n["b"])({url:o.configUpdate,method:"post",data:t})}function u(t){return Object(n["b"])({url:o.getSiteInfo,method:"get",params:t})}function c(t){return Object(n["b"])({url:o.updateSiteInfo,method:"post",data:t})}function s(t){return Object(n["b"])({url:o.businessAll,method:"get",params:t})}function l(t){return Object(n["b"])({url:o.warehousesAll,method:"get",params:t})}function p(t){return Object(n["b"])({url:o.getShopList,method:"get",params:t,timeout:6e5})}function m(t){return Object(n["b"])({url:o.updateShopInfo,method:"post",data:t})}function b(t){return Object(n["b"])({url:o.updateOrderSendInfo,method:"post",data:t})}function g(t){return Object(n["b"])({url:o.getShopInfo,method:"get",params:t,timeout:6e5})}function f(t){return Object(n["b"])({url:o.addShop,method:"post",data:t})}function h(t){return Object(n["b"])({url:o.getOpCategoryList,method:"get",params:t})}function L(t){return Object(n["b"])({url:o.getExchangeRateList,method:"get",params:t})}function _(t){return Object(n["b"])({url:o.getLineLogDetail,method:"get",params:t})}function k(t){return Object(n["b"])({url:o.getLineLogUpdate,method:"post",data:t})}function O(t){return Object(n["b"])({url:o.getStoreLogUpdate,method:"post",data:t})}function j(t){return Object(n["b"])({url:o.getLogisticsBuyLimit,method:"get",params:t})}function D(t){return Object(n["b"])({url:o.getLogisticsBuyLimitUpdate,method:"post",data:t})}function $(t){return Object(n["b"])({url:o.getLogisticsBuyLimitLine,method:"get",params:t})}function S(t){return Object(n["b"])({url:o.getLogisticsBuyLimitLineUpdate,method:"post",data:t})}function y(t){return Object(n["b"])({url:o.getProLimitedList,method:"get",params:t})}function I(t){return Object(n["b"])({url:o.getLineProLimitedList,method:"get",params:t})}function P(t){return Object(n["b"])({url:o.getProLimitedAdd,method:"post",data:t})}function w(t){return Object(n["b"])({url:o.getLineProLimitedAdd,method:"post",data:t})}function U(t){return Object(n["b"])({url:o.getProLimitedStoreDetail,method:"get",params:t})}function v(t){return Object(n["b"])({url:o.getProLimitedLineDetail,method:"get",params:t})}function x(t){return Object(n["b"])({url:o.getProLimitedStoreUpdate,method:"post",data:t})}function B(t){return Object(n["b"])({url:o.getProLimitedLineUpdate,method:"post",data:t})}function A(t){return Object(n["b"])({url:o.getProLimitedStoreDetailDel,method:"post",data:t})}function E(t){return Object(n["b"])({url:o.getProLimitedLineDetailDel,method:"post",data:t})}function M(t){return Object(n["b"])({url:o.scopeRuleUpdate,method:"post",data:t,timeout:6e4})}function R(t){return Object(n["b"])({url:o.scopeRuleLineUpdate,method:"post",data:t,timeout:6e4})}function C(t){return Object(n["b"])({url:o.deliveryAreaList,method:"get",params:t})}function F(t){return Object(n["b"])({url:o.getMainShopInfo,method:"get",params:t})}function V(t){return Object(n["b"])({url:o.operateLogList,method:"get",params:t})}}}]);