Commit 365feddb by 杨北旺

完成UI样式

1 parent bb4a639c
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<div class="line"></div> <div class="line"></div>
<div class="wrapper"> <div class="wrapper">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="batchPopupListSearch" :formData="diasearchFormData" @handleOk="batchdetailSelect('select')" @handleRest="batchdetailSelect('reset')"></GLCombiForm> <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="batchPopupListSearch" :formData="diasearchFormData" @handleOk="batchdetailSelect('select')" @handleRest="batchdetailSelect('reset')"></GLCombiForm>
<div class="flex_scb"> <div class="flex_scb" style="margin-bottom: 10px;">
<span>权益明细</span> <span>权益明细</span>
<el-button plain size="small" @click="exportbatchdetail" class="selectBtn">导出</el-button> <el-button plain size="small" @click="exportbatchdetail" class="selectBtn">导出</el-button>
</div> </div>
...@@ -249,7 +249,9 @@ export default { ...@@ -249,7 +249,9 @@ export default {
}, },
{ {
label: '备注', label: '备注',
prop: 'remarks' prop: 'remarks',
width:250,
line:1
}, },
{ {
label: '操作', label: '操作',
...@@ -353,7 +355,8 @@ export default { ...@@ -353,7 +355,8 @@ export default {
}, },
{ {
label: '设备SN', label: '设备SN',
prop: 'sn' prop: 'sn',
width: '160'
}, },
{ {
label: '账号', label: '账号',
...@@ -996,7 +999,6 @@ flex-wrap: nowrap; ...@@ -996,7 +999,6 @@ flex-wrap: nowrap;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
box-sizing: border-box; box-sizing: border-box;
margin-bottom: 10px;
} }
.detailFont { .detailFont {
font-size: 14px; font-size: 14px;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="equity-wrap"> <div class="equity-wrap">
<div class="find_wrap"> <div class="find_wrap">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<GLTable ref="table" :noDataImg="url" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="tableParams.getListApi" :hasNum="false" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"> <GLTable ref="table" :noDataImg="url" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="tableParams.getListApi" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div class="flex_sc" slot="colorStatus" slot-scope="scope"> <div class="flex_sc" slot="colorStatus" slot-scope="scope">
<div class="table_point" :style="{'background':colors[scope.scope.orderStatus]}"></div> <div class="table_point" :style="{'background':colors[scope.scope.orderStatus]}"></div>
<span>{{['已结算', '待结算', '已失效'][scope.scope.orderStatus]}}</span> <span>{{['已结算', '待结算', '已失效'][scope.scope.orderStatus]}}</span>
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<GLCombiForm ref="showSearch" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm ref="showSearch" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<GLTable v-if="flag" ref="table" :noDataImg="url" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="tableParams.getListApi" :hasNum="false" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"> <GLTable v-if="flag" ref="table" :noDataImg="url" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="tableParams.getListApi" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<template slot="custom"> <template slot="custom">
<div class="table-custom exportBtn"></div> <div class="table-custom exportBtn"></div>
</template> </template>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="equity-wrap"> <div class="equity-wrap">
<div class="equity-wrap contain"> <div class="equity-wrap contain">
<GLCombiForm ref="showSearch" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm ref="showSearch" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<GLTable v-if="flag" ref="table" :noDataImg="url" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="tableParams.getListApi" :hasNum="false" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"> <GLTable v-if="flag" ref="table" :noDataImg="url" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="tableParams.getListApi" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div class="flex_sc" slot="colorStatus" slot-scope="scope"> <div class="flex_sc" slot="colorStatus" slot-scope="scope">
<div class="table_point" :style="{ background: colors[scope.scope.orderStatusName]}"></div> <div class="table_point" :style="{ background: colors[scope.scope.orderStatusName]}"></div>
<span>{{scope.scope.orderStatusName}}</span> <span>{{scope.scope.orderStatusName}}</span>
......
...@@ -237,6 +237,8 @@ export default { ...@@ -237,6 +237,8 @@ export default {
}, },
{ {
label: '商品SKU', label: '商品SKU',
width:250,
line:1,
formatter: cell => { formatter: cell => {
return cell.appearance == 1 ? `${cell.brandName || ''}${cell.productName || ''}` : `${cell.brandName || ''}${cell.productName || ''}${cell.denomination || ''}` return cell.appearance == 1 ? `${cell.brandName || ''}${cell.productName || ''}` : `${cell.brandName || ''}${cell.productName || ''}${cell.denomination || ''}`
} }
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</div> </div>
</div> </div>
<div class="table_box"> <div class="table_box">
<GLTable v-if="flag" :noDataImg="url" ref="table" @setTableFinishFun="setTableFinishFun" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="tableParams.getListApi" :hasNum="false" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"> <GLTable v-if="flag" :noDataImg="url" ref="table" @setTableFinishFun="setTableFinishFun" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="tableParams.getListApi" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<span slot="goodsMsg" slot-scope="scope"> <span slot="goodsMsg" slot-scope="scope">
<div class="mb4">{{ scope.scope.brandName }}</div> <div class="mb4">{{ scope.scope.brandName }}</div>
<div class="min-text">{{ scope.scope.appearance == 2 ? scope.scope.productName + scope.scope.denomination : scope.scope.productName }}</div> <div class="min-text">{{ scope.scope.appearance == 2 ? scope.scope.productName + scope.scope.denomination : scope.scope.productName }}</div>
......
...@@ -56,11 +56,9 @@ ...@@ -56,11 +56,9 @@
</div> </div>
</GLDialog> </GLDialog>
<!-- 新建权益卡弹窗 --> <!-- 新建权益卡弹窗 -->
<GLDialog mode="big" bigTitle="基本信息" v-if="dialogVisible" :visible.sync="dialogVisible" :before-close="closeDialog"> <!-- <GLDialog mode="big" bigTitle="基本信息" v-if="dialogVisible" :visible.sync="dialogVisible" :before-close="closeDialog">
<div class="gl-form-page"> <div class="gl-form-page">
<el-form class="dialogForm" :model="ruleForm" :rules="rules" ref="ruleForm" label-width="154px"> <el-form class="dialogForm" :model="ruleForm" :rules="rules" ref="ruleForm" label-width="154px">
<!-- 基础表单 -->
<!-- <div class="form"> -->
<el-form-item label="名称:" prop="cardClassName" id="name"> <el-form-item label="名称:" prop="cardClassName" id="name">
<el-input v-model="ruleForm.cardClassName" maxlength="15" type="text" size="small" placeholder="请输入"></el-input> <el-input v-model="ruleForm.cardClassName" maxlength="15" type="text" size="small" placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
...@@ -96,9 +94,7 @@ ...@@ -96,9 +94,7 @@
<el-form-item label="售价/元:" prop="price"> <el-form-item label="售价/元:" prop="price">
<el-input-number v-model="ruleForm.price" controls-position="right" size="mini" :min="1" :max="9999.99"></el-input-number> <el-input-number v-model="ruleForm.price" controls-position="right" size="mini" :min="1" :max="9999.99"></el-input-number>
</el-form-item> </el-form-item>
<!-- </div> -->
<div class="baseinformation2"><span class="titleText">其他信息</span></div> <div class="baseinformation2"><span class="titleText">其他信息</span></div>
<!-- <div class="form"> -->
<el-form-item label="试用设置:" prop=""> <el-form-item label="试用设置:" prop="">
<el-switch v-model="value" active-color="" inactive-color="#d3d3d3"></el-switch> <el-switch v-model="value" active-color="" inactive-color="#d3d3d3"></el-switch>
</el-form-item> </el-form-item>
...@@ -107,15 +103,104 @@ ...@@ -107,15 +103,104 @@
天试用 天试用
<span class="codeTxt2">设置后将生成试用链接和二维码可用于推广</span> <span class="codeTxt2">设置后将生成试用链接和二维码可用于推广</span>
</el-form-item> </el-form-item>
<!-- </div> -->
</el-form> </el-form>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button size="small" @click="resetForm('ruleForm')">取消</el-button> <el-button size="small" @click="resetForm('ruleForm')">取消</el-button>
<el-button size="small" :disabled="submitBtn" type="primary" @click="submitForm('ruleForm')">提交</el-button> <el-button size="small" :disabled="submitBtn" type="primary" @click="submitForm('ruleForm')">提交</el-button>
</span> </span>
</GLDialog> </GLDialog> -->
<detail-dialog ref="detailDetailRef"></detail-dialog> <detail-dialog ref="detailDetailRef"></detail-dialog>
<el-drawer v-if="dialogVisible" :with-header="false" class="drawer-panel" size="45%" title="新建权益卡" :visible.sync="dialogVisible" :before-close="closeDialog">
<div class="drawer-header flex_scb">
<span class="title">新建权益卡</span>
<i class="el-icon-close"></i>
</div>
<div class="drawer-wrapper gl-form-page gl-form-min">
<el-form class="form" :model="ruleForm" :rules="rules" ref="ruleForm" label-width="154px">
<el-form-item label="名称:" prop="cardClassName" id="name">
<el-input clearable v-model="ruleForm.cardClassName" maxlength="15" type="text" size="small" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item label="卡片样式:" prop="backgroundImage">
<div class="imageList">
<div v-for="(item, index) in product" :key="index" :id="item.id" @click="changeStyle(item.id, item.src)" :class="{ imgCtn: true, imgBg: item.src === ruleForm.backgroundImage }">
<img :src="item.imgSrc" alt="" class="imageItem" />
<i v-if="item.src === ruleForm.backgroundImage" class="imgicon el-icon-success"></i>
</div>
</div>
</el-form-item>
<el-form-item label="渠道门店:" prop="merchantName">
<el-select size="small" clearable v-model="ruleForm.merchantName" filterable remote reserve-keyword placeholder="请输入门店名称" :remote-method="generateRemoteMethod" :loading="loading" :disabled="disableSelect">
<el-option v-for="(item, index) in generateOptions" :key="index" :label="item.merchantName" :value="item.merchantName"></el-option>
</el-select>
</el-form-item>
<el-form-item label="有效期:" prop="effectiveType">
<el-radio-group v-model="ruleForm.effectiveType">
<el-radio label="1" @change="e => controlSwitch(e, 'disable')">永久有效</el-radio>
<el-radio label="2" @change="e => controlSwitch(e, 'input')">
<span style="margin-right: 10px">领取时起</span>
<el-input-number v-model="effectiveNum" :min="1" :max="999" id="month" :disabled="ruleForm.effectiveType !== '2'" size="mini" change=""></el-input-number>
<span style="margin-left: 10px">天内有效</span>
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item prop="">
<div slot="label">
<div class="custome_label">
<span>权益商品编码</span>
<el-popover
placement="top-start"
trigger="hover"
content="用于关联流量卡服务测的商品">
<i slot="reference" class="gl-icon-circle-question">:</i>
</el-popover>
</div>
</div>
<!-- <el-input-number v-model="ruleForm.platformGoodsId" size="small" :controls="disableInputNumber"></el-input-number> -->
<el-input clearable v-model="ruleForm.platformGoodsId" type="text" size="small" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item label="使用说明:" prop="usageNotes">
<el-input type="textarea" clearable show-word-limit :rows="3" v-model="ruleForm.usageNotes" maxlength="500" size="small"></el-input>
</el-form-item>
<el-form-item label="售价/元:" prop="price">
<!-- <el-input-number v-model="ruleForm.price" controls-position="right" size="mini" :min="1" :max="9999.99"></el-input-number> -->
<el-input clearable v-model="ruleForm.price" maxlength="7" type="text" size="small" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item style="margin-bottom:0" label="试用设置:" prop="">
<el-switch v-model="value" active-color="" inactive-color="#d3d3d3"></el-switch>
</el-form-item>
<el-form-item v-show="value" :prop="value == false ? '' : 'tryNum'" >
<div class="custom_wrap flex_cc">
<div class="line flex_sc">
<div class="custome_label">
<span style="color:red">*</span>
<span>试用时长</span>
<el-popover
placement="top-start"
trigger="hover"
content="设置后将生成试用链接和二维码可用于推广">
<i slot="reference" class="gl-icon-circle-question">:</i>
</el-popover>
</div>
<div class="custome_value flex_sc">
<el-input-number v-model="tryNum" size="mini" :disabled="!hasTryNum" :min="1" :max="365"></el-input-number>
<span style="margin-left:8px">天试用</span>
</div>
</div>
</div>
</el-form-item>
<!-- <el-form-item label="试用时长:" :prop="value == false ? '' : 'tryNum'" v-show="value">
<el-input-number v-model="tryNum" controls-position="right" size="mini" :disabled="!hasTryNum" :min="1" :max="365"></el-input-number>
天试用
<span class="codeTxt2">设置后将生成试用链接和二维码可用于推广</span>
</el-form-item> -->
</el-form>
</div>
<div class="drawer-footer">
<el-button @click="resetForm('ruleForm')" class="cancel-btn" size="small">取消</el-button>
<el-button @click="submitForm('ruleForm')" size="small" type="primary">确定</el-button>
</div>
</el-drawer>
</div> </div>
</template> </template>
<script> <script>
...@@ -284,7 +369,7 @@ export default { ...@@ -284,7 +369,7 @@ export default {
{ {
label: '门店名称', label: '门店名称',
prop: 'merchantName', prop: 'merchantName',
width: 200, width: 300,
line: 1 line: 1
}, },
{ {
...@@ -304,6 +389,7 @@ export default { ...@@ -304,6 +389,7 @@ export default {
label: '售价/元', label: '售价/元',
prop: 'price', prop: 'price',
align: 'right', align: 'right',
width:150,
formatter: cellValue => { formatter: cellValue => {
if (cellValue.price == null) { if (cellValue.price == null) {
return '39.9' return '39.9'
...@@ -315,7 +401,8 @@ export default { ...@@ -315,7 +401,8 @@ export default {
{ {
label: '领卡用户', label: '领卡用户',
prop: 'recipientCount', prop: 'recipientCount',
addHtml: 'recipientCount' addHtml: 'recipientCount',
width:150,
}, },
{ {
label: '状态', label: '状态',
...@@ -678,21 +765,26 @@ export default { ...@@ -678,21 +765,26 @@ export default {
} }
.imageList { .imageList {
display: flex; display: flex;
flex-direction: row;
} }
.imageItem { .imageItem {
width: 300px; width: 150px;
height: 100px; height: 50px;
} }
.imgCtn { .imgCtn {
width: 300px; width: 150px;
text-align: center;
padding: 1px; padding: 1px;
height: 100px; height: 50px;
margin-right: 20px; margin-right: 20px;
} }
.imgBg { .imgBg {
background: #5850ff; position: relative;
}
.imgicon{
position: absolute;
right: 4px;
top: 4px;
color: #5850ff;
font-size: 14px;
} }
.topline { .topline {
display: flex; display: flex;
...@@ -808,5 +900,66 @@ export default { ...@@ -808,5 +900,66 @@ export default {
font-weight: 500; font-weight: 500;
color: #333333; color: #333333;
margin-left: 4px; margin-left: 4px;
}
.drawer-panel {
/deep/ .el-drawer__body {
overflow-y: auto;
}
}
.drawer-header{
padding: 15px 25px 15px 20px;
border-bottom: 1px solid #e5e5e5;
.title{
font-size: 22px;
font-weight: 500;
color: #333333;
}
>i{
font-size: 21px;
cursor: pointer;
}
}
.drawer-wrapper{
border-top: 1px solid #e5e5e5;
padding: 20px;
height: calc(100% - 128px);
.custome_label{
display: flex;
align-items: center;
justify-content: flex-end;
}
.custom_wrap{
width: 370px;
height: 68px;
background: #F9F9F9;
}
.custom_wrap .custome_label >span{
font-size: 14px;
font-weight: 400;
color: #666666;
} }
}
.gl-form-page .form .el-input-number .el-input{
width: 100%;
}
.el-textarea .el-input__count{
right: -38px;
bottom: -12px;
}
.drawer-footer{
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 64px;
border-top: 1px solid #e5e5e5;
display: flex;
align-items: center;
justify-content: flex-end;
box-sizing: border-box;
padding-right: 20px;
.cancel-btn{
margin-right: 12px;
}
}
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
</div> </div>
</div> </div>
<div class="table_border"> <div class="table_border">
<GLTable v-if="flag" :noDataImg="url" ref="table" @setTableFinishFun="setTableFinishFun" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="tableParams.getListApi" :hasNum="false" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"> <GLTable v-if="flag" :noDataImg="url" ref="table" @setTableFinishFun="setTableFinishFun" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="tableParams.getListApi" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<span slot="desc" slot-scope="scope"> <span slot="desc" slot-scope="scope">
<el-popover placement="bottom" width="240" trigger="click"> <el-popover placement="bottom" width="240" trigger="click">
<img :src="scope.scope.img" style="width: 200px; height: 200px" /> <img :src="scope.scope.img" style="width: 200px; height: 200px" />
...@@ -169,11 +169,11 @@ export default { ...@@ -169,11 +169,11 @@ export default {
prop: 'merchantName' prop: 'merchantName'
}, },
{ {
label: '实收金额', label: '实收金额/元',
width: 120, width: 120,
align: 'right', align: 'right',
formatter: cell => { formatter: cell => {
return `${cell.orderPrices}元` return `${cell.orderPrices}`
} }
}, },
{ {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!