(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7b8e3e9c"],{"5a4a":function(e,t,a){"use strict";a.d(t,"B",(function(){return n})),a.d(t,"d",(function(){return o})),a.d(t,"G",(function(){return i})),a.d(t,"z",(function(){return s})),a.d(t,"r",(function(){return l})),a.d(t,"y",(function(){return c})),a.d(t,"W",(function(){return u})),a.d(t,"A",(function(){return m})),a.d(t,"F",(function(){return d})),a.d(t,"D",(function(){return f})),a.d(t,"f",(function(){return p})),a.d(t,"e",(function(){return h})),a.d(t,"g",(function(){return b})),a.d(t,"i",(function(){return g})),a.d(t,"w",(function(){return v})),a.d(t,"ab",(function(){return y})),a.d(t,"o",(function(){return x})),a.d(t,"Z",(function(){return _})),a.d(t,"C",(function(){return k})),a.d(t,"H",(function(){return w})),a.d(t,"q",(function(){return C})),a.d(t,"c",(function(){return T})),a.d(t,"h",(function(){return S})),a.d(t,"b",(function(){return j})),a.d(t,"u",(function(){return $})),a.d(t,"N",(function(){return O})),a.d(t,"m",(function(){return N})),a.d(t,"L",(function(){return D})),a.d(t,"x",(function(){return P})),a.d(t,"db",(function(){return M})),a.d(t,"j",(function(){return q})),a.d(t,"cb",(function(){return L})),a.d(t,"t",(function(){return A})),a.d(t,"J",(function(){return I})),a.d(t,"l",(function(){return R})),a.d(t,"I",(function(){return z})),a.d(t,"v",(function(){return G})),a.d(t,"S",(function(){return F})),a.d(t,"n",(function(){return V})),a.d(t,"R",(function(){return U})),a.d(t,"bb",(function(){return B})),a.d(t,"E",(function(){return H})),a.d(t,"s",(function(){return J})),a.d(t,"X",(function(){return E})),a.d(t,"T",(function(){return Y})),a.d(t,"Y",(function(){return Q})),a.d(t,"V",(function(){return Z})),a.d(t,"Q",(function(){return K})),a.d(t,"k",(function(){return W})),a.d(t,"M",(function(){return X})),a.d(t,"a",(function(){return ee})),a.d(t,"K",(function(){return te})),a.d(t,"U",(function(){return ae})),a.d(t,"P",(function(){return re})),a.d(t,"p",(function(){return ne})),a.d(t,"O",(function(){return oe}));var r=a("b775");function n(e){return Object(r["a"])({url:"channel/good/good-render",method:"get",params:e})}function o(e){return Object(r["a"])({url:"channel/good/attr-show",method:"get",params:e})}function i(e){return Object(r["a"])({url:"channel/good/goods-save",method:"post",data:e})}function s(e){return Object(r["a"])({url:"channel/good/good-detail",method:"get",params:e})}function l(e){return Object(r["a"])({url:"channel/good/get-good-list",method:"get",params:e})}function c(e){return Object(r["a"])({url:"channel/good/good-del",method:"post",data:e})}function u(e){return Object(r["a"])({url:"channel/good/set-good-num",method:"post",data:e})}function m(e){return Object(r["a"])({url:"channel/good/good-down",method:"post",data:e})}function d(e){return Object(r["a"])({url:"channel/good/goods-recovery",method:"post",data:e})}function f(e){return Object(r["a"])({url:"channel/good/good-usave",method:"post",data:e})}function p(e){return Object(r["a"])({url:"channel/category/get-category-list",method:"get",params:e})}function h(e){return Object(r["a"])({url:"channel/category/category-del",method:"post",data:e})}function b(e){return Object(r["a"])({url:"channel/category/category-save",method:"post",data:e})}function g(e){return Object(r["a"])({url:"channel/category/change-switch",method:"post",data:e})}function v(e){return Object(r["a"])({url:"channel/specs/get-specs-list",method:"get",params:e})}function y(e){return Object(r["a"])({url:"channel/specs/specs-save",method:"post",data:e})}function x(e){return Object(r["a"])({url:"channel/specs/change-specs",method:"post",data:e})}function _(e){return Object(r["a"])({url:"channel/specs/specs-del",method:"post",data:e})}function k(e){return Object(r["a"])({url:"channel/good/specs-list",method:"post",data:e})}function w(e){return Object(r["a"])({url:"channel/good/specs-save",method:"post",data:e})}function C(e){return Object(r["a"])({url:"channel/attribute/get-attr-list",method:"get",params:e})}function T(e){return Object(r["a"])({url:"channel/attribute/attr-save",method:"post",data:e})}function S(e){return Object(r["a"])({url:"channel/attribute/change-attr",method:"post",data:e})}function j(e){return Object(r["a"])({url:"channel/attribute/attr-del",method:"post",data:e})}function $(e){return Object(r["a"])({url:"channel/material/get-materia-list",method:"get",params:e})}function O(e){return Object(r["a"])({url:"channel/material/meteria-save",method:"post",data:e})}function N(e){return Object(r["a"])({url:"channel/material/change-materia",method:"post",data:e})}function D(e){return Object(r["a"])({url:"channel/material/materia-del",method:"post",data:e})}function P(e){return Object(r["a"])({url:"channel/unit/get-unit-list",method:"get",params:e})}function M(e){return Object(r["a"])({url:"channel/unit/unit-save",method:"post",data:e})}function q(e){return Object(r["a"])({url:"channel/unit/change-display",method:"post",data:e})}function L(e){return Object(r["a"])({url:"channel/unit/unit-del",method:"post",data:e})}function A(e){return Object(r["a"])({url:"channel/good-label/get-label-list",method:"get",params:e})}function I(e){return Object(r["a"])({url:"channel/good-label/label-save",method:"post",data:e})}function R(e){return Object(r["a"])({url:"channel/good-label/change-label",method:"post",data:e})}function z(e){return Object(r["a"])({url:"channel/good-label/label-del",method:"post",data:e})}function G(e){return Object(r["a"])({url:"channel/print/get-print-list",method:"get",params:e})}function F(e){return Object(r["a"])({url:"channel/print/print-save",method:"post",data:e})}function V(e){return Object(r["a"])({url:"channel/print/change-print",method:"post",data:e})}function U(e){return Object(r["a"])({url:"channel/print/print-del",method:"post",data:e})}function B(e){return Object(r["a"])({url:"channel/good/synchro-goods",method:"post",data:e})}function H(e){return Object(r["a"])({url:"channel/activity/goods-activity-list",method:"get",params:e})}function J(e){return Object(r["a"])({url:"channel/activity/save-goods-activity",method:"get",params:e})}function E(e){return Object(r["a"])({url:"channel/activity/save-goods-activity",method:"post",data:e})}function Y(e){return Object(r["a"])({url:"channel/activity/modify-goods-activity",method:"post",data:e})}function Q(e){return Object(r["a"])({url:"channel/category/special-category",method:"get",params:e})}function Z(e){return Object(r["a"])({url:"channel/category/save-special",method:"post",data:e})}function K(e){return Object(r["a"])({url:"channel/category/modify-special",method:"post",data:e})}function W(e){return Object(r["a"])({url:"channel/good/change-goods",method:"post",data:e})}function X(e){return Object(r["a"])({url:"channel/good/merge-goods",method:"post",data:e})}function ee(e){return Object(r["a"])({url:"channel/good/all-down",method:"post",data:e})}function te(e){return Object(r["a"])({url:"channel/comment/label-list",method:"get",params:e})}function ae(e){return Object(r["a"])({url:"channel/comment/save-label",method:"post",data:e})}function re(e){return Object(r["a"])({url:"channel/comment/modify-label",method:"post",data:e})}function ne(e){return Object(r["a"])({url:"channel/comment/comment-list",method:"get",params:e})}function oe(e){return Object(r["a"])({url:"channel/comment/modify-comment",method:"post",data:e})}},"97e5":function(e,t,a){"use strict";var r=a("fc53"),n=a.n(r);n.a},ed08:function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return o}));a("a9e3"),a("ac1f"),a("5319"),a("bf19");function r(e){var t=new Date(e).toJSON(),a=new Date(+new Date(t)+288e5).toISOString().replace(/T/g," ").replace(/\.[\d]{3}Z/,"");return a}function n(e){var t=new Date(e),a=t.getFullYear(),r=t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,n=t.getDate()<10?"0"+t.getDate():t.getDate(),o=t.getHours()<10?"0"+t.getHours():t.getHours(),i=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),s=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return a+"-"+r+"-"+n+" "+o+":"+i+":"+s}function o(e){var t=new Date(1e3*Number(e)),a=t.getFullYear()+"-",r=(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1)+"-",n=(t.getDate()<10?"0"+t.getDate():t.getDate())+" ",o=(t.getHours()<10?"0"+t.getHours():t.getHours())+":",i=(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":",s=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds(),l=a+r+n+o+i+s;return l}},f8ae:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"addgood"},[a("div",{staticClass:"outmain ba_f color_6 fon_14"},[a("div",{staticClass:"title fon_16 wei t_l ba_f pad_20"},[e._v("商品详情")]),a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"基础信息",name:"1"}},[a("el-form",{ref:"form",attrs:{model:e.form,"label-width":"180px"}},[a("el-form-item",{attrs:{label:"排序"}},[a("el-input",{attrs:{placeholder:"请输入排序"},model:{value:e.form.sort,callback:function(t){e.$set(e.form,"sort",t)},expression:"form.sort"}})],1),a("el-form-item",{attrs:{label:"商品分类",required:!0,prop:"typeId"}},[a("el-cascader",{attrs:{options:e.optionsCategory},model:{value:e.form.typeId,callback:function(t){e.$set(e.form,"typeId",t)},expression:"form.typeId"}})],1),a("el-form-item",{attrs:{label:"商品名称",required:!0,prop:"name"}},[a("el-input",{attrs:{placeholder:"请输入商品名称"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"商品简介",prop:"body"}},[a("el-input",{attrs:{type:"textarea",rows:6,placeholder:"请输入商品简介"},model:{value:e.form.body,callback:function(t){e.$set(e.form,"body","string"===typeof t?t.trim():t)},expression:"form.body"}})],1),a("el-form-item",{attrs:{label:"商品主图",required:!0,prop:"icon"}},[e.form.icon?a("div",{staticClass:"uploadSource bor_de rel flex"},[a("label",{staticClass:"statusLabel curs",on:{mouseenter:function(t){return e.enter(1)},mouseleave:function(t){return e.leave(1)}}},[a("i",{ref:"imgicon1",staticClass:"el-icon-check"}),a("i",{staticClass:"el-icon-close",on:{click:function(t){return e.deleteMultiImage(e.form.icon,1)}}})]),a("img",{staticClass:"wid",attrs:{src:e.form.icon},on:{click:function(t){return e.test(1)}}})]):a("div",{staticClass:"uploadSource flex-center curs",on:{click:function(t){return e.test(1)}}},[a("i",{staticClass:"el-icon-plus fon_40 color_d9"})]),a("div",{staticClass:"yb_margin lh16"},[e._v("商品主图建议尺寸:128px*128px")]),a("attachment-img",{ref:"img1",attrs:{type:"img"},on:{attachment:e.imgadd1}})],1),a("el-form-item",{attrs:{label:"商品图片"}},[e._l(e.form.media,(function(t,r){return a("div",{key:r,staticClass:"uploadSource bor_de rel flex"},[a("label",{staticClass:"statusLabel curs",on:{mouseenter:function(t){return e.enterMultigraph(r,1)},mouseleave:function(t){return e.leaveMultigraph(r,1)}}},[a("i",{ref:"list1"+r,refInFor:!0,staticClass:"el-icon-check"}),a("i",{staticClass:"el-icon-close",on:{click:function(a){return e.deleteMultiImage(t,2,"multigraph")}}})]),a("img",{staticClass:"wid img",attrs:{src:t},on:{click:function(t){return e.test(2)}}})])})),a("div",{staticClass:"uploadSource flex-center curs",on:{click:function(t){return e.test(2)}}},[a("i",{staticClass:"el-icon-plus fon_40 color_d9"})]),a("div",{staticClass:"yb_margin lh16"},[e._v("商品详情图片建议尺寸:宽 512px")]),a("attachment-img",{ref:"img2",attrs:{type:"imgs"},on:{attachment:e.multigraph1}})],2),a("el-form-item",{attrs:{label:"最小购买量"}},[a("el-input-number",{attrs:{"controls-position":"right",min:1,max:1e8,placeholder:"请输入最小购买量"},model:{value:e.form.minNum,callback:function(t){e.$set(e.form,"minNum",t)},expression:"form.minNum"}})],1),a("el-form-item",{attrs:{label:"商品单位",required:!0,prop:"unit"}},[a("el-autocomplete",{attrs:{"value-key":"name","fetch-suggestions":e.querySearchAsync4,placeholder:"请选择商品单位"},model:{value:e.form.unit,callback:function(t){e.$set(e.form,"unit",t)},expression:"form.unit"}})],1),a("el-form-item",{attrs:{label:"售卖规格"}},[a("div",{staticClass:"spectable"},[a("div",{directives:[{name:"show",rawName:"v-show",value:this.form.spec.length<1,expression:"this.form.spec.length<1"}],staticClass:"specitem"},[a("div",{staticClass:"specitemrow flex mar_b30"},[a("div",{},[a("div",{staticClass:"flex"},[a("div",{staticClass:"rowname mar_r15"},[a("div",[a("span",{staticClass:"color-red"},[e._v("*")]),e._v("价格 ")]),a("el-input",{staticClass:"atinput jlinptfist",attrs:{type:"number",placeholder:"","auto-complete":"off"},model:{value:e.form.price,callback:function(t){e.$set(e.form,"price",t)},expression:"form.price"}},[a("template",{slot:"append"},[e._v("元")])],2)],1),a("div",{staticClass:"rowname mar_r15"},[a("div",[a("span",{staticClass:"color-red"},[e._v("*")]),e._v("包装费 ")]),a("el-input",{staticClass:"atinput jlinptfist",attrs:{type:"number",placeholder:"","auto-complete":"off"},model:{value:e.form.boxMoney,callback:function(t){e.$set(e.form,"boxMoney",t)},expression:"form.boxMoney"}},[a("template",{slot:"append"},[e._v("元")])],2)],1),a("div",{staticClass:"rowname mar_r15 rowkucun"},[a("div",[a("span",{staticClass:"color-red"},[e._v("*")]),e._v("库存 ")]),a("div",{staticClass:"flex"},[a("el-input",{staticClass:"atinput jlinptfist",attrs:{type:"number",placeholder:"","auto-complete":"off"},model:{value:e.form.stock,callback:function(t){e.$set(e.form,"stock",t)},expression:"form.stock"}},[a("template",{slot:"append"},[e._v("件")])],2),a("el-checkbox",{attrs:{"true-label":"1","false-label":"2",border:""},model:{value:e.form.fillType,callback:function(t){e.$set(e.form,"fillType",t)},expression:"form.fillType"}},[e._v("次日置满")]),a("div",[e.initial.more?a("el-button",{staticClass:"mar_l20",attrs:{size:"mini",type:"text"},on:{click:function(t){return e.showzhe()}}},[e._v("收起")]):a("el-button",{staticClass:"mar_l20",attrs:{size:"mini",type:"text"},on:{click:function(t){return e.showzhe()}}},[e._v("更多")])],1)],1)])]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.initial.more,expression:"initial.more"}],staticClass:"flex mar_t10"},[a("div",{staticClass:"rowname mar_r15"},[a("div",[e._v("成本价格")]),a("el-input",{staticClass:"atinput jlinptfist",attrs:{type:"number",placeholder:"","auto-complete":"off"},model:{value:e.form.costPrice,callback:function(t){e.$set(e.form,"costPrice",t)},expression:"form.costPrice"}},[a("template",{slot:"append"},[e._v("元")])],2)],1),a("div",{staticClass:"rowname rowname2 mar_r15"},[a("div",[e._v("商品编号")]),a("el-input",{staticClass:"atinput jlinptfist",attrs:{type:"number",placeholder:"","auto-complete":"off"},model:{value:e.form.goodCode,callback:function(t){e.$set(e.form,"goodCode",t)},expression:"form.goodCode"}})],1)])])])]),a("div",{staticClass:"specitem"},e._l(e.form.spec,(function(t,r){return a("div",{key:r,staticClass:"specitemrow flex mar_b30"},[a("div",{},[a("div",{staticClass:"flex"},[a("div",{staticClass:"rowname mar_r15"},[a("div",[e._v("规格名称")]),a("div",[a("el-autocomplete",{attrs:{"value-key":"name","fetch-suggestions":e.querySearchAsync,placeholder:"请输入内容"},on:{select:e.handleSelect},model:{value:t.specName,callback:function(a){e.$set(t,"specName",a)},expression:"item.specName"}})],1)]),a("div",{staticClass:"rowname mar_r15"},[a("div",[e._v("价格")]),a("el-input",{staticClass:"atinput jlinptfist",attrs:{type:"number",placeholder:"","auto-complete":"off"},model:{value:t.price,callback:function(a){e.$set(t,"price",a)},expression:"item.price"}},[a("template",{slot:"append"},[e._v("元")])],2)],1),a("div",{staticClass:"rowname mar_r15"},[a("div",[e._v("包装费")]),a("el-input",{staticClass:"atinput jlinptfist",attrs:{type:"number",placeholder:"","auto-complete":"off"},model:{value:t.boxMoney,callback:function(a){e.$set(t,"boxMoney",a)},expression:"item.boxMoney"}},[a("template",{slot:"append"},[e._v("元")])],2)],1),a("div",{staticClass:"rowname mar_r15 rowkucun"},[a("div",[e._v("库存")]),a("div",{staticClass:"flex"},[a("el-input",{staticClass:"atinput jlinptfist",attrs:{type:"number",placeholder:"","auto-complete":"off"},model:{value:t.stock,callback:function(a){e.$set(t,"stock",a)},expression:"item.stock"}},[a("template",{slot:"append"},[e._v("件")])],2),a("el-checkbox",{attrs:{"true-label":"1","false-label":"2",border:""},model:{value:t.fillType,callback:function(a){e.$set(t,"fillType",a)},expression:"item.fillType"}},[e._v("次日置满")]),a("div",[t.more?a("el-button",{staticClass:"mar_l20",attrs:{size:"mini",type:"text"},on:{click:function(t){return e.showzhe(r)}}},[e._v("收起")]):a("el-button",{staticClass:"mar_l20",attrs:{size:"mini",type:"text"},on:{click:function(t){return e.showzhe(r)}}},[e._v("更多")])],1)],1)])]),a("div",{directives:[{name:"show",rawName:"v-show",value:t.more,expression:"item.more"}],staticClass:"flex mar_t10"},[a("div",{staticClass:"rowname mar_r15"},[a("div",[e._v("成本价格")]),a("el-input",{staticClass:"atinput jlinptfist",attrs:{type:"number",placeholder:"","auto-complete":"off"},model:{value:t.costPrice,callback:function(a){e.$set(t,"costPrice",a)},expression:"item.costPrice"}},[a("template",{slot:"append"},[e._v("元")])],2)],1),a("div",{staticClass:"rowname rowname2 mar_r15"},[a("div",[e._v("商品编号")]),a("el-input",{staticClass:"atinput jlinptfist",attrs:{type:"number",placeholder:"","auto-complete":"off"},model:{value:t.goodCode,callback:function(a){e.$set(t,"goodCode",a)},expression:"item.goodCode"}})],1)])]),a("div",{staticClass:"delbtn"},[a("el-button",{staticClass:"mar_t5 mar_l20",attrs:{size:"mini",type:"text"},on:{click:function(t){return e.delSpec(r)}}},[a("i",{staticClass:"el-icon-remove-outline mar_r5"}),e._v("删除 ")])],1)])})),0),a("div",{directives:[{name:"show",rawName:"v-show",value:this.form.spec.length<20,expression:"this.form.spec.length<20"}],staticClass:"subjectcolor2 curs",on:{click:e.addSpec}},[a("i",{staticClass:"el-icon-circle-plus mar_r5"}),e._v("添加规格,最多20个 ")])]),a("div",{staticClass:"bor_b_df5 boxfor"})]),a("el-form-item",{attrs:{label:"售卖属性"}},[a("div",{staticClass:"spsx"},[a("div",{staticClass:"t_l"},[e._l(e.attribute,(function(t,r){return a("div",{key:r},[a("div",{staticClass:"clr flex wid mar_t10"},[a("div",{staticClass:"clr_l flex-g-0 pad_r_20 t_l"},[a("span",{staticClass:"color-red"},[e._v("*")]),e._v("属性名称: ")]),a("div",{staticClass:"clr_r flex-g-1 pad_l_30"},[a("span",{staticClass:"color-red"},[e._v("*")]),e._v("属性值(至少填写两个,最多八个) ")])]),a("div",{staticClass:"clr flex wid flex-y-top"},[a("div",{staticClass:"clr_l flex-g-0 pad_r_20 t_l shuxingname"},[a("el-autocomplete",{attrs:{"value-key":"name","fetch-suggestions":e.querySearchAsync2,placeholder:"如:辣度"},on:{select:e.handleSelect2},model:{value:t.attrName,callback:function(a){e.$set(t,"attrName",a)},expression:"item.attrName"}})],1),a("div",{staticClass:"clr_r flex-g-1 pad_l_30 flex atinputbox flex-wrap flex-y-top"},[e._l(t.attrStr,(function(r,n){return a("el-select",{key:n,staticClass:"atinput",attrs:{filterable:""},on:{blur:function(a){return e.selectValueBlur(a,t,n)},focus:function(a){return e.selectValueChange(a,t,n)}},model:{value:t.attrStr[n].name,callback:function(a){e.$set(t.attrStr[n],"name",a)},expression:"item.attrStr[index].name"}},e._l(t.attrShow,(function(e){return a("el-option",{key:e.sxz,attrs:{label:e.sxz,value:e.sxz}})})),1)})),a("el-button",{staticClass:"mar_t5",attrs:{size:"mini",type:"text"},on:{click:function(t){return e.delAttribute(r)}}},[a("i",{staticClass:"el-icon-remove-outline mar_r5"}),e._v("删除 ")])],2)]),a("div",{staticClass:"bor_b_df5 boxfor"})])})),a("div",{directives:[{name:"show",rawName:"v-show",value:this.attribute.length<20,expression:"this.attribute.length<20"}],staticClass:"subjectcolor2 curs",on:{click:e.addAttribute}},[a("i",{staticClass:"el-icon-circle-plus mar_r5"}),e._v("添加属性,最多20个 ")])],2)]),a("div",{staticClass:"bor_b_df5 boxfor"})]),a("el-form-item",{attrs:{label:"售卖加料"}},[a("div",{staticClass:"spectable"},[a("div",{staticClass:"specitem"},e._l(e.form.feeding,(function(t,r){return a("div",{key:r,staticClass:"specitemrow flex mar_b30"},[a("div",{},[a("div",{staticClass:"flex"},[a("div",{staticClass:"rowname mar_r15"},[a("div",[e._v("加料名称")]),a("div",[a("el-autocomplete",{attrs:{"value-key":"name","fetch-suggestions":e.querySearchAsync3,placeholder:"如:杯型"},on:{select:function(t){return e.handleSelect3(t,r)},change:function(t){return e.handleSelectChage3(t,r)}},model:{value:t.materialName,callback:function(a){e.$set(t,"materialName",a)},expression:"item.materialName"}})],1)]),a("div",{staticClass:"rowname mar_r15"},[a("div",[e._v("价格")]),a("el-input",{staticClass:"atinput jlinptfist",attrs:{type:"number",placeholder:"","auto-complete":"off"},model:{value:t.salesPrice,callback:function(a){e.$set(t,"salesPrice",a)},expression:"item.salesPrice"}},[a("template",{slot:"append"},[e._v("元")])],2)],1),a("div",{staticClass:"rowname mar_r15 rowkucun",staticStyle:{width:"130px"}},[a("div",{staticClass:"color_f"},[e._v("库存")]),a("div",{staticClass:"flex"},[a("el-checkbox",{attrs:{"true-label":"1","false-label":"2",border:""},model:{value:t.fillType,callback:function(a){e.$set(t,"fillType",a)},expression:"item.fillType"}},[e._v("次日置满")])],1)])])]),a("div",{staticClass:"delbtn"},[a("el-button",{staticClass:"mar_t5",attrs:{size:"mini",type:"text"},on:{click:function(t){return e.delFeeding(r)}}},[a("i",{staticClass:"el-icon-remove-outline mar_r5"}),e._v("删除 ")])],1)])})),0),a("div",{directives:[{name:"show",rawName:"v-show",value:this.form.feeding.length<20,expression:"this.form.feeding.length<20"}],staticClass:"subjectcolor2 curs",on:{click:e.addFeeding}},[a("i",{staticClass:"el-icon-circle-plus mar_r5"}),e._v("添加加料,最多20个 ")])]),a("div",{staticClass:"bor_b_df5 boxfor"})]),a("el-form-item",{attrs:{label:"售卖时间"}},[a("el-radio-group",{model:{value:e.form.salesType,callback:function(t){e.$set(e.form,"salesType",t)},expression:"form.salesType"}},[a("el-radio",{attrs:{label:"1"}},[e._v("全时段售卖")]),a("el-radio",{attrs:{label:"2"}},[e._v("自定义时间")])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"2"==e.form.salesType,expression:"form.salesType=='2'"}]},[a("el-form-item",{attrs:{label:"选择时间段"}},[a("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.form.validity,callback:function(t){e.$set(e.form,"validity",t)},expression:"form.validity"}}),a("el-checkbox-group",{model:{value:e.form.weekDay,callback:function(t){e.$set(e.form,"weekDay",t)},expression:"form.weekDay"}},[a("el-checkbox",{attrs:{label:"周一"}}),a("el-checkbox",{attrs:{label:"周二"}}),a("el-checkbox",{attrs:{label:"周三"}}),a("el-checkbox",{attrs:{label:"周四"}}),a("el-checkbox",{attrs:{label:"周五"}}),a("el-checkbox",{attrs:{label:"周六"}}),a("el-checkbox",{attrs:{label:"周日"}})],1)],1),a("el-form-item",{attrs:{label:"售卖时间段"}},[a("el-radio-group",{model:{value:e.form.weekSalesType,callback:function(t){e.$set(e.form,"weekSalesType",t)},expression:"form.weekSalesType"}},[a("el-radio",{attrs:{label:"1"}},[e._v("全时段售卖")]),a("el-radio",{attrs:{label:"2"}},[e._v("自定义时间")])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"2"==e.form.weekSalesType,expression:"form.weekSalesType=='2'"}],staticClass:"mar_t10"},[e._l(e.form.salesTimeStr,(function(t,r){return a("div",{key:r,staticClass:"time_item mar_b10"},[a("el-time-select",{staticStyle:{width:"200px"},attrs:{placeholder:"起始时间","picker-options":{start:"00:00",step:"00:15",end:"23:59"}},model:{value:t.startTime,callback:function(a){e.$set(t,"startTime",a)},expression:"item.startTime"}}),a("el-time-select",{staticClass:"mar_l20",staticStyle:{width:"200px"},attrs:{placeholder:"结束时间","picker-options":{start:"00:00",step:"00:15",end:"23:59",minTime:t.startTime}},model:{value:t.endTime,callback:function(a){e.$set(t,"endTime",a)},expression:"item.endTime"}}),a("el-button",{staticClass:"fon_12 mar_l10",attrs:{type:"text"},on:{click:function(t){return e.deltimeInterval(r)}}},[e._v("删除")])],1)})),a("el-button",{directives:[{name:"show",rawName:"v-show",value:e.form.salesTimeStr.length<3,expression:"form.salesTimeStr.length<3"}],attrs:{type:"text"},on:{click:e.addtimeInterval}},[a("Icon",{attrs:{type:"md-add"}}),e._v("添加时段 ")],1)],2)],1)],1),a("div",{staticClass:"bor_b_df5 boxfor"})],1),a("el-form-item",{attrs:{label:"参与热销排行"}},[a("el-radio-group",{model:{value:e.form.hotsaleType,callback:function(t){e.$set(e.form,"hotsaleType",t)},expression:"form.hotsaleType"}},[a("el-radio",{attrs:{label:"1"}},[e._v("是")]),a("el-radio",{attrs:{label:"2"}},[e._v("否")])],1)],1),a("el-form-item",{attrs:{label:"特色分类"}},[a("el-radio-group",{model:{value:e.form.specialType,callback:function(t){e.$set(e.form,"specialType",t)},expression:"form.specialType"}},[a("el-radio",{attrs:{label:"0"}},[e._v("无")]),a("el-radio",{attrs:{label:"1"}},[e._v(e._s(e.xinping))]),a("el-radio",{attrs:{label:"2"}},[e._v(e._s(e.remai))]),a("el-radio",{attrs:{label:"3"}},[e._v(e._s(e.tuijian))])],1)],1),a("el-form-item",{attrs:{label:"单点时不配送"}},[a("el-radio-group",{model:{value:e.form.aloneType,callback:function(t){e.$set(e.form,"aloneType",t)},expression:"form.aloneType"}},[a("el-radio",{attrs:{label:"1"}},[e._v("是,不配送")]),a("el-radio",{attrs:{label:"2"}},[e._v("否,正常配送")])],1)],1),a("el-form-item",{attrs:{label:"商品详情"}},[a("baidu-ueditor",{attrs:{content:e.form.details},on:{ueditor:e.getUeditor}})],1)],1)],1),a("el-tab-pane",{attrs:{label:"其他信息",name:"3"}},[a("el-form",{ref:"form3",attrs:{model:e.form3,"label-width":"180px"}},[a("el-form-item",{attrs:{label:"每单限购"}},[a("el-input-number",{attrs:{"controls-position":"right",min:0,max:1e8,placeholder:"请输入每单限购"},model:{value:e.form3.maxNum,callback:function(t){e.$set(e.form3,"maxNum",t)},expression:"form3.maxNum"}}),a("div",{staticClass:"yb_margin lh16"},[e._v("用户下单每单限购的数量")])],1),a("el-form-item",{attrs:{label:"虚拟销量"}},[a("el-input-number",{attrs:{"controls-position":"right",min:0,max:1e8,placeholder:"请输入虚拟销量"},model:{value:e.form3.virtualSales,callback:function(t){e.$set(e.form3,"virtualSales",t)},expression:"form3.virtualSales"}}),a("div",{staticClass:"yb_margin lh16"},[e._v("前台显示的商品总销量=设置的虚拟销量+真实销量值")])],1),a("el-form-item",{attrs:{label:"打印标签"}},[a("el-select",{attrs:{placeholder:"打印标签"},model:{value:e.form3.printLabel,callback:function(t){e.$set(e.form3,"printLabel",t)},expression:"form3.printLabel"}},e._l(e.printData,(function(e){return a("el-option",{key:e.name,attrs:{label:e.name,value:e.id}})})),1),a("div",{staticClass:"yb_margin lh16"},[e._v("打印机可按照标签打印此商品")])],1),a("el-form-item",{attrs:{label:"商品标签"}},[a("el-select",{attrs:{placeholder:"商品标签"},model:{value:e.form3.goodLabel,callback:function(t){e.$set(e.form3,"goodLabel",t)},expression:"form3.goodLabel"}},e._l(e.labelList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1)],1)],1),a("el-dialog",{attrs:{title:"选择商品",visible:e.dialogTableVisible},on:{"update:visible":function(t){e.dialogTableVisible=t}}},[a("el-table",{ref:"tableData",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{prop:"id",label:"商品ID"}}),a("el-table-column",{attrs:{prop:"icon",label:"商品图片",width:"120"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("img",{staticStyle:{width:"50px",height:"50px"},attrs:{src:e.row.icon}})]}}])}),a("el-table-column",{attrs:{prop:"name",label:"商品名称","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"price",label:"商品价格",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" ¥"+e._s(t.row.price)+" ")]}}])})],1),a("span",{staticStyle:{display:"flex","justify-content":"space-between","align-items":"center","margin-top":"20px"}},[a("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:e.page.total,"page-size":e.page.size,"current-page":e.page.currentPage},on:{"update:currentPage":function(t){return e.$set(e.page,"currentPage",t)},"update:current-page":function(t){return e.$set(e.page,"currentPage",t)},"current-change":e.handleCurrentChange}}),a("el-button",{attrs:{type:"primary"},on:{click:e.choose}},[e._v("确 定")])],1)],1),a("div",{staticClass:"mar_t20 ba_f pad_20 t_c"},[a("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("保存")])],1)],1)},n=[],o=(a("99af"),a("4de4"),a("4160"),a("c975"),a("d81d"),a("a434"),a("b0c0"),a("d3b7"),a("25f0"),a("159b"),a("96cf"),a("1da1")),i=a("f926"),s=a("9893"),l=a("fc6e"),c=a("ed08"),u=a("5a4a"),m={created:function(){this.init(),this.initlist(),console.log("this.$route.params.id;",this.$route.query.id),this.$route.query.id&&(this.id=this.$route.query.id,this.edit()),this.$route.query.goodsType&&(this.form.goodsType=this.$route.query.goodsType)},components:{vabQuill:i["a"],attachmentImg:l["a"],baiduUeditor:s["a"]},data:function(){return{content:"