Commit 1684e086 by zhouzy

1

1 parent 5aec3330
...@@ -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;
...@@ -288,4 +286,5 @@ img { ...@@ -288,4 +286,5 @@ img {
margin-left: 20px; margin-left: 20px;
line-height: 28px; line-height: 28px;
} }
/*# sourceMappingURL=tao.css.map */ /*# sourceMappingURL=tao.css.map */
\ No newline at end of file \ No newline at end of file
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
</div> </div>
</el-form> </el-form>
</div> </div>
<div slot="footer" class="dialog-footer"> <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>
...@@ -249,14 +249,14 @@ export default { ...@@ -249,14 +249,14 @@ export default {
border-radius: 6px; border-radius: 6px;
cursor: pointer; cursor: pointer;
position: relative; position: relative;
width: 100px; width: 80px;
height: 100px; height: 80px;
} }
.avatar-uploader-icon { .avatar-uploader-icon {
font-size: 28px; font-size: 28px;
color: #8c939d; color: #8c939d;
width: 100px; width: 80px;
height: 100px; height: 80px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
...@@ -309,5 +309,7 @@ line-height: 28px; ...@@ -309,5 +309,7 @@ line-height: 28px;
box-sizing: border-box; box-sizing: border-box;
border-top: 1px solid #E6E6E6; 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)
} }
......
...@@ -683,13 +683,6 @@ export default { ...@@ -683,13 +683,6 @@ export default {
}, },
handleClick(tab, event) { handleClick(tab, event) {
console.log(tab.name) console.log(tab.name)
if (tab.name == 'first') {
console.log('first-----')
var batchTab = document.getElementById('batch')
batchTab.style.color = '#fff'
} else if (tab.name == 'second') {
console.log('second=====')
}
this.options = [] this.options = []
}, },
handleChange(value) {}, handleChange(value) {},
...@@ -896,8 +889,13 @@ h2 { ...@@ -896,8 +889,13 @@ 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;
......
<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)">
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
</div> </div>
<div class="noneOperation"> <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>
...@@ -75,7 +75,8 @@ export default { ...@@ -75,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,
...@@ -278,4 +279,9 @@ border-radius: 4px; ...@@ -278,4 +279,9 @@ border-radius: 4px;
flex-direction: row; flex-direction: row;
margin-top: 18px; 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">
...@@ -55,9 +55,9 @@ ...@@ -55,9 +55,9 @@
<div class="baseinformation"><span class="titleText">基本信息</span></div> <div class="baseinformation"><span class="titleText">基本信息</span></div>
<el-form class="dialogForm" :model="ruleForm" :rules="rules" ref="ruleForm" label-width="auto" label-position="left"> <el-form class="dialogForm" :model="ruleForm" :rules="rules" ref="ruleForm" label-width="auto" label-position="left">
<!-- 基础表单 --> <!-- 基础表单 -->
<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" 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">
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
<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" style="width:320px" maxlength="500" 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 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>
...@@ -98,14 +98,12 @@ ...@@ -98,14 +98,12 @@
<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>
<el-button :disabled="submitBtn" type="primary" @click="submitForm('ruleForm')" size="small">提交</el-button> <el-button :disabled="submitBtn" type="primary" @click="submitForm('ruleForm')" size="small">提交</el-button>
...@@ -507,12 +505,6 @@ export default { ...@@ -507,12 +505,6 @@ export default {
}, },
//提交验证 //提交验证
submitForm(formName) { submitForm(formName) {
this.$refs[formName].validate(valid => {
if (valid) {
// var params = this.ruleForm
if (this.ruleForm.effectiveType == 2) {
this.ruleForm.effectiveNum = this.effectiveNum
}
if (this.value == true) { if (this.value == true) {
this.ruleForm.tryNum = this.tryNum this.ruleForm.tryNum = this.tryNum
this.ruleForm.tryAble = '1' this.ruleForm.tryAble = '1'
...@@ -520,6 +512,12 @@ export default { ...@@ -520,6 +512,12 @@ export default {
this.ruleForm.tryNum = '' this.ruleForm.tryNum = ''
this.ruleForm.tryAble = '0' this.ruleForm.tryAble = '0'
} }
this.$refs[formName].validate(valid => {
if (valid) {
// var params = this.ruleForm
if (this.ruleForm.effectiveType == 2) {
this.ruleForm.effectiveNum = this.effectiveNum
}
//判断是否是从新建按钮进来的 //判断是否是从新建按钮进来的
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;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!