Commit 5aec3330 by zhouzy

1

1 parent f6bc542f
...@@ -273,4 +273,19 @@ img { ...@@ -273,4 +273,19 @@ 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">
<span class="titleDialogText">{{ type == 1 ? '添加汽车权益' : '添加商品权益' }}</span>
</div>
<div class="form">
<el-form class="equityForm" :model="form" :rules="rules" ref="ruleForm" label-position="right" label-width="auto">
<el-form-item v-if="type == 1" label="服务提供方" prop="supplier"> <el-form-item v-if="type == 1" label="服务提供方" prop="supplier">
<el-select v-model="form.supplier" @change="changeSupplier"> <el-select v-model="form.supplier" @change="changeSupplier" size="small">
<el-option v-for="item in supplierList" :key="item.value" :label="item.label" :value="item.value"></el-option> <el-option v-for="item in supplierList" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<template v-if="type == 2"> <template v-if="type == 2">
<el-form-item label="产品提供方" prop="supplier"> <el-form-item label="产品提供方" prop="supplier">
<el-select v-model="form.supplier"> <el-select v-model="form.supplier" size="small">
<el-option label="海威" value="HW"></el-option> <el-option label="海威" value="HW"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="选择品牌" prop="brandName"> <el-form-item label="选择品牌" prop="brandName">
<el-select v-model="form.brandName" @change="changeBrandName" filterable> <el-select v-model="form.brandName" @change="changeBrandName" filterable size="small">
<el-option v-for="item in brandList" :key="item.brandName" :value="item.brandName" :label="item.brandName"></el-option> <el-option v-for="item in brandList" :key="item.brandName" :value="item.brandName" :label="item.brandName"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="商品形态" prop="appearance" v-if="form.brandName"> <el-form-item label="商品形态" prop="appearance" v-if="form.brandName">
<el-select v-model="form.appearance"> <el-select v-model="form.appearance" size="small">
<el-option v-for="item in appearanceList" :key="item.appearance" :value="item.label" :label="item.label"></el-option> <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>
<div class="flex"> <div class="flex">
<el-form-item label="权益名称" prop="equityName"> <el-form-item label="权益名称" prop="equityName">
<el-input v-model="form.equityName" :maxlength="type == 1 ? 8 : 6"></el-input> <el-input size="small" v-model="form.equityName" :maxlength="type == 1 ? 8 : 6" placeholder="请输入权益名称"></el-input>
</el-form-item> </el-form-item>
</div> </div>
<div class="flex"> <div class="flex">
<el-form-item label="描述" prop="equityDesc"> <el-form-item label="描述" prop="equityDesc">
<el-input v-model="form.equityDesc" :maxlength="type == 1 ? 8 : 6"></el-input> <el-input size="small" v-model="form.equityDesc" :maxlength="type == 1 ? 8 : 6" placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
</div> </div>
<div> <div>
...@@ -40,9 +44,11 @@ ...@@ -40,9 +44,11 @@
<img v-if="form.equityIcon" :src="form.equityIcon" class="avatar" /> <img v-if="form.equityIcon" :src="form.equityIcon" class="avatar" />
<i v-else class="el-icon-plus avatar-uploader-icon"></i> <i v-else class="el-icon-plus avatar-uploader-icon"></i>
</el-upload> </el-upload>
<div class="suggestion">建议尺寸:80*80像素,支持jpg,png。</div>
</el-form-item> </el-form-item>
</div> </div>
</el-form> </el-form>
</div>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<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>
...@@ -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;
...@@ -242,15 +249,14 @@ export default { ...@@ -242,15 +249,14 @@ export default {
border-radius: 6px; border-radius: 6px;
cursor: pointer; cursor: pointer;
position: relative; position: relative;
width: 80px; width: 100px;
height: 80px; height: 100px;
margin-left: 80px;
} }
.avatar-uploader-icon { .avatar-uploader-icon {
font-size: 28px; font-size: 28px;
color: #8c939d; color: #8c939d;
width: 80px; width: 100px;
height: 80px; height: 100px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
...@@ -260,4 +266,48 @@ export default { ...@@ -260,4 +266,48 @@ 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;
}
</style> </style>
\ No newline at end of file \ No newline at end of file
<!--批次管理--> <!--批次管理-->
<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-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 }}
...@@ -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-row>
<el-form-item label="关联门店:" prop="merchantName"> <el-form-item label="关联门店:" prop="merchantName">
<el-select v-model="generateRightCardsForm.merchantName" clearable filterable remote reserve-keyword placeholder="请输入关联门店" :remote-method="generateRemoteMethod" :loading="loading" size="small" style="width:423px"> <el-select v-model="generateRightCardsForm.merchantName" clearable filterable remote reserve-keyword placeholder="请输入关联门店" :remote-method="generateRemoteMethod" :loading="loading" size="small">
<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>
<el-form-item label="新建张数:" prop="num" style="width: 100%" class="dialogItem"> </el-row>
<el-row>
<el-form-item label="新建张数:" prop="num">
<div class="dialogLine"> <div class="dialogLine">
<el-input-number :min="1" v-model="generateRightCardsForm.num" size="mini"></el-input-number> <el-input-number :min="1" v-model="generateRightCardsForm.num" size="mini"></el-input-number>
<span style="margin-left: 1px">张</span> <span style="margin-left: 1px">张</span>
</div> </div>
</el-form-item> </el-form-item>
</el-row>
<el-form-item label="备注" prop="remarks" style="width: 80%" class="dialogItem"> <el-row>
<el-input type="textarea" v-model="generateRightCardsForm.remarks" maxlength="200"></el-input> <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-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>
...@@ -677,6 +682,14 @@ export default { ...@@ -677,6 +682,14 @@ export default {
}) })
}, },
handleClick(tab, event) { 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 = [] this.options = []
}, },
handleChange(value) {}, handleChange(value) {},
...@@ -747,7 +760,7 @@ export default { ...@@ -747,7 +760,7 @@ export default {
} }
} }
</script> </script>
<style scoped> <style>
* { * {
padding: 0; padding: 0;
margin: 0; margin: 0;
...@@ -857,7 +870,7 @@ h2 { ...@@ -857,7 +870,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 {
...@@ -865,13 +878,10 @@ h2 { ...@@ -865,13 +878,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;
...@@ -930,8 +940,25 @@ h2 { ...@@ -930,8 +940,25 @@ h2 {
overflow: hidden; overflow: hidden;
margin-left: 40px; margin-left: 40px;
} }
.el-tabs--card>.el-tabs__header { .el-tabs--card > .el-tabs__header {
border-bottom: 0px; 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>
...@@ -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="tagsCtn">
<div class="tags-box"> <div class="tags-box">
<template v-for="(item, index) in tags"> <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)"> <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">
<i class="del el-icon-error" @click.stop="categoryDelete(item.id)"></i> <i class="del el-icon-error" @click.stop="categoryDelete(item.id)"></i>
{{ item.goodsCategory }} {{ item.goodsCategory }}
<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> <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>
</el-tag> </el-tag>
</template> </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>
...@@ -186,15 +188,23 @@ export default { ...@@ -186,15 +188,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;
width: auto;
} }
.tags-box.el-tag { .tags-box {
background: #fff; padding: 2px 42px 2px 2px;
border: 1px solid #5850ff; 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;
...@@ -245,12 +255,6 @@ export default { ...@@ -245,12 +255,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;
} }
...@@ -269,4 +273,9 @@ export default { ...@@ -269,4 +273,9 @@ export default {
right: 0; right: 0;
background-color: #fff; background-color: #fff;
} }
.tagsCtn {
display: flex;
flex-direction: row;
margin-top: 18px;
}
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -52,9 +52,9 @@ ...@@ -52,9 +52,9 @@
</el-dialog> </el-dialog>
<!-- 新建权益卡弹窗 --> <!-- 新建权益卡弹窗 -->
<el-dialog title="" :visible.sync="dialogVisible" width="958px"> <el-dialog title="" :visible.sync="dialogVisible" width="958px">
<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="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" placeholder="请输入" ></el-input> <el-input v-model="ruleForm.cardClassName" maxlength="15" type="text" size="small" placeholder="请输入" ></el-input>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!