zx/public/mer/js/chunk-04ad5ff1.a37f228f.js

1 line
37 KiB
JavaScript
Raw Normal View History

2024-07-02 15:32:59 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-04ad5ff1"],{3810:function(e,t,a){"use strict";a("dc36")},"47de":function(e,t,a){"use strict";a("fdbc")},"504c":function(e,t,a){var i=a("9e1e"),r=a("0d58"),s=a("6821"),l=a("52a7").f;e.exports=function(e){return function(t){var a,n=s(t),o=r(n),c=o.length,u=0,d=[];while(c>u)a=o[u++],i&&!l.call(n,a)||d.push(e?[a,n[a]]:n[a]);return d}}},7719:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.dialogVisible?a("el-dialog",{attrs:{title:"商品信息",visible:e.dialogVisible,width:"900px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"divBox"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{size:"small",inline:"","label-width":"85px"}},[a("el-form-item",{attrs:{label:"商品分类:"}},[a("el-select",{staticClass:"dialogWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(t){return e.getList()}},model:{value:e.tableFrom.mer_cate_id,callback:function(t){e.$set(e.tableFrom,"mer_cate_id",t)},expression:"tableFrom.mer_cate_id"}},e._l(e.merCateList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"商品搜索:"}},[a("el-input",{staticClass:"dialogWidth",attrs:{placeholder:"请输入商品名称,关键字,产品编号",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getList(t)}},model:{value:e.tableFrom.keyword,callback:function(t){e.$set(e.tableFrom,"keyword",t)},expression:"tableFrom.keyword"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.getList}},[e._v("查询")])],1)],1)],1),e._v(" "),e.resellShow?a("div",{staticClass:"mb10"},[e.resellShow?a("el-alert",{attrs:{title:"注:添加为预售商品后,原普通商品会下架;如该商品已开启其它营销活动,请勿选择!",type:"warning","show-icon":""}}):e._e()],1):e._e(),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.tableData.data,size:"small"}},[a("el-table-column",{attrs:{width:"55"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-radio",{attrs:{label:t.row.product_id},nativeOn:{change:function(a){return e.getTemplateRow(t.row)}},model:{value:e.templateRadio,callback:function(t){e.templateRadio=t},expression:"templateRadio"}},[e._v(" ")])]}}],null,!1,3465899556)}),e._v(" "),a("el-table-column",{attrs:{prop:"product_id",label:"ID","min-width":"50"}}),e._v(" "),a("el-table-column",{attrs:{label:"商品图","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("div",{staticClass:"demo-image__preview"},[a("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:e.row.image,"preview-src-list":[e.row.image]}})],1)]}}],null,!1,2331550732)}),e._v(" "),a("el-table-column",{attrs:{prop:"store_name",label:"商品名称","min-width":"230"}}),e._v(" "),a("el-table-column",{attrs:{prop:"stock",label:"库存","min-width":"70"}})],1),e._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-size":e.tableFrom.limit,"current-page":e.tableFrom.page,layout:"prev, pager, next, jumper",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1)],1)]):e._e()},r=[],s=a("c4c8"),l=a("83d6"),n={name:"GoodsList",props:{resellShow:{type:Boolean,default:!1},isSeckill:{type:Boolean,default:!1}},data:function(){return{dialogVisible:!1,templateRadio:0,merCateList:[],roterPre:l["roterPre"],listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:6,cate_id:"",store_name:"",keyword:"",is_gift_bag:0,status:1,is_ficti:this.isSeckill?"":0,is_action:this.isSeckill?"":1},multipleSelection:{},checked:[]}},mounted:function(){var e=this;this.getList(),this.getCategorySelect(),window.addEventListener("unload",(function(t){return e.unloadHandler(t)}))},methods:{getTemplateRow:function(e){this.multipleSelection={src:e.image,id:e.product_