Commit f7c597c1 by 胡悦

Merge branch 'v1.0.1' of http://192.168.3.233:8090/saas/scrm-micro-marketing into v1.0.1

2 parents b79e5d0e 173a4efe
This diff could not be displayed because it is too large.
......@@ -13,7 +13,7 @@
"el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-components": "^1.2.6",
"glsx-components": "^1.2.8",
"lodash": "^4.17.21",
"vue": "^2.6.10",
"vue-router": "^3.1.3",
......
......@@ -48,16 +48,16 @@ export default {
data() {
return {
size: 'small',
title: '新增分类',
title: '新建分类',
titleObj: {
1: '新增分类',
1: '新建分类',
2: '编辑分类'
},
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef',
routeInfo: {
// 1-新增;2-编辑;3-查看
// 1-新建;2-编辑;3-查看
addOrEdit: 1,
id: ''
},
......@@ -118,7 +118,7 @@ export default {
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.routeInfo = this.$route.params
this.routeInfo = this.$route.query
this.title = this.titleObj[this.routeInfo.addOrEdit]
this.routeInfo.addOrEdit != 1 ? this.getInfo() : ''
},
......
......@@ -2,7 +2,8 @@
<template>
<div class="marketing p-t-20">
<div class="m-b-20">
<el-button :size="size" type="primary" class="el-icon-plus" @click="handleEdit(1)">新增分类</el-button>
<!-- <el-button :size="size" type="primary" class="el-icon-plus" @click="handleEdit(1)">新建分类</el-button> -->
<GLButton :size="size" type="primary" fn="新建分类" class="el-icon-plus" @click="handleEdit(1)">新建分类</GLButton>
</div>
<div class="container">
<div>
......@@ -17,7 +18,8 @@
<!-- 表格区域 开始 -->
<GLTable ref="classifyRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleEdit(2, scope.scope)">编辑</el-button>
<!-- <el-button type="text" @click="handleEdit(2, scope.scope)">编辑</el-button> -->
<GLButton type="text" fn="编辑" @click="handleEdit(2, scope.scope)">编辑</GLButton>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button>
<el-button type="text" @click="handleTop(scope.scope)">置顶</el-button>
</div>
......@@ -122,9 +124,18 @@ export default {
}
})
},
// 1-新增;2-编辑
// 1-新建;2-编辑
handleEdit(addOrEdit, row) {
addOrEdit == 1 ? this.$router.push('/classifyList/editClassify/' + addOrEdit) : this.$router.push('/classifyList/editClassify/' + addOrEdit + '/' + row.id)
// addOrEdit == 1 ? this.$router.push('/classifyList/editClassify/' + addOrEdit) : this.$router.push('/classifyList/editClassify/' + addOrEdit + '/' + row.id)
var params = {
addOrEdit: addOrEdit,
$title:encodeURI(addOrEdit == 1 ? '新建分类' : '编辑分类')
}
addOrEdit != 1 && (params.id = row.id)
this.$router.push({
path: '/classifyList/editClassify',
query: params
})
},
handleDelete(row) {
......
......@@ -2,22 +2,13 @@
<template>
<div class="marketing pro-group p-t-20">
<div class="m-b-20">
<el-button :size="size" type="primary" class="el-icon-plus" @click="addCashCoupon()">新建代金券</el-button>
<GLButton :size="size" type="primary" class="el-icon-plus" @click="addCashCoupon()" fn="新建代金券" display="disabled" mode="el-button">新建代金券</GLButton>
<GLButton :size="size" type="primary" class="el-icon-plus" style="margin-left: 30px" @click="addDiscountCoupon()" fn="新建折扣劵" display="disabled" mode="el-button">新建折扣劵</GLButton>
<GLButton :size="size" type="primary" class="el-icon-plus" style="margin-left: 30px" @click="addExchangeCoupon()" fn="新建兑换券" display="disabled" mode="el-button">新建兑换券</GLButton>
<!-- <el-button :size="size" type="primary" class="el-icon-plus" @click="addCashCoupon()">新建代金券</el-button> -->
<!-- <el-button :size="size" type="primary" class="el-icon-plus" style="margin-left:30px;" @click="addService()">新建会员服务</el-button> -->
<el-button
:size="size"
type="primary"
class="el-icon-plus"
style="margin-left:30px;"
@click="addDiscountCoupon()"
>新建折扣劵</el-button>
<el-button
:size="size"
type="primary"
class="el-icon-plus"
style="margin-left:30px;"
@click="addExchangeCoupon()"
>新建兑换券</el-button>
<!-- <el-button :size="size" type="primary" class="el-icon-plus" style="margin-left: 30px" @click="addDiscountCoupon()">新建折扣劵</el-button>
<el-button :size="size" type="primary" class="el-icon-plus" style="margin-left: 30px" @click="addExchangeCoupon()">新建兑换券</el-button> -->
</div>
<div class="container">
<div>
......@@ -30,36 +21,20 @@
</div>
<!-- 表格区域 开始 -->
<GLTable
ref="coupon"
:getListApi="getListApi"
:noDataImg="url"
:searchForm="tableSearchForm"
:tableParams="tableParams"
:pageConf="pageConf"
:beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun"
>
<GLTable ref="coupon" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button v-if="scope.scope.status == '1'" type="text" @click="start(scope.scope)">生效</el-button>
<GLButton v-if="scope.scope.status == '1'" type="text" @click="start(scope.scope)" fn="生效" display="disabled" mode="el-button">生效</GLButton>
<!-- <el-button v-if="scope.scope.status == '1'" type="text" @click="start(scope.scope)">生效</el-button> -->
<el-button v-if="scope.scope.status == '2'" type="text" @click="end(scope.scope)">失效</el-button>
<el-button
v-if="scope.scope.status == '1'"
type="text"
@click="handleEdit(2, scope.scope)"
>编辑</el-button>
<el-button
v-if="scope.scope.status == '2' || scope.scope.status == '3'"
type="text"
@click="handleEdit(3, scope.scope)"
>查看</el-button>
<el-button
v-if="scope.scope.status == '1' || scope.scope.status == '3'"
type="text"
@click="del(scope.scope)"
>删除</el-button>
<el-button type="text" @click="writeOffDetail(scope.scope)">核销详情</el-button>
<el-button type="text" @click="receiveDetail(scope.scope)">领取详情</el-button>
<!-- <el-button v-if="scope.scope.status == '1'" type="text" @click="handleEdit(2, scope.scope)">编辑</el-button> -->
<GLButton v-if="scope.scope.status == '2' || scope.scope.status == '3'" type="text" @click="handleEdit(3, scope.scope)" :fn="scope.scope.discountType == 3 ? '查看代金券' : scope.scope.discountType == 7 ? '查看会员服务' : scope.scope.discountType == 2 ? '查看折扣券' : '查看兑换券'" mode="el-button">查看</GLButton>
<!-- <el-button v-if="scope.scope.status == '2' || scope.scope.status == '3'" type="text" @click="handleEdit(3, scope.scope)">查看</el-button> -->
<GLButton v-if="scope.scope.status == '1' || scope.scope.status == '3'" type="text" @click="del(scope.scope)" fn="删除" mode="el-button" display="disabled">删除</GLButton>
<!-- <el-button v-if="scope.scope.status == '1' || scope.scope.status == '3'" type="text" @click="del(scope.scope)">删除</el-button> -->
<GLButton type="text" @click="writeOffDetail(scope.scope)" fn="核销详情" mode="el-button">核销详情</GLButton>
<GLButton type="text" @click="receiveDetail(scope.scope)" fn="领取详情" mode="el-button">领取详情</GLButton>
<!-- <el-button type="text" @click="writeOffDetail(scope.scope)">核销详情</el-button>
<el-button type="text" @click="receiveDetail(scope.scope)">领取详情</el-button> -->
</div>
</GLTable>
<!-- 表格区域 end -->
......
<template>
<div class="live-room">
<div class="memberCardWrap">
<div class="memberCardWrap" v-if="!(merchantModel==2 && accountLevel==1)">
<div class="cardBoxWrap">
<img src="@/assets/memberCard.png" alt="" />
<div class="masonry">
......@@ -9,17 +9,20 @@
<div class="memberCardName">{{ ruleForm.cardName }}</div>
</div>
<div class="cardDetail" v-if="!isShowEditWrap">
<p>{{ ruleForm.cardName }}</p>
<img src="@/assets/edit.png" class="editIcon" @click="openEditWrap" alt="" />
<div>
<div class="flex-1"> <p>{{ ruleForm.cardName }}</p>
<GLButton @click="openEditWrap" fn="编辑" mode="div"> <img src="@/assets/edit.png" class="editIcon" @click="openEditWrap" alt="" /></GLButton>
</div>
<!-- <img src="@/assets/edit.png" class="editIcon" @click="openEditWrap" alt="" /> -->
<div class="row">
<span>售价:</span>
<span class="price" v-if="ruleForm.price">¥{{ ruleForm.price }}</span>
</div>
<div>
<div class="row">
<span>市场价:</span>
<span class="price" v-if="ruleForm.marketPrice">¥{{ ruleForm.marketPrice }}</span>
</div>
<div>
<div class="row">
<span>会员权益使用地址:</span>
<span class="address ellipsis-1" :title="ruleForm.linkUrl">{{ ruleForm.linkUrl }}</span>
</div>
......@@ -50,7 +53,7 @@
</div>
</div>
<p class="pageTitle">会员中心</p>
<p class="pageTitle" v-if="!(merchantModel==2 && accountLevel==1)">会员中心</p>
<div class="live-room container">
<el-form :inline="true" style="width: 100%" :model="searchForm" label-width="70px" label-position="right">
<el-row>
......@@ -258,13 +261,17 @@ export default {
//权益 - 弹窗
isDialogVisible: false,
merchantData: {},
merchantId: 0 //记得改 glsxadmin:44184606
merchantId: 0,//记得改 glsxadmin:44184606
merchantModel: 1, //集团:1,门店:2
accountLevel: 0, //1,2,3,4工厂,省代,市代,门店
}
},
created() {
if (window.__POWERED_BY_QIANKUN__) {
//运行在qiankun容器中
this.merchantId = this.$globalState.session.merchantId
this.merchantId = this.$globalState.session.merchantId
this.merchantModel = this.$globalState.session.merchantModel
this.accountLevel = this.$globalState.session.accountLevel
}
this.getCardContentFun()
},
......@@ -445,14 +452,17 @@ mounted () {
vertical-align: middle;
cursor: pointer;
}
> p {
.flex-1{
display: flex;
p {
display: inline-block;
font-weight: 600;
color: #333333;
font-size: 16px;
margin: 0;
}
> div {
}
.row {
margin-top: 15px;
font-weight: 400;
font-size: 14px;
......
......@@ -41,8 +41,10 @@
<img class="img-60" :src="scope.scope.shareImgUrl" />
</span> -->
<span class="table-btns" slot="auth-button" slot-scope="scope" :data="scope.scope">
<el-button type="text" @click="handleDetail(scope.scope)" v-if="scope.scope.orderType == 1">详情</el-button>
<el-button type="text" style="color:#eee" v-else>详情</el-button>
<!-- <el-button type="text" @click="handleDetail(scope.scope)" v-if="scope.scope.orderType == 1">详情</el-button>
<el-button type="text" style="color:#eee" v-else>详情</el-button> -->
<GLButton @click="handleDetail(scope.scope)" fn="订单详情" type="text" v-if="scope.scope.orderType == 1">详情</GLButton>
<GLButton style="color: #eee" fn="订单详情" type="text" v-else>详情</GLButton>
</span>
</GLTable>
</div>
......@@ -51,12 +53,12 @@
<script>
import { orderTypesList, orderStatusList } from '@/common/constant'
import url from "@/assets/empty.png"
import url from '@/assets/empty.png'
import { getOrderListApi } from '@/api/modules/order'
export default {
data() {
return {
url:url,
url: url,
isReload: true,
pickerOptions: {
disabledDate(time) {
......@@ -147,9 +149,7 @@ export default {
}
}
},
mounted () {
},
mounted() {},
methods: {
tabClick(index) {
this.currentIndex = index
......
......@@ -6,8 +6,8 @@
<el-form :inline="true" style="width:100%" :model="searchForm" label-width="100px" label-position="right">
<el-row>
<el-form-item size="small">
<el-button :size="size" type="primary" icon="el-icon-plus" @click="handleCreate">创建服务</el-button>
<!-- <GLButton type="primary" @click="handleCreate" size="small" icon="el-icon-plus" fn="创建服务" mode="el-button">创建服务</GLButton> -->
<!-- <el-button :size="size" type="primary" icon="el-icon-plus" @click="handleCreate">创建服务</el-button> -->
<GLButton type="primary" @click="handleCreate" size="small" icon="el-icon-plus" fn="创建服务" mode="el-button">创建服务</GLButton>
</el-form-item>
<el-form-item size="small" label="服务名称">
<el-input :size="size" v-model="searchForm.couponName" placeholder="请输入服务名称" clearable></el-input>
......@@ -28,18 +28,27 @@
</span>
<span class="table-btns" slot="auth-button" slot-scope="scope" :data="scope.scope">
<template v-if="scope.scope.status == 2">
<el-button type="text" @click="handleLossOption(scope.scope)">失效</el-button>
<!-- <el-button type="text" @click="handleLossOption(scope.scope)">失效</el-button>
<el-button type="text" @click="handleLook(scope.scope)">查看</el-button>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button> -->
<GLButton type="text" @click="handleLossOption(scope.scope)" fn="失效">失效</GLButton>
<GLButton type="text" @click="handleLook(scope.scope)" fn="查看" >查看</GLButton>
<GLButton type="text" @click="handleDelete(scope.scope)" fn="删除">删除</GLButton>
</template>
<template v-else-if="scope.scope.status == 3">
<el-button type="text" @click="handleLook(scope.scope)">查看</el-button>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button>
<!-- <el-button type="text" @click="handleLook(scope.scope)">查看</el-button>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button> -->
<GLButton type="text" @click="handleLook(scope.scope)" fn="查看服务">查看</GLButton>
<GLButton type="text" @click="handleDelete(scope.scope)" fn="删除">删除</GLButton>
</template>
<template v-else>
<el-button type="text" @click="handleTakeOption(scope.scope)">生效</el-button>
<!-- <el-button type="text" @click="handleTakeOption(scope.scope)">生效</el-button>
<el-button type="text" @click="handleEdit(scope.scope)">编辑</el-button>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button> -->
<GLButton type="text" @click="handleTakeOption(scope.scope)" fn="生效">生效</GLButton>
<GLButton type="text" @click="handleEdit(scope.scope)" fn="编辑服务">编辑</GLButton>
<GLButton type="text" @click="handleDelete(scope.scope)" fn="删除">删除</GLButton>
</template>
</span>
</GLTable>
......
......@@ -119,8 +119,8 @@
width: footerWidth + 'px'
}"
>
<el-button type="primary" @click="submitForm('ruleForm')" size="small">创建</el-button>
<el-button type="primary" @click="goBack" size="small">取消</el-button>
<el-button type="primary" @click="submitForm('ruleForm')" size="medium">创建</el-button>
<el-button type="primary" @click="goBack" size="medium">取消</el-button>
</div>
<!-- :hasScroll="false" :noBtnOk="true" :noCancel="true" :noClose="false" -->
<glsx-dialog title="" top="30vh" :hasScroll="false" width="547px" btnCloseLabel="取消" :noClose="false" :noCancel="true" btnSize="small" :isVisible="isDialogVisible" :showClose="false" @closeDialog="handleClose" @confirmDialog="handleConfirm">
......
......@@ -3,8 +3,8 @@
<tip-panel panelWidth="616px" panelMinHeight="40px" :panelContent="panelContent" v-if="isFirstShow" @closePanel="closePanel"></tip-panel>
<div class="live-room container">
<div class="btnWrap">
<el-button :size="size" type="primary" @click="handleCreate" icon="el-icon-plus">创建套餐</el-button>
<!-- <GLButton type="primary" @click="handleCreate" size="small" icon="el-icon-plus" fn="创建套餐" mode="el-button">创建套餐</GLButton> -->
<!-- <el-button :size="size" type="primary" @click="handleCreate" icon="el-icon-plus">创建套餐</el-button> -->
<GLButton type="primary" @click="handleCreate" size="small" icon="el-icon-plus" fn="创建套餐" mode="el-button">创建套餐</GLButton>
<el-button :size="size" @click="showViewer=true">查看示例效果</el-button>
<el-image-viewer v-if="showViewer" :on-close="()=>{showViewer=false}" :url-list="srcList" style="padding:4%;"/>
</div>
......@@ -107,6 +107,7 @@ export default {
{
label: '说明',
prop: 'notes',
width:160,
line: 4
},
{
......
......@@ -46,8 +46,8 @@
width: footerWidth + 'px'
}"
>
<el-button type="primary" @click="submitForm('ruleForm')" size="small">创建</el-button>
<el-button type="primary" @click="goBack" size="small">取消</el-button>
<el-button type="primary" @click="submitForm('ruleForm')" size="medium">创建</el-button>
<el-button type="primary" @click="goBack" size="medium">取消</el-button>
</div>
<!-- :modalAppendToBody="false" -->
<glsx-dialog title="套餐服务" class="setmealServiceDialog" width="1142px" :noCancel="true" :noClose="false" btnSize="small" :isVisible="setmealDialogVisible" @closeDialog="handleClose" @confirmDialog="handleConfirm">
......
......@@ -53,7 +53,7 @@ export default {
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.routeInfo = this.$route.params
this.routeInfo = this.$route.query
this.getInfo()
},
......
......@@ -16,7 +16,8 @@
<div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button v-if="scope.scope.commentStatus == '0'" type="text" @click="handleRevoke(scope.scope)">发布</el-button>
<el-button v-if="scope.scope.commentStatus == '1'" type="text" @click="handleRevoke(scope.scope)">撤回</el-button>
<el-button type="text" @click="handleDetail(scope.scope)">查看</el-button>
<!-- <el-button type="text" @click="handleDetail(scope.scope)">查看</el-button> -->
<GLButton type="text" fn="评价详情" @click="handleDetail(scope.scope)">查看</GLButton>
<!-- <el-button type="text" @click="handleDelete(scope.scope)">删除</el-button> -->
</div>
</GLTable>
......@@ -152,7 +153,12 @@ export default {
// 查看
handleDetail(row) {
this.$router.push('/orderComment/commentDetail/' + row.id)
this.$router.push({
path: '/orderComment/commentDetail',
query: {
id: row.id
}
})
},
// 发布/撤回
......
......@@ -34,7 +34,8 @@
<!-- 表格区域 - 全部订单/售后订单 - 开始 -->
<GLTable ref="allOrderRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">查看订单</el-button>
<!-- <el-button type="text" @click="handleDetail(scope.scope)">查看订单</el-button> -->
<GLButton type="text" fn="查看订单" @click="handleDetail(scope.scope)">查看订单</GLButton>
<el-button v-if="scope.scope.deliveryType == 1 && scope.scope.orderStatus == 14" type="text" @click="handleWriteOff(scope.scope)">订单核销</el-button>
<el-button v-if="scope.scope.deliveryType == 2 && scope.scope.orderStatus == 13" type="text" @click="handleExpressInfo(scope.scope)">输入快递信息</el-button>
<el-button v-if="scope.scope.orderStatus == 6" type="text" @click="handleExamine(scope.scope)">退款审核</el-button>
......@@ -466,7 +467,12 @@ export default {
},
handleDetail(row) {
this.$router.push('/orderManage/orderDetail/' + row.orderCode)
this.$router.push({
path: '/orderManage/orderDetail',
query: {
orderCode: row.orderCode
}
})
},
// 输入快递信息 - start
......
......@@ -160,7 +160,7 @@ export default {
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.routeInfo = this.$route.params
this.routeInfo = this.$route.query
this.getInfo()
},
......
......@@ -2,7 +2,6 @@
<template>
<div class="edit-pro marketing p-t-20 edit-box">
<div class="container edit-container">
<!-- <p class="edit-title">{{ title }}</p> -->
<div class="flex">
<div class="home-set-form flex-grow">
<div v-for="(item, index) in externalFormList" :key="index">
......@@ -409,11 +408,6 @@ export default {
data() {
return {
size: 'small',
title: '新增商品',
titleObj: {
1: '新增商品',
2: '编辑商品'
},
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef',
......@@ -421,7 +415,7 @@ export default {
isDisabled: false,
wechatImgList: [],
routeInfo: {
// 1-新增;2-编辑;3-查看
// 1-新建;2-编辑;3-查看
addOrEdit: 1,
// 1-集团;2-门店
groupOrStore: '',
......@@ -808,9 +802,8 @@ export default {
this.$refs.merchantTableRef[0].tableHeightValues = '400px'
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.routeInfo = this.$route.params
this.routeInfo = this.$route.query
// console.log(this.routeInfo)
this.title = this.titleObj[this.routeInfo.addOrEdit]
this.getBaseDate().then(() => {
this.getOptionsList(0, 'editFormData', false)
})
......
......@@ -2,7 +2,8 @@
<template>
<div class="marketing pro-group p-t-20">
<div class="m-b-20">
<el-button :size="size" type="primary" class="el-icon-plus" @click="handleEdit(1)">新建商品</el-button>
<!-- <el-button :size="size" type="primary" class="el-icon-plus" @click="handleEdit(1)">新建商品</el-button> -->
<GLButton :size="size" type="primary" fn="新建商品" class="el-icon-plus" @click="handleEdit(1)">新建商品</GLButton>
</div>
<div class="container">
<div>
......@@ -21,8 +22,10 @@
</div>
<div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleUpOrDown(scope.scope)">{{ scope.scope.goodsStatus ? '下架' : '上架' }}</el-button>
<el-button v-if="!scope.scope.goodsStatus" type="text" @click="handleEdit(2, scope.scope)">编辑</el-button>
<el-button v-if="scope.scope.goodsStatus" type="text" @click="handleEdit(3, scope.scope)">查看</el-button>
<!-- <el-button v-if="!scope.scope.goodsStatus" type="text" @click="handleEdit(2, scope.scope)">编辑</el-button>
<el-button v-if="scope.scope.goodsStatus" type="text" @click="handleEdit(3, scope.scope)">查看</el-button> -->
<GLButton v-if="!scope.scope.goodsStatus" type="text" fn="编辑" @click="handleEdit(2, scope.scope)">编辑</GLButton>
<GLButton v-if="scope.scope.goodsStatus" type="text" fn="查看" @click="handleEdit(3, scope.scope)">查看</GLButton>
<el-button type="text" @click="handleTop(scope.scope)">置顶</el-button>
<el-button type="text" @click="handleShare(scope.scope)">分享</el-button>
</div>
......@@ -226,7 +229,22 @@ export default {
// addOrEdit:1-新增;2-编辑;3-查看
// groupOrStore:1-集团;2-门店
handleEdit(addOrEdit, row) {
addOrEdit == 1 ? this.$router.push('/productGroup/editProduct/' + addOrEdit + '/' + 1) : this.$router.push('/productGroup/editProduct/' + addOrEdit + '/' + 1 + '/' + row.id)
// addOrEdit == 1 ? this.$router.push('/productGroup/editProduct/' + addOrEdit + '/' + 1) : this.$router.push('/productGroup/editProduct/' + addOrEdit + '/' + 1 + '/' + row.id)
var titleObj = {
1: '新建商品',
2: '编辑商品',
3: '查看商品',
}
var params = {
addOrEdit: addOrEdit,
groupOrStore: 1,
$title:encodeURI(titleObj[addOrEdit])
}
addOrEdit != 1 && (params.id = row.id)
this.$router.push({
path: '/productGroup/editProduct',
query: params
})
},
handleUpOrDown(row) {
if (row.goodsStatus) {
......
......@@ -162,7 +162,7 @@ export default {
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.routeInfo = this.$route.params
this.routeInfo = this.$route.query
this.title = this.titleObj[this.routeInfo.addOrEdit]
this.isDisabled = this.routeInfo.addOrEdit == 3
this.editFormData[0].isDisabled = this.isDisabled
......
......@@ -2,7 +2,8 @@
<template>
<div class="marketing pro-group p-t-20">
<div class="m-b-20">
<el-button :size="size" type="primary" class="el-icon-plus" @click="handleEdit(1)">新建商品</el-button>
<!-- <el-button :size="size" type="primary" class="el-icon-plus" @click="handleEdit(1)">新建商品</el-button> -->
<GLButton :size="size" type="primary" fn="新建商品" class="el-icon-plus" @click="handleEdit(1)">新建商品</GLButton>
</div>
<div class="container">
<div>
......@@ -20,13 +21,17 @@
<img class="img-60" :src="scope.scope.goodsImage" />
</template>
<div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button v-if="!scope.scope.goodsStatus" type="text" @click="handleEdit(2, scope.scope)">编辑</el-button>
<!-- <el-button v-if="!scope.scope.goodsStatus" type="text" @click="handleEdit(2, scope.scope)">编辑</el-button> -->
<GLButton v-if="!scope.scope.goodsStatus && scope.scope.goodsSource == 1" type="text" fn="自建编辑" @click="handleEdit(2, scope.scope)">编辑</GLButton>
<GLButton v-if="!scope.scope.goodsStatus && scope.scope.goodsSource == 2" type="text" fn="带货编辑" @click="handleEditDh(2, scope.scope)">编辑</GLButton>
<el-button v-if="!scope.scope.goodsStatus && (scope.scope.goodsSource == 1 || (scope.scope.goodsSource == 2 && scope.scope.originGoodsStatus))" type="text" @click="handleUpOrDown(scope.scope)">上架</el-button>
<el-button v-if="!scope.scope.goodsStatus && scope.scope.goodsSource == 2 && !scope.scope.originGoodsStatus" type="text" @click="handleDwonNotice(scope.scope)">下架通知</el-button>
<el-button v-if="scope.scope.goodsStatus" type="text" @click="handleUpOrDown(scope.scope)">下架</el-button>
<el-button v-if="!scope.scope.goodsStatus && scope.scope.goodsSource == 2" type="text" @click="handleTakeGood(scope.scope)">取消带货</el-button>
<el-button v-if="!scope.scope.goodsStatus && scope.scope.goodsSource == 1" type="text" @click="handleTop(scope.scope)">置顶</el-button>
<el-button v-if="scope.scope.goodsStatus" type="text" @click="handleEdit(3, scope.scope)">查看</el-button>
<!-- <el-button v-if="scope.scope.goodsStatus" type="text" @click="handleEdit(3, scope.scope)">查看</el-button> -->
<GLButton v-if="scope.scope.goodsStatus && scope.scope.goodsSource == 1" type="text" fn="自建查看" @click="handleEdit(3, scope.scope)">查看</GLButton>
<GLButton v-if="scope.scope.goodsStatus && scope.scope.goodsSource == 2" type="text" fn="带货查看" @click="handleEditDh(3, scope.scope)">查看</GLButton>
<el-button v-if="scope.scope.goodsStatus" type="text" @click="handleShare(scope.scope)">分享</el-button>
</div>
</GLTable>
......@@ -246,13 +251,43 @@ export default {
},
// addOrEdit:1-新增;2-编辑;3-查看
// groupOrStore:1-集团;2-门店
// goodsSource: 1-门店;2-带货
handleEdit(addOrEdit, row) {
// 1-门店;2-带货
if (addOrEdit != 1 && row.goodsSource == 2) {
this.$router.push('/productStore/editProductDh/' + addOrEdit + '/' + row.id)
return true
// if (addOrEdit != 1 && row.goodsSource == 2) {
// this.$router.push('/productStore/editProductDh/' + addOrEdit + '/' + row.id)
// return true
// }
// addOrEdit == 1 ? this.$router.push('/productGroup/editProduct/' + addOrEdit + '/' + 2) : this.$router.push('/productGroup/editProduct/' + addOrEdit + '/' + 2 + '/' + row.id)
var titleObj = {
1: '新建商品',
2: '编辑商品',
3: '查看商品',
}
addOrEdit == 1 ? this.$router.push('/productGroup/editProduct/' + addOrEdit + '/' + 2) : this.$router.push('/productGroup/editProduct/' + addOrEdit + '/' + 2 + '/' + row.id)
var params = {
addOrEdit: addOrEdit,
groupOrStore: 2,
$title:encodeURI(titleObj[addOrEdit])
}
addOrEdit != 1 && (params.id = row.id)
this.$router.push({
path: '/productGroup/editProduct',
query: params
})
},
handleEditDh(addOrEdit, row) {
var titleObj = {
2: '编辑商品',
3: '查看商品',
}
var params = {
addOrEdit: addOrEdit,
id: row.id,
$title:encodeURI(titleObj[addOrEdit])
}
this.$router.push({
path: '/productStore/editProductDh',
query: params
})
},
// 下架通知
handleDwonNotice(row) {
......
......@@ -2,7 +2,8 @@
<template>
<div class="marketing pro-group p-t-20">
<div class="m-b-20">
<el-button :size="size" type="primary" class="el-icon-plus" @click="addActivity()">新增秒杀活动</el-button>
<GLButton :size="size" type="primary" class="el-icon-plus" @click="addActivity()" fn="新增秒杀活动" mode="el-button">新增秒杀活动</GLButton>
<!-- <el-button :size="size" type="primary" class="el-icon-plus" @click="addActivity()">新增秒杀活动</el-button> -->
</div>
<div class="container">
<div>
......@@ -22,8 +23,10 @@
<div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button v-if="scope.scope.activityStatus == '1'" type="text" @click="start(scope.scope)">开始</el-button>
<el-button v-if="scope.scope.activityStatus == '2'" type="text" @click="end(scope.scope)">结束</el-button>
<el-button v-if="scope.scope.activityStatus == '1'" type="text" @click="handleEdit(2, scope.scope)">编辑</el-button>
<el-button v-if="scope.scope.activityStatus == '2' || scope.scope.activityStatus == '3'" type="text" @click="handleEdit(3, scope.scope)">查看</el-button>
<GLButton v-if="scope.scope.activityStatus == '1'" type="text" @click="handleEdit(2, scope.scope)" fn="编辑秒杀活动" mode="el-button">编辑</GLButton>
<!-- <el-button v-if="scope.scope.activityStatus == '1'" type="text" @click="handleEdit(2, scope.scope)">编辑</el-button> -->
<GLButton v-if="scope.scope.activityStatus == '2' || scope.scope.activityStatus == '3'" type="text" @click="handleEdit(3, scope.scope)" fn="编辑秒杀活动" mode="el-button">查看</GLButton>
<!-- <el-button v-if="scope.scope.activityStatus == '2' || scope.scope.activityStatus == '3'" type="text" @click="handleEdit(3, scope.scope)">查看</el-button> -->
<el-button v-if="scope.scope.activityStatus == '3'" type="text" @click="del(scope.scope)">删除</el-button>
<el-button type="text" @click="topping(scope.scope)">置顶</el-button>
<el-button v-if="scope.scope.activityStatus == '1' || scope.scope.activityStatus == '2'" type="text" @click="handleShare(scope.scope)">分享</el-button>
......
......@@ -131,7 +131,7 @@ export default {
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.routeInfo = this.$route.params
this.routeInfo = this.$route.query
this.title = this.titleObj[this.routeInfo.addOrEdit]
this.routeInfo.addOrEdit != 1 ? this.getInfo() : ''
},
......
......@@ -2,7 +2,8 @@
<template>
<div class="marketing p-t-20">
<div class="m-b-20">
<el-button :size="size" type="primary" class="el-icon-plus" @click="handleEdit(1)">新建专区</el-button>
<!-- <el-button :size="size" type="primary" class="el-icon-plus" @click="handleEdit(1)">新建专区</el-button> -->
<GLButton :size="size" type="primary" fn="新建专区" class="el-icon-plus" @click="handleEdit(1)">新建专区</GLButton>
</div>
<div class="container">
<div>
......@@ -17,8 +18,8 @@
<!-- 表格区域 开始 -->
<GLTable ref="zoneRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleEdit(2, scope.scope)">编辑</el-button>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button>
<GLButton type="text" fn="编辑" @click="handleEdit(2, scope.scope)">编辑</GLButton>
<el-button type="text" fn="删除" @click="handleDelete(scope.scope)">删除</el-button>
</div>
</GLTable>
<!-- 表格区域 end -->
......@@ -124,7 +125,16 @@ export default {
},
// 1-新增;2-编辑
handleEdit(addOrEdit, row) {
addOrEdit == 1 ? this.$router.push('/zoneList/editZone/' + addOrEdit) : this.$router.push('/zoneList/editZone/' + addOrEdit + '/' + row.id)
// addOrEdit == 1 ? this.$router.push('/zoneList/editZone/' + addOrEdit) : this.$router.push('/zoneList/editZone/' + addOrEdit + '/' + row.id)
var params = {
addOrEdit: addOrEdit,
$title:encodeURI(addOrEdit == 1 ? '新建专区' : '编辑专区')
}
addOrEdit != 1 && (params.id = row.id)
this.$router.push({
path: '/zoneList/editZone',
query: params
})
},
handleDelete(row) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!