| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-fb0b3b50"],{"14c6":function(t,e,s){"use strict";s.d(e,"p",(function(){return o})),s.d(e,"z",(function(){return i})),s.d(e,"A",(function(){return r})),s.d(e,"w",(function(){return l})),s.d(e,"E",(function(){return n})),s.d(e,"x",(function(){return d})),s.d(e,"F",(function(){return c})),s.d(e,"D",(function(){return u})),s.d(e,"y",(function(){return p})),s.d(e,"B",(function(){return g})),s.d(e,"C",(function(){return m})),s.d(e,"c",(function(){return f})),s.d(e,"g",(function(){return b})),s.d(e,"h",(function(){return h})),s.d(e,"d",(function(){return _})),s.d(e,"e",(function(){return y})),s.d(e,"f",(function(){return v})),s.d(e,"H",(function(){return x})),s.d(e,"K",(function(){return w})),s.d(e,"I",(function(){return O})),s.d(e,"J",(function(){return j})),s.d(e,"G",(function(){return k})),s.d(e,"O",(function(){return C})),s.d(e,"L",(function(){return L})),s.d(e,"M",(function(){return D})),s.d(e,"N",(function(){return z})),s.d(e,"i",(function(){return S})),s.d(e,"n",(function(){return $})),s.d(e,"j",(function(){return q})),s.d(e,"o",(function(){return B})),s.d(e,"k",(function(){return I})),s.d(e,"m",(function(){return G})),s.d(e,"l",(function(){return P})),s.d(e,"P",(function(){return A})),s.d(e,"S",(function(){return N})),s.d(e,"Q",(function(){return T})),s.d(e,"R",(function(){return R})),s.d(e,"t",(function(){return E})),s.d(e,"s",(function(){return J})),s.d(e,"u",(function(){return M})),s.d(e,"v",(function(){return F})),s.d(e,"r",(function(){return H})),s.d(e,"q",(function(){return K})),s.d(e,"T",(function(){return Q})),s.d(e,"U",(function(){return U})),s.d(e,"V",(function(){return V})),s.d(e,"W",(function(){return W})),s.d(e,"a",(function(){return X})),s.d(e,"b",(function(){return Y})),s.d(e,"Y",(function(){return Z})),s.d(e,"X",(function(){return tt}));var a=s("f175");const o=t=>a.a.post("/goods.goods/add",t),i=t=>a.a.post("/goods.goods/edit",t),r=t=>a.a.get("/goods.goods/lists",{params:t}),l=t=>a.a.get("/goods.goods/commonLists",{params:t}),n=t=>a.a.post("/goods.goods/status",t),d=t=>a.a.post("/goods.goods/del",t),c=t=>a.a.post("/goods.goods/changeCategory",t),u=t=>a.a.post("/goods.goods/sort",t),p=t=>a.a.get("/goods.goods/detail",{params:{id:t}}),g=t=>a.a.get("/goods.goods/otherList",{params:t}),m=t=>a.a.post("goods.goods/rename ",t),f=t=>a.a.post("/goods.goods_brand/add",t),b=t=>a.a.get("/goods.goods_brand/lists",{params:t}),h=t=>a.a.post("/goods.goods_brand/status",t),_=t=>a.a.post("/goods.goods_brand/del",t),y=t=>a.a.get("/goods.goods_brand/detail",{params:{id:t}}),v=t=>a.a.post("/goods.goods_brand/edit",t),x=t=>a.a.post("/goods.goods_supplier_category/add",t),w=t=>a.a.get("goods.goods_supplier_category/lists",{params:t}),O=t=>a.a.post("goods.goods_supplier_category/del",{id:t}),j=t=>a.a.post("goods.goods_supplier_category/edit",t),k=t=>a.a.post("/goods.goods_supplier/add",t),C=t=>a.a.get("/goods.goods_supplier/lists",{params:t}),L=t=>a.a.post("goods.goods_supplier/del",{id:t}),D=t=>a.a.get("/goods.goods_supplier/detail",{params:{id:t}}),z=t=>a.a.post("/goods.goods_supplier/edit",t),S=t=>a.a.post("/goods.goods_category/add",t),$=t=>a.a.get("/goods.goods_category/lists",{params:t}),q=t=>a.a.get("/goods.goods_category/commonLists",{params:t}),B=t=>a.a.post("/goods.goods_category/status",t),I=t=>a.a.post("goods.goods_category/del",{id:t}),G=t=>a.a.post("/goods.goods_category/edit",t),P=t=>a.a.get("/goods.goods_category/detail",{params:{id:t}}),A=t=>a.a.post("/goods.goods_unit/add",t),N=t=>a.a.get("/goods.goods_unit/lists",{params:t}),T=t=>a.a.post("goods.goods_unit/del",{id:t}),R=t=>a.a.post("/goods.goods_unit/edit",t),E=t=>a.a.get("goods.goods_comment/lists",{params:t}),J=t=>a.a.post("goods.goods_comment/del",t),M=t=>a.a.post("goods.goods_comment/reply",t),F=t=>a.a.post("/goods.goods_comment/status",t),H=t=>a.a.get("goods.goods_comment_assistant/lists",{params:t}),K=t=>a.a.post("goods.goods_comment_assistant/add",t),Q=t=>a.a.get("goods.goodsServiceGuarantee/lists",t),U=t=>a.a.post("goods.goodsServiceGuarantee/add",t),V=t=>a.a.post("goods.goodsServiceGuarantee/delete",t),W=t=>a.a.post("goods.goodsServiceGuarantee/edit",t),X=()=>a.a.get("goods.GoodsDeliveryTemplate/lists"),Y=t=>a.a.post("goods.GoodsDeliveryTemplate/add",t),Z=t=>a.a.post("goods.GoodsDeliveryTemplate/edit",t),tt=t=>a.a.post("goods.GoodsDeliveryTemplate/delete",t)},"22d2":function(t,e,s){},"4ae1":function(t,e,s){"use strict";var a=s("9ab4"),o=s("1b40"),i=s("0a6d");let r=class extends o.e{constructor(){super(...arguments),this.exportData={},this.formData={page_type:0,page_start:1,page_end:200,file_name:""}}handleOpen(){this.getData()}handleConfirm(){const t=this.$loading({lock:!0,text:"正在导出中...",spinner:"el-icon-loading"});this.method({export:2,...this.param,...this.formData,user_id:this.userId,type:this.type,...this.status,page_size:this.pageSize}).then(()=>{this.$refs.dialog.close()}).finally(()=>{t.close()})}getData(){this.method({...this.param,export:1,user_id:this.userId,type:this.type,page_size:this.pageSize,...this.status}).then(t=>{this.exportData=t,this.formData.file_name=t.file_name,this.formData.page_end=t.page_end,this.formData.page_start=t.page_start})}created(){}};Object(a.a)([Object(o.c)()],r.prototype,"method",void 0),Object(a.a)([Object(o.c)()],r.prototype,"param",void 0),Object(a.a)([Object(o.c)()],r.prototype,"status",void 0),Object(a.a)([Object(o.c)()],r.prototype,"userId",void 0),Object(a.a)([Object(o.c)()],r.prototype,"type",void 0),Object(a.a)([Object(o.c)()],r.prototype,"pageSize",void 0),r=Object(a.a)([Object(o.a)({components:{LsDialog:i.a}})],r);var l=r,n=s("2877"),d=Object(n.a)(l,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"export-data inline"},[e("ls-dialog",{ref:"dialog",attrs:{title:"导出设置",width:"500px",top:"35vh","confirm-button-text":"确认导出",async:!0},on:{confirm:t.handleConfirm,open:t.handleOpen}},[e("div",{attrs:{slot:"trigger"},slot:"trigger"},[e("el-button",{attrs:{size:"small"}},[t._v("导出")])],1),e("div",[e("el-form",{ref:"form",attrs:{model:t.formData,"label-width":"120px",size:"small"}},[e("el-form-item",{attrs:{label:"数据量:"}},[t._v(" 预计导出"+t._s(t.exportData.count)+"条数据,共"+t._s(t.exportData.sum_page)+"页,每页"+t._s(t.exportData.page_size)+"条数据 ")]),e("el-form-item",{attrs:{label:"导出限制:"}},[t._v(" 每次导出最大允许"+t._s(t.exportData.max_page)+"页,共"+t._s(t.exportData.all_max_size)+"条数据 ")]),e("el-form-item",{attrs:{label:"导出范围:",required:""}},[e("el-radio-group",{model:{value:t.formData.page_type,callback:function(e){t.$set(t.formData,"page_type",e)},expression:"formData.page_type"}},[e("el-radio",{attrs:{label:0}},[t._v("全部导出")]),e("el-radio",{attrs:{label:1}},[t._v("分页导出")])],1)],1),1==t.formData.page_type?e("el-form-item",{attrs:{label:"分页范围:",required:""}},[e("div",{staticClass:"flex"},[e("el-input",{staticStyle:{width:"100px"},attrs:{placeholder:""},model:{value:t.formData.page_start,callback:function(e){t.$set(t.formData,"page_start",e)},expression:"formData.page_start"}}),e("span",{staticClass:"flex-none m-l-8 m-r-8"},[t._v("页,至")]),e("el-input",{staticStyle:{width:"100px"},attrs:{placeholder:""},model:{value:t.formData.page_end,callback:function(e){t.$set(t.formData,"page_end",e)},expression:"formData.page_end"}})],1)]):t._e(),e("el-form-item",{attrs:{label:"导出文件名称:",prop:"file_name"}},[e("el-input",{attrs:{placeholder:"请输入导出文件名称"},model:{value:t.formData.file_name,callback:function(e){t.$set(t.formData,"file_name",e)},expression:"formData.file_name"}})],1)],1)],1)])],1)}),[],!1,null,null,null);e.a=d.exports},5452:function(t,e,s){"use strict";s.r(e);var a=s("9ab4"),o=s("1b40"),i=(s("14d9"),s("e9f5"),s("ab43"),s("0a6d")),r=s("3c50"),l=s("d455"),n=s("14c6");let d=class extends o.e{constructor(){super(...arguments),this.status=!0,this.selectIds=[],this.categoryIds=[]}get disabledBtn(){return!this.selectIds.length}handleBatchStatus({status:t,ids:e}){Object(n.E)({ids:e||this.selectIds,status:t}).then(()=>{this.$emit("refresh")})}handleBatchDelete(t){Object(n.x)({ids:Array.isArray(t)?t:this.selectIds}).then(()=>{this.$emit("refresh")})}handleMoveCategory(){Object(n.F)({ids:this.selectIds,category_id:this.categoryIds}).then(()=>{this.$emit("refresh")})}handleSelect(t){this.selectIds=t.map(t=>t.id)}handleselectAll(){this.$refs.paneTable.toggleAllSelection()}handleSort(t,e){Object(n.D)({id:e,sort:t}).then(()=>{this.$emit("refresh")})}handleRename(t,e){Object(n.C)({id:e,name:t}).then(()=>{this.$emit("refresh")})}};Object(a.a)([Object(o.c)()],d.prototype,"value",void 0),Object(a.a)([Object(o.c)()],d.prototype,"pager",void 0),Object(a.a)([Object(o.c)()],d.prototype,"categoryList",void 0),d=Object(a.a)([Object(o.a)({components:{LsDialog:i.a,LsPagination:r.a,PopoverInput:l.a}})],d);var c=d,u=s("2877"),p=Object(u.a)(c,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"goods-pane"},[e("div",{staticClass:"pane-header"},[e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.$router.push("/goods/release")}}},[t._v("新增商品")]),e("el-button",{attrs:{size:"small",type:"success"},on:{click:function(e){return t.$router.push("/goods_collection/index")}}},[t._v("商品采集")]),e("ls-dialog",{staticClass:"m-l-10 inline",attrs:{content:"确定批量上架销售?请谨慎操作。",disabled:t.disabledBtn},on:{confirm:function(e){return t.handleBatchStatus({status:1})}}},[e("el-button",{attrs:{slot:"trigger",size:"small",disabled:t.disabledBtn},slot:"trigger"},[t._v("上架销售")])],1),e("ls-dialog",{staticClass:"m-l-10 inline",attrs:{content:"确定批量放入仓库?请谨慎操作。",disabled:t.disabledBtn},on:{confirm:function(e){return t.handleBatchStatus({status:0})}}},[e("el-button",{attrs:{slot:"trigger",size:"small",disabled:t.disabledBtn},slot:"trigger"},[t._v("放入仓库")])],1),e("ls-dialog",{staticClass:"m-l-10 inline",attrs:{content:"确定批量删除?请谨慎操作。",disabled:t.disabledBtn},on:{confirm:t.handleBatchDelete}},[e("el-button",{attrs:{slot:"trigger",disabled:t.disabledBtn,size:"small"},slot:"trigger"},[t._v("删除")])],1),e("ls-dialog",{staticClass:"m-l-10 inline",attrs:{width:"500px",title:"移动分类",disabled:t.disabledBtn},on:{confirm:t.handleMoveCategory}},[e("el-button",{attrs:{slot:"trigger",disabled:t.disabledBtn,size:"small"},slot:"trigger"},[t._v("移动分类")]),t._v(" 移动至 "),e("el-cascader",{staticStyle:{width:"380px"},attrs:{options:t.categoryList,props:{multiple:!0,checkStrictly:!0,label:"name",value:"id",children:"sons",emitPath:!1},clearable:"",filterable:""},model:{value:t.categoryIds,callback:function(e){t.categoryIds=e},expression:"categoryIds"}})],1)],1),e("div",{staticClass:"pane-table m-t-16"},[e("el-table",{ref:"paneTable",staticStyle:{width:"100%"},attrs:{data:t.value,size:"mini"},on:{"selection-change":t.handleSelect}},[e("el-table-column",{attrs:{fixed:"left",type:"selection",width:"55"}}),e("el-table-column",{attrs:{prop:"code",label:"商品编码",width:"120"}}),e("el-table-column",{attrs:{prop:"code",label:"商品图片",width:"100"},scopedSlots:t._u([{key:"default",fn:function(t){return[e("el-image",{staticClass:"flex-none",staticStyle:{width:"58px",height:"58px"},attrs:{fit:"cover",src:t.row.image}})]}}])}),e("el-table-column",{attrs:{label:"商品名称","min-width":"200","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(s){return[e("div",{staticClass:"ls-edit-wrap flex"},[e("div",{staticClass:"line-1"},[t._v(t._s(s.row.name))]),e("popover-input",{attrs:{width:400,type:"text",value:s.row.name},on:{confirm:function(e){return t.handleRename(e,s.row.id)}}},[e("el-button",{staticClass:"ls-edit",staticStyle:{padding:"0"},attrs:{type:"text",icon:"el-icon-edit"}})],1)],1),e("div",[2==s.row.spec_type?e("el-tag",{staticClass:"m-r-6",attrs:{size:"mini"}},[t._v("多规格")]):t._e(),s.row.goods_activity.includes(2)?e("el-tag",{staticClass:"m-r-6",attrs:{size:"mini",effect:"dark",type:"danger"}},[t._v("秒杀")]):t._e(),s.row.goods_activity.includes(3)?e("el-tag",{staticClass:"m-r-6",attrs:{size:"mini",effect:"dark",type:"warning"}},[t._v("砍价")]):t._e(),s.row.goods_activity.includes(1)?e("el-tag",{staticClass:"m-r-6",attrs:{size:"mini",effect:"dark",type:"success"}},[t._v("拼团")]):t._e(),s.row.goods_activity.includes(4)?e("el-tag",{staticClass:"m-r-6",attrs:{size:"mini",effect:"dark",type:"success"}},[t._v("预售")]):t._e()],1)]}}])}),e("el-table-column",{attrs:{prop:"price",label:"价格","min-width":"100"}}),e("el-table-column",{attrs:{prop:"total_stock",label:"库存","min-width":"100"}}),e("el-table-column",{attrs:{prop:"sales_num",label:"销量","min-width":"100"}}),e("el-table-column",{attrs:{prop:"click_num",label:"浏览量","min-width":"100"}}),e("el-table-column",{attrs:{label:"销售状态","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(s){return[1==s.row.status?e("el-tag",{attrs:{size:"medium",type:"success"}},[t._v("销售中")]):e("el-tag",{attrs:{size:"medium",type:"info"}},[t._v("仓库中")])]}}])}),e("el-table-column",{attrs:{label:"排序",width:"100"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("div",{staticClass:"ls-edit-wrap"},[e("span",[t._v(t._s(s.row.sort))]),e("popover-input",{attrs:{tips:"数值越大,越靠前"},on:{confirm:function(e){return t.handleSort(e,s.row.id)}}},[e("el-button",{staticClass:"ls-edit",attrs:{type:"text",icon:"el-icon-edit"}})],1)],1)]}}])}),e("el-table-column",{attrs:{prop:"create_time",label:"创建日期","min-width":"100"}}),e("el-table-column",{attrs:{fixed:"right",label:"操作",width:"180"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("div",[e("div",{staticClass:"inline m-r-10"},[e("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return t.$router.push({path:"/goods/release",query:{id:s.row.id}})}}},[t._v("编辑")])],1),1==s.row.status?e("ls-dialog",{staticClass:"inline m-r-10",attrs:{content:`确定放入仓库:${s.row.name}?请谨慎操作。`},on:{confirm:function(e){return t.handleBatchStatus({ids:[s.row.id],status:0})}}},[e("el-button",{attrs:{slot:"trigger",type:"text",size:"small"},slot:"trigger"},[t._v("放入仓库")])],1):e("ls-dialog",{staticClass:"inline m-r-10",attrs:{content:`确定上架销售:${s.row.name}?请谨慎操作。`},on:{confirm:function(e){return t.handleBatchStatus({ids:[s.row.id],status:1})}}},[e("el-button",{attrs:{slot:"trigger",type:"text",size:"small"},slot:"trigger"},[t._v("上架销售")])],1),e("ls-dialog",{staticClass:"inline",attrs:{content:`确定删除:${s.row.name}?请谨慎操作。`},on:{confirm:function(e){return t.handleBatchDelete([s.row.id])}}},[e("el-button",{attrs:{slot:"trigger",type:"text",size:"small"},slot:"trigger"},[t._v("删除")])],1)],1)]}}])})],1)],1),e("div",{staticClass:"pane-footer m-t-16 flex row-between"},[e("div",{staticClass:"btns flex"},[e("div",{staticClass:"m-r-16"},[e("el-checkbox",{attrs:{value:t.selectIds.length==t.value.length,disabled:!t.value.length},on:{change:t.handleselectAll}},[t._v("当页全选")])],1),e("ls-dialog",{staticClass:"inline",attrs:{content:"确定批量上架销售?请谨慎操作。",disabled:t.disabledBtn},on:{confirm:function(e){return t.handleBatchStatus({status:1})}}},[e("el-button",{attrs:{slot:"trigger",size:"small",disabled:t.disabledBtn},slot:"trigger"},[t._v("上架销售")])],1),e("ls-dialog",{staticClass:"m-l-10 inline",attrs:{content:"确定批量放入仓库?请谨慎操作。",disabled:t.disabledBtn},on:{confirm:function(e){return t.handleBatchStatus({status:0})}}},[e("el-button",{attrs:{slot:"trigger",size:"small",disabled:t.disabledBtn},slot:"trigger"},[t._v("放入仓库")])],1),e("ls-dialog",{staticClass:"m-l-10 inline",attrs:{content:"确定批量删除?请谨慎操作。",disabled:t.disabledBtn},on:{confirm:t.handleBatchDelete}},[e("el-button",{attrs:{slot:"trigger",disabled:t.disabledBtn,size:"small"},slot:"trigger"},[t._v("删除")])],1)],1),e("ls-pagination",{on:{change:function(e){return t.$emit("refresh")}},model:{value:t.pager,callback:function(e){t.pager=e},expression:"pager"}})],1)])}),[],!1,null,"c8c0b0d2",null).exports,g=s("4ae1"),m=s("6ddb"),f=s("4201");let b=class extends o.e{constructor(){super(...arguments),this.queryObj={keyword:"",category_id:"",supplier_id:"",goods_type:"",activity_type:"",bar_code:""},this.supplierList=[],this.categoryList=[],this.typeList=[],this.activityList=[],this.tabCount={all_count:0,sales_count:0,sellout_count:0,storage_count:0,warning_count:0},this.pager=new m.a,this.activeName="all",this.activeStatus="",this.apiGoodsLists=n.A}getList(t){this.activeStatus=f.e[this.activeName],t&&(this.pager.page=t),this.pager.request({callback:n.A,params:{type:f.e[this.activeName],...this.queryObj}}).then(t=>{this.tabCount=null==t?void 0:t.extend})}handleReset(){this.queryObj={keyword:"",category_id:"",supplier_id:"",goods_type:"",activity_type:"",bar_code:""},this.getList()}getGoodsOtherList(){Object(n.B)({type:"list"}).then(t=>{this.categoryList=null==t?void 0:t.category_list,this.supplierList=null==t?void 0:t.supplier_list,this.typeList=null==t?void 0:t.type_list,this.activityList=null==t?void 0:t.activity_list})}created(){this.getGoodsOtherList(),this.getList()}activated(){this.getGoodsOtherList(),this.getList()}};b=Object(a.a)([Object(o.a)({components:{GoodsPane:p,ExportData:g.a}})],b);var h=b,_=(s("9eb0"),Object(u.a)(h,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"ls-goods"},[e("div",{staticClass:"ls-goods__top ls-card"},[e("el-alert",{attrs:{title:"温馨提示:1.新增商品时可选统一规格或者多规格,满足商品不同销售属性场景;2.商品销售状态分为销售中且库存足够时才可下单购买。",type:"info","show-icon":"",closable:!1}}),e("div",{staticClass:"goods-search m-t-16"},[e("el-form",{ref:"form",staticClass:"ls-form",attrs:{inline:"",model:t.queryObj,"label-width":"80px",size:"small"}},[e("el-form-item",{attrs:{label:"商品搜索"}},[e("el-input",{attrs:{placeholder:"请输入商品名称/编码"},model:{value:t.queryObj.keyword,callback:function(e){t.$set(t.queryObj,"keyword",e)},expression:"queryObj.keyword"}})],1),e("el-form-item",{attrs:{label:"条形码"}},[e("el-input",{attrs:{placeholder:"请输入商品条形码"},model:{value:t.queryObj.bar_code,callback:function(e){t.$set(t.queryObj,"bar_code",e)},expression:"queryObj.bar_code"}})],1),e("el-form-item",{attrs:{label:"商品分类"}},[e("el-cascader",{attrs:{options:t.categoryList,props:{multiple:!1,checkStrictly:!0,label:"name",value:"id",children:"sons",emitPath:!1},clearable:"",filterable:""},model:{value:t.queryObj.category_id,callback:function(e){t.$set(t.queryObj,"category_id",e)},expression:"queryObj.category_id"}})],1),e("el-form-item",{attrs:{label:"商品类型"}},[e("el-select",{attrs:{placeholder:"请选择商品类型"},model:{value:t.queryObj.goods_type,callback:function(e){t.$set(t.queryObj,"goods_type",e)},expression:"queryObj.goods_type"}},[e("el-option",{attrs:{label:"全部",value:""}}),t._l(t.typeList,(function(t,s){return e("el-option",{key:s,attrs:{label:t,value:s}})}))],2)],1),e("el-form-item",{attrs:{label:"供应商"}},[e("el-select",{attrs:{placeholder:"请选择供应商"},model:{value:t.queryObj.supplier_id,callback:function(e){t.$set(t.queryObj,"supplier_id",e)},expression:"queryObj.supplier_id"}},[e("el-option",{attrs:{label:"全部",value:""}}),t._l(t.supplierList,(function(t){return e("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}))],2)],1),e("el-form-item",{attrs:{label:"参与活动"}},[e("el-select",{attrs:{placeholder:"请选择活动类型"},model:{value:t.queryObj.activity_type,callback:function(e){t.$set(t.queryObj,"activity_type",e)},expression:"queryObj.activity_type"}},[e("el-option",{attrs:{label:"全部",value:""}}),t._l(t.activityList,(function(t,s){return e("el-option",{key:s,attrs:{label:t,value:s}})}))],2)],1),e("el-form-item",{staticClass:"m-l-6",attrs:{label:""}},[e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.getList(1)}}},[t._v("查询")]),e("el-button",{attrs:{size:"small"},on:{click:t.handleReset}},[t._v("重置")]),e("export-data",{staticClass:"m-l-10",attrs:{pageSize:t.pager.size,method:t.apiGoodsLists,param:t.queryObj,status:{type:t.activeStatus}}})],1)],1)],1)],1),e("div",{staticClass:"ls-goods__content ls-card m-t-16"},[e("el-tabs",{directives:[{name:"loading",rawName:"v-loading",value:t.pager.loading,expression:"pager.loading"}],on:{"tab-click":function(e){return t.getList(1)}},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[e("el-tab-pane",{attrs:{label:`全部(${t.tabCount.all_count})`,name:"all"}},[e("goods-pane",{attrs:{pager:t.pager,categoryList:t.categoryList},on:{refresh:function(e){return t.getList()}},model:{value:t.pager.lists,callback:function(e){t.$set(t.pager,"lists",e)},expression:"pager.lists"}})],1),e("el-tab-pane",{attrs:{lazy:"",label:`销售中(${t.tabCount.sales_count})`,name:"sale"}},[e("goods-pane",{attrs:{pager:t.pager,categoryList:t.categoryList},on:{refresh:function(e){return t.getList()}},model:{value:t.pager.lists,callback:function(e){t.$set(t.pager,"lists",e)},expression:"pager.lists"}})],1),e("el-tab-pane",{attrs:{lazy:"",label:`库存预警(${t.tabCount.warning_count})`,name:"inventory"}},[e("goods-pane",{attrs:{pager:t.pager,categoryList:t.categoryList},on:{refresh:function(e){return t.getList()}},model:{value:t.pager.lists,callback:function(e){t.$set(t.pager,"lists",e)},expression:"pager.lists"}})],1),e("el-tab-pane",{attrs:{lazy:"",label:`已售罄(${t.tabCount.sellout_count})`,name:"soldout"}},[e("goods-pane",{attrs:{pager:t.pager,categoryList:t.categoryList},on:{refresh:function(e){return t.getList()}},model:{value:t.pager.lists,callback:function(e){t.$set(t.pager,"lists",e)},expression:"pager.lists"}})],1),e("el-tab-pane",{attrs:{lazy:"",label:`仓库中(${t.tabCount.storage_count})`,name:"warehouse"}},[e("goods-pane",{attrs:{pager:t.pager,categoryList:t.categoryList},on:{refresh:function(e){return t.getList()}},model:{value:t.pager.lists,callback:function(e){t.$set(t.pager,"lists",e)},expression:"pager.lists"}})],1)],1)],1)])}),[],!1,null,"4e44ee65",null));e.default=_.exports},"9eb0":function(t,e,s){"use strict";s("22d2")},ab43:function(t,e,s){"use strict";var a=s("23e7"),o=s("d024");a({target:"Iterator",proto:!0,real:!0,forced:s("c430")},{map:o})},d024:function(t,e,s){"use strict";var a=s("c65b"),o=s("59ed"),i=s("825a"),r=s("46c4"),l=s("c5cc"),n=s("9bdd"),d=l((function(){var t=this.iterator,e=i(a(this.next,t));if(!(this.done=!!e.done))return n(t,this.mapper,[e.value,this.counter++],!0)}));t.exports=function(t){return i(this),o(t),new d(r(this),{mapper:t})}}}]);
|