Commit 88dc112f by cwq0219
2 parents 45e3577a 98cf9fa1
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.2",
"glsx-components": "^1.2.4",
"lodash": "^4.17.21",
"vue": "^2.6.10",
"vue-router": "^3.1.3",
......@@ -41,4 +41,4 @@
"> 1%",
"last 2 versions"
]
}
\ No newline at end of file
}
<!-- 弹窗 -->
<template>
<div>
<el-dialog :title="title" :visible.sync="isVisible" :show-close="showClose" :before-close="handleClose" :close-on-click-modal="false" :modal-append-to-body="false" :width="width">
<el-scrollbar v-if="hasScroll">
<el-dialog
:title="title"
:visible.sync="isVisible"
:show-close="showClose"
:before-close="handleClose"
:close-on-click-modal="false"
:modal-append-to-body="false"
:width="width"
class="app-dialog"
>
<el-scrollbar v-if="hasScroll">
<span slot="title">
<span class="main-title">{{ title }}</span>
<span class="main-title">{{ title }}</span>
<span class="dialog-sub-title">
<slot name="sub-title"></slot>
</span>
......@@ -12,8 +21,8 @@
<slot></slot>
</el-scrollbar>
<template v-if="!hasScroll">
<span slot="title">
<span class="main-title">{{ title }}</span>
<span slot="title">
<span class="main-title">{{ title }}</span>
<span class="dialog-sub-title">
<slot name="sub-title"></slot>
</span>
......@@ -23,9 +32,24 @@
<div slot="footer">
<slot name="btn-start"></slot>
<el-button :type="typeName" v-if="!noClose" :size="btnSize" @click="handleClose">{{btnCloseLabel}}</el-button>
<el-button type="primary" v-if="!noBtnOk" :size="btnSize" @click="handleConfirm">{{ btnOkLabel }}</el-button>
<el-button type="primary" v-if="!noCancel" :size="btnSize" @click="handleClose">{{ btnCancelLabel }}</el-button>
<el-button
:type="typeName"
v-if="!noClose"
:size="btnSize"
@click="handleClose"
>{{btnCloseLabel}}</el-button>
<el-button
type="default"
v-if="!noCancel"
:size="btnSize"
@click="handleClose"
>{{ btnCancelLabel }}</el-button>
<el-button
type="primary"
v-if="!noBtnOk"
:size="btnSize"
@click="handleConfirm"
>{{ btnOkLabel }}</el-button>
<slot name="btn-middle"></slot>
</div>
</el-dialog>
......@@ -39,7 +63,7 @@ export default {
return {}
},
props: {
hasScroll:{
hasScroll: {
type: Boolean,
default: true
},
......@@ -53,9 +77,9 @@ export default {
},
showClose: {
type: Boolean,
default: true
default: false
},
btnCloseLabel:{
btnCloseLabel: {
type: String,
default: '关闭'
},
......@@ -79,9 +103,9 @@ export default {
type: Boolean,
default: true
},
typeName:{
type:String,
default:''
typeName: {
type: String,
default: 'default'
},
// modalAppendToBody:{
// type: Boolean,
......@@ -93,7 +117,7 @@ export default {
},
btnSize: {
type: String,
default: 'mini'
default: 'small'
}
},
......@@ -107,7 +131,7 @@ export default {
}
}
</script>
<style lang="scss" scoped>
<style lang="scss">
.dialog-sub-title {
font-size: 12px;
color: #666666;
......@@ -122,4 +146,21 @@ export default {
// height: 60vh;
// overflow: auto;
// }
// .app-dialog {
// // .el-dialog__header {
// // padding: 15px;
// // }
// .el-dialog__body {
// border-top: 1px solid #eaeefb;
// border-bottom: 1px solid #eaeefb;
// }
// .el-dialog__footer {
// padding: 15px;
// // .el-button--small {
// // padding: 9px 21px;
// // font-size: 14px;
// // border-radius: 4px;
// // }
// }
// }
</style>
<!-- 选择商品弹窗 -->
<template>
<glsx-dialog class="muti-pro" title="选择商品" :isVisible.sync="isMutiSelectVisible" :height="height" width="70%" @confirmDialog="handleMutiSelectConfirm" @closeDialog="handleMutiSelectClose">
<glsx-dialog class="muti-pro" title="选择商品" :isVisible.sync="isMutiSelectVisible" :height="height" width="70%" @confirmDialog="handleMutiSelectConfirm" @closeDialog="handleMutiSelectClose" :noClose="false" :noCancel="true">
<div style="max-height:60vh">
<el-form :inline="true" :model="searchProForm">
<el-form-item label="商品名称:">
......@@ -87,14 +87,14 @@ export default {
getList(isMounted = false) {
var params = {
goodsStatus: 1,
// goodsSource: 1,
goodsSource: 1,
// pageNum: isMounted ? 1 : this.$refs.mutiProRef.page.pageNum,
// pageSize: isMounted ? 10 : this.$refs.mutiProRef.page.pageSize
currentPage: 1,
pageNum: 1,
pageSize: 100000,
pageStart: 0,
goodsName:this.searchProForm.name
goodsName: this.searchProForm.name
}
var that = this
this.$apis.couponManage.getAllGoodsApi(params).then(res => {
......@@ -141,7 +141,7 @@ export default {
handleMutiSelectConfirm() {
var selectedData = this.$refs.mutiProRef.mutiSelectArr[this.tableParams.mutiSelectName]
console.log(selectedData)
if(!selectedData){
if (!selectedData) {
this.$message({
message: '未选择商品',
type: 'error'
......@@ -153,13 +153,13 @@ export default {
handleMutiSelectClose() {
this.$emit('handleMutiSelectClose')
},
handleConfigSearch(){
handleConfigSearch() {
this.getList(true)
},
handleConfigReset(){
handleConfigReset() {
this.searchProForm.name = ''
this.getList(true)
},
}
}
}
</script>
......
......@@ -59,7 +59,7 @@
<el-input v-model="editForm.denomination" style="width: 150px" :disabled="apear != 'couponAdd'" @blur.native.capture="editForm.useChannel == 1 && denominationBlur($event)">
<span slot="append">元</span>
</el-input>
<span style="color:red;margin-left:15px" v-if="priceFlag">存在零售价低于代金券的商品</span>
<span style="color:red;margin-left:15px" v-if="priceFlag">{{ selectedAllProList.length ? '存在零售价低于代金券的商品' : '系统暂无已创建的商品,请先创建好商品后再配置代金券' }}</span>
</template>
<!-- 只有使用途径为线上商品时才有效,到店核销时屏蔽 -->
<template slot="goodsHtml">
......@@ -70,7 +70,7 @@
</el-radio>
</template>
<!-- 新增时并且为指定商品时显示,编辑或者查看时也显示 -->
<div slot="proTable" class="select-pro" v-if="apear != 'couponAdd' || (editForm.useChannel == 1 && editForm.goods == 2)">
<div slot="proTable" class="select-pro" v-if="apear != 'couponAdd' || (editForm.useChannel == 1 && editForm.goods == 2)" style="margin-left:10px">
<div style="height:110px" v-if="editForm.goodsRefList.length"></div>
<GLTable v-show="editForm.goodsRefList.length" :hasPage="false" :tableParams="tableParams" :tableData="editForm.goodsRefList">
<template slot="goodsImage" slot-scope="scope">
......@@ -87,9 +87,9 @@
</glsx-combi-form>
</div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="default" v-if="apear != 'couponSee'" @click="handleCancel">取消</el-button>
<el-button type="primary" v-if="apear != 'couponSee'" @click="handleConfirm">确定</el-button>
<el-button type="default" v-if="apear == 'couponSee'" @click="handleCancel">返回</el-button>
<el-button v-if="apear != 'couponSee'" @click="handleCancel">取消</el-button>
<el-button v-if="apear == 'couponSee'" @click="handleCancel">返回</el-button>
</div>
<select-muti-pro-forcoupon-dialog v-if="isMutiSelectVisible" :isMutiSelectVisible="isMutiSelectVisible" :searchForm="searchProForm" :selectedProList="selectedProList" @handleMutiSelectConfirm="handleMutiSelectConfirm" @handleMutiSelectClose="handleMutiSelectClose"></select-muti-pro-forcoupon-dialog>
</div>
......@@ -196,21 +196,6 @@ export default {
name: 'useBarriers',
addHtml: 'useBarriersHtml'
},
// {
// label: '面值',
// name: 'denomination',
// width: '150px',
// type: 'input',
// append: '元',
// suffixSlot: 'denomination',
// inputBlur: val => {
// if(val.target.value*100 > this.minPirce){
// this.priceFlag = true
// }else{
// this.priceFlag = false
// }
// }
// },
{
label: '面值',
name: 'denomination',
......@@ -351,6 +336,7 @@ export default {
pageSize: 100000,
pageStart: 0,
goodsStatus: 1,
goodsSource: 1,
goodsName: ''
}
if (goodsName) {
......
......@@ -45,9 +45,9 @@
</glsx-combi-form>
</div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="default" v-if="apear != 'couponSee'" @click="handleCancel">取消</el-button>
<el-button type="primary" v-if="apear != 'couponSee'" @click="handleConfirm">确定</el-button>
<el-button type="default" v-if="apear == 'couponSee'" @click="handleCancel">返回</el-button>
<el-button v-if="apear != 'couponSee'" @click="handleCancel">取消</el-button>
<el-button v-if="apear == 'couponSee'" @click="handleCancel">返回</el-button>
</div>
</div>
</template>
......
......@@ -45,9 +45,9 @@
</glsx-combi-form>
</div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="default" v-if="apear != 'couponSee'" @click="handleCancel">取消</el-button>
<el-button type="primary" v-if="apear != 'couponSee'" @click="handleConfirm">确定</el-button>
<el-button type="default" v-if="apear == 'couponSee'" @click="handleCancel">返回</el-button>
<el-button v-if="apear != 'couponSee'" @click="handleCancel">取消</el-button>
<el-button v-if="apear == 'couponSee'" @click="handleCancel">返回</el-button>
</div>
</div>
</template>
......
......@@ -64,9 +64,9 @@
</div>
</div> -->
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="default" v-if="apear != 'couponSee'" @click="handleCancel">取消</el-button>
<el-button type="primary" v-if="apear != 'couponSee'" @click="handleConfirm">确定</el-button>
<el-button type="default" v-if="apear == 'couponSee'" @click="handleCancel">返回</el-button>
<el-button v-if="apear != 'couponSee'" @click="handleCancel">取消</el-button>
<el-button v-if="apear == 'couponSee'" @click="handleCancel">返回</el-button>
</div>
</div>
</template>
......
......@@ -22,8 +22,8 @@
<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>
<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'" 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>
......@@ -125,7 +125,7 @@ export default {
name: 'useChannel',
formatter: cellValue => {
var useChannel = ''
if(cellValue.useChannel){
if (cellValue.useChannel) {
useChannel = this.baseData.useChannelList.find(item => item.confId == cellValue.useChannel).confName
}
return useChannel
......@@ -142,43 +142,53 @@ export default {
},
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
baseData: {
discountTypeList: [{
confId: '2',
confName: '折扣卷'
},{
confId: '3',
confName: '代金券'
}, {
confId: '4',
confName: '兑换券'
}, {
confId: '7',
confName: '会员服务'
}],
statusList: [{
confId: '1',
confName: '未生效'
}, {
confId: '2',
confName: '生效中'
}, {
confId: '3',
confName: '已失效'
}],
useChannelList: [{
confId: '1',
confName: '线上商品'
}, {
confId: '2',
confName: '到店核销'
}],
discountTypeList: [
{
confId: '2',
confName: '折扣劵'
},
{
confId: '3',
confName: '代金券'
},
{
confId: '4',
confName: '兑换券'
},
{
confId: '7',
confName: '会员服务'
}
],
statusList: [
{
confId: '1',
confName: '未生效'
},
{
confId: '2',
confName: '生效中'
},
{
confId: '3',
confName: '已失效'
}
],
useChannelList: [
{
confId: '1',
confName: '线上商品'
},
{
confId: '2',
confName: '到店核销'
}
]
}
}
},
components: {
},
components: {},
mounted() {
this.getOptionsList('searchFormData')
......@@ -220,39 +230,39 @@ export default {
},
//生效
start(item){
this.startOrEndConfirm('生效',item)
start(item) {
this.startOrEndConfirm('生效', item)
},
//失效
end(item){
this.startOrEndConfirm('失效',item)
end(item) {
this.startOrEndConfirm('失效', item)
},
startOrEndConfirm(txt,row) {
startOrEndConfirm(txt, row) {
var title = txt
var params = {}
params.couponId = row.id
if(txt == '生效'){
if (txt == '生效') {
params.status = '2' //优惠券状态(2:生效,3:失效)
}else if(txt == '失效'){
} else if (txt == '失效') {
params.status = '3' //优惠券状态(2:生效,3:失效)
}
this.secondConfirm(title, '确定要' + txt + '该优惠券?', 'couponManage', 'effectiveCouponApi', params)
},
//核销记录
writeOffDetail(row){
writeOffDetail(row) {
this.$router.push('/couponManage/writeOffDetail/' + row.id)
},
//领取记录
receiveDetail(row){
receiveDetail(row) {
this.$router.push('/couponManage/receiveDetail/' + row.id)
},
//删除
del(row){
del(row) {
var params = {}
params.couponId = row.id
this.secondConfirm('删除', '确定删除此优惠券?', 'couponManage', 'deleteCouponApi', params)
......@@ -268,15 +278,13 @@ export default {
this.$router.push('/couponManage/editMemberService/1')
},
//新增折扣卷
//新增折扣劵
addDiscountCoupon() {
console.log('新增折扣卷');
this.$router.push('/couponManage/editDiscountCoupon/1')
},
//新增兑换卷
//新增兑换劵
addExchangeCoupon() {
console.log('新增兑换卷');
this.$router.push('/couponManage/editExchangeCoupon/1')
},
......@@ -284,16 +292,20 @@ export default {
handleEdit(addOrEdit, row) {
var goto = ''
//优惠券类型 1:满减券,2:折扣券,3:代金券,4:实物券 5:购车代金券 6:商品折扣券,7:会员服务
if(row.discountType == '3'){//代金券
if (row.discountType == '3') {
//代金券
goto = '/couponManage/editCashCoupon/'
}else if(row.discountType == '7'){//会员服务
} else if (row.discountType == '7') {
//会员服务
goto = '/couponManage/editMemberService/'
}else if(row.discountType == '2'){//折扣卷
} else if (row.discountType == '2') {
//折扣劵
goto = '/couponManage/editDiscountCoupon/'
}else if(row.discountType == '4'){//兑换券
} else if (row.discountType == '4') {
//兑换券
goto = '/couponManage/editExchangeCoupon/'
}
this.$router.push(goto + addOrEdit + '/' + row.id)
this.$router.push(goto + addOrEdit + '/' + row.id)
},
getOptionsList(formName, hasAll = true, refreshSigle) {
......
......@@ -13,18 +13,39 @@
</glsx-combi-form>
</div>
<div class="icon-tips icon-green" style="width: 98%;display: inline-block; margin-bottom: 20px;">
<!-- <div class="icon-tips icon-green" style="width: 98%;display: inline-block; margin-bottom: 20px;">
<img src="../../images/comment.png" />
<span>优惠券名称:<i>{{coupon.couponName}}</i></span>
<span>发行总量:<i>{{coupon.stock}}</i></span>
<span>领取量:<i>{{coupon.getAmount}}</i></span>
<span>有效期:<i>{{effective}}</i></span>
<span>使用限制:<i>{{useB}}</i></span>
</div> -->
<div class="list-tips">
<img class="tips-img" src="@/assets/icon-info.png" />
<span>
优惠券名称:
<span class="red-txt">{{ coupon.couponName }}</span>
</span>
<span style="margin-left:10px">
发行总量:
<span class="red-txt">{{ coupon.stock || 0 }}&nbsp;</span>
</span>
<span style="margin-left:10px">
领取量:
<span class="red-txt">{{ coupon.getAmount || 0 }}&nbsp;</span>
</span>
<span style="margin-left:10px">
有效期:
<span class="red-txt">{{ effective }}&nbsp;</span>
</span>
<span style="margin-left:10px">
使用限制:
<span class="red-txt">{{ useB }}&nbsp;</span>
</span>
</div>
<!-- 表格区域 开始 -->
<GLTable ref="receiveList" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
</GLTable>
<GLTable ref="receiveList" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"></GLTable>
<!-- 表格区域 end -->
</div>
</div>
......@@ -78,16 +99,12 @@ export default {
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
baseData: {
},
baseData: {},
exportLoading: false
}
},
components: {
},
components: {},
mounted() {
this.getOptionsList('searchFormData')
......@@ -116,41 +133,51 @@ export default {
var coupon = res
//有效期
if(coupon.effectiveType == 1){//固定天数,领取后计算
if (coupon.effectiveType == 1) {
//固定天数,领取后计算
this.effective = coupon.effectiveDays + '天'
}else if(coupon.effectiveType == 2){//时间段
} else if (coupon.effectiveType == 2) {
//时间段
this.effective = coupon.effectiveStartTime + ' - ' + coupon.effectiveEndTime
}else if(coupon.effectiveType == 3){//无有效期
} else if (coupon.effectiveType == 3) {
//无有效期
this.effective = '无有效期'
}
if(coupon.discountType == 3){//代金券
if (coupon.discountType == 3) {
//代金券
//使用限制
if(coupon.useBarriers == 1){//无限制
if (coupon.useBarriers == 1) {
//无限制
this.useB = '无限制'
}else if(coupon.useBarriers == 2){//满减
} else if (coupon.useBarriers == 2) {
//满减
this.useB = '满' + coupon.full + '元可用'
}
}
if(coupon.discountType == 7){//会员服务
if (coupon.discountType == 7) {
//会员服务
//使用限制
if(coupon.useType == 0){//无限制
if (coupon.useType == 0) {
//无限制
this.useB = '无限制'
}else if(coupon.useType == 1){//有效期内可使用次数
} else if (coupon.useType == 1) {
//有效期内可使用次数
this.useB = '有效期内可使用' + coupon.useAmount + '次'
}else if(coupon.useType == 2){//有效期内多少天内可使用次数
} else if (coupon.useType == 2) {
//有效期内多少天内可使用次数
this.useB = '有效期内' + coupon.useLimitDays + '天可使用' + coupon.usedAmount + '次'
}
}
})
},
writeOff(){
writeOff() {
this.writeOffVisible = !this.writeOffVisible
},
/**导出excel */
exportExcel(){
exportExcel() {
this.exportLoading = true
var params = this.getParams()
this.$apis.couponManage.exportReceiveRecordApi(params).then(res => {
......@@ -159,9 +186,8 @@ export default {
})
},
//返回
goback(){
goback() {
this.$router.push('/couponManage/index')
},
......@@ -206,33 +232,33 @@ export default {
</script>
<style scoped>
.modal-title span {
font-size: 12px;
font-weight: 400;
}
.icon-green {
background-color: rgba(3,153,69,.2);
border: 1px solid rgba(3,153,69,.2);
}
.icon-tips {
border-radius: 2px;
font-size: 12px;
color: #333;
line-height: 30px;
padding: 0 10px 0 30px;
position: relative;
}
.icon-tips span {
margin-right: 10px;
}
.icon-tips i {
font-style: normal;
color: #ff3f3f;
margin: 0 3px;
}
.icon-tips img {
position: absolute;
top: 8px;
left: 10px;
}
.modal-title span {
font-size: 12px;
font-weight: 400;
}
.icon-green {
background-color: rgba(3, 153, 69, 0.2);
border: 1px solid rgba(3, 153, 69, 0.2);
}
.icon-tips {
border-radius: 2px;
font-size: 12px;
color: #333;
line-height: 30px;
padding: 0 10px 0 30px;
position: relative;
}
.icon-tips span {
margin-right: 10px;
}
.icon-tips i {
font-style: normal;
color: #ff3f3f;
margin: 0 3px;
}
.icon-tips img {
position: absolute;
top: 8px;
left: 10px;
}
</style>
......@@ -13,18 +13,31 @@
</glsx-combi-form>
</div>
<div class="icon-tips icon-green" style="width: 98%;display: inline-block; margin-bottom: 20px;">
<img src="../../images/comment.png" />
<span>优惠券名称:<i>{{coupon.couponName}}</i></span>
<span>发行总量:<i>{{coupon.stock}}</i></span>
<span>核销总量:<i>{{coupon.usedAmount}}</i></span>
<span>有效期:<i>{{effective}}</i></span>
<span>使用限制:<i>{{useB}}</i></span>
<div class="list-tips">
<img class="tips-img" src="@/assets/icon-info.png" />
<span>
优惠券名称:
<span class="red-txt">{{ coupon.couponName }}</span>
</span>
<span style="margin-left:10px">
发行总量:
<span class="red-txt">{{ coupon.stock || 0 }}&nbsp;</span>
</span>
<span style="margin-left:10px">
核销总量:
<span class="red-txt">{{ coupon.usedAmount || 0 }}&nbsp;</span>
</span>
<span style="margin-left:10px">
有效期:
<span class="red-txt">{{ effective }}&nbsp;</span>
</span>
<span style="margin-left:10px">
使用限制:
<span class="red-txt">{{ useB }}&nbsp;</span>
</span>
</div>
<!-- 表格区域 开始 -->
<GLTable ref="writeOffList" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
</GLTable>
<GLTable ref="writeOffList" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"></GLTable>
<!-- 表格区域 end -->
</div>
<!-- 优惠券核销 -->
......@@ -102,19 +115,15 @@ export default {
formatter: cellValue => {
return dayjs(cellValue.verificationTime).format('YYYY-MM-DD HH:mm:ss')
}
},
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
baseData: {
},
baseData: {}
}
},
components: {
},
components: {},
mounted() {
this.getOptionsList('searchFormData')
......@@ -143,41 +152,51 @@ export default {
var coupon = res
//有效期
if(coupon.effectiveType == 1){//固定天数,领取后计算
if (coupon.effectiveType == 1) {
//固定天数,领取后计算
this.effective = coupon.effectiveDays + '天'
}else if(coupon.effectiveType == 2){//时间段
this.effective = coupon.effectiveStartTime + ' - ' + coupon.effectiveEndTime
}else if(coupon.effectiveType == 3){//无有效期
} else if (coupon.effectiveType == 2) {
//时间段
this.effective = coupon.effectiveStartTime + ' ~ ' + coupon.effectiveEndTime
} else if (coupon.effectiveType == 3) {
//无有效期
this.effective = '无有效期'
}
if(coupon.discountType == 3){//代金券
if (coupon.discountType == 3) {
//代金券
//使用限制
if(coupon.useBarriers == 1){//无限制
if (coupon.useBarriers == 1) {
//无限制
this.useB = '无限制'
}else if(coupon.useBarriers == 2){//满减
} else if (coupon.useBarriers == 2) {
//满减
this.useB = '满' + coupon.full + '元可用'
}
}
if(coupon.discountType == 7){//会员服务
if (coupon.discountType == 7) {
//会员服务
//使用限制
if(coupon.useType == 0){//无限制
if (coupon.useType == 0) {
//无限制
this.useB = '无限制'
}else if(coupon.useType == 1){//有效期内可使用次数
} else if (coupon.useType == 1) {
//有效期内可使用次数
this.useB = '有效期内可使用' + coupon.useAmount + '次'
}else if(coupon.useType == 2){//有效期内多少天内可使用次数
} else if (coupon.useType == 2) {
//有效期内多少天内可使用次数
this.useB = '有效期内' + coupon.useLimitDays + '天可使用' + coupon.useAmount + '次'
}
}
})
},
writeOff(){
writeOff() {
this.writeOffVisible = !this.writeOffVisible
},
//返回
goback(){
goback() {
this.$router.push('/couponManage/index')
},
......@@ -249,33 +268,33 @@ export default {
</script>
<style scoped>
.modal-title span {
font-size: 12px;
font-weight: 400;
}
.icon-green {
background-color: rgba(3,153,69,.2);
border: 1px solid rgba(3,153,69,.2);
}
.icon-tips {
border-radius: 2px;
font-size: 12px;
color: #333;
line-height: 30px;
padding: 0 10px 0 30px;
position: relative;
}
.icon-tips span {
margin-right: 10px;
}
.icon-tips i {
font-style: normal;
color: #ff3f3f;
margin: 0 3px;
}
.icon-tips img {
position: absolute;
top: 8px;
left: 10px;
}
.modal-title span {
font-size: 12px;
font-weight: 400;
}
.icon-green {
background-color: rgba(3, 153, 69, 0.2);
border: 1px solid rgba(3, 153, 69, 0.2);
}
.icon-tips {
border-radius: 2px;
font-size: 12px;
color: #333;
line-height: 30px;
padding: 0 10px 0 30px;
position: relative;
}
.icon-tips span {
margin-right: 10px;
}
.icon-tips i {
font-style: normal;
color: #ff3f3f;
margin: 0 3px;
}
.icon-tips img {
position: absolute;
top: 8px;
left: 10px;
}
</style>
......@@ -137,7 +137,7 @@
<el-form :model="basicForm" :rules="basicRules" ref="groupForm" label-width="120px">
<el-form-item prop="attachmentList">
<label slot="label" class="required">群发内容</label>
<WelcomeWords ref="welcome" :eventBus="eventBus"></WelcomeWords>
<WelcomeWords ref="welcome" :form="'customer'" :eventBus="eventBus"></WelcomeWords>
</el-form-item>
<el-form-item label="发送时间" prop="sendType">
<el-radio-group v-model="basicForm.sendType">
......@@ -189,7 +189,7 @@
}"
>
<el-button type="primary" v-loading="addLoading" @click="handleSubmit">确定</el-button>
<el-button type="primary" @click="handleCancel">取消</el-button>
<el-button @click="handleCancel">取消</el-button>
</div>
<SelectLabel ref="selectLabel" @tagSelected="handleSelect" :dialogVisible="dialogVisible"></SelectLabel>
</div>
......@@ -308,8 +308,8 @@ export default {
this.membersVisible = !this.membersVisible
},
handleCancel() {
// this.$router.push('/customerTransform/index')
this.$router.go(-1)
this.$router.push('/customerTransform/index')
// this.$router.go(-1)
},
// 成员弹窗
handleConfirm() {
......
......@@ -38,7 +38,7 @@
<el-form :model="basicForm" :rules="basicRules" ref="groupForm" label-width="120px">
<el-form-item prop="attachmentList">
<label slot="label" class="required">群发内容</label>
<WelcomeWords ref="welcome" :eventBus="eventBus"></WelcomeWords>
<WelcomeWords ref="welcome" :form="'customerGroup'" :eventBus="eventBus"></WelcomeWords>
</el-form-item>
<el-form-item label="发送时间" prop="sendType">
<el-radio-group v-model="basicForm.sendType">
......@@ -81,7 +81,7 @@
}"
>
<el-button type="primary" v-loading="addLoading" @click="handleSubmit">确定</el-button>
<el-button type="primary" @click="handleCancel">取消</el-button>
<el-button @click="handleCancel">取消</el-button>
</div>
<glsx-dialog
:title="'选择成员'"
......@@ -197,7 +197,8 @@ export default {
this.membersVisible = !this.membersVisible
},
handleCancel() {
this.$router.go(-1)
// this.$router.go(-1)
this.$router.push('/customerTransform/index')
},
// 成员弹窗
handleConfirm() {
......
......@@ -6,7 +6,7 @@
<div class="content-text">
<div class="detail-item">
<div class="detail-label">创建者:</div>
<div class="detail-value">{{basicInfo.createdBy ? basicInfo.createdBy : '-'}}</div>
<div class="detail-value">{{basicInfo.createdName ? basicInfo.createdName : '-'}}</div>
</div>
<div class="detail-item">
<div class="detail-label">群发类型:</div>
......
......@@ -81,7 +81,8 @@
</div>
<div class="tips-text">
<img src="../../../assets/guestCustom/tips.png" class="tips-icon" alt />
<span>客户每个月最多接收来自同一企业的管理员的 4 条群发消息,4条消息可在同一天发送,达到上限后,无法再接收管理员的群发消息。</span>
<span v-if="form == 'customer'">每位客户每天可接收1条群发消息,超过接收上限的客户将无法再收到群发消息。</span>
<span v-if="form == 'customerGroup'">每位客户群每天可接收1条群发消息,超过接收上限的客户群将无法再收到群发消息。</span>
</div>
</div>
<ActivityModel ref="activity" @selectActivity="selectActivity"></ActivityModel>
......@@ -107,7 +108,7 @@ export default {
ActivityModel,
wTextarea
},
props: { eventBus: Object },
props: ['eventBus', 'form'],
data() {
return {
loading: false,
......
......@@ -39,7 +39,7 @@
}"
>
<!-- <el-button type="primary" @click="handleNext">确定</el-button> -->
<el-button type="primary" @click="handleCancel">取消</el-button>
<el-button @click="handleCancel">取消</el-button>
</div>
</div>
</template>
......@@ -161,7 +161,8 @@ export default {
},
methods: {
handleCancel() {
this.$router.go(-1)
// this.$router.go(-1)
this.$router.push('/customerTransform/index')
},
remind(data) {
this.$apis.customerTransform
......
......@@ -101,7 +101,7 @@
>
<!-- <el-button type="primary" @click="handle
Next">确定</el-button>-->
<el-button type="primary" @click="handleCancel">取消</el-button>
<el-button @click="handleCancel">取消</el-button>
</div>
</div>
</template>
......@@ -140,7 +140,8 @@ export default {
this.getCustomerList(val)
},
handleCancel() {
this.$router.go(-1)
// this.$router.go(-1)
this.$router.push('/customerTransform/index')
},
remind(data, index) {
if (!data.remindStatus) {
......
......@@ -14,8 +14,13 @@
</div>
<div v-if="activeIndex == 1" class="container">
<div class="container-header">
<el-button
type="primary"
size="small"
icon="el-icon-plus"
@click="btnClick('create', 1)"
>新建群发</el-button>
<div class="text">企业统一选择要发送的客户,由添加客户的成员确认后发送给客户,消息内容仅管理员和负责人可创建。</div>
<el-button type="primary" icon="el-icon-plus" @click="btnClick('create', 1)">新建群发</el-button>
</div>
<!-- 表格区域 开始 -->
<GLTable
......@@ -46,7 +51,12 @@
<div v-if="activeIndex == 2" class="container">
<div class="container-header">
<div class="text">管理员或负责人统一创建内容,群主收到通知后,可选择他管理的客户群并群发。</div>
<el-button type="primary" icon="el-icon-plus" @click="btnClick('create', 2)">新建群发</el-button>
<el-button
type="primary"
size="small"
icon="el-icon-plus"
@click="btnClick('create', 2)"
>新建群发</el-button>
</div>
<!-- 表格区域 开始 -->
<GLTable
......@@ -274,7 +284,7 @@ export default {
<style lang="scss" scope>
.send-assistant {
margin-top: 26px;
// margin-top: 26px;
.menu-sub {
.menu-sub-item {
display: inline-block;
......@@ -298,12 +308,13 @@ export default {
margin-top: 2px;
&-header {
display: flex;
justify-content: space-between;
// justify-content: space-between;
align-items: center;
padding-bottom: 25px;
padding-bottom: 20px;
.text {
font-size: 14px;
color: #999;
margin-left: 20px;
}
}
}
......
......@@ -3,7 +3,7 @@
<div class="edit-share marketing p-t-20 edit-box">
<div class="container edit-container">
<p class="edit-title">{{ title }}秒杀活动</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" :labelWidth="labelWidth" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="140px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<template slot="activityTimeHtml">
<!-- <el-form-item> -->
<el-date-picker v-model="editForm.activityTime" type="datetimerange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd HH:mm:ss" :picker-options="pickerOptions" :default-time="['00:00:00', '23:59:59']" :disabled="isDisabled" clearable></el-date-picker>
......@@ -37,7 +37,7 @@
</tr>
</tbody>
</table>
<table class="table-spesc" :style="{ 'max-height': '400px', 'margin-left': labelWidth, width: `calc(100% - ${labelWidth} )` }">
<table class="table-spesc" style="max-height: 400px;">
<tbody>
<tr style="border-bottom: 1px solid rgb(235, 235, 235);" v-for="(item, index) in nameToValSpecsList" :key="index">
<td :style="{ width: specsWidth }" v-for="(n, idx) in item.specsValueList" :key="idx">{{ n }}</td>
......@@ -70,9 +70,9 @@
</glsx-combi-form>
</div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="default" v-if="apear != 'see'" @click="handleCancel">取消</el-button>
<el-button type="primary" v-if="apear != 'see'" @click="handleConfirm">确定</el-button>
<el-button type="default" v-if="apear == 'see'" @click="handleCancel">返回</el-button>
<el-button v-if="apear != 'see'" @click="handleCancel">取消</el-button>
<el-button v-if="apear == 'see'" @click="handleCancel">返回</el-button>
</div>
<select-single-pro-dialog v-if="isSingleSelectVisible" :isSingleSelectVisible="isSingleSelectVisible" :selectedProInfo="selectedProInfo" @handleSingleSelectConfirm="handleSingleSelectConfirm" @handleSingleSelectClose="handleSingleSelectClose"></select-single-pro-dialog>
</div>
......@@ -93,7 +93,6 @@ export default {
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef',
labelWidth: '140px',
pickerOptions: {
disabledDate(v) {
//禁用当前之前的日期
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!