Commit 4f3dd5db by zhouzy
2 parents ac45de0d b1176caa
.equity-wrap .contain { .equity-wrap .contain {
background: #FFFFFF; background: #FFFFFF;
margin: 20px 20px 20px 40px; margin: 0 20px 20px 40px;
padding: 20px; padding: 20px;
box-shadow: 0 1px 5px 0 rgba(38, 38, 38, 0.10); box-shadow: 0 1px 5px 0 rgba(38, 38, 38, 0.10);
} }
.fr-mr0 {
float: right;
margin-right: 0px!important;
}
// 单行省略 // 单行省略
.ellipsis-1 { .ellipsis-1 {
overflow: hidden; overflow: hidden;
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<el-option v-for="item in statusList" :key="item.value" :label="item.label" :value="item.value"></el-option> <el-option v-for="item in statusList" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item size="small" style="float: right"> <el-form-item size="small" class="fr-mr0">
<el-button :size="size" @click="handleReset">重置</el-button> <el-button :size="size" @click="handleReset">重置</el-button>
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button> <el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
</el-form-item> </el-form-item>
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<el-date-picker size="small" v-model="searchForm.daterange" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd" :picker-options="pickerOptions || {}"></el-date-picker> <el-date-picker size="small" v-model="searchForm.daterange" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd" :picker-options="pickerOptions || {}"></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item size="small" style="float: right"> <el-form-item size="small" class="fr-mr0">
<el-button :size="size" @click="handleReset">重置</el-button> <el-button :size="size" @click="handleReset">重置</el-button>
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button> <el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
<el-button :size="size" type="primary" @click="exportExcel">导出</el-button> <el-button :size="size" type="primary" @click="exportExcel">导出</el-button>
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
<el-option v-for="item in statusList" :key="item.id" :label="item.label" :value="item.value"></el-option> <el-option v-for="item in statusList" :key="item.id" :label="item.label" :value="item.value"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item size="small" style="float: right"> <el-form-item size="small" class="fr-mr0">
<el-button size="small" @click="handleReset">重置</el-button> <el-button size="small" @click="handleReset">重置</el-button>
<el-button size="small" type="primary" @click="handleSearch">查询</el-button> <el-button size="small" type="primary" @click="handleSearch">查询</el-button>
</el-form-item> </el-form-item>
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
</el-form> </el-form>
<GLTable v-if="flag" ref="table" :noDataImg="url" @setTableFinishFun="setTableFinishFun" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="tableParams.getListApi" :hasNum="false" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"></GLTable> <GLTable v-if="flag" ref="table" :noDataImg="url" @setTableFinishFun="setTableFinishFun" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="tableParams.getListApi" :hasNum="false" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"></GLTable>
</div> </div>
</div> </div>
</template> </template>
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<div class="equity-wrap"> <div class="equity-wrap">
<el-button class="addGood" type="primary" icon="el-icon-plus" @click="jump">新增商品</el-button> <el-button class="addGood" type="primary" icon="el-icon-plus" @click="jump">新增商品</el-button>
<div class="equity-wrap contain"> <div class="equity-wrap contain">
<el-form :inline="true" style="width: 100%" :model="searchForm" label-width="70px" label-position="right"> <el-form :inline="true" style="width: 100%" :model="searchForm" label-width="85px" label-position="right">
<el-row style="display: flex; align-items: center"> <el-row style="display: flex; align-items: center;margin-bottom:2px">
<el-form-item size="small" label="品牌名称"> <el-form-item size="small" label="品牌名称">
<el-select size="small" v-model="searchForm.brandName" filterable placeholder="请选择"> <el-select size="small" v-model="searchForm.brandName" filterable placeholder="请选择">
<el-option v-for="item in goodsBrandList" :key="item.id" :label="item.brandName" :value="item.brandName"></el-option> <el-option v-for="item in goodsBrandList" :key="item.id" :label="item.brandName" :value="item.brandName"></el-option>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<!-- <el-form-item label="门店名称"> <!-- <el-form-item label="门店名称">
<el-input v-model="searchForm.productName" placeholder="请输入" size="small" clearable></el-input> <el-input v-model="searchForm.productName" placeholder="请输入" size="small" clearable></el-input>
</el-form-item> --> </el-form-item> -->
<el-form-item size="small" label="提供方"> <el-form-item size="small" label="提供方" style="margin-left:-10px">
<el-select size="small" v-model="searchForm.supplier"> <el-select size="small" v-model="searchForm.supplier">
<el-option v-for="item in supplierList" :key="item.value" :label="item.label" :value="item.value"></el-option> <el-option v-for="item in supplierList" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select> </el-select>
...@@ -30,17 +30,17 @@ ...@@ -30,17 +30,17 @@
<el-option v-for="item in statusList" :key="item.value" :label="item.label" :value="item.value"></el-option> <el-option v-for="item in statusList" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item size="small" label="商品ID"> <el-form-item size="small" label="商品ID" style="margin-left:-10px">
<el-input v-model="searchForm.id" placeholder="请输入" size="small"></el-input> <el-input v-model="searchForm.id" placeholder="请输入" size="small"></el-input>
</el-form-item> </el-form-item>
<el-form-item size="small" style="float: right"> <el-form-item size="small" class="fr-mr0">
<el-button :size="size" @click="handleReset">重置</el-button> <el-button :size="size" @click="handleReset">重置</el-button>
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button> <el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
</el-form-item> </el-form-item>
</el-row> </el-row>
</el-form> </el-form>
<div class="row-btns"> <div class="row-btns">
<el-button size="small" type="primary" @click="toggleAll">全选</el-button> <el-button size="small" @click="toggleAll">全选</el-button>
<el-button size="small" type="primary" @click="batchOperation(1)">上架</el-button> <el-button size="small" type="primary" @click="batchOperation(1)">上架</el-button>
<el-button size="small" type="primary" @click="batchOperation(2)">下架</el-button> <el-button size="small" type="primary" @click="batchOperation(2)">下架</el-button>
<el-button size="small" type="primary" @click="batchOperation(-1)">删除</el-button> <el-button size="small" type="primary" @click="batchOperation(-1)">删除</el-button>
...@@ -167,7 +167,6 @@ export default { ...@@ -167,7 +167,6 @@ export default {
// if (window.$config.axios.environment) { // if (window.$config.axios.environment) {
// target = ['权益卡管理平台', '运营平台', 'SCRM权益平台', '商品管理', '*商品详情'] // target = ['权益卡管理平台', '运营平台', 'SCRM权益平台', '商品管理', '*商品详情']
// } // }
// console.log(target)
let query = {} let query = {}
if (id) query.id = id if (id) query.id = id
...@@ -283,7 +282,7 @@ export default { ...@@ -283,7 +282,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.addGood { .addGood {
margin-top: 20px; margin-bottom: 20px;
margin-left: 40px; margin-left: 40px;
padding: 8px 16px; padding: 8px 16px;
// margin-bottom: 20px; // margin-bottom: 20px;
...@@ -292,6 +291,7 @@ export default { ...@@ -292,6 +291,7 @@ export default {
width: 215px; width: 215px;
} }
.row-btns { .row-btns {
margin-top: 5px;
margin-bottom: 10px; margin-bottom: 10px;
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -131,7 +131,7 @@ export default { ...@@ -131,7 +131,7 @@ export default {
tableColumns: [ tableColumns: [
{ {
label: '商品信息', label: '商品信息',
minWidth: '300', // minWidth: '300',
formatter: cell => { formatter: cell => {
let str = cell.appearance == 2 ? `<div>${cell.productName}${cell.denomination}</div>` : `<div>${cell.productName}</div>` let str = cell.appearance == 2 ? `<div>${cell.productName}${cell.denomination}</div>` : `<div>${cell.productName}</div>`
return `<div class="goods"> return `<div class="goods">
...@@ -148,28 +148,28 @@ export default { ...@@ -148,28 +148,28 @@ export default {
{ {
label: '商品形态', label: '商品形态',
prop: 'appearanceDesc', prop: 'appearanceDesc',
minWidth: '200' // minWidth: '200'
}, },
{ {
label: '单价/元', label: '单价/元',
prop: 'orderPrices', prop: 'orderPrices',
minWidth: '200' // minWidth: '200'
}, },
{ {
label: '数量', label: '数量',
minWidth: '200', // minWidth: '200',
formatter: () => { formatter: () => {
return 1 return 1
} }
}, },
{ {
label: '小计/元', label: '小计/元',
prop: 'orderPrices', prop: 'orderPrices',
minWidth: '200' // minWidth: '200'
}, },
{ {
label: '订单状态', label: '订单状态',
minWidth: '200', // minWidth: '200',
formatter: cell => { formatter: cell => {
return cell.appearance == 1 ? this.statusEnum[cell.orderStatus] : this.qb_statusEnum[cell.orderStatus] return cell.appearance == 1 ? this.statusEnum[cell.orderStatus] : this.qb_statusEnum[cell.orderStatus]
} }
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<el-form-item size="small" label="下单时间"> <el-form-item size="small" label="下单时间">
<el-date-picker size="small" v-model="searchForm.daterange" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd" :picker-options="pickerOptions || {}"></el-date-picker> <el-date-picker size="small" v-model="searchForm.daterange" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd" :picker-options="pickerOptions || {}"></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item size="small" style="float: right"> <el-form-item size="small" class="fr-mr0">
<el-button size="small" @click="handleReset">重置</el-button> <el-button size="small" @click="handleReset">重置</el-button>
<el-button size="small" type="primary" @click="handleSearch">查询</el-button> <el-button size="small" type="primary" @click="handleSearch">查询</el-button>
</el-form-item> </el-form-item>
...@@ -36,7 +36,8 @@ ...@@ -36,7 +36,8 @@
{{ item }} {{ item }}
</div> </div>
</div> </div>
<GLTable v-if="flag" ref="table" :noDataImg="url" @setTableFinishFun="setTableFinishFun" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="tableParams.getListApi" :hasNum="false" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"> <!-- :noDataImg="url" -->
<GLTable v-if="flag" ref="table" @setTableFinishFun="setTableFinishFun" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="tableParams.getListApi" :hasNum="false" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<span slot="goodsMsg" slot-scope="scope"> <span slot="goodsMsg" slot-scope="scope">
<div>{{ scope.scope.brandName }}</div> <div>{{ scope.scope.brandName }}</div>
<div>{{ scope.scope.appearance == 2 ? scope.scope.productName + scope.scope.denomination : scope.scope.productName }}</div> <div>{{ scope.scope.appearance == 2 ? scope.scope.productName + scope.scope.denomination : scope.scope.productName }}</div>
......
<template> <template>
<div class="equity-wrap"> <div class="equity-wrap">
<div class="equity-wrap contain"> <div class="equity-wrap contain">
<el-form :inline="true" style="width: 100%" :model="searchForm" label-width="70px" label-position="right"> <el-form :inline="true" style="width: 100%" :model="searchForm" label-width="85px" label-position="right">
<el-row style="display: flex; align-items: center"> <el-row style="display: flex; align-items: center;margin-bottom:2px">
<el-form-item label="售后编号" size="small"> <el-form-item label="售后编号" size="small">
<el-input v-model="searchForm.refundCode" placeholder="请输入" size="small" clearable></el-input> <el-input v-model="searchForm.refundCode" placeholder="请输入" size="small" clearable></el-input>
</el-form-item> </el-form-item>
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<el-form-item size="small" label="售后日期"> <el-form-item size="small" label="售后日期">
<el-date-picker size="small" v-model="searchForm.daterange" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd" :picker-options="pickerOptions || {}"></el-date-picker> <el-date-picker size="small" v-model="searchForm.daterange" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd" :picker-options="pickerOptions || {}"></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item size="small" style="float: right"> <el-form-item size="small" class="fr-mr0">
<el-button size="small" @click="handleReset">重置</el-button> <el-button size="small" @click="handleReset">重置</el-button>
<el-button size="small" type="primary" @click="handleSearch">查询</el-button> <el-button size="small" type="primary" @click="handleSearch">查询</el-button>
</el-form-item> </el-form-item>
...@@ -34,7 +34,8 @@ ...@@ -34,7 +34,8 @@
{{ item }} {{ item }}
</div> </div>
</div> </div>
<GLTable v-if="flag" ref="table" :noDataImg="url" @setTableFinishFun="setTableFinishFun" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="tableParams.getListApi" :hasNum="false" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"> <!-- :noDataImg="url" -->
<GLTable v-if="flag" ref="table" @setTableFinishFun="setTableFinishFun" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="tableParams.getListApi" :hasNum="false" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<span slot="desc" slot-scope="scope"> <span slot="desc" slot-scope="scope">
<div class="refund-box"> <div class="refund-box">
<div class="refund-img-box"> <div class="refund-img-box">
...@@ -294,6 +295,7 @@ export default { ...@@ -294,6 +295,7 @@ export default {
.equity-wrap .contain { .equity-wrap .contain {
.choseRow { .choseRow {
display: flex; display: flex;
margin-top: 5px;
height: 34px; height: 34px;
.choseItem { .choseItem {
width: 120px; width: 120px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!