|
|
|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-738c6ac1"],{"5f72":function(e,t,i){"use strict";i("d7a0")},cb21:function(e,t,i){"use strict";i.r(t);var l=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"divBox"},[i("div",{staticClass:"header clearfix"},[i("div",{staticClass:"filter-container"},[i("div",{staticClass:"container"},[i("el-form",{attrs:{size:"small",inline:"","label-width":"100px"}},[i("el-form-item",{staticClass:"width100",attrs:{label:"商品分类:"}},[i("el-select",{staticClass:"filter-item selWidth mr20",attrs:{placeholder:"请选择",clearable:""},on:{change: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 i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{staticClass:"width100",attrs:{label:"商品搜索:"}},[i("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品名称,关键字,产品编号",clearable:"",size:"small"},on:{change:e.getList},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getList(1)}},model:{value:e.tableFrom.keyword,callback:function(t){e.$set(e.tableFrom,"keyword",t)},expression:"tableFrom.keyword"}},[i("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(t){return e.getList(1)}},slot:"append"})],1)],1)],1)],1)])]),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"table",staticStyle:{width:"100%"},attrs:{data:e.tableData.data,size:"samll","highlight-current-row":""},on:{"selection-change":e.handleSelectionChange}},["1"==e.singleChoice?i("el-table-column",{attrs:{width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-radio",{attrs:{label:t.row.product_id},nativeOn:{change:function(i){return e.getTemplateRow(t.row)}},model:{value:e.templateRadio,callback:function(t){e.templateRadio=t},expression:"templateRadio"}},[e._v(" ")])]}}],null,!1,3465899556)}):i("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),i("el-table-column",{attrs:{prop:"product_id",label:"ID","min-width":"50"}}),e._v(" "),i("el-table-column",{attrs:{label:"商品图","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(e){return[i("div",{staticClass:"demo-image__preview"},[i("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:e.row.image,"preview-src-list":[e.row.image]}})],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"store_name",label:"商品名称","min-width":"200"}})],1),e._v(" "),i("div",{staticClass:"block mb20"},[i("el-pagination",{attrs:{"page-sizes":[5,10,20],"page-size":e.tableFrom.limit,"current-page":e.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1)],1)},a=[],n=(i("ac6a"),i("c4c8")),o=i("83d6"),s={name:"GoodList",data:function(){return{templateRadio:0,idKey:"product_id",merCateList:[],roterPre:o["roterPre"],listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:5,mer_cate_id:"",type:"1",is_gift_bag:"",cate_id:"",store_name:"",keyword:""},checked:[],multipleSelection:[],multipleSelectionAll:window.form_create_helper.get(this.$route.query.field)||[],nextPageFlag:!1,singleChoice:0,singleSelection:{}}},mounted:function(){var e=this;if(this.singleChoice=sessionStorage.getItem("singleChoice"),console.log(this.singleChoice),this.getList(""),this.getCategorySelect(),1!=this.singleChoice){var t=window.form_create_helper.get(this.$route.query.field).map((function(e){return{product_id:e.id,image:e.src}}))||[];this.multipleSelectionAll=t}form_create_helper.onOk((function(){e.unloadHandler()}))},destroyed:function(){sessionStorage.setItem("singleChoice",0)},methods:{getTemplateRow:function(e){this.singleSelection={src:e.image,id:e.product_id}},unloadHandler:function(){1!=this.singleChoice?
|