Commit 1684e086 by zhouzy

1

1 parent 5aec3330
......@@ -8,7 +8,6 @@ import { http } from '@/main'
}
/** 获取汽车权益列表*/
const getCarList = (params = {}) => {
console.log(params)
params.method = 'scrm.api.equity.car.service.list'
return http({
data: params,
......
......@@ -240,8 +240,6 @@ img {
vertical-align: baseline;
background: transparent;
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{
margin-right: 40px;
......@@ -288,4 +286,5 @@ img {
margin-left: 20px;
line-height: 28px;
}
/*# sourceMappingURL=tao.css.map */
\ No newline at end of file
......@@ -49,7 +49,7 @@
</div>
</el-form>
</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" type="primary" @click="submit(type)">确 定</el-button>
</div>
......@@ -249,14 +249,14 @@ export default {
border-radius: 6px;
cursor: pointer;
position: relative;
width: 100px;
height: 100px;
width: 80px;
height: 80px;
}
.avatar-uploader-icon {
font-size: 28px;
color: #8c939d;
width: 100px;
height: 100px;
width: 80px;
height: 80px;
display: flex;
align-items: center;
justify-content: center;
......@@ -309,5 +309,7 @@ line-height: 28px;
box-sizing: border-box;
border-top: 1px solid #E6E6E6;
}
.buttonBtn .el-button+.el-button {
margin-left: 40px;
}
</style>
\ No newline at end of file
......@@ -81,9 +81,10 @@ export default {
},
/**商品权益列表 */
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) {
this.goodsTableData = data.list || []
console.log(data,'data');
} else {
return callBack(data.list)
}
......
......@@ -683,13 +683,6 @@ export default {
},
handleClick(tab, event) {
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 = []
},
handleChange(value) {},
......@@ -896,8 +889,13 @@ h2 {
width: 180px;
text-align: center;
}
.tabCtn .el-tabs--card>.el-tabs__header .el-tabs__item.is-active {
border-bottom-color: #F4F5FA;
background: #Fff;
color: #5850FF;
}
.tap {
padding: 2px 20px 0px 20px;
}
.equity-wrap .contain {
background: #ffffff;
......
<template>
<div class="equity-wrap">
<div class="equity-wrap contain">
<div class="equity-wrap list">
<div class="container">
<div class="equity-title">商品权益</div>
<div class="tableBox" style="margin-top: 16px">
<el-button type="primary" size="small" @click="addEquity(1)">
......@@ -46,7 +46,7 @@
</div>
<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">
<el-button type="text" @click="goodsDisplay(scope.scope)">{{ scope.scope.mainPageFlag == 1 ? '取消首页展示' : '首页展示' }}</el-button>
</div>
......@@ -75,7 +75,8 @@ export default {
data() {
return {
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' },
showDialog: false,
isEdit: false,
......@@ -278,4 +279,9 @@ border-radius: 4px;
flex-direction: row;
margin-top: 18px;
}
.list .container{
background: #F4F5FA;
margin: 0px 20px 20px 40px;
padding: 20px;
}
</style>
\ No newline at end of file
......@@ -6,6 +6,7 @@
<div class="grid">
<div class="grid-item">订单编号:{{ detailInfo.orderCode }}</div>
<div class="grid-item">下单时间: {{ detailInfo.time }}</div>
<div class="grid-item">海威订单号: {{ detailInfo.thirdOrderCode }}</div>
</div>
</div>
<div class="box">
......
<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 contain">
<el-form :inline="true" style="width: 100%" :model="searchForm" label-width="70px" label-position="right">
......@@ -206,6 +143,11 @@ export default {
// return `${cell.accountName || ''}
// ${cell.mobile || ''}`
// }
},
{
label: '海威订单号',
minWidth: '100',
addHtml: 'thirdOrderCode'
}
]
}
......
<!-- -->
<template>
<div class="contianer">
<div style="margin-top:30px">
<div class="button">
<el-button type="primary" @click="addCard('true')" size="small" style="width: 128px">
<i class="el-icon-plus"></i>
<span style="margin-left: 8px">新建权益卡</span>
</el-button>
</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="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">
......@@ -52,12 +52,12 @@
</el-dialog>
<!-- 新建权益卡弹窗 -->
<el-dialog title="" :visible.sync="dialogVisible" width="958px">
<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">
<!-- 基础表单 -->
<div class="form ">
<div class="form">
<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 label="卡片样式:" prop="backgroundImage">
<div class="imageList">
......@@ -67,7 +67,7 @@
</div>
</el-form-item>
<el-form-item label="渠道门店:" prop="merchantName">
<el-select size="small" v-model="ruleForm.merchantName" filterable remote reserve-keyword placeholder="请输入门店名称" :remote-method="generateRemoteMethod" :loading="loading" :disabled="disableSelect">
<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-select>
</el-form-item>
......@@ -86,7 +86,7 @@
<span class="codeTxt">用于关联流量卡服务测的商品</span>
</el-form-item>
<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 label=" 售价:" prop="price">
<el-input-number v-model="ruleForm.price" controls-position="right" size="mini" :min="1" :max="9999.99"></el-input-number>
......@@ -98,13 +98,11 @@
<el-form-item label="试用设置:" prop="">
<el-switch v-model="value" active-color="" inactive-color="#d3d3d3"></el-switch>
</el-form-item>
<div class="durationCtn" v-if="value == false ? false : true">
<el-form-item label="试用时长:" :prop="value == false ? '' : 'tryNum'">
<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="100"></el-input-number>
天试用
<span class="codeTxt2">设置后将生成试用链接和二维码可用于推广</span>
</el-form-item>
</div>
</div>
<div class="buttonCtn">
<el-form-item>
......@@ -507,19 +505,19 @@ export default {
},
//提交验证
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 => {
if (valid) {
// var params = this.ruleForm
if (this.ruleForm.effectiveType == 2) {
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'
console.log(apiName)
......@@ -673,7 +671,7 @@ export default {
align-items: center;
}
.button {
margin-left: 20px;
margin-left: 40px;
}
/* .el-dialog__headerbtn {
display: none;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!