Commit abdf3765 by 李长胜
2 parents 948f5c29 1684e086
...@@ -8,7 +8,6 @@ import { http } from '@/main' ...@@ -8,7 +8,6 @@ import { http } from '@/main'
} }
/** 获取汽车权益列表*/ /** 获取汽车权益列表*/
const getCarList = (params = {}) => { const getCarList = (params = {}) => {
console.log(params)
params.method = 'scrm.api.equity.car.service.list' params.method = 'scrm.api.equity.car.service.list'
return http({ return http({
data: params, data: params,
......
...@@ -240,8 +240,6 @@ img { ...@@ -240,8 +240,6 @@ img {
vertical-align: baseline; vertical-align: baseline;
background: transparent; background: transparent;
background: #fff; background: #fff;
-webkit-box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
} }
.operationBtn{ .operationBtn{
margin-right: 40px; margin-right: 40px;
...@@ -273,4 +271,20 @@ img { ...@@ -273,4 +271,20 @@ img {
.el-button+.el-button { .el-button+.el-button {
margin-left: 20px; margin-left: 20px;
} }
.el-dialog__body {
padding: 0px 20px;
color: #606266;
font-size: 14px;
word-break: break-all;
}
.baseinformation {
width: 100%;
height: 28px;
border-bottom: 1px solid #d8d8d8;
}
.titleText {
margin-left: 20px;
line-height: 28px;
}
/*# sourceMappingURL=tao.css.map */ /*# sourceMappingURL=tao.css.map */
\ No newline at end of file \ No newline at end of file
<template> <template>
<div class="equity-dialog"> <div class="equity-dialog">
<el-dialog :title="type == 1 ? '汽车权益' : '商品权益'" :visible.sync="show" :show-close="false" :close-on-press-escape="false" :close-on-click-modal="false"> <el-dialog title="" :visible.sync="show" :show-close="false" :close-on-press-escape="false" :close-on-click-modal="false" width="712px" class="equityDialog">
<el-form :model="form" :rules="rules" ref="ruleForm" label-position="left"> <div class="baseinformation">
<el-form-item v-if="type == 1" label="服务提供方" prop="supplier"> <span class="titleDialogText">{{ type == 1 ? '添加汽车权益' : '添加商品权益' }}</span>
<el-select v-model="form.supplier" @change="changeSupplier"> </div>
<el-option v-for="item in supplierList" :key="item.value" :label="item.label" :value="item.value"></el-option> <div class="form">
</el-select> <el-form class="equityForm" :model="form" :rules="rules" ref="ruleForm" label-position="right" label-width="auto">
</el-form-item> <el-form-item v-if="type == 1" label="服务提供方" prop="supplier">
<template v-if="type == 2"> <el-select v-model="form.supplier" @change="changeSupplier" size="small">
<el-form-item label="产品提供方" prop="supplier"> <el-option v-for="item in supplierList" :key="item.value" :label="item.label" :value="item.value"></el-option>
<el-select v-model="form.supplier">
<el-option label="海威" value="HW"></el-option>
</el-select>
</el-form-item>
<el-form-item label="选择品牌" prop="brandName">
<el-select v-model="form.brandName" @change="changeBrandName" filterable>
<el-option v-for="item in brandList" :key="item.brandName" :value="item.brandName" :label="item.brandName"></el-option>
</el-select>
</el-form-item>
<el-form-item label="商品形态" prop="appearance" v-if="form.brandName">
<el-select v-model="form.appearance">
<el-option v-for="item in appearanceList" :key="item.appearance" :value="item.label" :label="item.label"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</template> <template v-if="type == 2">
<div class="flex"> <el-form-item label="产品提供方" prop="supplier">
<el-form-item label="权益名称" prop="equityName"> <el-select v-model="form.supplier" size="small">
<el-input v-model="form.equityName" :maxlength="type == 1 ? 8 : 6"></el-input> <el-option label="海威" value="HW"></el-option>
</el-form-item> </el-select>
</div> </el-form-item>
<div class="flex"> <el-form-item label="选择品牌" prop="brandName">
<el-form-item label="描述" prop="equityDesc"> <el-select v-model="form.brandName" @change="changeBrandName" filterable size="small">
<el-input v-model="form.equityDesc" :maxlength="type == 1 ? 8 : 6"></el-input> <el-option v-for="item in brandList" :key="item.brandName" :value="item.brandName" :label="item.brandName"></el-option>
</el-form-item> </el-select>
</div> </el-form-item>
<div> <el-form-item label="商品形态" prop="appearance" v-if="form.brandName">
<el-form-item label="图标" required prop="equityIcon"> <el-select v-model="form.appearance" size="small">
<el-upload action="#" class="avatar-uploader" :show-file-list="false" :before-upload="upLoadImg"> <el-option v-for="item in appearanceList" :key="item.appearance" :value="item.label" :label="item.label"></el-option>
<img v-if="form.equityIcon" :src="form.equityIcon" class="avatar" /> </el-select>
<i v-else class="el-icon-plus avatar-uploader-icon"></i> </el-form-item>
</el-upload> </template>
</el-form-item> <div class="flex">
</div> <el-form-item label="权益名称" prop="equityName">
</el-form> <el-input size="small" v-model="form.equityName" :maxlength="type == 1 ? 8 : 6" placeholder="请输入权益名称"></el-input>
<div slot="footer" class="dialog-footer"> </el-form-item>
</div>
<div class="flex">
<el-form-item label="描述" prop="equityDesc">
<el-input size="small" v-model="form.equityDesc" :maxlength="type == 1 ? 8 : 6" placeholder="请输入"></el-input>
</el-form-item>
</div>
<div>
<el-form-item label="图标" required prop="equityIcon">
<el-upload action="#" class="avatar-uploader" :show-file-list="false" :before-upload="upLoadImg">
<img v-if="form.equityIcon" :src="form.equityIcon" class="avatar" />
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
</el-upload>
<div class="suggestion">建议尺寸:80*80像素,支持jpg,png。</div>
</el-form-item>
</div>
</el-form>
</div>
<div slot="footer" class="dialog-footer buttonBtn">
<el-button size="small" @click="close">取 消</el-button> <el-button size="small" @click="close">取 消</el-button>
<el-button size="small" type="primary" @click="submit(type)">确 定</el-button> <el-button size="small" type="primary" @click="submit(type)">确 定</el-button>
</div> </div>
...@@ -65,8 +71,8 @@ export default { ...@@ -65,8 +71,8 @@ export default {
return { return {
form: { form: {
appearance: '', appearance: '',
equityName:'', equityName: '',
brandName:'' brandName: ''
}, },
brandList: [], brandList: [],
appearanceList: [], appearanceList: [],
...@@ -139,8 +145,7 @@ export default { ...@@ -139,8 +145,7 @@ export default {
}, },
methods: { methods: {
close() { close() {
this.form.appearance='', ;(this.form.appearance = ''), (this.form.equityName = '')
this.form.equityName=''
this.$emit('update:show', false) this.$emit('update:show', false)
this.$emit('update:isEdit', false) this.$emit('update:isEdit', false)
this.$refs.ruleForm.resetFields() this.$refs.ruleForm.resetFields()
...@@ -229,8 +234,10 @@ export default { ...@@ -229,8 +234,10 @@ export default {
} }
} }
</script> </script>
<style scope> <style scope>
.equity-dialog {
padding: 0;
}
.flex { .flex {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -244,7 +251,6 @@ export default { ...@@ -244,7 +251,6 @@ export default {
position: relative; position: relative;
width: 80px; width: 80px;
height: 80px; height: 80px;
margin-left: 80px;
} }
.avatar-uploader-icon { .avatar-uploader-icon {
font-size: 28px; font-size: 28px;
...@@ -260,4 +266,50 @@ export default { ...@@ -260,4 +266,50 @@ export default {
height: 80px; height: 80px;
display: block; display: block;
} }
.baseinformation {
width: 100%;
height: 28px;
border-bottom: 1px solid #d8d8d8;
padding-bottom: 18px;
}
.form {
padding: 32px 20px 32px 116px;
}
.equity-dialog .el-dialog__body {
padding: 0px 0px;
color: #606266;
font-size: 14px;
word-break: break-all;
}
.equityForm .el-input--small .el-input__inner {
height: 32px;
line-height: 32px;
width: 320px !important;
}
.suggestion {
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #999999;
line-height: 20px;
margin-top: 8px;
}
.titleDialogText{
margin-left: 20px;
font-size: 20px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333333;
line-height: 28px;
}
.equityDialog .el-dialog__footer{
padding: 10px 20px 20px;
text-align: center;
-webkit-box-sizing: border-box;
box-sizing: border-box;
border-top: 1px solid #E6E6E6;
}
.buttonBtn .el-button+.el-button {
margin-left: 40px;
}
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -81,9 +81,10 @@ export default { ...@@ -81,9 +81,10 @@ export default {
}, },
/**商品权益列表 */ /**商品权益列表 */
getGoodsList(goodsCategoryId, callBack) { getGoodsList(goodsCategoryId, callBack) {
this.$apis.goodsEquityManageApi.getGoodsList({ goodsCategoryId,pageSize: 9999, pageNum: 1 }).then(({ data }) => { this.$apis.goodsEquityManageApi.getGoodsList({ goodsCategoryId,pageSize: this.$refs.goodsTable.page.pageSize, pageNum: this.$refs.goodsTable.page.pageNum }).then(({ data }) => {
if (!callBack) { if (!callBack) {
this.goodsTableData = data.list || [] this.goodsTableData = data.list || []
console.log(data,'data');
} else { } else {
return callBack(data.list) return callBack(data.list)
} }
......
<!--批次管理--> <!--批次管理-->
<template> <template>
<div class="equity-wrap tap"> <div class="equity-wrap tap tabCtn">
<el-tabs v-model="activeName" type="card" @tab-click="handleClick"> <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
<el-tab-pane label="批次管理" name="first"> <el-tab-pane label="批次管理" name="first" id="batch">
<div class="contain equity-wrap"> <div class="contain equity-wrap">
<el-button type="primary" size="small" @click="dialogVisible = true">批量生成权益卡</el-button> <el-button type="primary" size="small" @click="dialogVisible = true">批量生成权益卡</el-button>
<el-form :inline="true" label-width="90px" label-position="right" style="margin-top: 20px"> <el-form :inline="true" label-width="90px" label-position="right" style="margin-top: 20px">
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<!-- 批次界面弹窗 --> <!-- 批次界面弹窗 -->
<el-dialog title="" :visible.sync="batchdetailsVisible" width="1200px" :before-close="detailClose"> <el-dialog title="" :visible.sync="batchdetailsVisible" width="1200px" :before-close="detailClose">
<div class="baseinformation"><span class="titleText">权益卡信息</span></div> <div class="baseinformation"><span class="titleText">权益卡信息</span></div>
<el-form :inline="true" :model="cardsInformationForm" class="demo-form-inline detailFont" label-width="90px" style="margin-top: 20px; margin-left: 52px"> <el-form :inline="true" :model="cardsInformationForm" class="demo-form-inline detailFont" label-width="90px" style="margin-left: 52px">
<el-row> <el-row>
<el-form-item label="门店:" class="detailItem"> <el-form-item label="门店:" class="detailItem">
{{ cardsInformationForm.merchantName }} {{ cardsInformationForm.merchantName }}
...@@ -71,12 +71,12 @@ ...@@ -71,12 +71,12 @@
<el-input v-model="batchPopupListSearch.mobile" placeholder="请输入账号" size="small" class="formItem"></el-input> <el-input v-model="batchPopupListSearch.mobile" placeholder="请输入账号" size="small" class="formItem"></el-input>
</el-form-item> </el-form-item>
<el-form-item size="small" style="float: right"> <el-form-item size="small" style="float: right">
<el-button :id="batchdetailPopupTable.btnId" size="small" type="primary" icon="el-icon-search" @click="batchdetailSelect">搜索</el-button> <el-button size="small" type="primary" icon="el-icon-search" @click="batchdetailSelect">搜索</el-button>
<el-button type="primary" size="small" @click="exportbatchdetail">导出明细</el-button> <el-button type="primary" size="small" @click="exportbatchdetail">导出明细</el-button>
</el-form-item> </el-form-item>
</el-row> </el-row>
</el-form> </el-form>
<GLTable ref="batchdetailPopupTable" :tableParams="batchdetailPopupTable" :getListApi="listMemberCard" :searchForm="batchPopupListSearch" :beforeSearchFn="beforebatchPopupListSearch" :pageConf="datailPageConf"></GLTable> <GLTable ref="batchdetailPopupTable" @hook:mounted="setTabelHeight" :tableParams="batchdetailPopupTable" :getListApi="listMemberCard" :searchForm="batchPopupListSearch" :beforeSearchFn="beforebatchPopupListSearch" :pageConf="datailPageConf"></GLTable>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button size="small" @click="closebatchdetailPopupTable">取 消</el-button> <el-button size="small" @click="closebatchdetailPopupTable">取 消</el-button>
...@@ -85,25 +85,30 @@ ...@@ -85,25 +85,30 @@
</span> </span>
</el-dialog> </el-dialog>
<!-- 批量生成权益卡弹窗 --> <!-- 批量生成权益卡弹窗 -->
<el-dialog title="" :visible.sync="dialogVisible" width="712px" :before-close="handleClose"> <el-dialog title="" :visible.sync="dialogVisible" width="712px" :before-close="handleClose" class="batchDialog">
<el-form :inline="true" :model="generateRightCardsForm" :rules="rules" ref="ruleForm" label-width="90px" class="demo-ruleForm"> <div class="baseinformation"><span class="titleText">批量生成权益卡</span></div>
<div class="baseinformation"><span class="titleText">批量生成权益卡</span></div> <el-form :inline="true" :model="generateRightCardsForm" :rules="rules" ref="ruleForm" label-width="90px" class="addCardsForm">
<div class="form"> <div class="form">
<el-form-item label="关联门店:" prop="merchantName"> <el-row>
<el-select v-model="generateRightCardsForm.merchantName" clearable filterable remote reserve-keyword placeholder="请输入关联门店" :remote-method="generateRemoteMethod" :loading="loading" size="small"> <el-form-item label="关联门店:" prop="merchantName">
<el-option v-for="(item, index) in generateOptions" :key="index" :label="item.merchantName" :value="item.merchantName"></el-option> <el-select v-model="generateRightCardsForm.merchantName" clearable filterable remote reserve-keyword placeholder="请输入关联门店" :remote-method="generateRemoteMethod" :loading="loading" size="small">
</el-select> <el-option v-for="(item, index) in generateOptions" :key="index" :label="item.merchantName" :value="item.merchantName"></el-option>
</el-form-item> </el-select>
<el-form-item label="新建张数:" prop="num" style="width: 100%" class="dialogItem"> </el-form-item>
<div class="dialogLine"> </el-row>
<el-input-number :min="1" v-model="generateRightCardsForm.num" size="mini"></el-input-number> <el-row>
<span style="margin-left: 1px">张</span> <el-form-item label="新建张数:" prop="num">
</div> <div class="dialogLine">
</el-form-item> <el-input-number :min="1" v-model="generateRightCardsForm.num" size="mini"></el-input-number>
<span style="margin-left: 1px">张</span>
<el-form-item label="备注" prop="remarks" style="width: 80%" class="dialogItem"> </div>
<el-input type="textarea" v-model="generateRightCardsForm.remarks" maxlength="200"></el-input> </el-form-item>
</el-form-item> </el-row>
<el-row>
<el-form-item label="备注" prop="remarks">
<el-input type="textarea" v-model="generateRightCardsForm.remarks" maxlength="200" style="width:320px"></el-input>
</el-form-item>
</el-row>
</div> </div>
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
...@@ -113,9 +118,9 @@ ...@@ -113,9 +118,9 @@
</el-dialog> </el-dialog>
</el-tab-pane> </el-tab-pane>
<!--领用记录 --> <!--领用记录 -->
<el-tab-pane label="领用记录" name="second"> <el-tab-pane label="领用记录" name="second" id="collection">
<div class="contain equity-wrap"> <div class="contain equity-wrap">
<el-form :inline="true" label-width="70px" label-position="right"> <el-form :inline="true" label-width="70px" label-position="right" class="collectonForm">
<el-row style="display: flex; align-items: center"> <el-row style="display: flex; align-items: center">
<el-form-item label="生成日期"> <el-form-item label="生成日期">
<el-date-picker v-model="colletionDate" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" size="small" value-format="yyyy-MM-dd"></el-date-picker> <el-date-picker v-model="colletionDate" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" size="small" value-format="yyyy-MM-dd"></el-date-picker>
...@@ -129,7 +134,7 @@ ...@@ -129,7 +134,7 @@
<el-input v-model="collectionListSearch.sn" placeholder="请输入设备SN" size="small" class="formItem"></el-input> <el-input v-model="collectionListSearch.sn" placeholder="请输入设备SN" size="small" class="formItem"></el-input>
</el-form-item> </el-form-item>
</el-row> </el-row>
<el-row style="margin-top: 18px"> <el-row>
<el-form-item size="small" label="账号"> <el-form-item size="small" label="账号">
<el-input v-model="collectionListSearch.mobile" placeholder="请输入账号" size="small" class="formItem"></el-input> <el-input v-model="collectionListSearch.mobile" placeholder="请输入账号" size="small" class="formItem"></el-input>
</el-form-item> </el-form-item>
...@@ -179,7 +184,6 @@ export default { ...@@ -179,7 +184,6 @@ export default {
states: [], states: [],
//批量生成下拉框 //批量生成下拉框
generateOptions: [], generateOptions: [],
colletionDate: '', colletionDate: '',
batchDate: '', batchDate: '',
date_format, date_format,
...@@ -430,6 +434,9 @@ export default { ...@@ -430,6 +434,9 @@ export default {
} }
}, },
methods: { methods: {
setTabelHeight() {
this.$refs.batchdetailPopupTable.tableHeightValues = '328'
},
fetch(url, params) { fetch(url, params) {
return new Promise(resolve => { return new Promise(resolve => {
const xhr = new XMLHttpRequest() const xhr = new XMLHttpRequest()
...@@ -675,6 +682,7 @@ export default { ...@@ -675,6 +682,7 @@ export default {
}) })
}, },
handleClick(tab, event) { handleClick(tab, event) {
console.log(tab.name)
this.options = [] this.options = []
}, },
handleChange(value) {}, handleChange(value) {},
...@@ -855,7 +863,7 @@ h2 { ...@@ -855,7 +863,7 @@ h2 {
padding: 10px; padding: 10px;
} }
.el-form-item { .collectonForm.el-form-item {
margin-bottom: 0px; margin-bottom: 0px;
} }
.el-tabs__header { .el-tabs__header {
...@@ -863,13 +871,10 @@ h2 { ...@@ -863,13 +871,10 @@ h2 {
position: relative; position: relative;
margin: 0px; margin: 0px;
} }
.dialogItem {
margin-top: 20px;
}
.datapicker { .datapicker {
width: 220px; width: 220px;
} }
.el-tabs__item { .tabCtn .el-tabs__item {
padding: 0 20px; padding: 0 20px;
height: 40px; height: 40px;
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
...@@ -884,12 +889,17 @@ h2 { ...@@ -884,12 +889,17 @@ h2 {
width: 180px; width: 180px;
text-align: center; text-align: center;
} }
.tabCtn .el-tabs--card>.el-tabs__header .el-tabs__item.is-active {
border-bottom-color: #F4F5FA;
background: #Fff;
color: #5850FF;
}
.tap { .tap {
padding: 2px 20px 0px 20px;
} }
.equity-wrap .contain { .equity-wrap .contain {
background: #ffffff; background: #ffffff;
margin: 0px 20px 20px 0px; margin: 0px 20px 20px 40px;
padding: 20px; padding: 20px;
-webkit-box-shadow: 0 1px 5px 0 rgba(38, 38, 38, 0.1); -webkit-box-shadow: 0 1px 5px 0 rgba(38, 38, 38, 0.1);
box-shadow: 0 1px 5px 0 rgba(38, 38, 38, 0.1); box-shadow: 0 1px 5px 0 rgba(38, 38, 38, 0.1);
...@@ -904,7 +914,6 @@ h2 { ...@@ -904,7 +914,6 @@ h2 {
} }
.baseinformation { .baseinformation {
width: 100%; width: 100%;
height: 28px;
border-bottom: 1px solid #d8d8d8; border-bottom: 1px solid #d8d8d8;
} }
.baseinformation2 { .baseinformation2 {
...@@ -925,6 +934,29 @@ h2 { ...@@ -925,6 +934,29 @@ h2 {
.form { .form {
padding: 32px 20px 32px 48px; padding: 32px 20px 32px 48px;
} }
.el-tabs__nav-scroll {
overflow: hidden;
margin-left: 40px;
}
.el-tabs--card > .el-tabs__header {
border-bottom: 0px;
}
.batchDialog .el-dialog__body {
padding: 0px 0px;
color: #606266;
font-size: 14px;
word-break: break-all;
}
.batchDialog .el-dialog__footer {
padding: 10px 20px 20px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
border-top: 1px solid #e6e6e6;
}
.addCardsForm .el-input--small .el-input__inner {
height: 32px;
line-height: 32px;
width: 320px;
}
</style> </style>
<style src="@a/css/tao.css"></style> <style src="@a/css/tao.css"></style>
<template> <template>
<div class="equity-wrap"> <div class="equity-wrap list">
<div class="equity-wrap contain"> <div class="container">
<div class="equity-title">商品权益</div> <div class="equity-title">商品权益</div>
<div class="tableBox" style="margin-top: 16px"> <div class="tableBox" style="margin-top: 16px">
<el-button type="primary" size="small" @click="addEquity(1)"> <el-button type="primary" size="small" @click="addEquity(1)">
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
<span style="margin-left: 8px">添加汽车权益</span> <span style="margin-left: 8px">添加汽车权益</span>
</el-button> </el-button>
<div class="tableCtn noneOperation"> <div class="noneOperation">
<GLTable ref="carTable" :tableParams="carTableParams" :pageConf="cardsDatail" :getListApi="getCardListApi"> <GLTable ref="carTable" :tableParams="carTableParams" :pageConf="cardsDatail" :getListApi="getCardListApi">
<div slot="mainPageFlag" slot-scope="scope"> <div slot="mainPageFlag" slot-scope="scope">
<el-button type="text" @click="carsDisplay(scope.scope)">{{ scope.scope.mainPageFlag == 1 ? '取消首页展示' : '首页展示' }}</el-button> <el-button type="text" @click="carsDisplay(scope.scope)">{{ scope.scope.mainPageFlag == 1 ? '取消首页展示' : '首页展示' }}</el-button>
...@@ -28,14 +28,16 @@ ...@@ -28,14 +28,16 @@
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
<span style="margin-left: 8px">添加门店权益</span> <span style="margin-left: 8px">添加门店权益</span>
</el-button> </el-button>
<div class="tags-box"> <div class="tagsCtn">
<template v-for="(item, index) in tags"> <div class="tags-box">
<el-tag :key="index" effect="dark" :type="item.active ? '' : 'info'" @click.native="changeGoodsCategory({ id: item.id, index })" :ref="`tag-${index}`" @dblclick.native="showInput(index, item.goodsCategory)"> <template v-for="(item, index) in tags">
<i class="del el-icon-error" @click.stop="categoryDelete(item.id)"></i> <el-tag :key="index" effect="dark" :type="item.active ? '' : 'info'" @click.native="changeGoodsCategory({ id: item.id, index })" :ref="`tag-${index}`" @dblclick.native="showInput(index, item.goodsCategory)" class="tags">
{{ item.goodsCategory }} <i class="del el-icon-error" @click.stop="categoryDelete(item.id)"></i>
<el-input class="input-tag" v-model="inputValue" :ref="`tag-input-${index}`" size="small" @keyup.enter.native="changeTagName({ id: item.id, index })" @blur="changeTagName({ id: item.id, index })"></el-input> {{ item.goodsCategory }}
</el-tag> <el-input class="input-tag" v-model="inputValue" :ref="`tag-input-${index}`" size="small" @keyup.enter.native="changeTagName({ id: item.id, index })" @blur="changeTagName({ id: item.id, index })"></el-input>
</template> </el-tag>
</template>
</div>
<el-input class="input-new-tag" v-if="inputVisible" v-model="tagInputValue" ref="saveTagInput" size="small" @keyup.enter.native="handleInputConfirm" @blur="handleInputConfirm" maxlength="8"></el-input> <el-input class="input-new-tag" v-if="inputVisible" v-model="tagInputValue" ref="saveTagInput" size="small" @keyup.enter.native="handleInputConfirm" @blur="handleInputConfirm" maxlength="8"></el-input>
<el-button class="addTag" size="small" @click="showAddInput" v-else> <el-button class="addTag" size="small" @click="showAddInput" v-else>
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
...@@ -43,8 +45,8 @@ ...@@ -43,8 +45,8 @@
</el-button> </el-button>
</div> </div>
<div class="tableCtn"> <div class="noneOperation">
<GLTable ref="goodsTable" :tableParams="goodsTableParams" :tableData="goodsTableData" :pageConf="goodsDatail"> <GLTable ref="goodsTable" :tableParams="goodsTableParams" :tableData="goodsTableData" :pageConf="goodsDatail" >
<div slot="mainPageFlag" slot-scope="scope"> <div slot="mainPageFlag" slot-scope="scope">
<el-button type="text" @click="goodsDisplay(scope.scope)">{{ scope.scope.mainPageFlag == 1 ? '取消首页展示' : '首页展示' }}</el-button> <el-button type="text" @click="goodsDisplay(scope.scope)">{{ scope.scope.mainPageFlag == 1 ? '取消首页展示' : '首页展示' }}</el-button>
</div> </div>
...@@ -73,7 +75,8 @@ export default { ...@@ -73,7 +75,8 @@ export default {
data() { data() {
return { return {
getCardListApi: this.$apis.carEquityManageApi.getCarList, getCardListApi: this.$apis.carEquityManageApi.getCarList,
goodsDatail: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' }, getGoodListApi: this.$apis.goodsEquityManageApi.getGoodsList,
goodsDatail: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'data.total' },
cardsDatail: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'data.total' }, cardsDatail: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'data.total' },
showDialog: false, showDialog: false,
isEdit: false, isEdit: false,
...@@ -178,7 +181,7 @@ export default { ...@@ -178,7 +181,7 @@ export default {
} }
</script> </script>
<style src="@a/css/tao.css"></style> <style src="@a/css/tao.css"></style>
<style > <style scoped>
.equity-title { .equity-title {
font-size: 16px; font-size: 16px;
font-family: PingFangSC-Medium, PingFang SC; font-family: PingFangSC-Medium, PingFang SC;
...@@ -186,10 +189,23 @@ export default { ...@@ -186,10 +189,23 @@ export default {
color: #333333; color: #333333;
line-height: 28px; line-height: 28px;
} }
.tags-box { .tags {
padding: 20px 0 10px;
background: #f4f6fc; background: #f4f6fc;
border-radius: 4px; }
.tags-box {
padding: 2px 42px 2px 2px;
background: #F4F6FC;
border-radius: 4px;
}
.tags.el-tag {
background: #ffffff !important;
border-radius: 4px !important;
border: 1px solid #eeedff !important;
}
.tags.el-tag--dark.el-tag--info {
background-color: #909399;
border-color: #909399;
color: #5850ff;
} }
.el-tag + .el-tag { .el-tag + .el-tag {
margin-left: 10px; margin-left: 10px;
...@@ -240,12 +256,6 @@ export default { ...@@ -240,12 +256,6 @@ export default {
.opacity { .opacity {
opacity: 0.5; opacity: 0.5;
} }
/* .el-button {
padding: 12px 0px;
font-size: 14px;
border-radius: 4px;
width: 40px;
} */
.tableBtn { .tableBtn {
width: 40px; width: 40px;
} }
...@@ -258,4 +268,20 @@ export default { ...@@ -258,4 +268,20 @@ export default {
.secondBox { .secondBox {
margin-top: 50px; margin-top: 50px;
} }
.el-table__fixed-right-patch {
position: absolute;
top: -1px;
right: 0;
background-color: #fff;
}
.tagsCtn {
display: flex;
flex-direction: row;
margin-top: 18px;
}
.list .container{
background: #F4F5FA;
margin: 0px 20px 20px 40px;
padding: 20px;
}
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<div class="grid"> <div class="grid">
<div class="grid-item">订单编号:{{ detailInfo.orderCode }}</div> <div class="grid-item">订单编号:{{ detailInfo.orderCode }}</div>
<div class="grid-item">下单时间: {{ detailInfo.time }}</div> <div class="grid-item">下单时间: {{ detailInfo.time }}</div>
<div class="grid-item">海威订单号: {{ detailInfo.thirdOrderCode }}</div>
</div> </div>
</div> </div>
<div class="box"> <div class="box">
......
<template> <template>
<!-- <div class="container">
<div class="box">
<div class="layout">
<div class="search-box">
<div class="top">
<div class="item">
订单编号:
<div class="input" style="margin-left">
<el-input v-model="searchObj.orderCode" placeholder="" size="small" class="formItem"></el-input>
</div>
</div>
<div class="item">
品牌名称:
<div class="input">
<el-select v-model="searchObj.brandName" filterable size="small" placeholder="请选择" class="formItem">
<el-option v-for="item in brandList" :key="item.brandId" :label="item.brandName" :value="item.brandName"></el-option>
</el-select>
</div>
</div>
<div class="item">
商品名称:
<div class="input">
<el-input v-model="searchObj.productName" placeholder="" size="small" class="formItem"></el-input>
</div>
</div>
<div class="item">
门店名称:
<div class="input">
<el-input v-model="searchObj.merchantName" placeholder="" size="small" class="formItem"></el-input>
</div>
</div>
<div class="item">
用户信息:
<div class="input">
<el-input v-model="searchObj.userInfo" placeholder="" size="small" class="formItem"></el-input>
</div>
</div>
<div class="item">
下单时间:
<el-date-picker v-model="date" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" size="small" value-format="yyyy-MM-dd" style="width:220px"></el-date-picker>
</div>
<div class="item" style="margin-left:auto;">
<el-button type="default" @click="reset" size="small">重置</el-button>
<el-button type="primary" @click="search" size="small">查询</el-button>
</div>
</div>
</div>
<div class="table-box">
<el-tabs v-model="tabIndex" @tab-click="handleClick" data-target="orderStatus">
<el-tab-pane label="全部" name=""></el-tab-pane>
<el-tab-pane label="待收货" name="1,2"></el-tab-pane>
<el-tab-pane label="已完成" name="3"></el-tab-pane>
<el-tab-pane label="退款丨售后" name="4,6"></el-tab-pane>
</el-tabs>
<d2-table v-if="flag" ref="table" :searchForm="searchObj" :tableParams="tableParams" :getListApi="tableParams.getListApi" :hasNum="false">
<span slot="auth-button" slot-scope="scope" :data="scope.scope">
<el-button type="text" @click="jump(scope.scope, 'order')">查看详情</el-button>
</span>
</d2-table>
</div>
</div>
</div>
</div> -->
<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="70px" label-position="right">
...@@ -206,6 +143,11 @@ export default { ...@@ -206,6 +143,11 @@ export default {
// return `${cell.accountName || ''} // return `${cell.accountName || ''}
// ${cell.mobile || ''}` // ${cell.mobile || ''}`
// } // }
},
{
label: '海威订单号',
minWidth: '100',
addHtml: 'thirdOrderCode'
} }
] ]
} }
......
<!-- --> <!-- -->
<template> <template>
<div class="contianer"> <div style="margin-top:30px">
<div class="button"> <div class="button">
<el-button type="primary" @click="addCard('true')" size="small" style="width: 128px"> <el-button type="primary" @click="addCard('true')" size="small" style="width: 128px">
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
<span style="margin-left: 8px">新建权益卡</span> <span style="margin-left: 8px">新建权益卡</span>
</el-button> </el-button>
</div> </div>
<div class="tableBox" style="margin-left: 20px; margin-top: 20px"> <div class="tableBox" style="margin-left: 40px; margin-top: 20px">
<div class="topline"> <div class="topline">
<div class="selectStore">搜索门店</div> <div class="selectStore">搜索门店</div>
<el-select size="small" v-model="searchForm.merchantName" filterable remote reserve-keyword placeholder="请输入门店名称" :remote-method="remoteMethod" :loading="loading" clearable style="margin-left: 10px"> <el-select size="small" v-model="searchForm.merchantName" filterable remote reserve-keyword placeholder="请输入门店名称" :remote-method="remoteMethod" :loading="loading" clearable style="margin-left: 10px">
...@@ -30,8 +30,8 @@ ...@@ -30,8 +30,8 @@
</div> </div>
<!-- 推广弹窗 --> <!-- 推广弹窗 -->
<el-dialog :visible.sync="isVisible" :before-close="handleClose" :close-on-click-modal="false" width="547px"> <el-dialog :visible.sync="isVisible" :before-close="handleClose" :close-on-click-modal="false" width="547px">
<div class="baseinformation"><span class="titleText">试用推广</span></div>
<el-form :model="editForm" :rules="rules" ref="ruleForm" label-width="68px"> <el-form :model="editForm" :rules="rules" ref="ruleForm" label-width="68px">
<div class="baseinformation"><span class="titleText">试用推广</span></div>
<div class="form"> <div class="form">
<div class="main-qrcode"> <div class="main-qrcode">
<img :src="editForm.qrCode" ref="Qrcode" id="qrCode" /> <img :src="editForm.qrCode" ref="Qrcode" id="qrCode" />
...@@ -52,12 +52,12 @@ ...@@ -52,12 +52,12 @@
</el-dialog> </el-dialog>
<!-- 新建权益卡弹窗 --> <!-- 新建权益卡弹窗 -->
<el-dialog title="" :visible.sync="dialogVisible" width="958px"> <el-dialog title="" :visible.sync="dialogVisible" width="958px">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="auto" class="demo-ruleForm" label-position="left"> <div class="baseinformation"><span class="titleText">基本信息</span></div>
<el-form class="dialogForm" :model="ruleForm" :rules="rules" ref="ruleForm" label-width="auto" label-position="left">
<!-- 基础表单 --> <!-- 基础表单 -->
<div class="baseinformation"><span class="titleText">基本信息</span></div>
<div class="form"> <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" style="width: 320px" placeholder="请输入"></el-input> <el-input v-model="ruleForm.cardClassName" maxlength="15" type="text" size="small" placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="卡片样式:" prop="backgroundImage"> <el-form-item label="卡片样式:" prop="backgroundImage">
<div class="imageList"> <div class="imageList">
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="渠道门店:" prop="merchantName"> <el-form-item label="渠道门店:" prop="merchantName">
<el-select v-model="ruleForm.merchantName" filterable remote reserve-keyword placeholder="请输入门店名称" :remote-method="generateRemoteMethod" :loading="loading" :disabled="disableSelect" size="small" class="dialogInput"> <el-select size="small" 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-option v-for="(item, index) in generateOptions" :key="index" :label="item.merchantName" :value="item.merchantName"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -82,14 +82,14 @@ ...@@ -82,14 +82,14 @@
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="权益商品编码:" prop=""> <el-form-item label="权益商品编码:" prop="">
<el-input-number class="dialogInput" v-model="ruleForm.platformGoodsId" size="small" :controls="disableInputNumber"></el-input-number> <el-input-number v-model="ruleForm.platformGoodsId" size="small" :controls="disableInputNumber"></el-input-number>
<span class="codeTxt">用于关联流量卡服务测的商品</span> <span class="codeTxt">用于关联流量卡服务测的商品</span>
</el-form-item> </el-form-item>
<el-form-item label="使用说明:" prop="usageNotes"> <el-form-item label="使用说明:" prop="usageNotes">
<el-input type="textarea" v-model="ruleForm.usageNotes" maxlength="500" class="dialogInput" size="small"></el-input> <el-input type="textarea" v-model="ruleForm.usageNotes" style="width: 320px" maxlength="500" size="small"></el-input>
</el-form-item> </el-form-item>
<el-form-item label=" 售价:" prop="price"> <el-form-item label=" 售价:" prop="price">
<el-input-number class="dialogInput" 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>
...@@ -98,13 +98,11 @@ ...@@ -98,13 +98,11 @@
<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>
<div class="durationCtn" v-if="value == false ? false : true"> <el-form-item label="试用时长:" :prop="value == false ? '' : 'tryNum'" v-show="value">
<el-form-item label="试用时长:" :prop="value == false ? '' : 'tryNum'">
<el-input-number v-model="tryNum" controls-position="right" size="mini" :disabled="!hasTryNum" :min="1" :max="100"></el-input-number> <el-input-number v-model="tryNum" controls-position="right" size="mini" :disabled="!hasTryNum" :min="1" :max="100"></el-input-number>
天试用 天试用
<span class="codeTxt2">设置后将生成试用链接和二维码可用于推广</span> <span class="codeTxt2">设置后将生成试用链接和二维码可用于推广</span>
</el-form-item> </el-form-item>
</div>
</div> </div>
<div class="buttonCtn"> <div class="buttonCtn">
<el-form-item> <el-form-item>
...@@ -507,19 +505,19 @@ export default { ...@@ -507,19 +505,19 @@ export default {
}, },
//提交验证 //提交验证
submitForm(formName) { submitForm(formName) {
if (this.value == true) {
this.ruleForm.tryNum = this.tryNum
this.ruleForm.tryAble = '1'
} else {
this.ruleForm.tryNum = ''
this.ruleForm.tryAble = '0'
}
this.$refs[formName].validate(valid => { this.$refs[formName].validate(valid => {
if (valid) { if (valid) {
// var params = this.ruleForm // var params = this.ruleForm
if (this.ruleForm.effectiveType == 2) { if (this.ruleForm.effectiveType == 2) {
this.ruleForm.effectiveNum = this.effectiveNum this.ruleForm.effectiveNum = this.effectiveNum
} }
if (this.value == true) {
this.ruleForm.tryNum = this.tryNum
this.ruleForm.tryAble = '1'
} else {
this.ruleForm.tryNum = ''
this.ruleForm.tryAble = '0'
}
//判断是否是从新建按钮进来的 //判断是否是从新建按钮进来的
var apiName = this.isAdd ? 'newEquityCard' : 'editEquityCard' var apiName = this.isAdd ? 'newEquityCard' : 'editEquityCard'
console.log(apiName) console.log(apiName)
...@@ -673,7 +671,7 @@ export default { ...@@ -673,7 +671,7 @@ export default {
align-items: center; align-items: center;
} }
.button { .button {
margin-left: 20px; margin-left: 40px;
} }
/* .el-dialog__headerbtn { /* .el-dialog__headerbtn {
display: none; display: none;
...@@ -681,7 +679,7 @@ export default { ...@@ -681,7 +679,7 @@ export default {
.codeTxt { .codeTxt {
color: #8c939d; color: #8c939d;
font-size: 12px; font-size: 12px;
margin-left: -97px; margin-left: 198px;
} }
.code { .code {
color: #8c939d; color: #8c939d;
...@@ -728,12 +726,15 @@ export default { ...@@ -728,12 +726,15 @@ export default {
color: #4c4c4c; color: #4c4c4c;
line-height: 20px; line-height: 20px;
} }
.dialogInput {
width: 320px;
}
.form { .form {
padding: 32px 20px 32px 48px; padding: 32px 20px 32px 48px;
} }
.dialogForm .el-input--small .el-input__inner {
height: 32px;
line-height: 32px;
width: 320px !important;
}
.el-dialog__body { .el-dialog__body {
padding: 0; padding: 0;
color: #606266; color: #606266;
......
<template> <template>
<!-- <div class="layout">
<div class="search-box">
<div class="top">
<div class="item">
售后编号:
<div class="input">
<el-input
v-model="searchObj.refundCode"
placeholder=""
size="small"
></el-input>
</div>
</div>
<div class="item">
订单编号:
<div class="input">
<el-input
v-model="searchObj.orderCode"
placeholder=""
size="small"
></el-input>
</div>
</div>
<div class="item">
商品名称:
<div class="input">
<el-input
v-model="searchObj.productName"
placeholder=""
size="small"
></el-input>
</div>
</div>
<div class="item">
售后时间:
<el-date-picker
v-model="date"
type="daterange"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
size="small"
value-format="yyyy-MM-dd"
>
</el-date-picker>
</div>
<div class="item">
用户信息:
<div class="input">
<el-input
v-model="searchObj.userInfo"
placeholder=""
size="small"
></el-input>
</div>
</div>
-----------
<div class="item">
渠道:
<el-select
v-model="searchObj.channl"
placeholder="请选择"
>
<el-option
v-for="item in channlList"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</div>
--------
<div class="item">
门店名称:
<div class="input">
<el-input
v-model="searchObj.merchantName"
placeholder=""
size="small"
></el-input>
</div>
</div>
</div>
<div class="bottom">
<el-button-group>
<el-button
type="primary"
@click="search"
size="small"
>查询</el-button>
<el-button
type="default"
@click="reset"
size="small"
>重置</el-button>
</el-button-group>
</div>
</div>
<div class="table-box">
<el-tabs
v-model="tabIndex"
@tab-click="handleClick"
data-target="redundStatus"
>
<el-tab-pane
label="全部"
name=""
></el-tab-pane>
<el-tab-pane
label="售后中"
name="1"
></el-tab-pane>
<el-tab-pane
label="售后完成"
name="2,3"
></el-tab-pane>
</el-tabs>
<d2-table
v-if="flag"
ref="table"
:searchForm="searchObj"
:tableParams="tableParams"
:getListApi="tableParams.getListApi"
:hasNum="false"
>
<span
slot="auth-button"
slot-scope="scope"
:data="scope.scope"
>
<el-button
type="text"
@click="jump(scope.scope,'sale')"
size="small"
>查看详情</el-button>
</span>
</d2-table>
</div>
</div> -->
<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="70px" label-position="right">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!