Commit 89c41ee8 by 前端

Merge branch 'v2.4.0' into 'v2.5.0'

V2.4.0 to v2.5.0

See merge request !189
2 parents 2e79f94b 23e00ed6
<template>
<div class="tag-main">
<div class="tag-main select-tag">
<el-dialog title="选择标签" :visible.sync="dialogVisible" width="70%" :before-close="handleClose">
<div class="tag-panel">
<div class="tag-panel-select">
......@@ -26,14 +26,21 @@
<div class="tag-select-box">
<div class="tag-box-header">标签名称({{ selectNum }}项)</div>
<div class="tag-selected-box" :style="{ height: heightBox + 'px' }">
<template v-for="item in labelTreeRetSelect">
<template v-for="(tag, idx) in item.tagChecked">
<el-tag :title="tag.name" type="info" class="customer-tag-selected-item" :key="idx" v-if="tag" closable :disable-transitions="false" @close="remove(item, idx)">
<!-- {{ tag.name }} -->
{{ tag.name.length > 11 ? tag.name.slice(0, 11) + '...' : tag.name }}
</el-tag>
</template>
</template>
<div v-show="!!selectNum" class="tag-line-and" :style="{ height: heightBox + 'px' }">
<p class="tag-line"></p>
<p class="tag-and" :style="{ top: heightBox / 2 - 20 + 'px' }">且</p>
</div>
<div class="label-box">
<div v-for="(item, index) in labelTreeRetSelect" :key="index">
<p class="tag-selected-label" v-show="item.tagChecked.length">{{ item.labelGroup.name }}:</p>
<span v-for="(tag, idx) in item.tagChecked" :key="idx">
<span class="tag-txt" v-show="idx != 0">或</span>
<el-tag :title="tag.name" type="info" class="customer-tag-selected-item" :key="idx" v-if="tag" closable :disable-transitions="false" @close="remove(item, idx)">
{{ tag.name.length > 11 ? tag.name.slice(0, 11) + '...' : tag.name }}
</el-tag>
</span>
</div>
</div>
</div>
</div>
</div>
......@@ -274,6 +281,44 @@ export default {
text-decoration: underline;
cursor: pointer;
}
.select-tag {
.label-box {
margin-left: 42px;
height: 100%;
overflow-y: scroll;
}
.tag-selected-label {
margin: 9px 0;
}
.tag-line-and {
position: relative;
}
.tag-line {
position: absolute;
left: 17px;
border: 1px solid rgba(88, 80, 255, 1);
border-width: 0 0 0 1px;
height: 100%;
}
.tag-and {
position: absolute;
background: #efeeff;
border: 1px solid rgba(88, 80, 255, 1);
border-radius: 4px;
padding: 10px;
z-index: 20;
}
.tag-txt {
padding: 0 8px;
}
.customer-tag-selected-item {
background: #f4f6fc !important;
border: 1px solid rgba(232, 232, 234, 1) !important;
border-radius: 4px;
height: 26px;
line-height: 26px;
}
}
.tag-panel {
display: flex;
.tag-panel-select {
......@@ -360,5 +405,6 @@ export default {
}
.tag-selected-box {
min-height: 200px;
display: flex;
}
</style>
......@@ -302,7 +302,7 @@ export default {
if (item.attType == 1) {
const list = emoji.flat(Infinity)
const cutImg = item.attContent.replaceAll('<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/', '')
const replaceImg = cutImg.replace(/(\d){3}.png">/g, function (str) {
const replaceImg = cutImg.replace(/(\d){3}.png">/g, function(str) {
let s = list[parseInt(str.split('.')[0]) - 1]
return `[${s}]`
})
......@@ -354,7 +354,9 @@ export default {
const date = new Date(v).getTime()
if (date < Date.now()) {
this.timeOptions = {
selectableRange: `${dayjs().add(1, 'm').format('HH:mm')}:00 - 23:59:59`
selectableRange: `${dayjs()
.add(1, 'm')
.format('HH:mm')}:00 - 23:59:59`
}
} else {
this.timeOptions = {
......@@ -386,7 +388,8 @@ export default {
align-items: flex-end;
justify-content: space-between;
.info-content {
width: calc(100% - 360px);
// width: calc(100% - 360px);
width: 50%;
// flex: 1;
}
}
......
......@@ -3,11 +3,11 @@
* @Author: huyue
* @Date: 2022-05-24 18:18:53
* @LastEditors: huyue
* @LastEditTime: 2022-06-09 17:55:40
* @LastEditTime: 2022-06-13 16:51:03
-->
<template>
<div>
<el-dialog :title="'人群筛选'" :visible.sync="crowdVisible">
<el-dialog :title="'人群筛选'" :width="'1080px'" :visible.sync="crowdVisible">
<div class="member-wrapper">
<div class="member-left">
<div class="member-title">
......@@ -16,17 +16,14 @@
<div class="member-content">
<el-form :inline="true" class="member-form" :model="searchForm" @submit.native.prevent>
<el-form-item label="人群名称" style="margin-bottom: 0" size="small">
<el-input :size="size" v-model.trim="searchForm.keyword" @keyup.enter.native="search" clearable
placeholder="请输入关键字搜索"></el-input>
<el-input :size="size" v-model.trim="searchForm.keyword" @keyup.enter.native="search" clearable placeholder="请输入关键字搜索"></el-input>
</el-form-item>
<el-form-item label style="margin-bottom: 0;margin-left:10px" size="small">
<el-button type="primary" :size="size" @click="search">搜索</el-button>
</el-form-item>
</el-form>
<div class="table-content">
<GLTable v-loading="loading" ref="crowdTable" :tableData="tableData" @refreshTable="search"
:tableTotal="tableTotal" :layout="layout" :tableParams="crowdTableParams" :hasNum="true"
:pageConf="pageConf" :noDataImg="url" @selectionTable="selectionTable" @row-click="rowClick"></GLTable>
<GLTable v-loading="loading" ref="crowdTable" :tableData="tableData" @refreshTable="search" :tableTotal="tableTotal" :layout="layout" :tableParams="crowdTableParams" :hasNum="true" :pageConf="pageConf" :noDataImg="url" @selectionTable="selectionTable" @row-click="rowClick"></GLTable>
</div>
</div>
</div>
......@@ -35,8 +32,7 @@
<div class="member-name">人群({{ innerTags.length }}项)</div>
<div class="input-tag-wrapper">
<div class="tag-box">
<el-tag v-for="(tag, idx) in innerTags" :key="idx" type="info" closable :disable-transitions="false"
@close="remove(tag)">
<el-tag v-for="(tag, idx) in innerTags" :key="idx" type="info" closable :disable-transitions="false" @close="remove(tag)">
{{ tag.crowdName }}
</el-tag>
</div>
......@@ -44,8 +40,8 @@
</div>
</div>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="crowdVisible = false">取 消</el-button>
<el-button size="small" type="primary" @click.native="handleConfirm">确 定</el-button>
<el-button style="width: 68px;" size="small" @click="crowdVisible = false">取 消</el-button>
<el-button style="width: 68px;" size="small" type="primary" @click.native="handleConfirm">确 定</el-button>
</span>
</el-dialog>
</div>
......@@ -87,7 +83,9 @@ export default {
},
{
label: '人群描述',
prop: 'crowdDesc'
prop: 'crowdDesc',
width: '200',
line: 1
},
{
label: '人数',
......@@ -177,7 +175,7 @@ export default {
.member-title {
font-size: 16px;
color: #333;
font-weight: 600;
font-weight: 500;
line-height: 22px;
margin-bottom: 6px;
......@@ -287,7 +285,27 @@ export default {
background: #fafbfe !important;
}
/deep/.el-dialog__title {
font-weight: 600;
/deep/ {
.el-dialog__title {
font-weight: 600;
}
.el-dialog__header {
padding: 20px;
}
.el-dialog__headerbtn {
height: 30px;
.el-dialog__close {
width: 24px;
height: 24px;
}
}
.el-pagination {
padding-left: 20px;
border-top: 1px solid #e8e8ea;
padding-top: 16px;
}
.el-table:before {
display: none;
}
}
</style>
......@@ -25,6 +25,7 @@
<p>1.若插入活动发送失败,可能为企微未绑定活动小程序,请绑定后再尝试。</p>
<p>2.可能为客户开启消息免打扰,消息发送失败。</p>
<p>3.可能为群发次数达到上限,上限次数为每个客户/客户群每天仅可接收1条群发消息。</p>
<p>4.一个客户加多个员工时,先发消息的员工可以送达客户,后发消息的员工无法送达客户。</p>
<img slot="reference" :src="iconUrl" alt />
</el-popover>
</span>
......
......@@ -71,7 +71,7 @@
</glsx-combi-form>
<!-- <GLButton class="default-blue-btn" style="float: right; margin-bottom: 10px;" :size="size" fn="创建优惠券" @click="handleJumpCoupon">创建优惠券</GLButton> -->
<el-button class="default-blue-btn" style="float: right; margin-bottom: 10px;" :size="size" @click="handleJumpCoupon">创建优惠券</el-button>
<el-button class="default-blue-btn" style="float: right; margin: 0 10px 10px 0;" :size="size" @click="handleJumpCoupon">创建优惠券</el-button>
<GLTable ref="coupon" :hasNum="false" :getListApi="getListApi" :searchForm="searchForm" :tableParams="associationTableParams" :pageConf="pageConf" @setTableFinishFun="setTableFinishFun">
<div slot="association" slot-scope="scope" class="association">
<el-radio :label="scope.scope.id" v-model="associationRadio" @change.native="getCouponInfo()"></el-radio>
......@@ -245,19 +245,19 @@
<span class="txt-tips" style="margin-left: 20px;">销售:0</span>
</p>
</div>
<div class="inner-block" style="margin-bottom: 8px;">
<div :class="{ 'inner-block': !!nameToValSpecsList.length || editForm.deliveryType == 2 }" style="margin-bottom: 8px;">
<div class="line" v-if="nameToValSpecsList.length">
<span class="line-label">已选</span>
<span class="line-txt">{{ nameToValSpecsList[0].specificationData }}</span>
</div>
<div class="line" style="display: flex;">
<div v-show="editForm.deliveryType == 2" class="line" style="display: flex;">
<span class="line-label">配送</span>
<div>
<div style="height: 25px; line-height: 30px;" class="line-txt">填写地址</div>
<div style="height: 25px; line-height: 18px;" class="line-txt">支付后,预计48小时内发货</div>
</div>
</div>
<div class="line">
<div v-show="editForm.deliveryType == 2" class="line">
<span class="line-label">运费</span>
<span v-show="editForm.deliveryType == 1" class="line-txt">免运费</span>
<span v-show="editForm.deliveryType == 2" class="line-txt">{{ editForm.expressFee }}元</span>
......@@ -346,7 +346,7 @@ export default {
maxlength: 20
}
],
getListApi: this.$apis.couponManage.getMerchantListApi,
getListApi: this.$apis.couponManage.getCouponListApi,
associationTableParams: {
listName: 'list',
tableOption: false,
......@@ -1178,23 +1178,23 @@ export default {
}
// console.log(this.nameToValSpecsList)
// console.log(this.specificationDetailList)
if (isRecovery) {
this.nameToValSpecsList.forEach((item, index) => {
var specificationObj = {}
item.specsValueList.forEach((subItem, subIndex) => {
specificationObj[this.specificationDetailList[subIndex].specificationName] = subItem
})
item.specificationData = this.setLocaleCompare(specificationObj)
for (var i = 0; i < this.editForm.specificationDetailList.length; i++) {
var temp = this.editForm.specificationDetailList[i]
if (temp.specificationData == item.specificationData) {
item.retailPrice = (temp.retailPrice / 100).toFixed(2)
item.stock = temp.stock
break
}
}
// if (isRecovery) {
this.nameToValSpecsList.forEach((item, index) => {
var specificationObj = {}
item.specsValueList.forEach((subItem, subIndex) => {
specificationObj[this.specificationDetailList[subIndex].specificationName] = subItem
})
}
item.specificationData = this.setLocaleCompare(specificationObj)
for (var i = 0; i < this.editForm.specificationDetailList.length; i++) {
var temp = this.editForm.specificationDetailList[i]
if (temp.specificationData == item.specificationData) {
item.retailPrice = (temp.retailPrice / 100).toFixed(2)
item.stock = temp.stock
break
}
}
})
// }
// console.log(this.nameToValSpecsList)
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!