canyin-project/ybcy/views/channel/index/static/js/chunk-dc340b6c.1e623ead.js

1 line
16 KiB
JavaScript
Raw Permalink Normal View History

2024-11-01 16:07:54 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-dc340b6c"],{"16c2":function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{},[a("el-dialog",{attrs:{title:t.title,visible:t.dialogFormVisible,width:"900px","close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogFormVisible=e},close:t.close}},[a("div",[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list,stripe:""}},[a("el-table-column",{attrs:{prop:"id",label:"排名"}}),t._v(" > "),a("el-table-column",{attrs:{prop:"name",label:"商品名称"}}),a("el-table-column",{attrs:{prop:"count",label:"销量"}}),t._v(" > "),a("el-table-column",{attrs:{prop:"money",label:"销售额(元)"}})],1),a("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),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"medium"},on:{click:t.close}},[t._v("取 消")]),a("el-button",{attrs:{size:"medium",type:"primary"},on:{click:t.save}},[t._v("确 定")])],1)])],1)},s=[],i=(a("96cf"),a("1da1")),l=a("48fb"),n=a("ed08"),r={name:"labelSave",created:function(){},data:function(){return{title:"",dialogFormVisible:!1,list:[],listLoading:!0,selectRows:"",elementLoadingText:"正在加载...",page:{total:0,size:10,currentPage:1},time:[],storeId:""}},components:{},methods:{showEdit:function(t){t?(this.title="更多商品",this.time=t,this.init()):(this.title="更多商品",this.init()),this.dialogFormVisible=!0},setStoreId:function(t){this.storeId=t},init:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var a,o,s,i,r,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a="",o="",t.time&&(a=Object(n["a"])(t.time[0]),o=Object(n["a"])(t.time[1])),s={page:t.page.currentPage,startTime:a,endTime:o,storeId:t.storeId},e.next=6,Object(l["s"])(s);case 6:i=e.sent,r=i.data,c=i.count,t.list=r,t.page.total=c;case 11:case"end":return e.stop()}}),e)})))()},handleCurrentChange:function(t){this.page.currentPage=t,this.init()},close:function(){this.dialogFormVisible=!1},save:function(){this.close()}}},c=r,u=a("2877"),p=Object(u["a"])(c,o,s,!1,null,null,null);e["a"]=p.exports},"34e5":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{},[a("div",{staticClass:"pad_20 flex ba_f"},[a("div",{staticClass:"fon_12 mar_r10 color_9"},[a("span",{staticClass:"fon_14 color_3"},[t._v("选择门店:")]),a("el-select",{attrs:{placeholder:"请选择"},on:{change:t.changeStore},model:{value:t.form.shopValue,callback:function(e){t.$set(t.form,"shopValue",e)},expression:"form.shopValue"}},t._l(t.options,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name+"(ID:"+t.id+")",value:t.id}})})),1)],1)]),a("div",{staticClass:"mar_t20 pad_20 ba_f"},[t._m(0),a("div",{staticClass:"main-icon flex t_l mar_t20"},[a("div",{staticClass:"flex-1 t_l pad_20 bortColor"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"title6 fon_14"},[t._v("已上架")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20"},[t._v(t._s(t.zhData.upTotal))])]),a("div",{staticClass:"toolTip"},[a("el-tooltip",{attrs:{effect:"dark",placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("已上架")]),a("button",{staticClass:"el-button question-button-tooltip el-tooltip el-button--text fon_12",attrs:{type:"button"}},[a("span",[a("i",{staticClass:"el-icon-question"})])])])],1)])]),a("div",{staticClass:"flex-1 t_l pad_20 bortColor"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"title6 fon_14"},[t._v("库存不足")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20"},[t._v(t._s(t.zhData.noTotal))])]),a("div",{staticClass:"toolTip"},[a("el-tooltip",{attrs:{effect