| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-18199306"],{"14c6":function(t,e,a){"use strict";a.d(e,"p",(function(){return s})),a.d(e,"z",(function(){return r})),a.d(e,"A",(function(){return i})),a.d(e,"w",(function(){return n})),a.d(e,"E",(function(){return l})),a.d(e,"x",(function(){return d})),a.d(e,"F",(function(){return c})),a.d(e,"D",(function(){return u})),a.d(e,"y",(function(){return p})),a.d(e,"B",(function(){return g})),a.d(e,"C",(function(){return m})),a.d(e,"c",(function(){return f})),a.d(e,"g",(function(){return _})),a.d(e,"h",(function(){return b})),a.d(e,"d",(function(){return h})),a.d(e,"e",(function(){return y})),a.d(e,"f",(function(){return v})),a.d(e,"H",(function(){return x})),a.d(e,"K",(function(){return O})),a.d(e,"I",(function(){return j})),a.d(e,"J",(function(){return k})),a.d(e,"G",(function(){return D})),a.d(e,"O",(function(){return w})),a.d(e,"L",(function(){return C})),a.d(e,"M",(function(){return T})),a.d(e,"N",(function(){return q})),a.d(e,"i",(function(){return L})),a.d(e,"n",(function(){return S})),a.d(e,"j",(function(){return $})),a.d(e,"o",(function(){return z})),a.d(e,"k",(function(){return V})),a.d(e,"m",(function(){return G})),a.d(e,"l",(function(){return P})),a.d(e,"P",(function(){return E})),a.d(e,"S",(function(){return I})),a.d(e,"Q",(function(){return H})),a.d(e,"R",(function(){return J})),a.d(e,"t",(function(){return M})),a.d(e,"s",(function(){return R})),a.d(e,"u",(function(){return A})),a.d(e,"v",(function(){return B})),a.d(e,"r",(function(){return N})),a.d(e,"q",(function(){return F})),a.d(e,"T",(function(){return K})),a.d(e,"U",(function(){return Q})),a.d(e,"V",(function(){return U})),a.d(e,"W",(function(){return W})),a.d(e,"a",(function(){return X})),a.d(e,"b",(function(){return Y})),a.d(e,"Y",(function(){return Z})),a.d(e,"X",(function(){return tt}));var o=a("f175");const s=t=>o.a.post("/goods.goods/add",t),r=t=>o.a.post("/goods.goods/edit",t),i=t=>o.a.get("/goods.goods/lists",{params:t}),n=t=>o.a.get("/goods.goods/commonLists",{params:t}),l=t=>o.a.post("/goods.goods/status",t),d=t=>o.a.post("/goods.goods/del",t),c=t=>o.a.post("/goods.goods/changeCategory",t),u=t=>o.a.post("/goods.goods/sort",t),p=t=>o.a.get("/goods.goods/detail",{params:{id:t}}),g=t=>o.a.get("/goods.goods/otherList",{params:t}),m=t=>o.a.post("goods.goods/rename ",t),f=t=>o.a.post("/goods.goods_brand/add",t),_=t=>o.a.get("/goods.goods_brand/lists",{params:t}),b=t=>o.a.post("/goods.goods_brand/status",t),h=t=>o.a.post("/goods.goods_brand/del",t),y=t=>o.a.get("/goods.goods_brand/detail",{params:{id:t}}),v=t=>o.a.post("/goods.goods_brand/edit",t),x=t=>o.a.post("/goods.goods_supplier_category/add",t),O=t=>o.a.get("goods.goods_supplier_category/lists",{params:t}),j=t=>o.a.post("goods.goods_supplier_category/del",{id:t}),k=t=>o.a.post("goods.goods_supplier_category/edit",t),D=t=>o.a.post("/goods.goods_supplier/add",t),w=t=>o.a.get("/goods.goods_supplier/lists",{params:t}),C=t=>o.a.post("goods.goods_supplier/del",{id:t}),T=t=>o.a.get("/goods.goods_supplier/detail",{params:{id:t}}),q=t=>o.a.post("/goods.goods_supplier/edit",t),L=t=>o.a.post("/goods.goods_category/add",t),S=t=>o.a.get("/goods.goods_category/lists",{params:t}),$=t=>o.a.get("/goods.goods_category/commonLists",{params:t}),z=t=>o.a.post("/goods.goods_category/status",t),V=t=>o.a.post("goods.goods_category/del",{id:t}),G=t=>o.a.post("/goods.goods_category/edit",t),P=t=>o.a.get("/goods.goods_category/detail",{params:{id:t}}),E=t=>o.a.post("/goods.goods_unit/add",t),I=t=>o.a.get("/goods.goods_unit/lists",{params:t}),H=t=>o.a.post("goods.goods_unit/del",{id:t}),J=t=>o.a.post("/goods.goods_unit/edit",t),M=t=>o.a.get("goods.goods_comment/lists",{params:t}),R=t=>o.a.post("goods.goods_comment/del",t),A=t=>o.a.post("goods.goods_comment/reply",t),B=t=>o.a.post("/goods.goods_comment/status",t),N=t=>o.a.get("goods.goods_comment_assistant/lists",{params:t}),F=t=>o.a.post("goods.goods_comment_assistant/add",t),K=t=>o.a.get("goods.goodsServiceGuarantee/lists",t),Q=t=>o.a.post("goods.goodsServiceGuarantee/add",t),U=t=>o.a.post("goods.goodsServiceGuarantee/delete",t),W=t=>o.a.post("goods.goodsServiceGuarantee/edit",t),X=()=>o.a.get("goods.GoodsDeliveryTemplate/lists"),Y=t=>o.a.post("goods.GoodsDeliveryTemplate/add",t),Z=t=>o.a.post("goods.GoodsDeliveryTemplate/edit",t),tt=t=>o.a.post("goods.GoodsDeliveryTemplate/delete",t)},"19b6":function(t,e,a){"use strict";a("5478")},"4ae1":function(t,e,a){"use strict";var o=a("9ab4"),s=a("1b40"),r=a("0a6d");let i=class extends s.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(o.a)([Object(s.c)()],i.prototype,"method",void 0),Object(o.a)([Object(s.c)()],i.prototype,"param",void 0),Object(o.a)([Object(s.c)()],i.prototype,"status",void 0),Object(o.a)([Object(s.c)()],i.prototype,"userId",void 0),Object(o.a)([Object(s.c)()],i.prototype,"type",void 0),Object(o.a)([Object(s.c)()],i.prototype,"pageSize",void 0),i=Object(o.a)([Object(s.a)({components:{LsDialog:r.a}})],i);var n=i,l=a("2877"),d=Object(l.a)(n,(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},5478:function(t,e,a){},"5f8a":function(t,e,a){"use strict";var o=a("9ab4"),s=a("1b40");let r=class extends s.e{constructor(){super(...arguments),this.pickerValue=[],this.pickerOptions={shortcuts:[{text:"最近一周",onClick(t){const e=new Date,a=new Date;a.setTime(a.getTime()-6048e5),t.$emit("pick",[a,e])}},{text:"最近一个月",onClick(t){const e=new Date,a=new Date;a.setTime(a.getTime()-2592e6),t.$emit("pick",[a,e])}},{text:"最近三个月",onClick(t){const e=new Date,a=new Date;a.setTime(a.getTime()-7776e6),t.$emit("pick",[a,e])}}]}}changeDate(){const t=this.pickerValue?this.pickerValue:this.pickerValue=["",""];this.$emit("update:start-time",t[0]),this.$emit("update:end-time",t[1])}handleStartTime(t){!this.pickerValue&&(this.pickerValue=[]),this.$set(this.pickerValue,0,t)}handleEndTime(t){!this.pickerValue&&(this.pickerValue=[]),this.$set(this.pickerValue,1,t)}};Object(o.a)([Object(s.c)()],r.prototype,"startTime",void 0),Object(o.a)([Object(s.c)()],r.prototype,"endTime",void 0),Object(o.a)([Object(s.c)({default:"datetimerange"})],r.prototype,"type",void 0),Object(o.a)([Object(s.c)({default:!1})],r.prototype,"disabled",void 0),Object(o.a)([Object(s.f)("startTime",{immediate:!0})],r.prototype,"handleStartTime",null),Object(o.a)([Object(s.f)("endTime",{immediate:!0})],r.prototype,"handleEndTime",null),r=Object(o.a)([s.a],r);var i=r,n=a("2877"),l=Object(n.a)(i,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("el-date-picker",{attrs:{type:t.type,"picker-options":t.pickerOptions,"range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",align:"right","value-format":"yyyy-MM-dd HH:mm:ss",disabled:t.disabled},on:{change:t.changeDate},model:{value:t.pickerValue,callback:function(e){t.pickerValue=e},expression:"pickerValue"}})}),[],!1,null,null,null);e.a=l.exports},8781:function(t,e,a){"use strict";a.r(e);a("14d9");var o=a("9ab4"),s=a("1b40"),r=a("14c6"),i=a("6ddb"),n=a("3c50"),l=a("0a6d"),d=a("5f8a"),c=a("4ae1");let u=class extends s.e{constructor(){super(...arguments),this.pager=new i.a,this.reply="",this.categoryList=[],this.queryObj={goods_name:"",status:"",category_id:""},this.apiGoodsCommentAssistantLists=r.r}getList(t){t&&(this.pager.page=t),this.pager.request({callback:r.r,params:{...this.queryObj}})}handleReset(){this.queryObj={goods_name:"",status:"",category_id:""},this.getList()}getGoodsOtherList(){Object(r.B)({type:"list"}).then(t=>{this.categoryList=null==t?void 0:t.category_list})}created(){this.getGoodsOtherList(),this.getList()}};u=Object(o.a)([Object(s.a)({components:{LsDialog:l.a,LsPagination:n.a,DatePicker:d.a,ExportData:c.a}})],u);var p=u,g=(a("19b6"),a("2877")),m=Object(g.a)(p,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"ls-evaluation"},[e("div",{staticClass:"ls-evaluation__top ls-card"},[e("div",{staticClass:"ls-top__search m-t-16"},[e("el-form",{ref:"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.goods_name,callback:function(e){t.$set(t.queryObj,"goods_name",e)},expression:"queryObj.goods_name"}})],1),e("el-form-item",{attrs:{label:"商品状态"}},[e("el-select",{attrs:{placeholder:"请选择商品状态"},model:{value:t.queryObj.status,callback:function(e){t.$set(t.queryObj,"status",e)},expression:"queryObj.status"}},[e("el-option",{attrs:{label:"全部",value:""}}),e("el-option",{attrs:{label:"仓库中",value:0}}),e("el-option",{attrs:{label:"销售中",value:1}})],1)],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",{staticClass:"m-l-20",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("重置")])],1)],1)],1)]),e("div",{staticClass:"ls-evaluation__content ls-card m-t-16"},[e("div",{staticClass:"ls-content__table m-t-16"},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.pager.loading,expression:"pager.loading"}],ref:"table",staticStyle:{width:"100%"},attrs:{data:t.pager.lists,size:"mini"}},[e("el-table-column",{attrs:{label:"商品信息","min-width":"240"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("div",{staticClass:"flex"},[e("el-image",{staticClass:"flex-none",staticStyle:{width:"58px",height:"58px"},attrs:{src:a.row.image}}),e("div",{staticClass:"goods-info m-l-8"},[e("div",{staticClass:"line-2"},[t._v(" "+t._s(a.row.name)+" ")])])],1)]}}])}),e("el-table-column",{attrs:{label:"商品分类",prop:"category_text","min-width":"140"}}),e("el-table-column",{attrs:{label:"价格",prop:"price_text","min-width":"120"}}),e("el-table-column",{attrs:{label:"总库存",prop:"total_stock","min-width":"80"}}),e("el-table-column",{attrs:{label:"总销量",prop:"sales_num","min-width":"80"}}),e("el-table-column",{attrs:{label:"状态",prop:"status_text","min-width":"80"}}),e("el-table-column",{attrs:{label:"评价数",prop:"comment_text","min-width":"80"}}),e("el-table-column",{attrs:{label:"发布时间",prop:"create_time","min-width":"150"}}),e("el-table-column",{attrs:{fixed:"right",label:"操作",width:"100"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return t.$router.push({path:"/evaluation/add",query:{goods_id:a.row.id}})}}},[t._v("添加评价")])]}}])})],1)],1),e("div",{staticClass:"ls-content__footer m-t-16 flex row-right"},[e("div",{staticClass:"pagination"},[e("ls-pagination",{on:{change:function(e){return t.getList()}},model:{value:t.pager,callback:function(e){t.pager=e},expression:"pager"}})],1)])])])}),[],!1,null,"5bcd912c",null);e.default=m.exports}}]);
|