(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-08aafba9"],{"40c5":function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"body"},[n("el-dialog",{attrs:{title:t.title,visible:t.dialogFormVisible,width:"700px","close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogFormVisible=e},close:t.close}},[n("div",[n("el-form",{ref:"form",staticStyle:{"margin-top":"0"},attrs:{model:t.form,"label-width":"180px"}},[n("el-form-item",{attrs:{label:"商品是否参加折扣",prop:"open"}},[n("el-radio-group",{model:{value:t.form.open,callback:function(e){t.$set(t.form,"open",e)},expression:"form.open"}},[n("el-radio",{attrs:{label:"1"}},[t._v("开启")]),n("el-radio",{attrs:{label:"2"}},[t._v("关闭")])],1)],1)],1),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"},{name:"show",rawName:"v-show",value:"1"==t.form.open,expression:"form.open=='1'"}],staticStyle:{width:"100%"},attrs:{"element-loading-text":t.elementLoadingText,data:t.list,stripe:""}},[n("el-table-column",{attrs:{prop:"level",label:"vip等级"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"flex"},[n("p",[n("el-tag",{attrs:{size:"medium",type:"info"}},[t._v("vip"+t._s(e.row.level))])],1)])]}}])}),n("el-table-column",{attrs:{prop:"category_name",label:"会员折扣",width:"300"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"flex"},[n("el-input-number",{attrs:{precision:1,"controls-position":"right",min:1,max:99999999},model:{value:e.row.discount,callback:function(n){t.$set(e.row,"discount",n)},expression:"scope.row.discount"}}),n("span",{staticClass:"mar_l10"},[t._v("折")])],1)]}}])}),n("el-table-column",{attrs:{label:"启用状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-switch",{attrs:{"active-value":"1","inactive-value":"2"},model:{value:e.row.open,callback:function(n){t.$set(e.row,"open",n)},expression:"scope.row.open"}})]}}])})],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{size:"medium"},on:{click:t.close}},[t._v("取 消")]),n("el-button",{attrs:{size:"medium",type:"primary"},on:{click:t.save}},[t._v("确 定")])],1)])],1)},o=[],a=(n("96cf"),n("1da1")),i=n("c24f"),c={name:"goodlistedit",created:function(){},data:function(){return{list:[],listLoading:!1,selectRows:"",elementLoadingText:"正在加载...",page:{total:0,size:10,currentPage:1},form:{open:"2",goodsId:""},title:"",dialogFormVisible:!1,storeId:""}},components:{},methods:{showEdit:function(t){t?(this.title="编辑",this.form.open=t.discountOpen,this.form.goodsId=t.id,this.goodsVip(t)):this.title="添加",this.dialogFormVisible=!0},setStoreId:function(t){this.storeId=t},goodsVip:function(t){var e=this;return Object(a["a"])(regeneratorRuntime.mark((function n(){var r,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(i["o"])({goodsId:t.id});case 2:r=n.sent,o=r.data,e.list=o||[];case 5:case"end":return n.stop()}}),n)})))()},close:function(){this.dialogFormVisible=!1},save:function(){var t=this;return Object(a["a"])(regeneratorRuntime.mark((function e(){var n,r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={discountOpen:t.form.open,goodsId:t.form.goodsId,discountArr:t.list},e.next=3,Object(i["B"])(n);case 3:r=e.sent,o=r.msg,t.$baseMessage(o,"success"),t.$emit("fetchData"),t.close();case 8:case"end":return e.stop()}}),e)})))()}}},s=c,l=n("2877"),u=Object(l["a"])(s,r,o,!1,null,null,null);e["a"]=u.exports},"419d":function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"body"},[n("el-dialog",{attrs:{title:t.title,visible:t.dialogFormVisible,width:"600px","close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogFormVisible=e},close:t.close}},[n("el-form",{ref:"form",attrs:{model:t.form,"label-width":"120px"}},["name"==t.type?n("el-form-item",{attrs:{label:"商品名称",prop:"name"}},[n("el-input",{attrs:{autocomplete:"off"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name","string"===typeof e?e.trim():e)},expression:"form.name"}})],1):t._e(),"price"==t.type?n("el-form-item",{attrs:{label:"价格",prop:"price"}},[n("el-input-number",{staticStyle:{width:"300px"},attrs:{precision:2,step:1,min:0},model:{value:t.form.price,callback:function(e){t.$set(t.form,"price",e)},expression:"form.price"}})],1):t._e(),"stock"==t.type?n("el-form-item",{attrs:{label:"库存",prop:"stock"}},[n("el-input-number",{staticStyle:{width:"300px"},attrs:{min:0},model:{value:t.form.stock,callback:function(e){t.$set(t.form,"stock",e)},expression:"form.stock"}})],1):t._e(),"sort"==t.type?n("el-form-item",{attrs:{label:"排序",prop:"sort"}},[n("el-input",{attrs:{autocomplete:"off"},model:{value:t.form.sort,callback:function(e){t.$set(t.form,"sort","string"===typeof e?e.trim():e)},expression:"form.sort"}})],1):t._e()],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{size:"medium"},on:{click:t.close}},[t._v("取 消")]),n("el-button",{attrs:{size:"medium",type:"primary"},on:{click:t.save}},[t._v("确 定")])],1)],1)],1)},o=[],a=(n("b0c0"),n("96cf"),n("1da1")),i=n("5a4a"),c={name:"goodlistedit",created:function(){},data:function(){return{form:{name:"",price:"",stock:"",sort:""},type:"",title:"",dialogFormVisible:!1,storeId:""}},components:{},methods:{showEdit:function(t,e){t?(this.title="编辑",this.form=Object.assign({},t),this.type=e):this.title="添加",this.dialogFormVisible=!0},setStoreId:function(t){this.storeId=t},close:function(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1},save:function(){var t=this;return Object(a["a"])(regeneratorRuntime.mark((function e(){var n,r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={},"name"==t.type?n={id:t.form.id,name:t.form.name}:"price"==t.type?n={id:t.form.id,price:t.form.price,storeId:t.storeId}:"stock"==t.type?n={id:t.form.id,stock:t.form.stock,storeId:t.storeId}:"sort"==t.type&&(n={id:t.form.id,sort:t.form.sort,storeId:t.storeId}),console.log(n),e.next=5,Object(i["D"])(n);case 5:r=e.sent,o=r.msg,t.$baseMessage(o,"success"),t.$emit("fetchData"),t.close();case 10:case"end":return e.stop()}}),e)})))()}}},s=c,l=n("2877"),u=Object(l["a"])(s,r,o,!1,null,null,null);e["a"]=u.exports},"4cd2":function(t,e,n){},"5a4a":function(t,e,n){"use strict";n.d(e,"B",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"G",(function(){return i})),n.d(e,"z",(function(){return c})),n.d(e,"r",(function(){return s})),n.d(e,"y",(function(){return l})),n.d(e,"W",(function(){return u})),n.d(e,"A",(function(){return d})),n.d(e,"F",(function(){return m})),n.d(e,"D",(function(){return f})),n.d(e,"f",(function(){return p})),n.d(e,"e",(function(){return h})),n.d(e,"g",(function(){return b})),n.d(e,"i",(function(){return g})),n.d(e,"w",(function(){return v})),n.d(e,"ab",(function(){return O})),n.d(e,"o",(function(){return j})),n.d(e,"Z",(function(){return y})),n.d(e,"C",(function(){return w})),n.d(e,"H",(function(){return k})),n.d(e,"q",(function(){return x})),n.d(e,"c",(function(){return _})),n.d(e,"h",(function(){return I})),n.d(e,"b",(function(){return S})),n.d(e,"u",(function(){return C})),n.d(e,"N",(function(){return $})),n.d(e,"m",(function(){return F})),n.d(e,"L",(function(){return R})),n.d(e,"x",(function(){return V})),n.d(e,"db",(function(){return z})),n.d(e,"j",(function(){return P})),n.d(e,"cb",(function(){return L})),n.d(e,"t",(function(){return M})),n.d(e,"J",(function(){return E})),n.d(e,"l",(function(){return D})),n.d(e,"I",(function(){return T})),n.d(e,"v",(function(){return N})),n.d(e,"S",(function(){return G})),n.d(e,"n",(function(){return q})),n.d(e,"R",(function(){return A})),n.d(e,"bb",(function(){return B})),n.d(e,"E",(function(){return J})),n.d(e,"s",(function(){return H})),n.d(e,"X",(function(){return K})),n.d(e,"T",(function(){return Q})),n.d(e,"Y",(function(){return U})),n.d(e,"V",(function(){return W})),n.d(e,"Q",(function(){return X})),n.d(e,"k",(function(){return Y})),n.d(e,"M",(function(){return Z})),n.d(e,"a",(function(){return tt})),n.d(e,"K",(function(){return et})),n.d(e,"U",(function(){return nt})),n.d(e,"P",(function(){return rt})),n.d(e,"p",(function(){return ot})),n.d(e,"O",(function(){return at}));var r=n("b775");function o(t){return Object(r["a"])({url:"channel/good/good-render",method:"get",params:t})}function a(t){return Object(r["a"])({url:"channel/good/attr-show",method:"get",params:t})}function i(t){return Object(r["a"])({url:"channel/good/goods-save",method:"post",data:t})}function c(t){return Object(r["a"])({url:"channel/good/good-detail",method:"get",params:t})}function s(t){return Object(r["a"])({url:"channel/good/get-good-list",method:"get",params:t})}function l(t){return Object(r["a"])({url:"channel/good/good-del",method:"post",data:t})}function u(t){return Object(r["a"])({url:"channel/good/set-good-num",method:"post",data:t})}function d(t){return Object(r["a"])({url:"channel/good/good-down",method:"post",data:t})}function m(t){return Object(r["a"])({url:"channel/good/goods-recovery",method:"post",data:t})}function f(t){return Object(r["a"])({url:"channel/good/good-usave",method:"post",data:t})}function p(t){return Object(r["a"])({url:"channel/category/get-category-list",method:"get",params:t})}function h(t){return Object(r["a"])({url:"channel/category/category-del",method:"post",data:t})}function b(t){return Object(r["a"])({url:"channel/category/category-save",method:"post",data:t})}function g(t){return Object(r["a"])({url:"channel/category/change-switch",method:"post",data:t})}function v(t){return Object(r["a"])({url:"channel/specs/get-specs-list",method:"get",params:t})}function O(t){return Object(r["a"])({url:"channel/specs/specs-save",method:"post",data:t})}function j(t){return Object(r["a"])({url:"channel/specs/change-specs",method:"post",data:t})}function y(t){return Object(r["a"])({url:"channel/specs/specs-del",method:"post",data:t})}function w(t){return Object(r["a"])({url:"channel/good/specs-list",method:"post",data:t})}function k(t){return Object(r["a"])({url:"channel/good/specs-save",method:"post",data:t})}function x(t){return Object(r["a"])({url:"channel/attribute/get-attr-list",method:"get",params:t})}function _(t){return Object(r["a"])({url:"channel/attribute/attr-save",method:"post",data:t})}function I(t){return Object(r["a"])({url:"channel/attribute/change-attr",method:"post",data:t})}function S(t){return Object(r["a"])({url:"channel/attribute/attr-del",method:"post",data:t})}function C(t){return Object(r["a"])({url:"channel/material/get-materia-list",method:"get",params:t})}function $(t){return Object(r["a"])({url:"channel/material/meteria-save",method:"post",data:t})}function F(t){return Object(r["a"])({url:"channel/material/change-materia",method:"post",data:t})}function R(t){return Object(r["a"])({url:"channel/material/materia-del",method:"post",data:t})}function V(t){return Object(r["a"])({url:"channel/unit/get-unit-list",method:"get",params:t})}function z(t){return Object(r["a"])({url:"channel/unit/unit-save",method:"post",data:t})}function P(t){return Object(r["a"])({url:"channel/unit/change-display",method:"post",data:t})}function L(t){return Object(r["a"])({url:"channel/unit/unit-del",method:"post",data:t})}function M(t){return Object(r["a"])({url:"channel/good-label/get-label-list",method:"get",params:t})}function E(t){return Object(r["a"])({url:"channel/good-label/label-save",method:"post",data:t})}function D(t){return Object(r["a"])({url:"channel/good-label/change-label",method:"post",data:t})}function T(t){return Object(r["a"])({url:"channel/good-label/label-del",method:"post",data:t})}function N(t){return Object(r["a"])({url:"channel/print/get-print-list",method:"get",params:t})}function G(t){return Object(r["a"])({url:"channel/print/print-save",method:"post",data:t})}function q(t){return Object(r["a"])({url:"channel/print/change-print",method:"post",data:t})}function A(t){return Object(r["a"])({url:"channel/print/print-del",method:"post",data:t})}function B(t){return Object(r["a"])({url:"channel/good/synchro-goods",method:"post",data:t})}function J(t){return Object(r["a"])({url:"channel/activity/goods-activity-list",method:"get",params:t})}function H(t){return Object(r["a"])({url:"channel/activity/save-goods-activity",method:"get",params:t})}function K(t){return Object(r["a"])({url:"channel/activity/save-goods-activity",method:"post",data:t})}function Q(t){return Object(r["a"])({url:"channel/activity/modify-goods-activity",method:"post",data:t})}function U(t){return Object(r["a"])({url:"channel/category/special-category",method:"get",params:t})}function W(t){return Object(r["a"])({url:"channel/category/save-special",method:"post",data:t})}function X(t){return Object(r["a"])({url:"channel/category/modify-special",method:"post",data:t})}function Y(t){return Object(r["a"])({url:"channel/good/change-goods",method:"post",data:t})}function Z(t){return Object(r["a"])({url:"channel/good/merge-goods",method:"post",data:t})}function tt(t){return Object(r["a"])({url:"channel/good/all-down",method:"post",data:t})}function et(t){return Object(r["a"])({url:"channel/comment/label-list",method:"get",params:t})}function nt(t){return Object(r["a"])({url:"channel/comment/save-label",method:"post",data:t})}function rt(t){return Object(r["a"])({url:"channel/comment/modify-label",method:"post",data:t})}function ot(t){return Object(r["a"])({url:"channel/comment/comment-list",method:"get",params:t})}function at(t){return Object(r["a"])({url:"channel/comment/modify-comment",method:"post",data:t})}},"6cce":function(t,e,n){"use strict";var r=n("4cd2"),o=n.n(r);o.a},c24f:function(t,e,n){"use strict";n.d(e,"k",(function(){return o})),n.d(e,"E",(function(){return a})),n.d(e,"C",(function(){return i})),n.d(e,"d",(function(){return c})),n.d(e,"b",(function(){return s})),n.d(e,"s",(function(){return l})),n.d(e,"c",(function(){return u})),n.d(e,"j",(function(){return d})),n.d(e,"q",(function(){return m})),n.d(e,"i",(function(){return f})),n.d(e,"r",(function(){return p})),n.d(e,"f",(function(){return h})),n.d(e,"x",(function(){return b})),n.d(e,"h",(function(){return g})),n.d(e,"n",(function(){return v})),n.d(e,"u",(function(){return O})),n.d(e,"g",(function(){return j})),n.d(e,"l",(function(){return y})),n.d(e,"t",(function(){return w})),n.d(e,"A",(function(){return k})),n.d(e,"z",(function(){return x})),n.d(e,"w",(function(){return _})),n.d(e,"p",(function(){return I})),n.d(e,"m",(function(){return S})),n.d(e,"y",(function(){return C})),n.d(e,"a",(function(){return $})),n.d(e,"o",(function(){return F})),n.d(e,"B",(function(){return R})),n.d(e,"e",(function(){return V})),n.d(e,"F",(function(){return z})),n.d(e,"D",(function(){return P})),n.d(e,"v",(function(){return L}));var r=n("b775");function o(t){return Object(r["a"])({url:"channel/member/get-member-list",method:"get",params:t})}function a(t){return Object(r["a"])({url:"channel/member/get-member-list",method:"post",data:t})}function i(t){return Object(r["a"])({url:"channel/activity/select-user",method:"post",data:t})}function c(t){return Object(r["a"])({url:"channel/member/change-status",method:"post",data:t})}function s(t){return Object(r["a"])({url:"channel/member/change-info",method:"post",data:t})}function l(t){return Object(r["a"])({url:"channel/member/member-label-save",method:"post",data:t})}function u(t){return Object(r["a"])({url:"channel/member/change-member-label",method:"post",data:t})}function d(t){return Object(r["a"])({url:"channel/member/get-member-label",method:"get",params:t})}function m(t){return Object(r["a"])({url:"channel/member/member-excel-list",method:"get",params:t})}function f(t){return Object(r["a"])({url:"channel/member/get-member-info",method:"post",data:t})}function p(t){return Object(r["a"])({url:"channel/member/member-info-save",method:"post",data:t})}function h(t){return Object(r["a"])({url:"channel/member/get-deposit-list",method:"get",params:t})}function b(t){return Object(r["a"])({url:"channel/member/deposit-save",method:"post",data:t})}function g(t){return Object(r["a"])({url:"channel/member/deposit-save",method:"get",params:t})}function v(t){return Object(r["a"])({url:"channel/activity/select-coupon",method:"get",params:t})}function O(t){return Object(r["a"])({url:"channel/member/modify-deposit",method:"post",data:t})}function j(t){return Object(r["a"])({url:"channel/member/get-deposit-order",method:"get",params:t})}function y(t){return Object(r["a"])({url:"channel/member/get-member-set-info",method:"get",params:t})}function w(t){return Object(r["a"])({url:"channel/member/member-set",method:"post",data:t})}function k(t){return Object(r["a"])({url:"channel/vip-card/rights-list",method:"get",params:t})}function x(t){return Object(r["a"])({url:"channel/vip-card/save-rights",method:"post",data:t})}function _(t){return Object(r["a"])({url:"channel/vip-card/modify-rights",method:"post",data:t})}function I(t){return Object(r["a"])({url:"channel/vip-card/level-list",method:"get",params:t})}function S(t){return Object(r["a"])({url:"channel/vip-card/save-level",method:"get",params:t})}function C(t){return Object(r["a"])({url:"channel/vip-card/save-level",method:"post",data:t})}function $(t){return Object(r["a"])({url:"channel/vip-card/card-record",method:"get",params:t})}function F(t){return Object(r["a"])({url:"channel/good/goods-vip",method:"get",params:t})}function R(t){return Object(r["a"])({url:"channel/good/save-goods-vip",method:"post",data:t})}function V(t){return Object(r["a"])({url:"channel/member/get-coupon-list",method:"get",params:t})}function z(t){return Object(r["a"])({url:"channel/member/store-coupon-list",method:"get",params:t})}function P(t){return Object(r["a"])({url:"channel/member/send-coupon",method:"post",data:t})}function L(t){return Object(r["a"])({url:"channel/vip-card/modify-level",method:"post",data:t})}},cbb1:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"body"},[n("el-dialog",{attrs:{title:t.title,visible:t.dialogFormVisible,width:"60%","close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogFormVisible=e},close:t.close}},[n("el-form",{staticClass:"demo-form-inline searchform",attrs:{inline:!0,model:t.formInline,"label-width":"120px"}},[n("div",{staticClass:"mar_b20"},[n("el-form-item",{attrs:{label:"按门店名称:"}},[n("el-input",{staticStyle:{width:"200px"},attrs:{size:"medium",placeholder:"请输入门店名称搜索"},on:{input:t.onSearch},model:{value:t.formInline.keyword,callback:function(e){t.$set(t.formInline,"keyword",e)},expression:"formInline.keyword"}})],1),n("el-form-item",{attrs:{label:"按门店标签:"}},[n("el-select",{attrs:{clearable:"",placeholder:"请选择"},on:{change:t.onSearch},model:{value:t.formInline.label,callback:function(e){t.$set(t.formInline,"label",e)},expression:"formInline.label"}},t._l(t.labelOptions,(function(t){return n("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),n("el-form-item",{attrs:{label:"按商品模式:"}},[n("el-select",{attrs:{clearable:"",placeholder:"请选择"},on:{change:t.onSearch},model:{value:t.formInline.goodsModel,callback:function(e){t.$set(t.formInline,"goodsModel",e)},expression:"formInline.goodsModel"}},t._l(t.typeOptions2,(function(t){return n("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),n("el-form-item",[n("el-button",{attrs:{type:"primary",size:"medium"},on:{click:t.onSearch}},[t._v("搜索")])],1)],1)]),n("div",[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{"element-loading-text":t.elementLoadingText,data:t.list,stripe:""},on:{"selection-change":t.setSelectRows}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),n("el-table-column",{attrs:{prop:"name",label:"商家名称",width:"350"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"flex flex-y-top"},[n("div",{},[n("img",{staticClass:"goodlogo bor_rad5",attrs:{src:e.row.icon}})]),n("div",{staticClass:"mar_l10"},[n("div",{staticClass:"flex"},[n("div",{},[t._v(t._s(e.row.name))]),n("el-tag",{staticClass:"mar_l5",attrs:{size:"mini",type:"info"}},[t._v("(ID:"+t._s(e.row.id)+")")])],1),n("div",{staticClass:"fon_12 color_9"},[t._v(" 类别: "),"1"==e.row.type?n("span",[t._v("直营店")]):n("span",[t._v("加盟店")])])])])]}}])}),n("el-table-column",{attrs:{prop:"address",label:"门店地址&联系电话"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(e.row.address))]),n("div",[t._v(t._s(e.row.storeTel))])]}}])})],1),n("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:t.page.total,"page-size":t.page.pagesize,"current-page":t.page.currentPage},on:{"update:currentPage":function(e){return t.$set(t.page,"currentPage",e)},"update:current-page":function(e){return t.$set(t.page,"currentPage",e)},"current-change":t.handleCurrentChange}})],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{size:"medium"},on:{click:t.close}},[t._v("取 消")]),n("el-button",{attrs:{size:"medium",type:"primary"},on:{click:t.save}},[t._v("确定同步商品到门店")])],1)],1)],1)},o=[],a=(n("d81d"),n("96cf"),n("1da1")),i=n("e692"),c=n("5a4a"),s={name:"tbgoods",created:function(){},data:function(){return{formInline:{keyword:"",typeId:"",type:"",areaId:"",label:""},list:[],listLoading:!1,selectRows:"",elementLoadingText:"正在同步商品到门店,请稍候...",page:{total:0,size:10,currentPage:1},typeOptions:[{id:"0",name:"全部"},{id:"1",name:"直营店"},{id:"2",name:"加盟店"}],typeOptions2:[{id:"1",name:"商品模式一"},{id:"2",name:"商品模式二"},{id:"3",name:"商品模式三"}],qyOptions:[],fzOptions:[],labelOptions:[],title:"",dialogFormVisible:!1,goodIds:"",allGood:"",tbType:""}},components:{},methods:{showEdit:function(t,e){t&&(this.title="选择同步门店",this.goodIds=t,this.selectStoreCategoryM(),this.storeList(),this.allGood=e,this.dialogFormVisible=!0)},showEdit2:function(t){this.tbType=t},handleCurrentChange:function(t){this.page.currentPage=t,this.storeList()},onSearch:function(){this.storeList()},storeList:function(){var t=this;return Object(a["a"])(regeneratorRuntime.mark((function e(){var n,r,o,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={page:t.page.currentPage,keyword:t.formInline.keyword,label:t.formInline.label,goodsModel:t.formInline.goodsModel,checkShopGoodsModel:1},e.next=3,Object(i["z"])(n);case 3:r=e.sent,o=r.data,a=r.count,t.list=o||[],t.page.total=a;case 8:case"end":return e.stop()}}),e)})))()},selectStoreCategoryM:function(){var t=this;return Object(a["a"])(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["u"])();case 2:n=e.sent,r=n.data,t.qyOptions=r.area?r.area:[],t.fzOptions=r.type?r.type:[],t.labelOptions=r.label?r.label:[];case 7:case"end":return e.stop()}}),e)})))()},close:function(){this.dialogFormVisible=!1},setSelectRows:function(t){this.selectRows=t},save:function(){var t=this;return Object(a["a"])(regeneratorRuntime.mark((function e(){var n,r,o,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(t.selectRows.length>0)){e.next=14;break}return t.listLoading=!0,n=t.selectRows.map((function(t){return t.id})),r={goodIds:t.allGood?"all":t.goodIds,storeIds:n,goodsType:"2"==t.tbType?2:""},e.next=6,Object(c["k"])(r);case 6:o=e.sent,a=o.msg,t.$baseMessage(a,"success"),t.listLoading=!1,t.$emit("fetchData"),t.close(),e.next=16;break;case 14:return t.$baseMessage("未选中任何门店","error"),e.abrupt("return",!1);case 16:case"end":return e.stop()}}),e)})))()}}},l=s,u=n("2877"),d=Object(u["a"])(l,r,o,!1,null,null,null);e["a"]=d.exports},e6b2:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"body"},[n("el-dialog",{attrs:{title:t.title,visible:t.dialogFormVisible,width:"600px","close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogFormVisible=e},close:t.close}},[n("el-form",{ref:"form",attrs:{model:t.form,"label-width":"60px"}},["dPrice"==t.type?n("el-form-item",{attrs:{label:"",prop:"price"}},t._l(t.dPrice,(function(e,r){return n("div",{key:r,staticClass:"flex wid mar_b10"},[n("div",{staticClass:"t_r flex-g-0 wid20 pad_r_25"},[t._v(t._s(e.specsName))]),n("div",{staticClass:"flex-g-1 wid80"},[n("el-input-number",{staticStyle:{width:"300px"},attrs:{precision:2,step:1,min:0},model:{value:e.SalesPrice,callback:function(n){t.$set(e,"SalesPrice",n)},expression:"item.SalesPrice"}})],1)])})),0):t._e(),"dStock"==t.type?n("el-form-item",{attrs:{label:"",prop:"stock"}},t._l(t.dStock,(function(e,r){return n("div",{key:r,staticClass:"flex wid mar_b10"},[n("div",{staticClass:"t_r flex-g-0 wid20 pad_r_25"},[t._v(t._s(e.specsName))]),n("div",{staticClass:"flex-g-1 wid80"},[n("el-input-number",{staticStyle:{width:"300px"},attrs:{min:0},model:{value:e.SalesStock,callback:function(n){t.$set(e,"SalesStock",n)},expression:"item.SalesStock"}})],1)])})),0):t._e()],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{size:"medium"},on:{click:t.close}},[t._v("取 消")]),n("el-button",{attrs:{size:"medium",type:"primary"},on:{click:t.save}},[t._v("确 定")])],1)],1)],1)},o=[],a=(n("96cf"),n("1da1")),i=n("5a4a"),c={name:"goodlistedit",created:function(){},data:function(){return{form:{name:"",price:"",stock:""},dStock:[{name:"大份",stock:"10"},{name:"中份",stock:"1000"},{name:"小份",stock:"100"}],dPrice:[{name:"大份",stock:"10"},{name:"中份",stock:"1000"},{name:"小份",stock:"100"}],type:"",title:"",dialogFormVisible:!1,storeId:""}},components:{},methods:{showEdit:function(t,e){this.title="编辑",this.form=Object.assign({},t),this.type=e,this.specData(),this.dialogFormVisible=!0},setStoreId:function(t){this.storeId=t},specData:function(){var t=this;return Object(a["a"])(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["C"])({id:t.form.id,storeId:t.storeId});case 2:n=e.sent,r=n.data,"dPrice"==t.type&&(t.dPrice=r),"dStock"==t.type&&(t.dStock=r);case 6:case"end":return e.stop()}}),e)})))()},close:function(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1},save:function(){var t=this;return Object(a["a"])(regeneratorRuntime.mark((function e(){var n,r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={},"dPrice"==t.type?n={id:t.form.id,price:t.dPrice,storeId:t.storeId}:"dStock"==t.type&&(n={id:t.form.id,stock:t.dStock,storeId:t.storeId}),e.next=4,Object(i["H"])(n);case 4:r=e.sent,o=r.msg,t.$baseMessage(o,"success"),t.$emit("fetchData"),t.close();case 9:case"end":return e.stop()}}),e)})))()}}},s=c,l=(n("6cce"),n("2877")),u=Object(l["a"])(s,r,o,!1,null,null,null);e["a"]=u.exports}}]);