Commit 3920ec25 by zhouzy

1

1 parent 4f175558
......@@ -3571,7 +3571,7 @@
},
"charenc": {
"version": "0.0.2",
"resolved": "https://registry.npmjs.org/charenc/-/charenc-0.0.2.tgz",
"resolved": "https://registry.npm.taobao.org/charenc/download/charenc-0.0.2.tgz",
"integrity": "sha1-wKHS86cJLgN3S/qD8UwPxXkKhmc="
},
"check-types": {
......@@ -4386,7 +4386,7 @@
},
"crypt": {
"version": "0.0.2",
"resolved": "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz",
"resolved": "https://registry.npm.taobao.org/crypt/download/crypt-0.0.2.tgz",
"integrity": "sha1-iNf/fsDfuG9xPch7u0LQRNPmxBs="
},
"crypto-browserify": {
......@@ -6356,21 +6356,14 @@
}
},
"glsx-components": {
"version": "1.1.8",
"resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.1.8.tgz",
"integrity": "sha512-jjo1EY6tknpi5depW9u4xD70TAUs+6Vyzsi3PJf0v3aONA6nILKxK7Yu5jRiz//CG/H7S+Fd6AnYVnJ+QoQFjQ==",
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.2.3.tgz",
"integrity": "sha512-WMMIfbWjbmtLYLNZFftl7MOG877shwirrGQyl2fhMdlcTEVKjJVtMgNLo2BjgWSPVu9b0SvDdhk1d7JuTns/tg==",
"requires": {
"core-js": "^3.6.5",
"element-ui": "^2.15.6",
"glsx-common": "^1.3.2",
"vue": "^2.6.11"
},
"dependencies": {
"core-js": {
"version": "3.19.1",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.19.1.tgz",
"integrity": "sha512-Tnc7E9iKd/b/ff7GFbhwPVzJzPztGrChB8X8GLqoYGdEOG8IpLnK1xPyo3ZoO3HsK6TodJS58VGPOxA+hLHQMg=="
}
}
},
"glsx-vue-components": {
......@@ -11127,7 +11120,7 @@
},
"sha1": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/sha1/-/sha1-1.1.1.tgz",
"resolved": "https://registry.npm.taobao.org/sha1/download/sha1-1.1.1.tgz",
"integrity": "sha1-rdqnqTFo85PxnrKxUJFhjicA+Eg=",
"requires": {
"charenc": ">= 0.0.1",
......
......@@ -14,7 +14,7 @@
"el-tree-transfer": "^2.4.7",
"element-ui": "^2.15.6",
"glsx-common": "^1.4.9",
"glsx-components": "^1.1.8",
"glsx-components": "^1.2.3",
"glsx-vue-components": "^1.0.15",
"jquery": "^3.6.0",
"vue": "^2.6.14",
......
......@@ -4,7 +4,6 @@ const getEquityCardList = params => {
params.method = 'scrm.api.equity.card.class.list.with.page'
return http({
data: params,
returnAll:true
})
}
/*新增权益卡*/
......
......@@ -10,11 +10,12 @@ img {
.layout {
padding-bottom: 20px;
margin: 10px;
width: 100%;
overflow: hidden;
}
.layout .search-box {
width: 1160px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
......@@ -47,7 +48,7 @@ img {
-ms-flex-align: center;
align-items: center;
font-size: 14px;
margin: 0 30px 16px 0;
margin: 20px 35px 0 0;
}
.layout .search-box .bottom {
margin-right: auto;
......@@ -84,7 +85,6 @@ img {
-webkit-box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.1);
box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.1);
padding: 20px;
margin: 0;
padding: 16px 20px 14px 20px;
border: 0;
......@@ -95,7 +95,6 @@ img {
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);
width: 1160px;
}
.layout .box .title {
......@@ -236,8 +235,7 @@ img {
}
.tableBox{
margin: 0;
margin-top: 20px;
padding: 16px 20px 14px 20px;
padding: 20px 20px 10px 20px;
border: 0;
outline: 0;
font-size: 100%;
......@@ -246,11 +244,35 @@ img {
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);
width: 1160px;
}
.operationBtn{
margin-right: 30px;
margin-right: 40px;
display: flex;
flex-direction: row;
margin-left: 40px;
}
.selectBtn{
width: 68px;
}
.selectWidth{
width: 215px;
}
.el-input--small .el-input__inner {
height: 32px;
line-height: 32px;
width: 215px;
}
.el-range-editor.el-input__inner {
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
padding: 3px 10px;
width: 215px;
}
.el-button+.el-button {
margin-left: 20px;
}
/*# sourceMappingURL=tao.css.map */
\ No newline at end of file
......@@ -5,12 +5,13 @@
<el-tab-pane label="批次管理" name="first">
<div class="layout">
<div class="tableBox">
<el-button type="primary" size="small" @click="dialogVisible = true">批量生成权益卡</el-button>
<div class="search-box">
<div class="top">
<div class="item">
生成日期:
添加时间:
<div class="input">
<el-date-picker class="datapicker" v-model="batchDate" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" size="small" value-format="yyyy-MM-dd" style="width: 220px"></el-date-picker>
<el-date-picker size="small" class="datapicker" v-model="batchDate" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd"></el-date-picker>
</div>
</div>
<div class="item">
......@@ -26,8 +27,8 @@
</el-select>
</div>
<div class="item" style="margin-left: auto">
<el-button type="primary" size="small" icon="el-icon-search" @click="selectCollectionTable">搜索</el-button>
<el-button type="primary" size="small" @click="dialogVisible = true">批量生成权益卡</el-button>
<el-button plain size="small" @click="selectCollectionTable('reset')" class="selectBtn">重置</el-button>
<el-button type="primary" size="small" @click="selectCollectionTable('select')" class="selectBtn ">搜索</el-button>
</div>
</div>
</div>
......@@ -158,7 +159,7 @@
<div class="item">
生成日期:
<div class="input">
<el-date-picker v-model="colletionDate" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" size="small" value-format="yyyy-MM-dd" style="width: 220px"></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>
</div>
</div>
<div class="item">
......@@ -175,15 +176,16 @@
<el-input v-model="collectionListSearch.sn" placeholder="请输入设备SN" size="small" class="formItem"></el-input>
</div>
</div>
<div class="item">
<div class="item" style="margin-left: 27px">
账号:
<div class="input">
<el-input v-model="collectionListSearch.mobile" placeholder="请输入账号" size="small" class="formItem"></el-input>
</div>
</div>
<div class="item" style="margin-left: auto">
<el-button size="small" :id="collectionTableParams.btnId" type="primary" icon="el-icon-search" @click="collectionSelect">搜索</el-button>
<el-button type="primary" size="small" @click="exportCollection">导出</el-button>
<el-button class="selectBtn" size="small" @click="collectionSelect('reset')">重置</el-button>
<el-button class="selectBtn" size="small" type="primary" @click="collectionSelect('select')" style="">搜索</el-button>
<el-button class="selectBtn" type="primary" size="small" @click="exportCollection">导出</el-button>
</div>
</div>
</div>
......@@ -288,6 +290,7 @@ export default {
}
},
{
width:'95',
label: '生成时间',
prop: 'createdDate',
formatter: cellValue => {
......@@ -408,6 +411,7 @@ export default {
}
},
{
width:'95',
label: '生成时间',
prop: 'createdDate',
minWidth: '200',
......@@ -416,6 +420,7 @@ export default {
}
},
{
width:'95',
label: '有效时间',
prop: 'validitDate',
minWidth: '200',
......@@ -487,16 +492,36 @@ export default {
})
},
// 批次界面搜索
selectCollectionTable() {
this.$apis.equityApi.getEquityCardBatchList(this.batchListSearch).then(res => {
this.$refs.batchDetailTable.refreshTable()
})
selectCollectionTable(e) {
if (e == 'reset') {
this.batchDate = ''
this.selectBatchId = ''
this.batchListSearch.merchantName = ''
this.$apis.equityApi.getEquityCardBatchList(this.batchListSearch).then(res => {
this.$refs.batchDetailTable.refreshTable()
})
} else if (e == 'select') {
this.$apis.equityApi.getEquityCardBatchList(this.batchListSearch).then(res => {
this.$refs.batchDetailTable.refreshTable()
})
}
},
// 领用界面搜索
collectionSelect() {
this.$apis.equityApi.getEquityCardCollectionList(this.batchListSearch).then(res => {
this.$refs.collectionTable.refreshTable()
})
collectionSelect(e) {
if (e == 'reset') {
this.collectionListSearch.merchantName = ''
this.collectionListSearch.sn = ''
this.collectionListSearch.startTime = ''
this.collectionListSearch.endTime = ''
this.collectionListSearch.mobile = ''
this.$apis.equityApi.getEquityCardCollectionList(this.batchListSearch).then(res => {
this.$refs.collectionTable.refreshTable()
})
} else if (e == 'select') {
this.$apis.equityApi.getEquityCardCollectionList(this.batchListSearch).then(res => {
this.$refs.collectionTable.refreshTable()
})
}
},
// 批次详情界面搜索
batchdetailSelect() {
......@@ -818,9 +843,6 @@ h2 {
margin-left: 19.5%;
margin-top: 20px;
}
.tableCtn {
margin-top: 10px;
}
.Input {
margin-left: 10px;
}
......@@ -890,18 +912,6 @@ h2 {
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
padding: 10px;
}
.container {
width: 1160px;
height: 100%;
background: #f4f5fa;
padding: 0 20px 20px 40px;
position: absolute;
-webkit-box-sizing: border-box;
box-sizing: border-box;
top: 0;
left: 0;
overflow-y: auto;
}
.followForm {
background: #fff;
padding: 10px;
......@@ -924,6 +934,21 @@ h2 {
.datapicker {
width: 220px;
}
.el-tabs__item {
padding: 0 20px;
height: 40px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
line-height: 40px;
display: inline-block;
list-style: none;
font-size: 14px;
font-weight: 500;
color: #303133;
position: relative;
width: 180px;
text-align: center;
}
</style>
<style src="@a/css/tao.css"></style>
<template>
<div class="container">
<div class="layout">
<div class="box">
<div class="equity-title">汽车权益</div>
<div class="add-box">
<el-button type="primary" size="small" @click="addEquity(1)">添加</el-button>
</div>
<div class="table-box">
<GLTable ref="carTable" :tableParams="carTableParams" :tableData="carTableData" :hasPage="false" :hasNum="false">
<div class="equity-title">商品权益</div>
<div class="tableBox" style="margin-top:16px">
<el-button type="primary" size="small" @click="addEquity(1)"><i class="el-icon-plus"></i><span style="margin-left: 8px">添加汽车权益 </span></el-button>
<div class="tableCtn noneOperation">
<GLTable ref="carTable" :tableParams="carTableParams" :tableData="carTableData" :pageConf="cardsDatail" height="320px">
<div slot="mainPageFlag" slot-scope="scope">
<el-button type="text" @click="carsDisplay(scope.scope)">{{ scope.scope.mainPageFlag == 1 ? '取消首页展示' : '首页展示' }}</el-button>
</div>
......@@ -22,8 +20,8 @@
</GLTable>
</div>
</div>
<div class="box">
<div class="equity-title">商品权益</div>
<div class="tableBox secondBox">
<el-button type="primary" size="small" @click="addEquity(2)"><i class="el-icon-plus"></i><span style="margin-left: 8px">添加门店权益</span></el-button>
<div class="tags-box">
<template v-for="(item, index) in tags">
<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)">
......@@ -33,13 +31,11 @@
</el-tag>
</template>
<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>
</div>
<div class="add-box">
<el-button type="primary" size="small" @click="addEquity(2)">添加</el-button>
<el-button class="addTag" size="small" @click="showAddInput" v-else><i class="el-icon-plus"></i><span style="margin-left: 8px">添加分类</span></el-button>
</div>
<div class="table-box">
<GLTable ref="carTable" :tableParams="goodsTableParams" :tableData="goodsTableData" :hasPage="false" :hasNum="false">
<div class="tableCtn">
<GLTable ref="carTable" :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>
......@@ -50,13 +46,13 @@
<el-button type="text" @click="editEquity(scope.scope, 2)">编辑</el-button>
<el-button type="text" @click="updateShelves(scope.scope, 'goods')">{{ scope.scope.status == 0 ? '上架' : '下架' }}</el-button>
<el-button type="text" @click="setTop(scope.scope.id, 'goods')">置顶</el-button>
<el-button type="text" @click="deletEquity(scope.scope.id)" :disabled="scope.scope.status == 0 ? false: true">删除</el-button>
<el-button type="text" @click="deletEquity(scope.scope.id)" :disabled="scope.scope.status == 0 ? false : true">删除</el-button>
</span>
</GLTable>
</div>
</div>
<equity-dialog :show.sync="showDialog" :type="dialogType" :isEdit.sync="isEdit"></equity-dialog>
</div>
<equity-dialog :show.sync="showDialog" :type="dialogType" :isEdit.sync="isEdit"></equity-dialog>
</div>
</template>
......@@ -67,6 +63,8 @@ export default {
mixins: [carMixin, goodsMixin],
data() {
return {
goodsDatail: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
cardsDatail: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
showDialog: false,
isEdit: false,
dialogType: 1,
......@@ -170,14 +168,16 @@ export default {
<style src="@a/css/tao.css"></style>
<style >
.equity-title {
height: 44px;
line-height: 44px;
background-color: rgb(242, 242, 242);
padding-left: 40px;
font-size: 16px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333333;
line-height: 28px;
}
.add-box,
.tags-box {
padding: 20px 0 10px;
background: #F4F6FC;
border-radius: 4px;
}
.el-tag + .el-tag {
margin-left: 10px;
......@@ -237,19 +237,13 @@ export default {
.tableBtn {
width: 40px;
}
.box {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: transparent;
background: #fff;
padding: 10px;
}
.tableCtn {
.noneOperation {
margin-top: 20px;
}
.fixedHeight {
height: 45px;
}
.secondBox{
margin-top: 50px;
}
</style>
\ No newline at end of file
......@@ -171,7 +171,6 @@ export default {
}
]
},
params: {}
}
},
mounted() {
......
<!-- -->
<template>
<div class="contianer">
<div class="topline">
<div class="button">
<el-button type="primary" @click="addCard('true')" size="small">新建权益卡</el-button>
<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="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" >
<el-option v-for="(item, index) in options" :key="index" :label="item.merchantName" :value="item.merchantName"></el-option>
</el-select>
<div class="operationBtn">
<el-button plain size="small" class="selectBtn" @click="selectStore('reset')">重置</el-button>
<el-button type="primary" size="small" style="margin-left: 20px" class="selectBtn" @click="selectStore('select')">搜索</el-button>
</div>
</div>
<el-select size="small" v-model="searchForm.merchantName" filterable remote reserve-keyword placeholder="请输入关联门店" :remote-method="remoteMethod" :loading="loading" clearable>
<el-option v-for="(item, index) in options" :key="index" :label="item.merchantName" :value="item.merchantName"></el-option>
</el-select>
<!-- <el-select
v-model="searchForm.merchantName"
filterable
placeholder="请选择门店"
>
<el-option
v-for="(item,index) in storeOptions"
:key="index"
:label="item.name"
:value="item.name"
>
</el-option>
</el-select> -->
<div class="buttonContainer">
<el-button :id="tableParams.btnId" type="primary" icon="el-icon-search" size="small">搜索</el-button>
<div class="tableCtn">
<GLTable ref="recordTable" :searchForm="searchForm" :tableParams="tableParams" :getListApi="getListApi" :pageConf="pageConf">
<span slot="auth-button" slot-scope="scope" :data="scope.scope">
<el-button type="text" @click="edit(scope.scope)" class="tableBtn" size="small">编辑</el-button>
<el-button type="text" :disabled="scope.scope.tryAble == 0 ? true : false" @click="extension(scope.scope)" class="tableBtn" size="small">推广</el-button>
<el-button type="text" @click="copy(scope.scope)" class="tableBtn" size="small">复制</el-button>
</span>
</GLTable>
</div>
</div>
<div class="tableCtn">
<d2-table ref="recordTable" :searchForm="searchForm" :tableParams="tableParams" :getListApi="getListApi">
<span slot="auth-button" slot-scope="scope" :data="scope.scope">
<el-button type="text" @click="edit(scope.scope)" class="tableBtn" size="small">编辑</el-button>
<el-button type="text" :disabled="scope.scope.tryAble == 0 ? true : false" @click="extension(scope.scope)" class="tableBtn" size="small">推广</el-button>
<el-button type="text" @click="copy(scope.scope)" class="tableBtn" size="small">复制</el-button>
</span>
</d2-table>
</div>
<!-- 推广弹窗 -->
<el-dialog :title="title" :visible.sync="isVisible" :before-close="handleClose" :close-on-click-modal="false" width="580px">
<el-form :model="editForm" :rules="rules" ref="ruleForm" label-width="68px">
......@@ -66,8 +59,8 @@
<!-- 基础表单 -->
<div class="baseinformation"><span class="titleText">基本信息</span></div>
<div class="form">
<el-form-item label="名称:" prop="cardClassName" style="width: 30%" id="name">
<el-input v-model="ruleForm.cardClassName" maxlength="15" type="text" size="mini"></el-input>
<el-form-item label="名称:" prop="cardClassName" id="name">
<el-input v-model="ruleForm.cardClassName" maxlength="15" type="text" size="small" class="dialogInput"></el-input>
</el-form-item>
<el-form-item label="卡片样式:" prop="backgroundImage">
<div class="imageList">
......@@ -77,7 +70,7 @@
</div>
</el-form-item>
<el-form-item label="渠道门店:" prop="merchantName">
<el-select v-model="ruleForm.merchantName" filterable remote reserve-keyword placeholder="请输入关联门店" :remote-method="generateRemoteMethod" :loading="loading" :disabled="disableSelect">
<el-select 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>
......@@ -89,21 +82,6 @@
<el-input-number v-model="effectiveNum" controls-position="right" :min="1" :max="999" id="month" :disabled="ruleForm.effectiveType !== '2'" size="mini" change=""></el-input-number>
天内有效
</el-radio>
<!-- <el-radio
label=""
@change="e => controlSwitch(e, 'data')"
>
<el-date-picker
v-model="data"
type="daterange"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
:disabled="dataSwitch"
size="mini"
>
</el-date-picker>
</el-radio> -->
</el-radio-group>
</el-form-item>
<el-form-item label="权益商品编码:" prop="">
......@@ -165,6 +143,7 @@ function date_format(date) {
export default {
data() {
return {
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
hasTryNum: '',
value: false,
downloadFilename: '',
......@@ -517,6 +496,19 @@ export default {
this.ruleForm.effectiveNum = this.effectiveNum
}
},
//门店搜索
selectStore(e) {
if (e == 'reset') {
this.searchForm.merchantName = ''
this.$apis.equityApi.getEquityCardList(this.searchForm).then(res => {
this.$refs.recordTable.refreshTable()
})
} else if (e == 'select') {
this.$apis.equityApi.getEquityCardList(this.searchForm).then(res => {
this.$refs.recordTable.refreshTable()
})
}
},
//提交验证
submitForm(formName) {
this.$refs[formName].validate(valid => {
......@@ -541,6 +533,7 @@ export default {
console.log(apiName)
//请求是否成功
if (res.code == 0) {
this.value = false
this.dialogVisible = false
this.effectiveNum = ''
this.isAdd = false
......@@ -581,6 +574,7 @@ export default {
})
},
resetForm(formName) {
this.value = false
this.dialogVisible = false
this.effectiveNum = ''
this.isAdd = false
......@@ -593,6 +587,7 @@ export default {
}
}
</script>
<style src="@a/css/tao.css/"></style>
<style>
* {
padding: 0;
......@@ -671,10 +666,10 @@ export default {
}
.imgCtn {
background: rgb(240, 240, 240);
width: 170px;
width: 300px;
text-align: center;
padding: 10px;
height: 80px;
height: 100px;
margin-right: 20px;
}
.imgBg {
......@@ -683,14 +678,11 @@ export default {
.topline {
display: flex;
flex-direction: row;
margin-left: 20px;
margin-top: 20px;
text-align: center;
align-items: center;
}
.button {
margin-right: 40px;
}
.buttonContainer {
margin-left: 40px;
margin-left: 20px;
}
/* .el-dialog__headerbtn {
display: none;
......@@ -726,11 +718,21 @@ export default {
color: #8c939d;
}
.lineCtn {
display: flex;
flex-direction: row;
display: flex;
flex-direction: row;
}
.tableBtn {
width: 40px;
}
.selectStore {
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #4c4c4c;
line-height: 20px;
}
.dialogInput{
width: 320px;
}
</style>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!