Commit a6535ae6 by zhangquan

ui修改

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