Commit 319cfbf3 by 前端

Merge branch 'develop' into 'master'

v2.4.0上线后,合并代码。

See merge request !198
2 parents be1cb5ce 8a86fb8f
import { http, http2 } from '@/main' import { http, http2, http_xiaolong } from '@/main'
const path = 'entmicro.api.mass.' const path = 'entmicro.api.mass.'
const URL = 'rop-scrm-entmicro/router' const URL = 'rop-scrm-entmicro/router'
...@@ -87,6 +87,7 @@ const groupList = params => { ...@@ -87,6 +87,7 @@ const groupList = params => {
} }
const customerCount = params => { const customerCount = params => {
params.method = 'entmicro.api.mass.detail.customer.filter.count' params.method = 'entmicro.api.mass.detail.customer.filter.count'
// return http({
return http({ return http({
url: URL, url: URL,
method: 'POST', method: 'POST',
...@@ -336,6 +337,26 @@ const followerType = params => { ...@@ -336,6 +337,26 @@ const followerType = params => {
}) })
} }
const queryCrowdtree = params => {
params.method = 'scrm.api.datahub.user.queryCrowdTree'
return http({
url: 'rop-scrm-datahub/router',
method: 'POST',
data: params,
sign: true
})
}
const followerEcho = params => {
params.method = 'entmicro.api.mass.follower.echo'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
export default { export default {
customerList, customerList,
customerGroupList, customerGroupList,
...@@ -369,5 +390,7 @@ export default { ...@@ -369,5 +390,7 @@ export default {
templateDetail, templateDetail,
groupDetailUpdate, groupDetailUpdate,
findLordGroup, findLordGroup,
followerType followerType,
queryCrowdtree,
followerEcho
} }
...@@ -145,6 +145,7 @@ html { ...@@ -145,6 +145,7 @@ html {
.marketing .default-blue-btn { .marketing .default-blue-btn {
color: #5850ff; color: #5850ff;
border-color: #5850ff; border-color: #5850ff;
height: 32px;
} }
.el-scrollbar__bar.is-horizontal { .el-scrollbar__bar.is-horizontal {
...@@ -160,7 +161,7 @@ html { ...@@ -160,7 +161,7 @@ html {
line-height: 32px; line-height: 32px;
} }
.marketing .table-cicle { .marketing .table-circle {
display: inline-block; display: inline-block;
width: 6px; width: 6px;
height: 6px; height: 6px;
...@@ -180,11 +181,11 @@ html { ...@@ -180,11 +181,11 @@ html {
} }
.marketing .back-green { .marketing .back-green {
background-color: #2CCA74; background-color: #2cca74;
} }
.marketing .back-red { .marketing .back-red {
background-color: #EB4E4E; background-color: #eb4e4e;
} }
.marketing .el-table .cell { .marketing .el-table .cell {
...@@ -335,8 +336,8 @@ html { ...@@ -335,8 +336,8 @@ html {
.marketing .txt-grey { .marketing .txt-grey {
color: #999999; color: #999999;
} }
.marketing .text-e8{ .marketing .text-e8 {
color: #EB4E4E!important; color: #eb4e4e !important;
} }
.marketing .txt-center { .marketing .txt-center {
text-align: center; text-align: center;
...@@ -496,17 +497,19 @@ html { ...@@ -496,17 +497,19 @@ html {
} }
.marketing .el-tabs__item { .marketing .el-tabs__item {
box-sizing: border-box;
width: 120px; width: 120px;
height: 40px !important; height: 48px !important;
line-height: 40px !important; line-height: 48px !important;
font-size: 14px; font-size: 14px;
text-align: center; text-align: center;
border: 0 !important; border: 0 !important;
background: #ffffff; color: #666666;
color: #999999; background: #fafafa;
border-radius: 0px 4px 0px 0px; border-radius: 4px 4px 0px 0px;
border: 1px solid #f4f6fc; border: 1px solid #eeedff;
padding: 0; padding: 0;
margin-right: 1px;
} }
.marketing .el-tabs__active-bar { .marketing .el-tabs__active-bar {
...@@ -519,10 +522,11 @@ html { ...@@ -519,10 +522,11 @@ html {
.marketing .el-tabs__item.is-active { .marketing .el-tabs__item.is-active {
color: #5850ff; color: #5850ff;
background: #f4f6fc !important; background: #ffffff !important;
border-radius: 4px 0px 0px 0px; border-radius: 4px 4px 0px 0px;
border: 1px solid #f4f6fc !important; border: 1px solid #eeedff !important;
} }
.marketing .tips-icon { .marketing .tips-icon {
display: inline-block; display: inline-block;
width: 14px; width: 14px;
...@@ -565,14 +569,14 @@ html { ...@@ -565,14 +569,14 @@ html {
.el-tooltip__popper.is-light { .el-tooltip__popper.is-light {
background: #ffffff; background: #ffffff;
box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.08); box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.08);
border: 1px solid #e4e7ed!important; border: 1px solid #e4e7ed !important;
width: 177px; width: 177px;
box-sizing: border-box; box-sizing: border-box;
} }
.el-tooltip__popper[x-placement^="top"] .popper__arrow { .el-tooltip__popper[x-placement^='top'] .popper__arrow {
border-top-color: #e4e7ed !important; border-top-color: #e4e7ed !important;
} }
.el-tooltip__popper[x-placement^="top"] .popper__arrow:after { .el-tooltip__popper[x-placement^='top'] .popper__arrow:after {
border-top-color: #e4e7ed !important; border-top-color: #e4e7ed !important;
} }
/* tab */ /* tab */
...@@ -7,8 +7,9 @@ ...@@ -7,8 +7,9 @@
<p class="noproP">系统暂无已创建的商品</p> <p class="noproP">系统暂无已创建的商品</p>
</div> </div>
<el-radio-group v-model="infoId" v-if="productList.length"> <el-radio-group v-model="infoId" v-if="productList.length">
<el-radio class="pro-box" v-for="item in productList" :key="item.id" :label="item.id"> <el-radio :class="['pro-box', item.id == infoId ? 'active' : '']" v-for="item in productList" :key="item.id" :label="item.id">
<img :src="item.goodsImage" /> <img v-show="item.id == infoId" class="icon-check" src="@/assets/icon-check.png" />
<img class="goods-img" :src="item.goodsImage" />
<div class="txt-box"> <div class="txt-box">
<p :title="item.goodsName" class="ellipsis">{{ item.goodsName }}</p> <p :title="item.goodsName" class="ellipsis">{{ item.goodsName }}</p>
<p class="f-s-12">销量:{{ item.saleAmount }}</p> <p class="f-s-12">销量:{{ item.saleAmount }}</p>
...@@ -44,7 +45,7 @@ export default { ...@@ -44,7 +45,7 @@ export default {
}, },
selectedProInfo: { selectedProInfo: {
type: Object, type: Object,
default: () => {} default: () => { }
} }
}, },
...@@ -73,13 +74,13 @@ export default { ...@@ -73,13 +74,13 @@ export default {
// console.log(res) // console.log(res)
this.fnCallBack = true this.fnCallBack = true
this.productList = res.list this.productList = res.list
this.productList.forEach(function(item) { this.productList.forEach(function (item) {
item.saleAmount = item.goodsStatistics.saleAmount item.saleAmount = item.goodsStatistics.saleAmount
if (item.specificationDetailList.length > 1) { if (item.specificationDetailList.length > 1) {
let retailPriceList = item.specificationDetailList.sort(function(a, b) { let retailPriceList = item.specificationDetailList.sort(function (a, b) {
return a.retailPrice - b.retailPrice return a.retailPrice - b.retailPrice
}) })
let stockeList = item.specificationDetailList.sort(function(a, b) { let stockeList = item.specificationDetailList.sort(function (a, b) {
return a.stock - b.stock return a.stock - b.stock
}) })
let minRatilPrice = retailPriceList[0].retailPrice / 100 let minRatilPrice = retailPriceList[0].retailPrice / 100
...@@ -133,18 +134,34 @@ export default { ...@@ -133,18 +134,34 @@ export default {
<style> <style>
.single-pro .pro-box { .single-pro .pro-box {
width: 202px; width: 202px;
border: 1px solid #cccccc; border: 1px solid #e5e5e5;
border-radius: 6px;
margin: 0 10px 10px 0; margin: 0 10px 10px 0;
} }
.single-pro .pro-box.active {
box-shadow: 0px 6px 20px 0px rgba(122, 122, 122, 0.2);
border: 1px solid #5850ff;
}
.single-pro .el-radio__inner {
display: none;
}
.single-pro .icon-check {
position: absolute;
top: 10px;
right: 10px;
width: 32px;
height: 32px;
}
.single-pro p { .single-pro p {
margin: 0 0 8px 0; margin: 0 0 8px 0;
} }
.single-pro .f-s-12 { .single-pro .f-s-12 {
font-size: 12px; font-size: 12px;
} }
.single-pro .pro-box img { .single-pro .pro-box .goods-img {
width: 202px; width: 202px;
height: 202px; height: 202px;
border-radius: 6px 6px 0 0;
} }
.single-pro .el-radio__input { .single-pro .el-radio__input {
position: absolute; position: absolute;
......
<template> <template>
<div class="tag-main"> <div class="tag-main select-tag">
<el-dialog title="选择标签" :visible.sync="dialogVisible" width="70%" :before-close="handleClose"> <el-dialog title="选择标签" :visible.sync="dialogVisible" width="70%" :before-close="handleClose">
<div class="tag-panel"> <div class="tag-panel">
<div class="tag-panel-select"> <div class="tag-panel-select">
...@@ -26,14 +26,21 @@ ...@@ -26,14 +26,21 @@
<div class="tag-select-box"> <div class="tag-select-box">
<div class="tag-box-header">标签名称({{ selectNum }}项)</div> <div class="tag-box-header">标签名称({{ selectNum }}项)</div>
<div class="tag-selected-box" :style="{ height: heightBox + 'px' }"> <div class="tag-selected-box" :style="{ height: heightBox + 'px' }">
<template v-for="item in labelTreeRetSelect"> <div v-show="!!selectNum" class="tag-line-and" :style="{ height: heightBox + 'px' }">
<template v-for="(tag, idx) in item.tagChecked"> <p class="tag-line"></p>
<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)"> <p class="tag-and" :style="{ top: heightBox / 2 - 20 + 'px' }">且</p>
<!-- {{ tag.name }} --> </div>
{{ tag.name.length > 11 ? tag.name.slice(0, 11) + '...' : tag.name }} <div class="label-box">
</el-tag> <div v-for="(item, index) in labelTreeRetSelect" :key="index">
</template> <p class="tag-selected-label" v-show="item.tagChecked.length">{{ item.labelGroup.name }}:</p>
</template> <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> </div>
</div> </div>
...@@ -274,6 +281,44 @@ export default { ...@@ -274,6 +281,44 @@ export default {
text-decoration: underline; text-decoration: underline;
cursor: pointer; 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 { .tag-panel {
display: flex; display: flex;
.tag-panel-select { .tag-panel-select {
...@@ -360,5 +405,6 @@ export default { ...@@ -360,5 +405,6 @@ export default {
} }
.tag-selected-box { .tag-selected-box {
min-height: 200px; min-height: 200px;
display: flex;
} }
</style> </style>
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* @version: 1.0.0 * @version: 1.0.0
* @Author: limin * @Author: limin
* @Date: 2021-08-13 14:12:11 * @Date: 2021-08-13 14:12:11
* @LastEditors: limin * @LastEditors: huyue
* @LastEditTime: 2021-09-24 10:41:31 * @LastEditTime: 2022-05-27 16:23:01
* @FilePath: \scrm\scrm-sub-blog\src\main.js * @FilePath: \scrm\scrm-sub-blog\src\main.js
*/ */
import Vue from 'vue' import Vue from 'vue'
...@@ -23,3 +23,4 @@ export const http = params => Vue.prototype.$http(params) ...@@ -23,3 +23,4 @@ export const http = params => Vue.prototype.$http(params)
export const http2 = params => Vue.prototype.$http2(params) export const http2 = params => Vue.prototype.$http2(params)
export const http_common = params => Vue.prototype.$http_common(params) export const http_common = params => Vue.prototype.$http_common(params)
export const http_merchant = params => Vue.prototype.$http_merchant(params) export const http_merchant = params => Vue.prototype.$http_merchant(params)
export const http_xiaolong = params => Vue.prototype.$http_xiaolong(params)
/*
* @Description:
* @Author: huyue
* @Date: 2022-01-20 18:06:46
* @LastEditors: huyue
* @LastEditTime: 2022-05-27 16:28:40
*/
import Vue from 'vue' import Vue from 'vue'
import { message, messageBox } from '@/plugins/element.js' import { message, messageBox } from '@/plugins/element.js'
import { fetchConfig } from '@/config' import { fetchConfig } from '@/config'
...@@ -15,7 +22,7 @@ Vue.use(ElementUI) ...@@ -15,7 +22,7 @@ Vue.use(ElementUI)
Vue.use(GLTable) Vue.use(GLTable)
Vue.use(GLFooter) Vue.use(GLFooter)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) { export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, request2, sign, secret, sign_common, request_common, request_merchant } = await fetchConfig(false) const { response, request, request2, sign, secret, sign_common, request_common, request_merchant, xiaolong_req } = await fetchConfig(false)
Vue.prototype.$history = history Vue.prototype.$history = history
Vue.prototype.$messenger = messenger Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState Vue.prototype.$globalState = globalState
...@@ -28,6 +35,7 @@ export async function bootstrap({ history, common, messenger, globalState, route ...@@ -28,6 +35,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$http2 = new common.Http({ response, request: request2, sign, secret, alert: message.error, headers: { token: globalState.session.token } }) Vue.prototype.$http2 = new common.Http({ response, request: request2, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_merchant = new common.Http({ response, request: request_merchant, sign, secret, alert: message.error, headers: { token: globalState.session.token } }) Vue.prototype.$http_merchant = new common.Http({ response, request: request_merchant, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_common = new common.Http({ response, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } }) Vue.prototype.$http_common = new common.Http({ response, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } })
Vue.prototype.$http_xiaolong = new common.Http({ response, request: xiaolong_req, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState // Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
// Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] }) // Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
const routesData = common.utils.deepClone(globalState.routers) const routesData = common.utils.deepClone(globalState.routers)
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<img :src="require(`@/assets/coupon/icon-${attrToIcon[scope.scope.discountType]}.png`)" /> <img :src="require(`@/assets/coupon/icon-${attrToIcon[scope.scope.discountType]}.png`)" />
</template> </template>
<div slot="status" slot-scope="scope"> <div slot="status" slot-scope="scope">
<span :class="['table-cicle', 'm-r-8', scope.scope.status == 1 ? 'back-orange' : scope.scope.status == 2 ? 'back-blue' : 'back-grey']"></span> <span :class="['table-circle', 'm-r-8', scope.scope.status == 1 ? 'back-orange' : scope.scope.status == 2 ? 'back-blue' : 'back-grey']"></span>
<span>{{ baseData.statusList.find(item => item.confId == scope.scope.status).confName }}</span> <span>{{ baseData.statusList.find(item => item.confId == scope.scope.status).confName }}</span>
</div> </div>
<div class="table-btns" slot="auth-button" slot-scope="scope"> <div class="table-btns" slot="auth-button" slot-scope="scope">
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="receiveList" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable ref="receiveList" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div slot="userStatus" slot-scope="scope"> <div slot="userStatus" slot-scope="scope">
<span :class="['table-cicle', 'm-r-8', scope.scope.userStatus == 1 ? 'back-green' : scope.scope.userStatus == 2 ? 'back-red' : 'back-grey']"></span> <span :class="['table-circle', 'm-r-8', scope.scope.userStatus == 1 ? 'back-green' : scope.scope.userStatus == 2 ? 'back-red' : 'back-grey']"></span>
<span>{{ baseData.userStatusList.find(item => item.confId == scope.scope.userStatus).confName }}</span> <span>{{ baseData.userStatusList.find(item => item.confId == scope.scope.userStatus).confName }}</span>
</div> </div>
</GLTable> </GLTable>
......
...@@ -259,7 +259,6 @@ export default { ...@@ -259,7 +259,6 @@ export default {
} }
}, },
created() { created() {
console.log(this.$globalState.session)
if (this.$isGroupUp) { if (this.$isGroupUp) {
this.getPackageList() this.getPackageList()
} }
......
...@@ -302,7 +302,7 @@ export default { ...@@ -302,7 +302,7 @@ export default {
if (item.attType == 1) { if (item.attType == 1) {
const list = emoji.flat(Infinity) const list = emoji.flat(Infinity)
const cutImg = item.attContent.replaceAll('<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/', '') 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] let s = list[parseInt(str.split('.')[0]) - 1]
return `[${s}]` return `[${s}]`
}) })
...@@ -354,7 +354,9 @@ export default { ...@@ -354,7 +354,9 @@ export default {
const date = new Date(v).getTime() const date = new Date(v).getTime()
if (date < Date.now()) { if (date < Date.now()) {
this.timeOptions = { 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 { } else {
this.timeOptions = { this.timeOptions = {
...@@ -386,7 +388,8 @@ export default { ...@@ -386,7 +388,8 @@ export default {
align-items: flex-end; align-items: flex-end;
justify-content: space-between; justify-content: space-between;
.info-content { .info-content {
width: calc(100% - 360px); // width: calc(100% - 360px);
width: 50%;
// flex: 1; // flex: 1;
} }
} }
......
...@@ -104,6 +104,22 @@ ...@@ -104,6 +104,22 @@
</span> </span>
</div> </div>
</div> </div>
<div class="detail-condition" v-if="form == 'customer' && basicInfo.selectType == 3">
<div class="detail-condition-item" style="width: 100%;">
<span class="name">人群</span>
<span v-for="(ite, index) in basicInfo.conditionResponses" class="el-tag-item" :key="index">
<el-tag v-if="index < 2" type="info">{{ ite.crowdName }}</el-tag>
<el-tag type="info" v-if="basicInfo.conditionResponses.length > 2 && index == 2">
<el-popover placement="top" width="300" trigger="hover">
<span slot="reference">...({{ basicInfo.conditionResponses.length }})</span>
<div class="entmicro-hover">
<el-tag type="info" v-for="(ins, index) in basicInfo.conditionResponses" :key="index" :disable-transitions="false">{{ ins.crowdName }}</el-tag>
</div>
</el-popover>
</el-tag>
</span>
</div>
</div>
</div> </div>
<div class="title">数据统计</div> <div class="title">数据统计</div>
<div class="statistics-info"> <div class="statistics-info">
...@@ -241,7 +257,7 @@ export default { ...@@ -241,7 +257,7 @@ export default {
} }
} }
</script> </script>
<style lang="scss" scope> <style lang="scss">
.container { .container {
margin-bottom: 20px; margin-bottom: 20px;
background-color: #ffffff; background-color: #ffffff;
......
...@@ -59,7 +59,7 @@ export default { ...@@ -59,7 +59,7 @@ export default {
previewList(val) { previewList(val) {
if (val.length && val[0].attType == 1) { if (val.length && val[0].attType == 1) {
const attContent = val[0].attContent const attContent = val[0].attContent
const htm = attContent.replace(/\[[\u4E00-\u9FA56]{1,4}]/gi, function (res) { const htm = attContent.replace(/\[[\u4E00-\u9FA56]{1,4}]/gi, function(res) {
let word = res.replace(/\[|\]/gi, '') let word = res.replace(/\[|\]/gi, '')
const list = emoji.flat(Infinity) const list = emoji.flat(Infinity)
let index = parseInt(list.indexOf(word)) + 1 let index = parseInt(list.indexOf(word)) + 1
...@@ -128,14 +128,17 @@ export default { ...@@ -128,14 +128,17 @@ export default {
word-break: break-all; word-break: break-all;
display: flex; display: flex;
img { img {
width: 20px; width: 16px;
height: 20px; height: 16px;
vertical-align: middle;
} }
} }
.text { .text {
display: inline-block; display: inline-block;
font-size: 16px; font-size: 12px;
padding: 8px 11px; padding: 8px 11px;
line-height: 16px;
white-space: pre-wrap;
} }
.preview-link { .preview-link {
display: inline-flex; display: inline-flex;
......
<!--
* @Description:
* @Author: huyue
* @Date: 2022-05-24 18:18:53
* @LastEditors: huyue
* @LastEditTime: 2022-06-15 17:25:53
-->
<template>
<div>
<el-dialog :title="'人群筛选'" :width="'1080px'" :visible.sync="crowdVisible" v-if="crowdVisible">
<div class="member-wrapper">
<div class="member-left">
<div class="member-title">
人群列表
</div>
<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-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="getCrowdList" :tableTotal="tableTotal" :layout="layout" :tableParams="crowdTableParams" :hasNum="true" :pageConf="pageConf" :noDataImg="url" @selectionTable="handleSelectionTable" @row-click="rowClick"></GLTable>
</div>
</div>
</div>
<div class="member-right">
<div class="member-title">已选</div>
<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, idx)">
{{ tag.crowdName }}
</el-tag>
</div>
</div>
</div>
</div>
<span slot="footer" class="dialog-footer">
<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>
</template>
<script>
// import url from '@/assets/empty.png'
export default {
name: 'SelectCrowd',
data() {
return {
url: 0,
crowdVisible: false,
searchForm: { keyword: '' },
innerTags: [],
inner: [],
tableCrowdData: [
{
name: 'asda'
}
],
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
layout: 'sizes, prev, pager, next, jumper, ->, total',
tableData: [],
tableTotal: 0,
crowdTableParams: {
checkSelectKey: 'id',
checkSelectVal: [],
hasNum: false,
listName: 'crowdUnitList',
// 行数据的key
mutiSelectUniqueKey: 'crowdId',
// 多选ref的名称
mutiSelectName: 'crowdlist',
tableColumns: [
{
label: '人群名称',
prop: 'crowdName'
},
{
label: '人群描述',
prop: 'crowdDesc',
width: '200',
line: 1
},
{
label: '人数',
prop: 'total'
}
]
}
}
},
methods: {
init(val) {
// console.log(val)
this.inner = this.$common.utils.deepClone(val)
this.innerTags = this.$common.utils.deepClone(val)
this.crowdVisible = true
this.searchForm.keyword = ''
this.$nextTick(() => {
this.$refs.crowdTable.$refs.crowdlistMutiTable.clearSelection()
this.$refs.crowdTable.page.pageNum = 1
this.getCrowdList()
})
},
getCrowdList(page = { pageNum: 1, pageSize: 10 }) {
this.$refs.crowdTable.page = page
var params = {
req: {
keyword: this.searchForm.keyword,
merchantId: this.$globalState.session.merchantId,
crowdType: 3,
filterType: 2,
pageSize: page.pageSize,
pageNum: page.pageNum
}
}
this.$apis.customerTransform.queryCrowdtree(params).then(res => {
this.tableData = res.crowdUnitList
this.tableTotal = res.total
// console.log(this.inner)
// console.log(this.tableData)
// this.tableData.forEach(item => {
// this.inner.forEach((itm, index) => {
// if (itm.crowdId == item.crowdId) {
// this.rowClick(item)
// }
// })
// })
this.recoverySelected()
})
},
// selectionTable(val) {
// this.innerTags = []
// for (let i = 0; i < val.length; i++) {
// const tagArr = this.innerTags.map(item => item.crowdId + '')
// console.log(tagArr)
// if (!tagArr.includes(val[i].crowdId)) {
// this.innerTags.push(val[i])
// }
// console.log(this.innerTags)
// }
// },
// 选择/取消
handleSelectionTable(val) {
var list = JSON.parse(JSON.stringify(this.innerTags))
this.innerTags = []
val.forEach(item => {
if (this.innerTags.findIndex(k => k.crowdId == item.crowdId) == '-1') {
this.innerTags.push(item)
}
})
list.forEach(item => {
if (this.tableData.findIndex(k => k.crowdId == item.crowdId) == '-1' && this.innerTags.findIndex(k => k.crowdId == item.crowdId) == '-1') {
this.innerTags.push(item)
}
})
},
// 恢复选择
addSelected() {
this.$nextTick(() => {
var list = JSON.parse(JSON.stringify(this.innerTags))
if (list && list.length) {
list.forEach(row => {
var idx = this.tableData.findIndex(k => k.crowdId == row.crowdId)
if (idx != -1) {
this.$refs.crowdTable.$refs.crowdlistMutiTable.toggleRowSelection(this.tableData[idx], true)
}
})
}
})
},
recoverySelected() {
// 翻页,去掉已选项
var selectedData = this.$refs.crowdTable.mutiSelectArr.crowdlist
var deleteList = []
this.addSelected()
if (selectedData) {
selectedData.forEach(item => {
if (this.innerTags.findIndex(subItem => subItem.crowdId == item.crowdId) == -1) {
deleteList.push(item)
}
})
this.deleteSelected(deleteList)
}
},
// 删除选中
deleteSelected(deleteList) {
this.$nextTick(() => {
deleteList.forEach(row => {
var idx = this.tableData.findIndex(k => k.crowdId == row.crowdId)
if (idx != -1) {
this.$refs.crowdTable.$refs.crowdlistMutiTable.toggleRowSelection(this.tableData[idx], false)
}
})
})
},
remove(item) {
var idx = this.innerTags.findIndex(k => k.crowdId == item.crowdId)
this.innerTags.splice(idx, 1)
if (this.tableData.map(k => k.crowdId).includes(item.crowdId)) {
var i = this.tableData.findIndex(k => k.crowdId == item.crowdId)
this.$refs.crowdTable.$refs.crowdlistMutiTable.toggleRowSelection(this.tableData[i])
}
},
rowClick(row) {
this.$refs.crowdTable.$refs.crowdlistMutiTable.toggleRowSelection(row)
},
search() {
this.getCrowdList({ pageNum: 1, pageSize: 10 })
},
handleConfirm() {
// console.log(this.innerTags)
this.$emit('crowdData', this.innerTags)
this.crowdVisible = false
this.searchForm = { keyword: {} }
}
}
}
</script>
<style lang="scss" scoped>
.member-wrapper {
display: flex;
.member-title {
font-size: 16px;
color: #333;
font-weight: 500;
line-height: 22px;
margin-bottom: 6px;
span {
display: inline-block;
padding-left: 5px;
font-size: 12px;
color: #999;
font-weight: 500;
}
}
.member-left {
width: 800px;
.member-content {
border: 1px solid #eee;
padding-bottom: 20px;
/deep/ {
.el-table {
// height: 40vh;
overflow-y: auto;
}
}
.member-form {
padding: 10px 20px;
}
.table-content {
max-height: 500px;
overflow: auto;
border-top: 1px solid #eee;
}
}
.member-checked {
text-align: right;
margin-top: 10px;
}
}
.member-right {
width: 286px;
margin-left: 14px;
.member-name {
font-size: 14px;
color: #333;
line-height: 20px;
padding: 18px;
border: 1px solid #eee;
}
}
}
.tag-box {
height: 100%;
width: 100%;
}
.input-tag-wrapper {
position: relative;
font-size: 14px;
border: 1px solid #eee;
border-top: none;
box-sizing: border-box;
color: #606266;
display: inline-block;
padding: 8px 10px;
line-height: 32px;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 100%;
height: calc(100% - 86px);
display: flex;
align-items: center;
max-height: 500px;
overflow: auto;
// margin-bottom: 10px;
i {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
/deep/ input {
/* input { */
/* background-color: red!important; 调试用的样式 */
outline: none !important;
border: none !important;
}
/deep/ .el-input {
min-width: 150px;
width: auto;
flex: 1;
}
}
.el-tag {
margin-right: 10px;
line-height: 22px;
margin-bottom: 5px;
height: 24px;
background: #fafbfe !important;
}
/deep/ {
.el-dialog__title {
font-weight: 600;
}
.el-dialog__header {
padding: 20px;
}
.el-dialog__headerbtn {
height: 30px;
.el-dialog__close {
width: 24px;
height: 24px;
font-size: 24px;
}
}
.el-pagination {
padding-left: 20px;
border-top: 1px solid #e8e8ea;
padding-top: 16px;
}
.el-table:before {
display: none;
}
}
</style>
...@@ -260,7 +260,7 @@ export default { ...@@ -260,7 +260,7 @@ export default {
.table-content { .table-content {
max-height: 456px; max-height: 456px;
overflow: auto; overflow: auto;
border: 1px solid #eee; border-top: 1px solid #eee;
} }
} }
.member-checked { .member-checked {
......
...@@ -291,7 +291,7 @@ export default { ...@@ -291,7 +291,7 @@ export default {
.table-content { .table-content {
max-height: 456px; max-height: 456px;
overflow: auto; overflow: auto;
border: 1px solid #eee; border-top: 1px solid #eee;
} }
} }
.member-checked { .member-checked {
......
...@@ -335,11 +335,12 @@ export default { ...@@ -335,11 +335,12 @@ export default {
-webkit-user-modify: read-only !important; -webkit-user-modify: read-only !important;
} }
img { img {
width: 24px; width: 18px;
height: 24px; height: 18px;
-webkit-user-select: none; -webkit-user-select: none;
cursor: default; cursor: default;
pointer-events: none; pointer-events: none;
vertical-align: middle;
} }
.active { .active {
background: #dcdfe6; background: #dcdfe6;
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
</div> </div>
<div class="tips-text"> <div class="tips-text">
<img src="@/assets/guestCustom/tips.png" class="tips-icon" alt /> <div class="tips-icon"><img src="@/assets/guestCustom/tips.png" alt /></div>
<span v-if="form == 'customer'">每位客户每天可接收1条群发消息,超过接收上限的客户将无法再收到群发消息。</span> <span v-if="form == 'customer'">每位客户每天可接收1条群发消息,超过接收上限的客户将无法再收到群发消息。</span>
<span v-if="form == 'customerGroup'">每个客户群每天可接收1条群发消息,超过接收上限的客户群将无法再收到群发消息。</span> <span v-if="form == 'customerGroup'">每个客户群每天可接收1条群发消息,超过接收上限的客户群将无法再收到群发消息。</span>
</div> </div>
...@@ -323,7 +323,7 @@ export default { ...@@ -323,7 +323,7 @@ export default {
} }
} }
}, },
changeInput: utils.debounce(function () { changeInput: utils.debounce(function() {
var allNodes = document.getElementById('editor').childNodes var allNodes = document.getElementById('editor').childNodes
var str = '' var str = ''
allNodes.forEach(item => { allNodes.forEach(item => {
...@@ -341,7 +341,7 @@ export default { ...@@ -341,7 +341,7 @@ export default {
this.eventBus.$emit('update', this.previewList) this.eventBus.$emit('update', this.previewList)
const obj = val.find(item => item.attType == 1) const obj = val.find(item => item.attType == 1)
let attContent = obj.attContent.replaceAll('[@昵称]', '<wise id="1">@昵称</wise>') let attContent = obj.attContent.replaceAll('[@昵称]', '<wise id="1">@昵称</wise>')
const htm = attContent.replace(/\[[\u4E00-\u9FA56]{1,4}]/gi, function (res) { const htm = attContent.replace(/\[[\u4E00-\u9FA56]{1,4}]/gi, function(res) {
let word = res.replace(/\[|\]/gi, '') let word = res.replace(/\[|\]/gi, '')
const list = emoji.flat(Infinity) const list = emoji.flat(Infinity)
let index = parseInt(list.indexOf(word)) + 1 let index = parseInt(list.indexOf(word)) + 1
...@@ -520,19 +520,25 @@ export default { ...@@ -520,19 +520,25 @@ export default {
} }
.tips-text { .tips-text {
display: flex; display: flex;
align-items: center; // align-items: center;
justify-self: center; justify-self: center;
color: #000; color: #000;
font-size: 14px; font-size: 14px;
padding: 0 16px; padding: 10px 16px;
margin-top: 10px; margin-top: 10px;
background-color: rgba(230, 233, 255, 0.49); background-color: rgba(230, 233, 255, 0.49);
border: 1px solid rgba(88, 80, 255, 0.49); border: 1px solid rgba(88, 80, 255, 0.49);
border-radius: 4px; border-radius: 4px;
line-height: 20px;
.tips-icon { .tips-icon {
width: 14px; display: flex;
height: 14px; align-items: center;
margin-right: 8px; height: 20px;
img {
width: 14px;
height: 14px;
margin-right: 8px;
}
} }
} }
// 编辑器 // 编辑器
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
<p>1.若插入活动发送失败,可能为企微未绑定活动小程序,请绑定后再尝试。</p> <p>1.若插入活动发送失败,可能为企微未绑定活动小程序,请绑定后再尝试。</p>
<p>2.可能为客户开启消息免打扰,消息发送失败。</p> <p>2.可能为客户开启消息免打扰,消息发送失败。</p>
<p>3.可能为群发次数达到上限,上限次数为每个客户/客户群每天仅可接收1条群发消息。</p> <p>3.可能为群发次数达到上限,上限次数为每个客户/客户群每天仅可接收1条群发消息。</p>
<p>4.一个客户加多个员工时,先发消息的员工可以送达客户,后发消息的员工无法送达客户。</p>
<img slot="reference" :src="iconUrl" alt /> <img slot="reference" :src="iconUrl" alt />
</el-popover> </el-popover>
</span> </span>
......
...@@ -260,7 +260,7 @@ export default { ...@@ -260,7 +260,7 @@ export default {
.table-content { .table-content {
max-height: 456px; max-height: 456px;
overflow: auto; overflow: auto;
border: 1px solid #eee; border-top: 1px solid #eee;
} }
} }
.member-checked { .member-checked {
......
...@@ -292,7 +292,7 @@ export default { ...@@ -292,7 +292,7 @@ export default {
.table-content { .table-content {
max-height: 456px; max-height: 456px;
overflow: auto; overflow: auto;
border: 1px solid #eee; border-top: 1px solid #eee;
} }
} }
.member-checked { .member-checked {
......
...@@ -26,6 +26,16 @@ ...@@ -26,6 +26,16 @@
<el-form-item size="small" label="开通门店" style="margin-left: -10px"> <el-form-item size="small" label="开通门店" style="margin-left: -10px">
<el-input :size="size" v-model="searchForm.merchantName" placeholder="请输入门店" clearable></el-input> <el-input :size="size" v-model="searchForm.merchantName" placeholder="请输入门店" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item v-show="$isGroupUp" size="small" class="fr-mr0">
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
<el-button :size="size" type="primary" @click="handleExport">导出</el-button>
<el-button :size="size" @click="handleReset">重置</el-button>
</el-form-item>
</el-row>
<el-row v-show="!$isGroupUp">
<el-form-item size="small" label="推荐人">
<el-input :size="size" v-model="searchForm.shareStaffName" placeholder="请输入推荐人" clearable></el-input>
</el-form-item>
<el-form-item size="small" class="fr-mr0"> <el-form-item size="small" class="fr-mr0">
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button> <el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
<el-button :size="size" type="primary" @click="handleExport">导出</el-button> <el-button :size="size" type="primary" @click="handleExport">导出</el-button>
...@@ -131,11 +141,12 @@ export default { ...@@ -131,11 +141,12 @@ export default {
// } // }
}, },
{ {
label: '价格', label: '价格/元',
prop: 'originalPrice' prop: 'originalPrice'
}, },
{ {
label: '实收金额', label: '实收金额/元',
width: '120',
prop: 'realPayPrice' prop: 'realPayPrice'
}, },
{ {
...@@ -156,7 +167,14 @@ export default { ...@@ -156,7 +167,14 @@ export default {
prop: 'merchantName', prop: 'merchantName',
width: '180' width: '180'
}, },
{
label: '推荐人',
prop: 'shareStaffName',
width: '120',
formatter: cellValue => {
return cellValue.shareStaffName || '-'
}
},
{ {
label: '用户信息', label: '用户信息',
prop: 'accountName', prop: 'accountName',
...@@ -182,8 +200,12 @@ export default { ...@@ -182,8 +200,12 @@ export default {
this.merchantModel = this.$globalState.session.merchantModel this.merchantModel = this.$globalState.session.merchantModel
this.accountLevel = this.$globalState.session.accountLevel this.accountLevel = this.$globalState.session.accountLevel
} }
if (this.$isGroupUp) {
let idx = this.tableParams.tableColumns.findIndex(item => item.label == '推荐人')
this.tableParams.tableColumns.splice(idx, 1)
}
}, },
mounted() {}, mounted() { },
methods: { methods: {
tabClick(index) { tabClick(index) {
this.currentIndex = index this.currentIndex = index
...@@ -291,7 +313,7 @@ export default { ...@@ -291,7 +313,7 @@ export default {
this.currentIndex = 1 this.currentIndex = 1
this.searchForm = {} this.searchForm = {}
this.searchForm.orderStatus = '' //默认查询全部 this.searchForm.orderStatus = '' //默认查询全部
this.searchForm.orderType = '' this.searchForm.orderType = ''
// this.handleSearch() // this.handleSearch()
this.$nextTick(() => { this.$nextTick(() => {
this.isReload = true this.isReload = true
......
<!-- 订单管理 --> <!-- 订单管理 -->
<template> <template>
<div class="marketing p-t-20"> <div class="marketing p-t-20 order-manage">
<div class="container"> <div class="container">
<div class="list-tips">
<img class="tips-img" src="@/assets/icon-info.png" />
<span>
已生成有效订单
<span class="red-txt">&nbsp;{{ statisticsInfo.orderCount || 0 }}&nbsp;</span>
项 累计订单总额:
<span class="red-txt">{{ statisticsInfo.payPriceTotal || 0 }}&nbsp;</span>
元 累计退款总额:
<span class="red-txt">{{ statisticsInfo.refundTotal || 0 }}&nbsp;</span>
元
</span>
</div>
<div> <div>
<glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData1"></glsx-combi-form> <glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData1"></glsx-combi-form>
<glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData2"></glsx-combi-form> <glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData2"></glsx-combi-form>
<glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData3"> <glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData3"></glsx-combi-form>
<glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData4">
<span slot="footer" class="footer-btns"> <span slot="footer" class="footer-btns">
<el-button :size="size" type="default" @click="handleReset">重置</el-button> <el-button :size="size" type="default" @click="handleReset">重置</el-button>
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button> <el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
<el-button :size="size" type="primary" @click="handleExport">导出</el-button>
</span> </span>
</glsx-combi-form> </glsx-combi-form>
</div> </div>
<el-tabs v-model="activeName" @tab-click="handleTabClick"> <div class="flex">
<el-tab-pane label="全部订单" name="allOrder"></el-tab-pane> <div class="flex-default">
<el-tab-pane label="售后订单" name="afterOrder"></el-tab-pane> <el-tabs v-model="activeName" @tab-click="handleTabClick">
</el-tabs> <el-tab-pane label="全部订单" name="allOrder"></el-tab-pane>
<el-tab-pane label="售后订单" name="afterOrder"></el-tab-pane>
</el-tabs>
<span class="table-tips">
已生成有效订单
<span class="txt-blue">&nbsp;{{ statisticsInfo.orderCount || 0 }}&nbsp;</span>
项 累计订单总额:
<span class="txt-blue">{{ statisticsInfo.payPriceTotal || 0 }}&nbsp;</span>
元 累计退款总额:
<span class="txt-blue">{{ statisticsInfo.refundTotal || 0 }}&nbsp;</span>
元
</span>
</div>
<el-button class="default-blue-btn" :size="size" type="default" @click="handleExport">导出</el-button>
</div>
<!-- 表格区域 - 全部订单/售后订单 - 开始 --> <!-- 表格区域 - 全部订单/售后订单 - 开始 -->
<GLTable ref="allOrderRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable ref="allOrderRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<template slot="vinNo" slot-scope="scope">
{{ Array.isArray(scope.scope.vinNo) ? scope.scope.vinNo[0] : scope.scope.vinNo }}
<el-popover popper-class="order-table-popover" placement="right-start" trigger="click">
<p v-for="(item, index) in scope.scope.vinNo" :key="index">{{ item }}</p>
<span class="car-no" slot="reference" v-show="Array.isArray(scope.scope.vinNo)">...({{ scope.scope.vinNo.length - 1 }})</span>
</el-popover>
</template>
<div slot="orderStatus" slot-scope="scope">
<span :class="['table-circle', 'm-r-8', [2, 10, 22].includes(scope.scope.orderStatus) ? 'back-green' : [9].includes(scope.scope.orderStatus) ? 'back-blue' : [1, 21, 6].includes(scope.scope.orderStatus) ? 'back-orange' : 'back-grey']"></span>
<span>{{ baseData.orderStatusList.map(item => item.confId).includes(scope.scope.orderStatus + '') ? baseData.orderStatusList.find(item => item.confId == scope.scope.orderStatus).confName : '-' }}</span>
</div>
<div class="table-btns" slot="auth-button" slot-scope="scope"> <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> <GLButton type="text" fn="查看订单" @click="handleDetail(scope.scope)">查看订单</GLButton>
...@@ -134,7 +148,9 @@ export default { ...@@ -134,7 +148,9 @@ export default {
customerName: '', customerName: '',
createDate: [], createDate: [],
orderSource: '', orderSource: '',
deliveryType: '' deliveryType: '',
vin: '',
shareStaffName: ''
}, },
tableSearchForm: {}, tableSearchForm: {},
statisticsInfo: { statisticsInfo: {
...@@ -185,6 +201,7 @@ export default { ...@@ -185,6 +201,7 @@ export default {
label: '售后状态', label: '售后状态',
name: 'afterSaleStatuses', name: 'afterSaleStatuses',
type: 'select', type: 'select',
labelWidth: 72,
multiple: true, multiple: true,
optionList: [], optionList: [],
optionId: 'confId', optionId: 'confId',
...@@ -230,6 +247,7 @@ export default { ...@@ -230,6 +247,7 @@ export default {
label: '订单日期', label: '订单日期',
name: 'createDate', name: 'createDate',
type: 'datePicker', type: 'datePicker',
labelWidth: 72,
isClear: true, isClear: true,
pickerOptions: 'beforeRangePickerOptions' pickerOptions: 'beforeRangePickerOptions'
} }
...@@ -252,6 +270,28 @@ export default { ...@@ -252,6 +270,28 @@ export default {
optionId: 'confId', optionId: 'confId',
optionLabel: 'confName', optionLabel: 'confName',
optionsName: 'deliveryTypeList' optionsName: 'deliveryTypeList'
},
{
label: '商户订单号',
name: 'outTradeNo',
type: 'input',
maxlength: 50
}
],
searchFormData4: [
{
label: '车架号',
name: 'vin',
labelWidth: 56,
type: 'input',
maxlength: 50
},
{
label: '推荐人',
name: 'shareStaffName',
labelWidth: 56,
type: 'input',
maxlength: 100
} }
], ],
// 快递信息 // 快递信息
...@@ -349,7 +389,15 @@ export default { ...@@ -349,7 +389,15 @@ export default {
{ {
label: '订单编号', label: '订单编号',
prop: 'orderCode', prop: 'orderCode',
width: '160' width: '180'
},
{
label: '商户订单号',
prop: 'outTradeNo',
width: '160',
formatter: cellValue => {
return cellValue.outTradeNo || '-'
}
}, },
{ {
label: '订单时间', label: '订单时间',
...@@ -360,15 +408,32 @@ export default { ...@@ -360,15 +408,32 @@ export default {
} }
}, },
{ {
label: '客户信息', label: '客户名称',
prop: 'customerName', prop: 'customerName',
line: 2 line: 2,
width: 180,
formatter: cellValue => {
return cellValue.customerName || '-'
}
},
{
label: '车架号',
prop: 'vinNo',
width: 120,
addHtml: 'vinNo'
}, },
{ {
label: '订单状态', label: '订单状态',
prop: 'orderStatus', prop: 'orderStatus',
addHtml: 'orderStatus',
width: 160
},
{
label: '推荐人',
prop: 'shareStaffName',
width: '180',
formatter: cellValue => { formatter: cellValue => {
return this.baseData.orderStatusList.map(item => item.confId).includes(cellValue.orderStatus + '') ? this.baseData.orderStatusList.find(item => item.confId == cellValue.orderStatus).confName : '-' return cellValue.shareStaffName || '-'
} }
}, },
{ {
...@@ -381,7 +446,8 @@ export default { ...@@ -381,7 +446,8 @@ export default {
{ {
label: '门店信息', label: '门店信息',
prop: 'merchantName', prop: 'merchantName',
line: 2 line: 2,
width: 180
}, },
{ {
label: '订单类型', label: '订单类型',
...@@ -684,6 +750,9 @@ export default { ...@@ -684,6 +750,9 @@ export default {
// 确认收货 - end // 确认收货 - end
setTableFinishFun() { setTableFinishFun() {
this.$refs.allOrderRef.data.forEach(item => {
item.vinNo = item.vin ? (item.vin.split(',').length > 1 ? item.vin.split(',') : item.vin) : '-'
})
//接收到的数据为空 //接收到的数据为空
this.$refs.allOrderRef.data.length ? (this.$refs.allOrderRef.tableHeightValues = '') : this.$refs.allOrderRef.setTableHeightFun() this.$refs.allOrderRef.data.length ? (this.$refs.allOrderRef.tableHeightValues = '') : this.$refs.allOrderRef.setTableHeightFun()
this.getCount() this.getCount()
...@@ -713,7 +782,9 @@ export default { ...@@ -713,7 +782,9 @@ export default {
customerName: '', customerName: '',
createDate: [], createDate: [],
orderSource: '', orderSource: '',
deliveryType: '' deliveryType: '',
vin: '',
shareStaffName: ''
} }
this.handleSearch() this.handleSearch()
} }
...@@ -721,4 +792,26 @@ export default { ...@@ -721,4 +792,26 @@ export default {
} }
</script> </script>
<style lang="scss"></style> <style lang="scss">
.order-table-popover {
min-width: 80px !important;
padding: 8px 12px !important;
}
.order-manage {
.table-tips {
height: 48px;
line-height: 48px;
font-size: 14px;
color: #333333;
margin-left: 16px;
}
.car-no {
cursor: pointer;
font-size: 12px;
border-radius: 4px;
border: 1px solid #e8e8ea;
padding: 2px 4px;
line-height: 25px;
}
}
</style>
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<p class="edit-title">订单信息</p> <p class="edit-title">订单信息</p>
<el-form label-width="100px" :inline="true"> <el-form label-width="100px" :inline="true">
<el-row v-for="(item, index) in detailFormDataRow" :key="index"> <el-row v-for="(item, index) in detailFormDataRow" :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label"> <el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label" class="row-item">
<span class="detail-txt ellipsis-1" :title="detailForm[subItem.name]">{{ detailForm[subItem.name] ? detailForm[subItem.name] + (subItem.suffix || '') : '-' }}</span> <span class="detail-txt ellipsis-1" :title="detailForm[subItem.name]">{{ detailForm[subItem.name] ? detailForm[subItem.name] + (subItem.suffix || '') : '-' }}</span>
</el-form-item> </el-form-item>
</el-row> </el-row>
...@@ -44,11 +44,16 @@ ...@@ -44,11 +44,16 @@
</el-form-item> </el-form-item>
</el-row> </el-row>
</el-form> </el-form>
<div class="flex" style="padding: 0 30px;"> <div class="form-img">
<!-- <img v-for="(item, index) in orderRefund.imgUrls" :key="index" class="img-60" :src="item"/> --> <el-form label-width="100px" :inline="true">
<span v-for="(item, index) in orderRefund.imgUrls" :key="index"> <el-form-item label="售后凭证">
<el-image class="img-60 comment-img" :src="item" :preview-src-list="[item]"></el-image> <div class="flex">
</span> <span v-for="(item, index) in orderRefund.imgUrls" :key="index">
<el-image class="img-60 comment-img" :src="item" :preview-src-list="[item]"></el-image>
</span>
</div>
</el-form-item>
</el-form>
</div> </div>
</div> </div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
...@@ -83,15 +88,27 @@ export default { ...@@ -83,15 +88,27 @@ export default {
name: 'orderCode' name: 'orderCode'
}, },
{ {
label: '商户订单号',
name: 'outTradeNo'
},
{
label: '订单时间', label: '订单时间',
name: 'createdDateStr' name: 'createdDateStr'
}, },
{ {
label: '手机号', label: '手机号码',
name: 'customerPhone' name: 'customerPhone'
}, },
{ {
label: '客户信息', label: '车架号',
name: 'vin'
},
{
label: '门店信息',
name: 'merchantName'
},
{
label: '客户名称',
name: 'customerName' name: 'customerName'
}, },
{ {
...@@ -104,10 +121,6 @@ export default { ...@@ -104,10 +121,6 @@ export default {
name: 'orderSourceName' name: 'orderSourceName'
}, },
{ {
label: '门店信息',
name: 'merchantName'
},
{
label: '订单状态', label: '订单状态',
name: 'orderStatusName' name: 'orderStatusName'
}, },
...@@ -136,17 +149,21 @@ export default { ...@@ -136,17 +149,21 @@ export default {
name: 'createdDateStr' name: 'createdDateStr'
}, },
{ {
label: '申请描述',
name: 'remark'
},
{
label: '快递公司', label: '快递公司',
name: 'deliveryCompany' name: 'deliveryCompany'
}, },
{ {
label: '快递单号', label: '快递单号',
name: 'deliveryNumber' name: 'deliveryNumber'
},
{
label: '申请描述',
name: 'remark'
} }
// {
// label: '售后凭证',
// name: ''
// }
], ],
// 基本数据 // 基本数据
baseData: { baseData: {
...@@ -226,9 +243,15 @@ export default { ...@@ -226,9 +243,15 @@ export default {
.marketing.order-detail .el-form--inline .el-form-item__content { .marketing.order-detail .el-form--inline .el-form-item__content {
height: 30px; height: 30px;
} }
.marketing.order-detail .form-img .el-form--inline .el-form-item__content {
height: auto !important;
}
.marketing.order-detail .flex { .marketing.order-detail .flex {
justify-content: flex-start; justify-content: flex-start;
} }
.marketing.order-detail .row-item {
width: 33%;
}
.detail-txt { .detail-txt {
display: inline-block; display: inline-block;
width: 220px; width: 220px;
......
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
</glsx-combi-form> </glsx-combi-form>
<!-- <GLButton class="default-blue-btn" style="float: right; margin-bottom: 10px;" :size="size" fn="创建优惠券" @click="handleJumpCoupon">创建优惠券</GLButton> --> <!-- <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"> <GLTable ref="coupon" :hasNum="false" :getListApi="getListApi" :searchForm="searchForm" :tableParams="associationTableParams" :pageConf="pageConf" @setTableFinishFun="setTableFinishFun">
<div slot="association" slot-scope="scope" class="association"> <div slot="association" slot-scope="scope" class="association">
<el-radio :label="scope.scope.id" v-model="associationRadio" @change.native="getCouponInfo()"></el-radio> <el-radio :label="scope.scope.id" v-model="associationRadio" @change.native="getCouponInfo()"></el-radio>
...@@ -245,19 +245,19 @@ ...@@ -245,19 +245,19 @@
<span class="txt-tips" style="margin-left: 20px;">销售:0</span> <span class="txt-tips" style="margin-left: 20px;">销售:0</span>
</p> </p>
</div> </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"> <div class="line" v-if="nameToValSpecsList.length">
<span class="line-label">已选</span> <span class="line-label">已选</span>
<span class="line-txt">{{ nameToValSpecsList[0].specificationData }}</span> <span class="line-txt">{{ nameToValSpecsList[0].specificationData }}</span>
</div> </div>
<div class="line" style="display: flex;"> <div v-show="editForm.deliveryType == 2" class="line" style="display: flex;">
<span class="line-label">配送</span> <span class="line-label">配送</span>
<div> <div>
<div style="height: 25px; line-height: 30px;" class="line-txt">填写地址</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 style="height: 25px; line-height: 18px;" class="line-txt">支付后,预计48小时内发货</div>
</div> </div>
</div> </div>
<div class="line"> <div v-show="editForm.deliveryType == 2" class="line">
<span class="line-label">运费</span> <span class="line-label">运费</span>
<span v-show="editForm.deliveryType == 1" class="line-txt">免运费</span> <span v-show="editForm.deliveryType == 1" class="line-txt">免运费</span>
<span v-show="editForm.deliveryType == 2" class="line-txt">{{ editForm.expressFee }}元</span> <span v-show="editForm.deliveryType == 2" class="line-txt">{{ editForm.expressFee }}元</span>
...@@ -346,7 +346,7 @@ export default { ...@@ -346,7 +346,7 @@ export default {
maxlength: 20 maxlength: 20
} }
], ],
getListApi: this.$apis.couponManage.getMerchantListApi, getListApi: this.$apis.couponManage.getCouponListApi,
associationTableParams: { associationTableParams: {
listName: 'list', listName: 'list',
tableOption: false, tableOption: false,
...@@ -1178,23 +1178,23 @@ export default { ...@@ -1178,23 +1178,23 @@ export default {
} }
// console.log(this.nameToValSpecsList) // console.log(this.nameToValSpecsList)
// console.log(this.specificationDetailList) // console.log(this.specificationDetailList)
if (isRecovery) { // if (isRecovery) {
this.nameToValSpecsList.forEach((item, index) => { this.nameToValSpecsList.forEach((item, index) => {
var specificationObj = {} var specificationObj = {}
item.specsValueList.forEach((subItem, subIndex) => { item.specsValueList.forEach((subItem, subIndex) => {
specificationObj[this.specificationDetailList[subIndex].specificationName] = subItem 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
}
}
}) })
} 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) // console.log(this.nameToValSpecsList)
}, },
......
<!-- 编辑代金券 --> <!-- 编辑代金券 -->
<template> <template>
<div class="edit-share marketing p-t-20 edit-box"> <div class="edit-share marketing p-t-20 edit-box edit-activity">
<div class="container edit-container"> <div class="container edit-container">
<p class="edit-title">{{ title }}秒杀活动</p> <p class="edit-title">{{ title }}秒杀活动</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"> <glsx-combi-form class="edit-form-container" ref="editFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<div slot="activityImg" class="edit-tips m-t-8">展示在首页的活动详情页</div>
<template slot="activityTimeHtml"> <template slot="activityTimeHtml">
<!-- <el-form-item> --> <el-date-picker style="width: 474px" 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>
<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>
<!-- </el-form-item> -->
</template> </template>
<div slot="goodsHtml"> <div slot="goodsHtml">
<el-button type="primary" v-if="apear != 'see'" @click="handleRelateProClose">选择商品</el-button> <el-button type="default" class="default-blue-btn el-icon-plus" v-if="apear != 'see'" @click="handleRelateProClose">选择商品</el-button>
<div v-if="selectedProInfo.id && !specificationDetailList.length" style="margin-top: 10px"> <div v-if="selectedProInfo.id && !specificationDetailList.length" style="margin-top: 10px">
<p> <p>
<img class="img-60" :src="selectedProInfo.goodsImage" /> <img class="img-60" :src="selectedProInfo.goodsImage" />
...@@ -54,8 +53,29 @@ ...@@ -54,8 +53,29 @@
</table> </table>
</div> </div>
</div> </div>
<template slot="limitPurchaseFlag" slot-scope="scope">
<el-radio-group v-model="editForm[scope.scope.name]" @change="handleIsLimit">
<el-radio v-for="(item, index) in scope.scope.optionList" :key="index" :label="item[scope.scope.optionId]" :disabled="isDisabled">{{ item[scope.scope.optionLabel] }}</el-radio>
</el-radio-group>
<p v-if="editForm[scope.scope.name] == 2" id="limitPurchaseNumber" style="color: #333333;">
每人限购
<el-form-item prop="limitPurchaseNumber">
<el-input v-model="editForm.limitPurchaseNumber" placeholder="请输入限购次数" :disabled="isDisabled"></el-input>
</el-form-item>
件
</p>
</template>
</glsx-combi-form> </glsx-combi-form>
</div> </div>
<div class="wechat-box">
<img class="w-100-percent" src="@/assets/wechat-activity.png" />
<img class="wechat-nav" src="@/assets/wechat-nav.png" />
<div v-show="selectedProInfo.goodsImage" class="wechant-banner-img">
<img class="w-100-percent" :src="selectedProInfo.goodsImage" />
</div>
<p class="wechat-name one-line-ellipsis">{{ editForm.activityName }}</p>
<p v-show="editForm.limitPurchaseNumber" class="wechat-limit-num one-line-ellipsis">{{ editForm.limitPurchaseNumber }}</p>
</div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="primary" v-if="apear != 'see'" @click="handleConfirm">确定</el-button> <el-button type="primary" v-if="apear != 'see'" @click="handleConfirm">确定</el-button>
<el-button v-if="apear != 'see'" @click="handleCancel">取消</el-button> <el-button v-if="apear != 'see'" @click="handleCancel">取消</el-button>
...@@ -113,7 +133,9 @@ export default { ...@@ -113,7 +133,9 @@ export default {
activityTime: [], activityTime: [],
activityPrice: '', activityPrice: '',
goodsStock: '', goodsStock: '',
goodsId: '' goodsId: '',
limitPurchaseFlag: 1,
limitPurchaseNumber: ''
}, },
//商品列表 //商品列表
tableParams: { tableParams: {
...@@ -162,15 +184,29 @@ export default { ...@@ -162,15 +184,29 @@ export default {
trigger: 'change' trigger: 'change'
} }
], ],
goodsId: [{ required: true, message: '请选择商品', trigger: ['change', 'blur'] }] goodsId: [{ required: true, message: '请选择商品', trigger: ['change', 'blur'] }],
limitPurchaseFlag: [{ required: true, message: '请选择是否限购', trigger: 'change' }],
limitPurchaseNumber: [
{ required: false, message: '请输入限购次数', trigger: 'blur' },
{
validator: (rule, value, callback) => {
if (this.editForm.limitPurchaseFlag == 2 && (value < 1 || value > 10 || !/^\d+$/.test(value))) {
return callback('请输入1-10的限购次数')
}
return callback()
},
trigger: 'blur'
}
]
}, },
editFormData: [ editFormData: [
{ {
label: '活动名称', label: '活动名称',
name: 'activityName', name: 'activityName',
width: '320px', width: '474px',
type: 'input', type: 'input',
maxlength: 20 maxlength: 20,
isDisabled: false
}, },
{ {
label: '活动宣传图', label: '活动宣传图',
...@@ -179,6 +215,8 @@ export default { ...@@ -179,6 +215,8 @@ export default {
width: '320px', width: '320px',
limitSize: 10, limitSize: 10,
maxPhotoNum: 1, maxPhotoNum: 1,
isDisabled: false,
suffixSlot: 'activityImg',
handleUpload: (e, file, targetItem) => { handleUpload: (e, file, targetItem) => {
const imgFile = e.target.result const imgFile = e.target.result
const base64 = file.name.split('.')[file.name.split('.').length - 1] + '@' + imgFile.split(',')[1] const base64 = file.name.split('.')[file.name.split('.').length - 1] + '@' + imgFile.split(',')[1]
...@@ -191,9 +229,10 @@ export default { ...@@ -191,9 +229,10 @@ export default {
{ {
label: '活动宣传语', label: '活动宣传语',
name: 'promotion', name: 'promotion',
width: '320px', width: '474px',
type: 'input', type: 'input',
maxlength: 20 maxlength: 20,
isDisabled: false
}, },
{ {
label: '活动时间', label: '活动时间',
...@@ -210,6 +249,25 @@ export default { ...@@ -210,6 +249,25 @@ export default {
name: '', name: '',
addHtml: 'specificationsHtml', addHtml: 'specificationsHtml',
isHide: true isHide: true
},
{
label: '是否限购',
name: 'limitPurchaseFlag',
addHtml: 'limitPurchaseFlag',
optionId: 'confId',
optionLabel: 'confName',
optionList: [
{
confId: 1,
confName: '否',
isDisabled: false
},
{
confId: 2,
confName: '是',
isDisabled: false
}
],
} }
] ]
} }
...@@ -227,9 +285,7 @@ export default { ...@@ -227,9 +285,7 @@ export default {
this.apear = 'see' this.apear = 'see'
this.title = '查看' this.title = '查看'
this.isDisabled = true this.isDisabled = true
this.editFormData[0].isDisabled = true this.changeFormAttr('editFormData', 'isDisabled', ['活动名称', '活动宣传图', '活动宣传语'], true)
this.editFormData[1].isDisabled = true
this.editFormData[2].isDisabled = true
} else if (addOrEdit == 2) { } else if (addOrEdit == 2) {
this.apear = 'edit' this.apear = 'edit'
this.title = '编辑' this.title = '编辑'
...@@ -256,6 +312,12 @@ export default { ...@@ -256,6 +312,12 @@ export default {
}, },
methods: { methods: {
changeFormAttr(formName, attrName, labelList, attrValue) {
labelList.forEach(item => {
let idx = this[formName].findIndex(k => k.label == item)
this[formName][idx][attrName] = attrValue
})
},
limitPriceForInput(val, intergerDigit, pointDigit, minValue, maxValue, regRule) { limitPriceForInput(val, intergerDigit, pointDigit, minValue, maxValue, regRule) {
var _regRule = regRule || 'priceReg' var _regRule = regRule || 'priceReg'
if (val && this.reg[_regRule].test(val + '')) { if (val && this.reg[_regRule].test(val + '')) {
...@@ -280,6 +342,11 @@ export default { ...@@ -280,6 +342,11 @@ export default {
} }
}, },
handleIsLimit(val) {
this.editForm.limitPurchaseNumber = val == 1 ? '' : '1'
this.editRule.limitPurchaseNumber[0].required = val != 1
},
handleRelateProChange(val) { handleRelateProChange(val) {
this.editRule.goodsId[0].required = val == 2 this.editRule.goodsId[0].required = val == 2
var idx = this.editFormData.findIndex(item => item.name == 'goodsId') var idx = this.editFormData.findIndex(item => item.name == 'goodsId')
...@@ -309,11 +376,11 @@ export default { ...@@ -309,11 +376,11 @@ export default {
this.$apis.proManage.getProInfoApi({ id: id }).then(res => { this.$apis.proManage.getProInfoApi({ id: id }).then(res => {
this.selectedProInfo = this.$common.utils.deepClone(res) this.selectedProInfo = this.$common.utils.deepClone(res)
if (this.selectedProInfo.specificationDetailList.length) { if (this.selectedProInfo.specificationDetailList.length) {
this.editFormData[5].isHide = false this.changeFormAttr('editFormData', 'isHide', ['规格明细'], false)
this.specificationDetailList = this.selectedProInfo.specificationList this.specificationDetailList = this.selectedProInfo.specificationList
this.recoverySpec() this.recoverySpec()
} else { } else {
this.editFormData[5].isHide = true this.changeFormAttr('editFormData', 'isHide', ['规格明细'], true)
this.nameToValSpecsList = [] this.nameToValSpecsList = []
this.specificationDetailList = [] this.specificationDetailList = []
} }
...@@ -427,6 +494,8 @@ export default { ...@@ -427,6 +494,8 @@ export default {
form.promotion = info.promotion form.promotion = info.promotion
form.activityTime = [info.startTime, info.endTime] form.activityTime = [info.startTime, info.endTime]
form.goodsId = info.goodsId form.goodsId = info.goodsId
form.limitPurchaseFlag = info.limitPurchaseFlag
form.limitPurchaseNumber = info.limitPurchaseNumber
this.getGoodInfo(info.goodsId) this.getGoodInfo(info.goodsId)
if (info.activityPrice != null && info.goodsStock != null) { if (info.activityPrice != null && info.goodsStock != null) {
form.activityPrice = (info.activityPrice / 100).toFixed(2) form.activityPrice = (info.activityPrice / 100).toFixed(2)
...@@ -465,7 +534,7 @@ export default { ...@@ -465,7 +534,7 @@ export default {
delete param.activityPrice delete param.activityPrice
delete param.goodsStock delete param.goodsStock
param.specificationDetailList = [] param.specificationDetailList = []
this.nameToValSpecsList.forEach(function(item) { this.nameToValSpecsList.forEach(function (item) {
var obj = { var obj = {
retailPrice: (item.activityPrice * 100).toFixed(0), //存的分,需乘100 retailPrice: (item.activityPrice * 100).toFixed(0), //存的分,需乘100
stock: item.goodsStock, stock: item.goodsStock,
...@@ -548,7 +617,7 @@ export default { ...@@ -548,7 +617,7 @@ export default {
.then(() => { .then(() => {
this.cancelJump() this.cancelJump()
}) })
.catch(() => {}) .catch(() => { })
} else { } else {
this.cancelJump() this.cancelJump()
} }
...@@ -590,9 +659,51 @@ export default { ...@@ -590,9 +659,51 @@ export default {
.edit-product-dh .w-320 { .edit-product-dh .w-320 {
width: 320px; width: 320px;
} }
.color-red {
color: #eb4e4e;
cursor: pointer;
}
/* 规格 */ /* 规格 */
.edit-activity {
position: relative;
}
.edit-activity .edit-container {
min-height: 680px;
}
.edit-activity .wechat-box {
width: 276px;
box-sizing: border-box;
position: absolute;
top: 100px;
right: 19px;
}
.edit-activity .wechat-nav {
position: absolute;
top: 20px;
right: 20px;
z-index: 20;
}
.edit-activity .wechat-box .wechant-banner-img {
position: absolute;
top: 20px;
left: 21px;
width: 234px;
height: 552px;
}
.edit-activity .wechat-box .wechant-banner-img img {
height: 235px;
border-radius: 18px 18px 0 0;
}
.edit-activity .wechat-box .wechat-name {
position: absolute;
top: 300px;
left: 26px;
font-size: 18px;
width: 180px;
color: #282829;
}
.edit-activity .wechat-box .wechat-limit-num {
position: absolute;
bottom: 93px;
left: 160px;
font-size: 10px;
width: 20px;
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!