|
|
<template>
|
|
|
<com-pageheader :module-name="'店铺管理'" :page-name="'店铺销售类目管理'" :sub-page-name="'店铺销售类目管理详情'"></com-pageheader>
|
|
|
|
|
|
<div class="contentpanel">
|
|
|
<div class="panel">
|
|
|
<div class="chooseShop">
|
|
|
<div class="shopSelect">
|
|
|
<com-selection :disabled="true" :selected-data="currentShop"></com-selection>
|
|
|
</div>
|
|
|
<div class="shopInfo">
|
|
|
<span>店铺ID:<b>{{currentShop.id}}</b></span>
|
|
|
<span>店铺名称:<b>{{currentShop.text}}</b></span>
|
|
|
</div>
|
|
|
<div class="clearfix"></div>
|
|
|
</div>
|
|
|
|
|
|
<div class="panel-body">
|
|
|
<div class="setCategoryName form-inline">
|
|
|
<div class="form-group">
|
|
|
<label>销售类目名称:</label>
|
|
|
<input type="text" class="form-control" v-model="categoryName" />
|
|
|
</div>
|
|
|
<div class="submit form-group">
|
|
|
<a href="javascript:" class="btn btn-success btn-save" @click="">保存</a>
|
|
|
<a href="javascript:" class="btn btn-default">返回</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<com-tab :rows="tab.rows" :active.sync="tab.active"></com-tab>
|
|
|
|
|
|
<div class="productList">
|
|
|
<div class="listFilter form-inline">
|
|
|
<input type="text" class="form-control" placeholder="SKN" v-model="params.produckSkn" />
|
|
|
<input type="text" class="form-control" placeholder="商家编码" v-model="params.factoryId" />
|
|
|
<a href="javascript:" class="btn btn-info" @click="open()">查询</a>
|
|
|
<a v-show="tab.active==1" href="javascript:" class="btn btn-warning" @click="" style="float: right">全部取消</a>
|
|
|
</div>
|
|
|
<div v-show="tab.active==0">
|
|
|
<com-grid :columns="allGrid.columns" :url="allGrid.url"></com-grid>
|
|
|
</div>
|
|
|
<div v-show="tab.active==1">
|
|
|
<com-grid :columns="selectedGrid.columns" :url="selectedGrid.url"></com-grid>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import pageheader from '../../../../components/pageheader/index';
|
|
|
import selection from '../../../../components/selection/index';
|
|
|
import tab from '../../../../components/tab/index';
|
|
|
import grid from '../../../../components/grid/index';
|
|
|
import common from '../../../../static/js.jquery/common/common';
|
|
|
|
|
|
export default{
|
|
|
components: {
|
|
|
comPageheader: pageheader,
|
|
|
comSelection: selection,
|
|
|
comTab: tab,
|
|
|
comGrid: grid
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
currentShop:{id:10,text:"淋淋店"},
|
|
|
categoryName:'123',
|
|
|
tab:{
|
|
|
rows:[{name:"全部"}, {name:"已选"}],
|
|
|
active:0
|
|
|
},
|
|
|
params:{
|
|
|
produckSkn:'',
|
|
|
factoryId:''
|
|
|
},
|
|
|
allGrid:{
|
|
|
url: '',
|
|
|
columns: [
|
|
|
{display: '商品图片', name: 'id'},
|
|
|
{display: 'SKN', name: 'name'},
|
|
|
{display: '商品名称', name: 'time'},
|
|
|
{display: '销售价(元)', name: 'num'},
|
|
|
{display: '分类', name: 'num'},
|
|
|
{display: '操作', render: function (item) {
|
|
|
return "<a href='javascript:' class='btn btn-xs btn-primary'>选择</a>";
|
|
|
}}
|
|
|
]
|
|
|
},
|
|
|
selectedGrid:{
|
|
|
url: '',
|
|
|
columns: [
|
|
|
{display: '商品图片', name: 'id'},
|
|
|
{display: 'SKN', name: 'name'},
|
|
|
{display: '商品名称', name: 'time'},
|
|
|
{display: '销售价(元)', name: 'num'},
|
|
|
{display: '分类', name: 'num'},
|
|
|
{display: '操作', render: function (item) {
|
|
|
return "<a href='javascript:' class='btn btn-xs btn-danger'>取消选择</a>";
|
|
|
}}
|
|
|
]
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
ready(){
|
|
|
this.eventBlind();
|
|
|
},
|
|
|
methods: {
|
|
|
open(){
|
|
|
common.dialog.confirm(this.currentShop.text,"2",function () {},function(){})
|
|
|
},
|
|
|
eventBlind(){
|
|
|
$(document).on('click','.btn-save', function () {
|
|
|
alert(1);
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
<style>
|
|
|
.shopSelect, .shopInfo {
|
|
|
float: left
|
|
|
}
|
|
|
|
|
|
.shopInfo {
|
|
|
font-family: 'microsoft yahei';
|
|
|
font-size: 18px;
|
|
|
line-height: 40px;
|
|
|
float: left;
|
|
|
margin-left: 40px;
|
|
|
}
|
|
|
|
|
|
.shopInfo span {
|
|
|
color: #999;
|
|
|
margin-right: 20px
|
|
|
}
|
|
|
|
|
|
.shopInfo b {
|
|
|
color: #585858
|
|
|
}
|
|
|
|
|
|
.panel-body {
|
|
|
background: #eeeeee;
|
|
|
margin-top: 20px
|
|
|
}
|
|
|
|
|
|
.setCategoryName{
|
|
|
margin-bottom: 20px;
|
|
|
}
|
|
|
|
|
|
.setCategoryName label{
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
|
|
|
.productList{
|
|
|
background: #FFFFFF;
|
|
|
padding: 20px;
|
|
|
}
|
|
|
|
|
|
.nav-tabs{
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.nav-tabs a{
|
|
|
border:0;
|
|
|
}
|
|
|
|
|
|
.listFilter{
|
|
|
margin-bottom: 20px;
|
|
|
}
|
|
|
|
|
|
.listFilter .form-control{
|
|
|
margin-right: 10px;
|
|
|
}
|
|
|
|
|
|
.submit{
|
|
|
float: right;
|
|
|
}
|
|
|
</style> |
...
|
...
|
|