Commit 7e376bf5 by zhangquan

开发完成

1 parent 4853b3d2
<!-- 编辑分类 -->
<template>
<div class="edit-classify microStore edit-box">
<div class="container edit-container">
<p class="edit-title">订单信息</p>
<glsx-combi-form class="edit-form-container m-r-20" ref="editFormRef1" :isEdit="isEdit" :isBlock="false" :formObj="editForm" :formData="editFormData1"></glsx-combi-form>
</div>
<div class="container edit-container">
<p class="edit-title">佣金信息</p>
<glsx-combi-form class="edit-form-container m-r-20" ref="editFormRef2" :isEdit="isEdit" :isBlock="false" :formObj="editForm" :formData="editFormData2"></glsx-combi-form>
</div>
<div class="container edit-container">
<p class="edit-title">商品信息</p>
<glsx-combi-form class="edit-form-container m-r-20" ref="editFormRef3" :isEdit="isEdit" :isBlock="false" :formObj="editForm" :formData="editFormData3">
<div slot="imgSlot">
<el-image class="imgSlot" :preview-src-list="[scope]" src="https://gimg3.baidu.com/search/src=http%3A%2F%2Fpics6.baidu.com%2Ffeed%2Fd62a6059252dd42abe22d3d568f831b8c8eab8f2.jpeg%40f_auto%3Ftoken%3Db0ba9ca5fc7991ddf388c82af140a858&refer=http%3A%2F%2Fwww.baidu.com&app=2021&size=f360,240&n=0&g=0n&q=75&fmt=auto?sec=1705683600&t=4fc0d28cdc5cf1c92f84c39a144d3276"></el-image>
</div>
</glsx-combi-form>
</div>
</div>
</template>
<script>
export default {
name: 'bonusDetail',
data() {
return {
size: 'small',
isEdit: true,
editForm: {
classifyName: '',
title: 'safffffffffffffffffffffff'
},
editFormData1: [
{
label: '订单编号',
name: 'classifyName',
type: 'showTxt'
},
{
label: '订单时间',
name: 'title',
type: 'showTxt'
},
{
label: '客户姓名',
name: 'title',
type: 'showTxt'
},
{
label: '客户手机号',
name: 'title',
type: 'showTxt'
},
{
label: '门店信息',
name: 'title',
type: 'showTxt'
},
{
label: '支付总价/元',
name: 'title',
type: 'showTxt'
}
],
editFormData2: [
{
label: '佣金金额/元',
name: 'classifyName',
type: 'showTxt'
},
{
label: '佣金归属人',
name: 'title',
type: 'showTxt'
}
],
editFormData3: [
{
label: '商品图片',
name: 'classifyName',
addHtml: 'imgSlot'
},
{
label: '商品名称',
name: 'title',
type: 'showTxt'
},
{
label: '商品数量',
name: 'title',
type: 'showTxt'
}
]
}
},
mounted() {
this.routeInfo = this.$route.query
},
methods: {}
}
</script>
<style scoped lang="scss">
.imgSlot {
width: 36px;
height: 36px;
}
</style>
<template>
<div class="main-wrap">
<GLCombiForm ref="talentManageSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="exportBtn">
<el-button :size="size" @click="handleExport" class="default-blue-btn" type="default">导出</el-button>
</div>
<GLTable ref="talentManageRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div slot="statusSlot" slot-scope="scope">
<span :class="['circle', { isOpen: scope.scope.cashBackValue == 7 }]"></span>
<span>{{ scope.scope.bizRelName }}</span>
</div>
<div slot="operateSlot" slot-scope="scope">
<el-button type="text" @click="viewDetailFn(scope.scope)">查看</el-button>
</div>
</GLTable>
</div>
</template>
<script>
import { exportFn } from '@/common/constant'
export default {
name: 'index',
data() {
return {
size: 'small',
searchForm: {
name: '',
customerPhone: '',
createDate: '',
orderType: '',
publishDate: ''
},
searchFormData: [
{
label: '订单编号',
name: 'name',
type: 'input'
},
{
label: '订单日期',
name: 'createDate',
type: 'datePicker',
isClear: true,
pickerOptions: 'beforeRangePickerOptions'
},
{
label: '客户信息',
name: 'name',
type: 'input'
},
{
label: '佣金归属人',
name: 'name',
type: 'input'
}
],
getListApi: this.$apis.pointWriteOff.payPointsListApi,
tableParams: {
listName: 'list',
tableOption: false,
tableColumns: [
{
label: '订单编号',
prop: 'bizRelName',
line: 1
},
{
label: '订单时间',
prop: 'bizRelName'
},
{
label: '客户姓名',
prop: 'bizRelName'
},
{
label: '客户手机号',
prop: 'integralValue'
},
{
label: '佣金金额/元',
prop: 'integralValue'
},
{
label: '支付总价/元',
prop: 'integralValue'
},
{
label: '门店信息',
prop: 'customerPhone'
},
{
label: '佣金归属人',
prop: 'customerWechatName'
},
{
label: '归属人电话',
addHtml: 'statusSlot'
},
{
label: '操作',
addHtml: 'operateSlot',
width: 130
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' }
}
},
mounted() {},
methods: {
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
if (this.searchForm.createDate?.length) {
params.createdDateBegin = new Date(this.searchForm.createDate[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00'
params.createdDateEnd = new Date(this.searchForm.createDate[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59'
}
delete params.createDate
return params
},
handleReset() {
this.searchForm = {
ruleType: 'TRANSFER_OUT',
customerName: '',
customerPhone: '',
merchantId: this.searchForm.merchantId,
createDate: '',
batchNo: '',
policyNo: ''
}
this.handleSearch()
},
handleSearch() {
this.$refs.talentManageRef.refreshTable()
},
beforeSearchFn() {
return new Promise(resolve => {
this.searchForm = this.getParams()
resolve()
})
},
handleExport() {
var params = this.getParams()
this.$apis.pointWriteOff.payPointsExportApi(params).then(res => {
exportFn(res)
})
},
viewDetailFn() {
this.$router.push({
path: '/bonusManage/detail',
query: {}
})
}
}
}
</script>
<style lang="scss" scoped>
.main-wrap {
background-color: #fff;
padding: 20px;
}
.circle {
display: inline-block;
width: 6px;
height: 6px;
background: #999;
border-radius: 4px;
vertical-align: middle;
margin-right: 8px;
}
.isOpen {
background: #2cca74;
}
.exportBtn {
float: right;
margin-bottom: 10px;
}
</style>
<!-- 编辑分类 -->
<template>
<div class="edit-classify microStore edit-box">
<div class="container edit-container">
<p class="edit-title">查看</p>
<glsx-combi-form class="edit-form-container m-r-20" ref="editFormRef" :isEdit="isEdit" :isBlock="true" :formObj="editForm" :formData="editFormData">
<div slot="imgListSlot" slot-scope="scope">
<el-image class="img" :preview-src-list="[scope]" v-for="item in 9" :key="item" src="https://gimg3.baidu.com/search/src=http%3A%2F%2Fpics6.baidu.com%2Ffeed%2Fd62a6059252dd42abe22d3d568f831b8c8eab8f2.jpeg%40f_auto%3Ftoken%3Db0ba9ca5fc7991ddf388c82af140a858&refer=http%3A%2F%2Fwww.baidu.com&app=2021&size=f360,240&n=0&g=0n&q=75&fmt=auto?sec=1705683600&t=4fc0d28cdc5cf1c92f84c39a144d3276"></el-image>
</div>
</glsx-combi-form>
<div class="example-wrap">
<div class="content-wrap">
<el-carousel :autoplay="false" :interval="5000" arrow="always">
<el-carousel-item v-for="item in 9" :key="item">
<img class="swiper-item" src="https://gimg3.baidu.com/search/src=http%3A%2F%2Fpics6.baidu.com%2Ffeed%2Fd62a6059252dd42abe22d3d568f831b8c8eab8f2.jpeg%40f_auto%3Ftoken%3Db0ba9ca5fc7991ddf388c82af140a858&refer=http%3A%2F%2Fwww.baidu.com&app=2021&size=f360,240&n=0&g=0n&q=75&fmt=auto?sec=1705683600&t=4fc0d28cdc5cf1c92f84c39a144d3276" />
</el-carousel-item>
</el-carousel>
<div class="title">中秋月·悦团圆 同悦·共此时中秋月饼礼盒中秋月·悦团圆 同悦·共此时中秋月饼礼盒中秋月·悦团圆 同悦·共此时中秋月饼礼盒中秋月·悦团圆 同悦·共此时中秋月饼礼盒</div>
<div class="price">
<span class="sign">¥</span>
<span>499</span>
</div>
</div>
<img class="phone-bg" :src="require('@/assets/phone-bg.png')" alt="" />
</div>
</div>
</div>
</template>
<script>
export default {
name: 'contentDetail',
data() {
return {
size: 'small',
isEdit: true,
editForm: {
classifyName: '',
title: 'safffffffffffffffffffffff'
},
editFormData: [
{
label: '上传图片',
name: 'classifyName',
addHtml: 'imgListSlot'
},
{
label: '标题',
name: 'title',
type: 'showTxt'
}
]
}
},
mounted() {
this.routeInfo = this.$route.query
},
methods: {}
}
</script>
<style scoped lang="scss">
.container {
height: calc(100vh - 118px);
min-height: 800px;
}
.img {
width: 104px;
height: 104px;
border-radius: 4px;
margin-right: 8px;
}
.example-wrap {
width: 282px;
height: 558px;
top: 200px;
position: absolute;
right: 36px;
.content-wrap {
position: absolute;
top: 73px;
left: 50%;
transform: translateX(-50%);
z-index: 5;
/deep/ .el-carousel__container {
height: 250px;
width: 250px;
overflow: hidden;
}
/deep/ .el-carousel__indicator--horizontal {
padding: 12px 0;
.el-carousel__button {
width: 10px;
}
}
.swiper-item {
height: 250px;
width: 250px;
}
.title {
font-weight: 600;
font-size: 12px;
color: #282829;
padding: 10px 10px 4px;
}
.price {
padding: 0 10px;
font-weight: 700;
font-size: 20px;
color: #fc5b32;
line-height: 28px;
.sign {
font-size: 12px;
}
}
}
.phone-bg {
position: absolute;
left: 0;
top: 0;
bottom: 0;
right: 0;
width: 100%;
height: 100%;
}
}
</style>
<template>
<div class="main-wrap">
<GLCombiForm ref="talentManageSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="exportBtn">
<el-button :size="size" @click="handleExport" class="default-blue-btn" type="default">导出</el-button>
</div>
<GLTable ref="talentManageRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div slot="statusSlot" slot-scope="scope">
<span :class="['circle', { isOpen: scope.scope.cashBackValue == 7 }]"></span>
<span>{{ scope.scope.bizRelName }}</span>
</div>
<div slot="operateSlot" slot-scope="scope">
<el-button type="text" @click="changeStatusFn(scope.scope)">{{ scope.scope.cashBackValue == 7 ? '撤回' : '发布' }}</el-button>
<el-button type="text" @click="viewDetailFn(scope.scope)">查看</el-button>
</div>
</GLTable>
</div>
</template>
<script>
import { exportFn } from '@/common/constant'
export default {
name: 'index',
data() {
return {
size: 'small',
searchForm: {
name: '',
customerPhone: '',
createDate: '',
orderType: '',
publishDate: ''
},
searchFormData: [
{
label: '名称',
name: 'name',
type: 'input'
},
{
label: '手机号',
name: 'customerPhone',
isClear: true,
type: 'input'
},
{
label: '状态',
name: 'orderType',
type: 'select',
optionList: [
{
dictValue: '',
dictLabel: '全部'
},
{
dictValue: '1',
dictLabel: '已发布'
},
{
dictValue: '2',
dictLabel: '未发布'
}
],
optionId: 'dictValue',
optionLabel: 'dictLabel'
},
{
label: '提交日期',
name: 'createDate',
type: 'datePicker',
isClear: true,
pickerOptions: 'beforeRangePickerOptions'
},
{
label: '发布日期',
name: 'publishDate',
type: 'datePicker',
isClear: true,
pickerOptions: 'beforeRangePickerOptions'
}
],
getListApi: this.$apis.pointWriteOff.payPointsListApi,
tableParams: {
listName: 'list',
tableOption: false,
tableColumns: [
{
label: '内容标题',
prop: 'bizRelName',
line: 1
},
{
label: '分类',
prop: 'bizRelName'
},
{
label: '名称',
prop: 'bizRelName'
},
{
label: '手机号',
prop: 'integralValue'
},
{
label: '分类名称',
prop: 'integralValue'
},
{
label: '提交日期',
prop: 'customerPhone'
},
{
label: '发布日期',
prop: 'customerWechatName'
},
{
label: '状态',
addHtml: 'statusSlot'
},
{
label: '操作',
addHtml: 'operateSlot',
width: 130
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' }
}
},
mounted() {},
methods: {
changeStatusFn(e, row) {
console.log(e, row)
const _tipWord = e == 2 ? '发布' : '撤回'
this.$confirm(`请确认是否${_tipWord}此内容?`, _tipWord, {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
callback: action => {
if (action == 'confirm') {
this.$message.success(`${_tipWord}成功`)
this.handleSearch()
}
}
})
},
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
if (this.searchForm.createDate?.length) {
params.createdDateBegin = new Date(this.searchForm.createDate[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00'
params.createdDateEnd = new Date(this.searchForm.createDate[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59'
}
delete params.createDate
return params
},
handleReset() {
this.searchForm = {
ruleType: 'TRANSFER_OUT',
customerName: '',
customerPhone: '',
merchantId: this.searchForm.merchantId,
createDate: '',
batchNo: '',
policyNo: ''
}
this.handleSearch()
},
handleSearch() {
this.$refs.talentManageRef.refreshTable()
},
beforeSearchFn() {
return new Promise(resolve => {
this.searchForm = this.getParams()
resolve()
})
},
handleExport() {
var params = this.getParams()
this.$apis.pointWriteOff.payPointsExportApi(params).then(res => {
exportFn(res)
})
},
viewDetailFn() {
this.$router.push({
path: '/contentManage/detail',
query: {}
})
}
}
}
</script>
<style lang="scss" scoped>
.main-wrap {
background-color: #fff;
padding: 20px;
}
.circle {
display: inline-block;
width: 6px;
height: 6px;
background: #999;
border-radius: 4px;
vertical-align: middle;
margin-right: 8px;
}
.isOpen {
background: #2cca74;
}
.exportBtn {
float: right;
margin-bottom: 10px;
}
</style>
<template>
<div class="main-wrap">
<GLCombiForm ref="talentManageSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="exportBtn">
<el-button :size="size" @click="handleExport" class="default-blue-btn" type="default">导出</el-button>
</div>
<GLTable ref="talentManageRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div slot="statusSlot" slot-scope="scope">
<span :class="['circle', { isOpen: scope.scope.cashBackValue == 7 }]"></span>
<span>{{ scope.scope.bizRelName }}</span>
</div>
<div slot="operateSlot" slot-scope="scope">
<el-button type="text" @click="viewDetailFn(scope.scope)">查看</el-button>
</div>
</GLTable>
</div>
</template>
<script>
import { exportFn } from '@/common/constant'
export default {
name: 'index',
data() {
return {
size: 'small',
searchForm: {
name: '',
customerPhone: '',
createDate: '',
orderType: '',
publishDate: ''
},
searchFormData: [
{
label: '订单编号',
name: 'name',
type: 'input'
},
{
label: '订单日期',
name: 'createDate',
type: 'datePicker',
isClear: true,
pickerOptions: 'beforeRangePickerOptions'
},
{
label: '客户信息',
name: 'name',
type: 'input'
},
{
label: '佣金归属人',
name: 'name',
type: 'input'
}
],
getListApi: this.$apis.pointWriteOff.payPointsListApi,
tableParams: {
listName: 'list',
tableOption: false,
tableColumns: [
{
label: '订单编号',
prop: 'bizRelName',
line: 1
},
{
label: '订单时间',
prop: 'bizRelName'
},
{
label: '客户姓名',
prop: 'bizRelName'
},
{
label: '客户手机号',
prop: 'integralValue'
},
{
label: '佣金金额/元',
prop: 'integralValue'
},
{
label: '支付总价/元',
prop: 'integralValue'
},
{
label: '门店信息',
prop: 'customerPhone'
},
{
label: '佣金归属人',
prop: 'customerWechatName'
},
{
label: '归属人电话',
addHtml: 'statusSlot'
},
{
label: '操作',
addHtml: 'operateSlot',
width: 130
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' }
}
},
mounted() {},
methods: {
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
if (this.searchForm.createDate?.length) {
params.createdDateBegin = new Date(this.searchForm.createDate[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00'
params.createdDateEnd = new Date(this.searchForm.createDate[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59'
}
delete params.createDate
return params
},
handleReset() {
this.searchForm = {
ruleType: 'TRANSFER_OUT',
customerName: '',
customerPhone: '',
merchantId: this.searchForm.merchantId,
createDate: '',
batchNo: '',
policyNo: ''
}
this.handleSearch()
},
handleSearch() {
this.$refs.talentManageRef.refreshTable()
},
beforeSearchFn() {
return new Promise(resolve => {
this.searchForm = this.getParams()
resolve()
})
},
handleExport() {
var params = this.getParams()
this.$apis.pointWriteOff.payPointsExportApi(params).then(res => {
exportFn(res)
})
},
viewDetailFn() {
this.$router.push({
path: '/contentManage/detail',
query: {}
})
}
}
}
</script>
<style lang="scss" scoped>
.main-wrap {
background-color: #fff;
padding: 20px;
}
.circle {
display: inline-block;
width: 6px;
height: 6px;
background: #999;
border-radius: 4px;
vertical-align: middle;
margin-right: 8px;
}
.isOpen {
background: #2cca74;
}
.exportBtn {
float: right;
margin-bottom: 10px;
}
</style>
<template>
<div class="main-wrap">
<GLCombiForm ref="talentManageSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="exportBtn">
<el-button :size="size" @click="handleExport" class="default-blue-btn" type="default">导出</el-button>
</div>
<GLTable ref="talentManageRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div slot="statusSlot" slot-scope="scope">
<span :class="['circle', { isOpen: scope.scope.cashBackValue == 7 }]"></span>
<span>{{ scope.scope.bizRelName }}</span>
</div>
<div slot="operateSlot" slot-scope="scope">
<el-switch v-value="switchStatus" @change="changeStatusFn($event, scope.scope)" :active-value="1" :inactive-value="2"></el-switch>
</div>
</GLTable>
</div>
</template>
<script>
import { exportFn } from '@/common/constant'
export default {
name: 'index',
data() {
return {
size: 'small',
switchStatus: 1,
searchForm: {
name: '',
customerPhone: '',
createDate: ''
},
searchFormData: [
{
label: '名称',
name: 'name',
type: 'input'
},
{
label: '提交日期',
name: 'createDate',
type: 'datePicker',
isClear: true,
pickerOptions: 'beforeRangePickerOptions'
},
{
label: '手机号',
name: 'customerPhone',
isClear: true,
type: 'input'
}
],
getListApi: this.$apis.pointWriteOff.payPointsListApi,
tableParams: {
listName: 'list',
tableOption: false,
tableColumns: [
{
label: '名称',
prop: 'bizRelName'
},
{
label: '手机号',
prop: 'integralValue'
},
{
label: '楼栋',
prop: 'customerWechatName'
},
{
label: '提交日期',
prop: 'customerPhone',
line: 1
},
{
label: '状态',
addHtml: 'statusSlot'
},
{
label: '操作',
addHtml: 'operateSlot',
width: 100
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' }
}
},
mounted() {},
methods: {
changeStatusFn(e, row) {
console.log(e, row)
const _tipWord = e == 2 ? '停用' : '启用'
this.$confirm(`请确认是否${_tipWord}此达人账号?`, _tipWord, {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
callback: action => {
if (action == 'confirm') {
this.$message.success(`${_tipWord}成功`)
this.handleSearch()
}
}
})
},
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
if (this.searchForm.createDate?.length) {
params.createdDateBegin = new Date(this.searchForm.createDate[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00'
params.createdDateEnd = new Date(this.searchForm.createDate[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59'
}
delete params.createDate
return params
},
handleReset() {
this.searchForm = {
ruleType: 'TRANSFER_OUT',
customerName: '',
customerPhone: '',
merchantId: this.searchForm.merchantId,
createDate: '',
batchNo: '',
policyNo: ''
}
this.handleSearch()
},
handleSearch() {
this.$refs.talentManageRef.refreshTable()
},
beforeSearchFn() {
return new Promise(resolve => {
this.searchForm = this.getParams()
resolve()
})
},
handleExport() {
var params = this.getParams()
this.$apis.pointWriteOff.payPointsExportApi(params).then(res => {
exportFn(res)
})
}
}
}
</script>
<style lang="scss" scoped>
.main-wrap {
background-color: #fff;
padding: 20px;
}
.circle {
display: inline-block;
width: 6px;
height: 6px;
background: #999;
border-radius: 4px;
vertical-align: middle;
margin-right: 8px;
}
.isOpen {
background: #2cca74;
}
.exportBtn {
float: right;
margin-bottom: 10px;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!