Commit a6535ae6 by zhangquan

ui修改

1 parent bf6123f8
......@@ -375,6 +375,10 @@
}
.operate-btn {
.el-button {
margin-left: 8px;
}
.export-btn {
margin-left: 8px;
}
......
<template>
<el-cascader :props="categoryProps" v-model="categoryCode[key]" :options="categoryList"></el-cascader>
<el-cascader placeholder="全部" clearable :props="categoryProps" v-model="categoryCode[key]" :options="categoryList"></el-cascader>
</template>
<script>
......@@ -19,6 +19,7 @@ export default {
return {
categoryProps: {
lazy: true,
checkStrictly: true,
label: 'categoryName',
value: 'categoryCode',
lazyLoad: this.getCategoryList
......
......@@ -133,7 +133,7 @@ export default {
},
{
label: '单价 (元)',
prop: 'sellPrice'
prop: 'salePrice'
},
{
label: '数量',
......@@ -142,7 +142,7 @@ export default {
{
label: '实收金额 (元)',
width: 130,
prop: 'orderAmount'
prop: 'payPrice'
},
{
label: '用户信息',
......
......@@ -358,7 +358,7 @@ export default {
background: #F4F6FC;
}
.value{
width: 328px;
width: 100%;
}
}
}
......
......@@ -9,11 +9,11 @@
<inputNumRange :formData="goodsFormObj" :keyObj="{from: 'startPrice', to:'endPrice'}"></inputNumRange>
</div>
<div slot="spreadPriceSlot">
<inputNumRange :formData="goodsFormObj" :keyObj="{from: 'startPrice', to:'endPrice'}"></inputNumRange>
<inputNumRange :formData="goodsFormObj" :keyObj="{from: 'startDiffPrice', to:'endDiffPrice'}"></inputNumRange>
</div>
</GLCombiForm>
<div class="operate-wrap">
<span class="table-title">销售中商品列表</span>
<span class="table-title">商品列表</span>
<div class="operate-btn">
<el-button :size="size" type="primary" plain @click="handleShelf({}, true)">批量下架</el-button>
<el-button :size="size" type="primary" plain @click="batchPriceChange">批量改价</el-button>
......@@ -130,19 +130,19 @@ export default {
}
},
{
label: '设置销售价',
width: 150,
label: '设置销售价(元)',
width: 180,
addHtml: 'setPriceSlot',
prop: 'salePrice',
sortable: 'custom',
},
{
label: '供货价(元)',
label: '供货价(元)',
prop: 'sellPrice',
width: 150
},
{
label: '市场价(元)',
label: '市场价(元)',
width: 150,
prop: 'marketPrice'
},
......
......@@ -53,7 +53,10 @@ export default {
}
.el-input-group__append{
box-sizing: border-box;
padding: 0 20px;
padding: 0 11px;
span{
margin: 0;
}
}
}
}
......
......@@ -92,7 +92,7 @@ export default {
label: '可上架'
},{
id: '1002',
label: '可下架'
label: '已下架'
}],
optionId: 'id',
optionLabel: 'label',
......@@ -130,15 +130,16 @@ export default {
}
},
{
label: '设置销售价',
label: '设置销售价(元)',
width: 150,
addHtml: 'setPriceSlot'
},
{
label: '供货价(元)',
label: '供货价(元)',
prop: 'sellPrice'
},
{
label: '市场价(元)',
label: '市场价(元)',
prop: 'marketPrice'
},
{
......@@ -149,10 +150,7 @@ export default {
{
label: '商品状态',
prop: 'shelvesStatus',
addHtml: 'shelvesStatusSlot',
formatter: cellValue => {
return cellValue.shelvesStatus== 1001 ? '可上架': '可下架'
}
addHtml: 'shelvesStatusSlot'
}
]
},
......
......@@ -16,8 +16,8 @@
</el-tooltip>
</div>
<div slot="userInfoSlot" class="userInfoSlot" slot-scope="scope">
<p class="name">{{ scope.scope.receiveName || '--' }}</p>
<p class="phone">{{ scope.scope.receiveMobile}}</p>
<p class="name">{{ scope.scope.accountName || '--' }}</p>
<p class="phone">{{ scope.scope.customerPhone}}</p>
</div>
<div slot="orderStatusSlot" slot-scope="scope">
<span class="circle" :style="{backgroundColor: scope.scope.refundStatus==1006 ? '#2CCA74': '#5850FF'}"></span>
......
......@@ -4,7 +4,8 @@
<div class="search-wrap">
<GLCombiForm ref="goodsRef" @handleOk="handleSearch" @handleRest="handleReset" :formObj="goodsFormObj" :formData="goodsFormData">
<div slot="categorySlot">
<el-cascader :props="categoryProps" v-model="goodsFormObj.categoryCode" :options="categoryList"></el-cascader>
<!-- <el-cascader :props="categoryProps" v-model="goodsFormObj.categoryCode" :options="categoryList"></el-cascader> -->
<categoryCascader :categoryCode.sync="goodsFormObj"></categoryCascader>
</div>
<div slot="supplyPriceSlot">
<inputNumRange :formData="goodsFormObj" :keyObj="{from: 'startSellPrice', to:'endSellPrice'}"></inputNumRange>
......@@ -68,6 +69,7 @@
</template>
<script>
import categoryCascader from '@/components/categoryCascader.vue'
import inputNumRange from '@/components/inputNumRange'
export default {
name: 'index',
......@@ -143,7 +145,8 @@ export default {
},
components: {
inputNumRange
inputNumRange,
categoryCascader
},
created(){
this.getGoodsList()
......@@ -298,6 +301,10 @@ export default {
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
&:hover{
background: #8A85FF;
border-color: #8A85FF;
}
}
}
.status-label{
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!