Commit e3e85c93 by 前端

Merge branch 'v3.6.0' into 'master'

合并V3.6.0

See merge request !474
2 parents 48dd1ef4 0cfa2d8d
...@@ -10914,9 +10914,9 @@ ...@@ -10914,9 +10914,9 @@
"dev": true "dev": true
}, },
"qs": { "qs": {
"version": "6.11.0", "version": "6.11.1",
"resolved": "https://registry.npmmirror.com/qs/-/qs-6.11.0.tgz", "resolved": "https://registry.npmmirror.com/qs/-/qs-6.11.1.tgz",
"integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", "integrity": "sha512-0wsrzgTz/kAVIeuxSjnpGC56rzYtr6JT/2BwEvMaPhFIoYa1aGO8LbzuU1R0uUYQkLpWBTOj0l/CLAJB64J6nQ==",
"requires": { "requires": {
"side-channel": "^1.0.4" "side-channel": "^1.0.4"
} }
...@@ -14466,9 +14466,9 @@ ...@@ -14466,9 +14466,9 @@
} }
}, },
"word-edit": { "word-edit": {
"version": "1.0.5", "version": "1.2.5",
"resolved": "https://registry.npmjs.org/word-edit/-/word-edit-1.0.5.tgz", "resolved": "https://registry.npmmirror.com/word-edit/-/word-edit-1.2.5.tgz",
"integrity": "sha512-YjZPBFkIw0bU5PaqdH3Ein1gH8T6qhaae6VM7HiIFPiCjXIFphxqAlbi+oddn4ZtePcfC9NtMkCHJAotiAt6jw==", "integrity": "sha512-T9g5xsp90jS5Ejq+LSTEkVDdJRnBcdR32qrzBduc+6uLiJLg9nY0y7Mrnh0zYw5jQFzbJPwz1rIwYOpzY40K7g==",
"requires": { "requires": {
"@amap/amap-jsapi-loader": "^1.0.1", "@amap/amap-jsapi-loader": "^1.0.1",
"core-js": "^3.6.5", "core-js": "^3.6.5",
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
"dayjs": "^1.10.7", "dayjs": "^1.10.7",
"el-tree-transfer": "^2.2.6", "el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5", "element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-components": "^1.5.3", "glsx-components": "^1.5.3",
"glsx-components_beta": "^1.0.4", "glsx-components_beta": "^1.0.4",
"lodash": "^4.17.21", "lodash": "^4.17.21",
...@@ -23,7 +22,7 @@ ...@@ -23,7 +22,7 @@
"vuedraggable": "^2.24.3", "vuedraggable": "^2.24.3",
"vuex": "^3.1.2", "vuex": "^3.1.2",
"wangeditor": "^4.7.12", "wangeditor": "^4.7.12",
"word-edit": "^1.0.5" "word-edit": "^1.2.5"
}, },
"devDependencies": { "devDependencies": {
"@vue/cli-plugin-babel": "^4.1.0", "@vue/cli-plugin-babel": "^4.1.0",
...@@ -37,6 +36,7 @@ ...@@ -37,6 +36,7 @@
"eslint": "^5.16.0", "eslint": "^5.16.0",
"eslint-plugin-prettier": "^3.1.1", "eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-vue": "^5.0.0", "eslint-plugin-vue": "^5.0.0",
"glsx-common": "^1.4.9",
"node-sass": "^4.12.0", "node-sass": "^4.12.0",
"prettier": "^1.19.1", "prettier": "^1.19.1",
"sass-loader": "^8.0.0", "sass-loader": "^8.0.0",
......
import { http, http_common, http2, http_merchant } from '@/main' import {http, http_common, http2, http_merchant,http_upload} from '@/main'
const defaultPath = 'scrm.api.carlife.' const defaultPath = 'scrm.api.carlife.'
const getMerchantGoodsListApi = params => { const getMerchantGoodsListApi = params => {
params.method = 'scrm.api.shopmall.goods.page.curMerchant' params.method = 'scrm.api.shopmall.goods.page.curMerchant'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'rop-scrm-shopmall/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true
}) })
} }
const getGoodsListApi = params => { const getGoodsListApi = params => {
// scrm.api.shopmall.goods.getGoodsList // scrm.api.shopmall.goods.getGoodsList
params.method = 'scrm.api.shopmall.goods.getGoodsList' params.method = 'scrm.api.shopmall.goods.getGoodsList'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'rop-scrm-shopmall/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true
}) })
} }
const uploadImgApi = params => { const uploadImgApi = params => {
params.method = `${defaultPath}common.uploadImg` params.method = `${defaultPath}common.uploadImg`
return http({ return http({
url: 'rop-scrm-carlife/router', url: 'rop-scrm-carlife/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true,
noSignAttr: ['file'] noSignAttr: ['file']
}) })
} }
const uploadMusicApi = params => { const uploadMusicApi = params => {
params.method = 'scrm.api.carlife.common.uploadMusic' params.method = 'scrm.api.carlife.common.uploadMusic'
return http({ return http({
url: 'rop-scrm-carlife/router', url: 'rop-scrm-carlife/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true,
noSignAttr: ['file'] noSignAttr: ['file']
}) })
} }
const uploadVideoApi = params => { const uploadVideoApi = params => {
params.method = `${defaultPath}common.uploadVideo` params.method = `${defaultPath}common.uploadVideo`
return http({ return http({
url: 'rop-scrm-carlife/router', url: 'rop-scrm-carlife/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true,
noSignAttr: ['file'] noSignAttr: ['file']
}) })
} }
const uploadFundingVideoApi = params => { const uploadFundingVideoApi = params => {
params.method = 'scrm.api.carlife.crowd.funding.uploadVideo' params.method = 'scrm.api.carlife.crowd.funding.uploadVideo'
return http({ return http({
url: 'rop-scrm-carlife/router', url: 'rop-scrm-carlife/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true,
noSignAttr: ['file'] noSignAttr: ['file']
}) })
} }
const getMerchantList = params => { const getMerchantList = params => {
params.method = `${defaultPath}merchant.listWithPageByCurMerchant` params.method = `${defaultPath}merchant.listWithPageByCurMerchant`
return http({ return http({
url: 'rop-scrm-carlife/router', url: 'rop-scrm-carlife/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const getSimpleMerchantList = params => { const getSimpleMerchantList = params => {
params.method = 'scrm.api.carlife.merchant.listWithPageSimpleByCurMerchant' params.method = 'scrm.api.carlife.merchant.listWithPageSimpleByCurMerchant'
return http({ return http({
url: 'rop-scrm-carlife/router', url: 'rop-scrm-carlife/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const getZoneListApi = params => { const getZoneListApi = params => {
params.method = 'scrm.api.shopmall.zoneInfo.listCurMerchantId' params.method = 'scrm.api.shopmall.zoneInfo.listCurMerchantId'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const getClassifyListApi = params => { const getClassifyListApi = params => {
params.method = 'scrm.api.shopmall.classify.list.curMerchant' params.method = 'scrm.api.shopmall.classify.list.curMerchant'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const pictureUpload = params => { const pictureUpload = params => {
params.method = 'glsx.accounts.biz.common.pictureUpload' params.method = 'glsx.accounts.biz.common.pictureUpload'
return http_common({ return http_common({
url: '/router?method=glsx.accounts.biz.common.pictureUpload', url: '/router?method=glsx.accounts.biz.common.pictureUpload',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true,
noSignAttr: ['file'] noSignAttr: ['file']
}) })
}
const compressPicture = params => {
return http_upload({
url: '/rpc-scrm-entmicro-container/picture/compression/upload',
method: 'POST',
data: params,
sign: false,
noSignAttr: ['file']
})
}
const compressVideo = params => {
// params.method = '/video/compression/upload'
// params.sessionId = session
// let paramsVideo = JSON.(params)
return http_upload({
url: '/rpc-scrm-entmicro-container/video/compression/upload',
method: 'POST',
data: params,
sign: false,
noSignAttr: ['file']
})
} }
const querylabeltree = params => { const querylabeltree = params => {
params.method = 'scrm.api.datahub.labelgroup.queryLabelTree' params.method = 'scrm.api.datahub.labelgroup.queryLabelTree'
// params.sessionId = session // params.sessionId = session
return http2({ return http2({
url: '/rop-scrm-datahub/router', url: '/rop-scrm-datahub/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
// 人群列表 // 人群列表
const getCrowdTreeListApi = params => { const getCrowdTreeListApi = params => {
params.method = 'scrm.api.datahub.user.queryCrowdTree' params.method = 'scrm.api.datahub.user.queryCrowdTree'
return http2({ return http2({
url: '/rop-scrm-datahub/router', url: '/rop-scrm-datahub/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
// 跟进员工类型 // 跟进员工类型
const getStaffFollowerListApi = params => { const getStaffFollowerListApi = params => {
params.method = 'entmicro.api.staff.listEntFollowerType' params.method = 'entmicro.api.staff.listEntFollowerType'
return http({ return http({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
// 获取商户信息 // 获取商户信息
const getMerchantInfoApi = params => { const getMerchantInfoApi = params => {
params.method = 'merchants.api.merchant.findMerchantBaseInfo' params.method = 'merchants.api.merchant.findMerchantBaseInfo'
return http_merchant({ return http_merchant({
url: '/rop-merchants/router', url: '/rop-merchants/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
// 根据商户号最上级工厂商户号 // 根据商户号最上级工厂商户号
const getSuperMerchantApi = params => { const getSuperMerchantApi = params => {
params.method = 'merchants.api.open.findSuperlativeMerchant' params.method = 'merchants.api.open.findSuperlativeMerchant'
return http_merchant({ return http_merchant({
url: '/rop-merchants/router', url: '/rop-merchants/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
/**众筹活动订单配置开关(SAAS)【控制众筹订单列表部分字段0:展示;1:隐藏;】 */ /**众筹活动订单配置开关(SAAS)【控制众筹订单列表部分字段0:展示;1:隐藏;】 */
const getCrowdfundingOrderConfig = (params = {}) => { const getCrowdfundingOrderConfig = (params = {}) => {
params.method = 'scrm.api.shopmall.crowd.funding.order.config' params.method = 'scrm.api.shopmall.crowd.funding.order.config'
params.requestType = 0 //0:门店;1:运营版 params.requestType = 0 //0:门店;1:运营版
return http({ return http({
url: '/rop-scrm-shopmall/router', url: '/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
}
export default {
getMerchantGoodsListApi,
getGoodsListApi,
uploadImgApi,
uploadMusicApi,
uploadVideoApi,
uploadFundingVideoApi,
getMerchantList,
getSimpleMerchantList,
getZoneListApi,
getClassifyListApi,
pictureUpload,
querylabeltree,
getCrowdTreeListApi,
getStaffFollowerListApi,
getMerchantInfoApi,
getSuperMerchantApi,
getCrowdfundingOrderConfig,
compressPicture,
compressVideo
} }
export default { getMerchantGoodsListApi, getGoodsListApi, uploadImgApi, uploadMusicApi, uploadVideoApi, uploadFundingVideoApi, getMerchantList, getSimpleMerchantList, getZoneListApi, getClassifyListApi, pictureUpload, querylabeltree, getCrowdTreeListApi, getStaffFollowerListApi, getMerchantInfoApi, getSuperMerchantApi, getCrowdfundingOrderConfig }
...@@ -61,6 +61,12 @@ import { utils } from 'glsx-common' ...@@ -61,6 +61,12 @@ import { utils } from 'glsx-common'
import util from '@/utils/util' import util from '@/utils/util'
export default { export default {
name: 'activityModel', name: 'activityModel',
props:{
labelTypesStr:{
type:String,
default:'自店标签,企业标签,系统标签'
}
},
data() { data() {
return { return {
loading: false, loading: false,
...@@ -107,7 +113,7 @@ export default { ...@@ -107,7 +113,7 @@ export default {
pageSize: 1000, pageSize: 1000,
shopId: this.$globalState.session.merchantId, shopId: this.$globalState.session.merchantId,
labelGroupName: this.labelGroupName, labelGroupName: this.labelGroupName,
labelTypesStr: '自店标签,企业标签,系统标签', labelTypesStr: this.labelTypesStr,
edition: this.$globalState.session.merchantModel edition: this.$globalState.session.merchantModel
} }
}) })
......
...@@ -23,6 +23,7 @@ Vue.prototype.defaultLabelWidth = '154px' ...@@ -23,6 +23,7 @@ Vue.prototype.defaultLabelWidth = '154px'
start() start()
export { bootstrap, mount, unmount } from '@/setup' export { bootstrap, mount, unmount } from '@/setup'
export const http = params => Vue.prototype.$http(params) export const http = params => Vue.prototype.$http(params)
export const http_upload = params => Vue.prototype.$http_upload(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)
...@@ -6,17 +6,18 @@ ...@@ -6,17 +6,18 @@
* @LastEditTime: 2022-07-12 14:14:15 * @LastEditTime: 2022-07-12 14:14:15
*/ */
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'
import ElementUI from 'element-ui' import ElementUI from 'element-ui'
import { GLButton, GLTable, GLFooter, GLCombiForm, GLTableButton, GLDialog } from 'glsx-components' //权限按钮 (根据权限动态创建) import {GLButton, GLTable, GLFooter, GLCombiForm, GLTableButton, GLDialog} from 'glsx-components' //权限按钮 (根据权限动态创建)
import {GLEditor} from 'word-edit' import {GLEditor} from 'word-edit'
import { getRoutes } from '@/router' import {getRoutes} from '@/router'
import '@/assets/css/public.scss' import '@/assets/css/public.scss'
import render from './render' import render from './render'
// import 'glsx-components/src/theme/theme.scss' // import 'glsx-components/src/theme/theme.scss'
import 'glsx-components/dist/glsx-components.css' import 'glsx-components/dist/glsx-components.css'
import 'word-edit/dist/glsx-components.css' import 'word-edit/dist/glsx-components.css'
let routes = [] let routes = []
let router = null let router = null
let instance = null let instance = null
...@@ -27,50 +28,98 @@ Vue.use(GLCombiForm) ...@@ -27,50 +28,98 @@ Vue.use(GLCombiForm)
Vue.use(GLTableButton) Vue.use(GLTableButton)
Vue.use(GLEditor) Vue.use(GLEditor)
Vue.use(GLDialog) Vue.use(GLDialog)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, request2, sign, secret, sign_common, request_common, request_merchant } = await fetchConfig(false) export async function bootstrap({history, common, messenger, globalState, routerBase}) {
Vue.prototype.$history = history const {
Vue.prototype.$messenger = messenger response,
Vue.prototype.$globalState = globalState request,
Vue.prototype.$common = common request2,
Vue.prototype.$message = message sign,
Vue.prototype.$messageBox = messageBox secret,
// 集团版集团账号 sign_common,
Vue.prototype.$isGroupUp = globalState.session.accountLevel != 4 request_common,
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } }) request_merchant
Vue.prototype.$http2 = new common.Http({ response, request: request2, sign, secret, alert: message.error, headers: { token: globalState.session.token } }) } = await fetchConfig(false)
Vue.prototype.$http_merchant = new common.Http({ response, request: request_merchant, sign, secret, alert: message.error, headers: { token: globalState.session.token } }) Vue.prototype.$history = history
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.$messenger = messenger
// Vue.prototype.$http_xiaolong = new common.Http({ response, request: xiaolong_req, sign, secret, alert: message.error, headers: { token: globalState.session.token } }) Vue.prototype.$globalState = globalState
Vue.prototype.$tracker = common.tracker Vue.prototype.$common = common
// const myToken = 'scrm-base-107ee03c-1214-48c3-a443-a2332e553b2f-rop' Vue.prototype.$message = message
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: myToken } }) Vue.prototype.$messageBox = messageBox
// Vue.prototype.$http2 = new common.Http({ response, request: request2, sign, secret, alert: message.error, headers: { token: myToken } }) // 集团版集团账号
// Vue.prototype.$http_merchant = new common.Http({ response, request: request_merchant, sign, secret, alert: message.error, headers: { token: myToken } }) Vue.prototype.$isGroupUp = globalState.session.accountLevel != 4
// Vue.prototype.$http_common = new common.Http({ response, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: myToken } }) Vue.prototype.$http = new common.Http({
// Vue.prototype.$http_xiaolong = new common.Http({ response, request: xiaolong_req, sign, secret, alert: message.error, headers: { token: myToken } }) response,
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState request,
// Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] }) sign,
const routesData = common.utils.deepClone(globalState.routers) secret,
routes = getRoutes(routesData) alert: message.error,
subscribe({ messenger }) headers: {token: globalState.session.token}
Vue.use(GLButton, { routes, routerBase }) })
Vue.prototype.$http_upload = new common.Http({
response: {...response, data_key: 'result', code_success_value: true, code_key: 'success'},
request,
sign,
secret,
alert: message.error,
headers: {token: globalState.session.token, 'Content-Type': 'multipart/form-data'}
})
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_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.$tracker = common.tracker
// const myToken = 'scrm-base-107ee03c-1214-48c3-a443-a2332e553b2f-rop'
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: myToken } })
// Vue.prototype.$http2 = new common.Http({ response, request: request2, sign, secret, alert: message.error, headers: { token: myToken } })
// Vue.prototype.$http_merchant = new common.Http({ response, request: request_merchant, sign, secret, alert: message.error, headers: { token: myToken } })
// Vue.prototype.$http_common = new common.Http({ response, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: myToken } })
// Vue.prototype.$http_xiaolong = new common.Http({ response, request: xiaolong_req, sign, secret, alert: message.error, headers: { token: myToken } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
// 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)
routes = getRoutes(routesData)
subscribe({messenger})
Vue.use(GLButton, {routes, routerBase})
} }
export async function mount(props) { export async function mount(props) {
const insts = render(props.routerBase, routes) const insts = render(props.routerBase, routes)
router = insts.router router = insts.router
instance = insts.vm instance = insts.vm
} }
export async function unmount() { export async function unmount() {
instance.$destroy() instance.$destroy()
instance.$el.innerHTML = '' instance.$el.innerHTML = ''
instance = null instance = null
router = null router = null
} }
function subscribe({ messenger }) { function subscribe({messenger}) {
messenger.subscribe(v => { messenger.subscribe(v => {
console.log(`监听到子应用${v.from}发来消息:`, v) console.log(`监听到子应用${v.from}发来消息:`, v)
}) })
} }
...@@ -132,7 +132,7 @@ const SEX = { ...@@ -132,7 +132,7 @@ const SEX = {
} }
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import Preview from '../components/preview.vue' import Preview from '../../sop/editSop/components/FriendGroupPreview/index.vue'
import { utils } from 'glsx-common' import { utils } from 'glsx-common'
export default { export default {
name: 'BasicInof', name: 'BasicInof',
......
<template> <template>
<div class="live-room marketing"> <div class="live-room marketing">
<div class="live-room container"> <div class="live-room container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
@handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<!-- <div class="flex"> <!-- <div class="flex">
<el-form :inline="true" style="width: 100%" :model="searchForm" label-width="70px" label-position="right"> <el-form :inline="true" style="width: 100%" :model="searchForm" label-width="70px" label-position="right">
<el-row> <el-row>
...@@ -47,15 +46,19 @@ ...@@ -47,15 +46,19 @@
</el-form> </el-form>
</div> --> </div> -->
<div class="choseRow m-b-10"> <div class="choseRow m-b-10">
<div class="choseItem" :class="{ active: currentIndex == index + 1 }" v-for="(item, index) in choseList" <div class="choseItem" :class="{ active: currentIndex == index + 1 }" v-for="(item, index) in choseList" :key="index" @click="tabClick(index + 1)">
:key="index" @click="tabClick(index + 1)">
{{ item }} {{ item }}
</div> </div>
<el-button :size="size" class="default-blue-btn m-l-20" type="default" @click="handleExport">导出</el-button> <el-button :size="size" class="default-blue-btn m-l-20" type="default" @click="handleExport">导出</el-button>
</div> </div>
<GLTable ref="memberOrderRef" v-if="isReload" :noDataImg="url" @setTableFinishFun="setTableFinishFun" <GLTable ref="memberOrderRef" v-if="isReload" :noDataImg="url" @setTableFinishFun="setTableFinishFun" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="getListApi" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
:searchForm="searchFormTable" :tableParams="tableParams" :getListApi="getListApi" :pageConf="pageConf" <div slot="packageName" slot-scope="scope" class="flex">
:beforeSearchFn="beforeSearchFn"> <span>{{ scope.scope.packageName }}</span>
<!-- 门店套餐 -->
<template v-if="showGh && scope.scope.packageType == 1 && scope.scope.giveGoldFlag == 2">
<div class="gold-sign">送会员</div>
</template>
</div>
<div slot="orderType" slot-scope="scope" style="width: 200px"> <div slot="orderType" slot-scope="scope" style="width: 200px">
<template v-if="scope.scope.orderType == 1"> <template v-if="scope.scope.orderType == 1">
<span>{{ scope.scope.packageType == 1 ? '门店套餐' : '集团套餐' }}</span> <span>{{ scope.scope.packageType == 1 ? '门店套餐' : '集团套餐' }}</span>
...@@ -72,8 +75,7 @@ ...@@ -72,8 +75,7 @@
</span> </span>
</GLTable> </GLTable>
</div> </div>
<GLDialog class="refund-fill-boxss" mode="small" okText="确定" title="提示" :hasFooter="hasFooter" :type="'error'" <GLDialog class="refund-fill-boxss" mode="small" okText="确定" title="提示" :hasFooter="hasFooter" :type="'error'" @onOk="isShow = false" @onCancel="isShow = false" :visible.sync="isShow">
@onOk="isShow = false" @onCancel="isShow = false" :visible.sync="isShow">
<div class="dialog-refund"> <div class="dialog-refund">
<img class="img" src="../../images/warn.png" /> <img class="img" src="../../images/warn.png" />
<div>该会员在升级黑卡会员期间,已购买过生活权益</div> <div>该会员在升级黑卡会员期间,已购买过生活权益</div>
...@@ -81,8 +83,7 @@ ...@@ -81,8 +83,7 @@
<div>暂不支持退款</div> <div>暂不支持退款</div>
</div> </div>
</GLDialog> </GLDialog>
<GLDialog class="refund-fill-box" mode="mid" title="退款确认" :hasFooter="hasFooter" :type="'error'" <GLDialog class="refund-fill-box" mode="mid" title="退款确认" :hasFooter="hasFooter" :type="'error'" @onOk="refundConfirmDialog" @onCancel="refundVisible = false" :visible.sync="refundVisible">
@onOk="refundConfirmDialog" @onCancel="refundVisible = false" :visible.sync="refundVisible">
<div class="dialog-form"> <div class="dialog-form">
<label>说明:</label> <label>说明:</label>
<el-input v-model.trim="refund" type="textarea" :rows="3" placeholder="请输入退款说明"></el-input> <el-input v-model.trim="refund" type="textarea" :rows="3" placeholder="请输入退款说明"></el-input>
...@@ -214,7 +215,8 @@ export default { ...@@ -214,7 +215,8 @@ export default {
{ {
label: '名称', label: '名称',
prop: 'packageName', prop: 'packageName',
width: '180' width: '180',
addHtml: 'packageName'
}, },
{ {
label: '类型', label: '类型',
...@@ -560,7 +562,17 @@ export default { ...@@ -560,7 +562,17 @@ export default {
border-left: 1px solid #d5d5d5; border-left: 1px solid #d5d5d5;
} }
} }
.gold-sign {
padding: 0px 4px;
border-radius: 5px;
background: #ff9140;
font-size: 10px;
color: #fff;
width: 50px;
white-space: nowrap;
height: 20px;
line-height: 20px;
}
.refund-fill-box { .refund-fill-box {
.dialog-form { .dialog-form {
padding: 26px 36px 46px 36px; padding: 26px 36px 46px 36px;
...@@ -595,4 +607,5 @@ export default { ...@@ -595,4 +607,5 @@ export default {
// ::v-deep .el-dialog__footer { // ::v-deep .el-dialog__footer {
// text-align: center; // text-align: center;
// } // }
}</style> }
</style>
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
<el-radio :label="1">不赠送</el-radio> <el-radio :label="1">不赠送</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<span class="give-tip">选择赠送,客户购买该套餐后即开通一年金卡会员权益</span> <span class="give-tip" v-if="showGh && accountLevel == 4">选择赠送,客户购买该套餐后即开通一年金卡会员权益</span>
<el-form-item size="small" label="套餐售价/元:" prop="packagePrice"> <el-form-item size="small" label="套餐售价/元:" prop="packagePrice">
<el-input size="small" v-model="ruleForm.packagePrice" placeholder="请输入套餐售价" <el-input size="small" v-model="ruleForm.packagePrice" placeholder="请输入套餐售价"
@keyup.native="ruleForm.packagePrice = oninput(ruleForm.packagePrice)"> @keyup.native="ruleForm.packagePrice = oninput(ruleForm.packagePrice)">
...@@ -94,12 +94,13 @@ export default { ...@@ -94,12 +94,13 @@ export default {
selectGiftDialog selectGiftDialog
}, },
data() { data() {
// else if (value < this.memberPrice && this.ruleForm.giveGoldFlag == 2 && this.accountLevel == 4 && this.showGh) {
// return callback(new Error('套餐售价不能低于会员卡价格'))
// }
var validatePrice = (rule, value, callback) => { var validatePrice = (rule, value, callback) => {
if (!value) { if (!value) {
return callback(new Error('请输入售价')) return callback(new Error('请输入售价'))
} else if (value < this.memberPrice && this.ruleForm.giveGoldFlag == 2 && this.accountLevel == 4 && this.showGh) { } else {
return callback(new Error('套餐售价不能低于会员卡价格'))
} else {
callback() callback()
} }
} }
......
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
</el-tabs> </el-tabs>
</div> </div>
<el-button <el-button
v-if="configShow"
class="default-blue-btn" class="default-blue-btn"
:size="size" :size="size"
type="default" type="default"
...@@ -492,7 +493,8 @@ export default { ...@@ -492,7 +493,8 @@ export default {
fn: '退款' fn: '退款'
}, },
condition: row => { condition: row => {
return row.orderSource == 4 && [2, 6, 21].includes(+row.orderStatus) && row.isOffline != 0 // return row.orderSource == 4 && [2, 6, 21, 22].includes(+row.orderStatus) && row.isOffline != 0
return row.showRefund == 1 //是否展示退款按钮 1:是 0:否
}, },
listeners: { listeners: {
click: row => { click: row => {
...@@ -508,7 +510,8 @@ export default { ...@@ -508,7 +510,8 @@ export default {
fn: '订单核销' fn: '订单核销'
}, },
condition: row => { condition: row => {
return row.deliveryType == 1 && row.orderStatus == 21 // return row.deliveryType == 1 && row.orderStatus == 21
return row.showVerf == 1 //是否展示核销按钮 1:是 0:否
}, },
listeners: { listeners: {
click: this.handleWriteOff click: this.handleWriteOff
...@@ -613,7 +616,8 @@ export default { ...@@ -613,7 +616,8 @@ export default {
{ confId: '4', confName: '已取消' } { confId: '4', confName: '已取消' }
], ],
}, },
showTable: false showTable: false,
configShow: false
} }
}, },
created () { created () {
...@@ -634,6 +638,7 @@ export default { ...@@ -634,6 +638,7 @@ export default {
methods: { methods: {
async getCrowdfundingOrderConfig () { async getCrowdfundingOrderConfig () {
const { channelType } = this.$globalState.session
let tableColumns = [ let tableColumns = [
{ {
label: '客户名称', label: '客户名称',
...@@ -747,7 +752,7 @@ export default { ...@@ -747,7 +752,7 @@ export default {
} }
}, },
{ {
label: '支付定金/元', label: channelType == 2 ? '付款金额/元' : '支付定金/元',
prop: 'payPrice', prop: 'payPrice',
width: '120', width: '120',
formatter: cellValue => { formatter: cellValue => {
...@@ -1023,8 +1028,9 @@ export default { ...@@ -1023,8 +1028,9 @@ export default {
] ]
try { try {
const res = await this.$apis.common.getCrowdfundingOrderConfig(), const res = await this.$apis.common.getCrowdfundingOrderConfig(),
filterTableList = ['customerPhone', 'otherInformation', 'assignName', 'shareStaffPhone', 'verificationDate', 'vinNo', 'afterSaleStatus'], filterTableList = ['customerPhone', 'shareStaffName', 'otherInformation', 'assignName', 'shareStaffPhone', 'verificationDate', 'vinNo', 'afterSaleStatus'],
filterFormList = ['afterSaleStatuses', 'vin', 'shareStaffSource', 'customerPhone', 'shareStaffPhone'] filterFormList = ['afterSaleStatuses','shareStaffName', 'vin', 'shareStaffSource', 'customerPhone', 'shareStaffPhone']
this.configShow = res != 1
if (res == 1) { if (res == 1) {
for (let i = 0; i < tableColumns.length; i++) { for (let i = 0; i < tableColumns.length; i++) {
if (filterTableList.includes(tableColumns[i].prop)) { if (filterTableList.includes(tableColumns[i].prop)) {
......
...@@ -4,10 +4,24 @@ ...@@ -4,10 +4,24 @@
<div class="edit-box"> <div class="edit-box">
<div class="container m-b-20"> <div class="container m-b-20">
<p class="edit-title">订单信息</p> <p class="edit-title">订单信息</p>
<el-form label-width="100px" :inline="true"> <el-form
<el-row v-for="(item, index) in detailFormDataRow" :key="index"> label-width="100px"
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label" class="row-item"> :inline="true"
<span class="detail-txt ellipsis-1" :title="detailForm[subItem.name]">{{ detailForm[subItem.name] ? detailForm[subItem.name] + (subItem.suffix || '') : '-' }}</span> >
<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"
class="row-item"
>
<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>
<template v-if="detailForm.formDescribe"> <template v-if="detailForm.formDescribe">
...@@ -17,43 +31,88 @@ ...@@ -17,43 +31,88 @@
</div> </div>
<div :class="['container', orderRefund ? 'm-b-20' : 'edit-container']"> <div :class="['container', orderRefund ? 'm-b-20' : 'edit-container']">
<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-form-item label="物流信息"> <el-form-item label="物流信息">
<span>{{ detailForm.deliveryCompany }}&nbsp;&nbsp;&nbsp;{{ detailForm.deliveryNumber }}</span> <span>{{ detailForm.deliveryCompany }}&nbsp;&nbsp;&nbsp;{{ detailForm.deliveryNumber }}</span>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div v-if="orderGoods.length" class="p-l-40"> <div
v-if="orderGoods.length"
class="p-l-40"
>
<table class="show-table"> <table class="show-table">
<tbody> <tbody>
<tr v-for="(item, index) in orderGoods" :key="index" style="height: 70px;"> <tr
<td><img :src="item.goodsImage" class="img-60" /></td> v-for="(item, index) in orderGoods"
:key="index"
style="height: 70px;"
>
<td><img
:src="item.goodsImage"
class="img-60"
/></td>
<td>{{ item.goodsName }}</td> <td>{{ item.goodsName }}</td>
<td>{{ item.specificationData }}</td> <td>{{ item.specificationData }}</td>
<td>{{ item.activityPrice ? item.activityPrice : item.retailPrice }}元 * {{ item.goodsNumber }}</td> <td>{{ item.activityPrice ? item.activityPrice : item.retailPrice }}元 * {{ item.goodsNumber }}</td>
</tr> </tr>
<tr v-if="detailForm.subOrderCoupon" style="height: 40px;"> <tr
<td style="text-align: left;" colspan="3">优惠券</td> v-if="detailForm.subOrderCoupon"
style="height: 40px;"
>
<td
style="text-align: left;"
colspan="3"
>优惠券</td>
<td>{{ detailForm.subOrderCoupon.discountAmount }}元</td> <td>{{ detailForm.subOrderCoupon.discountAmount }}元</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
</div> </div>
<div class="container edit-container" v-if="orderRefund"> <div
class="container edit-container"
v-if="orderRefund"
>
<p class="edit-title">售后信息</p> <p class="edit-title">售后信息</p>
<el-form label-width="100px" :inline="true"> <el-form
<el-row v-for="(item, index) in afterInfoDataRow" :key="index"> label-width="100px"
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label"> :inline="true"
<span class="detail-txt ellipsis-1" :title="orderRefund[subItem.name]">{{ orderRefund[subItem.name] || '-' }}</span> >
<el-row
v-for="(item, index) in afterInfoDataRow"
:key="index"
>
<el-form-item
v-for="(subItem, subIndex) in item.rowList"
:key="subIndex"
:label="subItem.label"
>
<span
class="detail-txt ellipsis-1"
:title="orderRefund[subItem.name]"
>{{ orderRefund[subItem.name] || '-' }}</span>
</el-form-item> </el-form-item>
</el-row> </el-row>
</el-form> </el-form>
<div class="form-img"> <div class="form-img">
<el-form label-width="100px" :inline="true"> <el-form
label-width="100px"
:inline="true"
>
<el-form-item label="售后凭证"> <el-form-item label="售后凭证">
<div class="flex"> <div class="flex">
<span v-for="(item, index) in orderRefund.imgUrls" :key="index"> <span
<el-image class="img-60 comment-img" :src="item" :preview-src-list="[item]"></el-image> 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> </span>
</div> </div>
</el-form-item> </el-form-item>
...@@ -62,7 +121,10 @@ ...@@ -62,7 +121,10 @@
</div> </div>
</div> </div>
<GLFooter> <GLFooter>
<el-button @click="handleCancel" size="medium">取消</el-button> <el-button
@click="handleCancel"
size="medium"
>取消</el-button>
</GLFooter> </GLFooter>
</div> </div>
</template> </template>
...@@ -72,7 +134,7 @@ import * as dayjs from 'dayjs' ...@@ -72,7 +134,7 @@ import * as dayjs from 'dayjs'
import { orderManageStatusList, orderSourceList, deliveryTypeList } from '@/common/constant' import { orderManageStatusList, orderSourceList, deliveryTypeList } from '@/common/constant'
export default { export default {
name: 'orderDetail', name: 'orderDetail',
data() { data () {
return { return {
size: 'small', size: 'small',
title: '查看订单', title: '查看订单',
...@@ -133,18 +195,18 @@ export default { ...@@ -133,18 +195,18 @@ export default {
{ confId: '2', confName: '企微' } { confId: '2', confName: '企微' }
] ]
}, },
hideStatus: false configShow: false
} }
}, },
created() {}, created () { },
mounted() { mounted () {
this.getCrowdfundingOrderConfig() this.getCrowdfundingOrderConfig()
}, },
methods: { methods: {
async getCrowdfundingOrderConfig() { async getCrowdfundingOrderConfig () {
let detailFormData = [ let detailFormData = [
{ {
label: '订单编号', label: '订单编号',
...@@ -225,9 +287,9 @@ export default { ...@@ -225,9 +287,9 @@ export default {
} }
] ]
const res = await this.$apis.common.getCrowdfundingOrderConfig() const res = await this.$apis.common.getCrowdfundingOrderConfig()
let hideStatus = res == 1 let configShow = res != 1
if (hideStatus) { if (!configShow) {
const filterFormList = ['customerPhone', 'shareStaffTypeName', 'vin', 'shipAddress'] const filterFormList = ['customerPhone','shareStaffName', 'shareStaffTypeName', 'vin', 'shipAddress']
for (let i = 0; i < detailFormData.length; i++) { for (let i = 0; i < detailFormData.length; i++) {
if (filterFormList.includes(detailFormData[i].name)) { if (filterFormList.includes(detailFormData[i].name)) {
detailFormData.splice(i, 1) detailFormData.splice(i, 1)
...@@ -235,14 +297,14 @@ export default { ...@@ -235,14 +297,14 @@ export default {
} }
} }
} }
this.hideStatus = hideStatus this.configShow = configShow
this.detailFormData = detailFormData this.detailFormData = detailFormData
this.setMinHeight('.edit-box') this.setMinHeight('.edit-box')
this.routeInfo = this.$route.query this.routeInfo = this.$route.query
this.getInfo() this.getInfo()
this.formToRow('afterInfoData') this.formToRow('afterInfoData')
}, },
formToRow(formName, numOfRow = 3) { formToRow (formName, numOfRow = 3) {
var rowNum = Math.ceil(this[formName].length / numOfRow) var rowNum = Math.ceil(this[formName].length / numOfRow)
for (var i = 0; i < rowNum; i++) { for (var i = 0; i < rowNum; i++) {
for (var j = 0; j < numOfRow; j++) { for (var j = 0; j < numOfRow; j++) {
...@@ -257,7 +319,7 @@ export default { ...@@ -257,7 +319,7 @@ export default {
} }
} }
}, },
getInfo() { getInfo () {
this.$apis.orderManage.getOrderDetailApi({ orderCode: this.routeInfo.orderCode }).then(res => { this.$apis.orderManage.getOrderDetailApi({ orderCode: this.routeInfo.orderCode }).then(res => {
this.detailForm = res this.detailForm = res
this.orderRefund = res.orderRefund || null this.orderRefund = res.orderRefund || null
...@@ -289,7 +351,7 @@ export default { ...@@ -289,7 +351,7 @@ export default {
this.detailFormData.splice(idx, 1) this.detailFormData.splice(idx, 1)
} }
// 其他信息 // 其他信息
if (!this.hideStatus) { if (this.configShow) {
var formDescribeObj = { var formDescribeObj = {
label: '其他信息', label: '其他信息',
name: 'formDescribe', name: 'formDescribe',
...@@ -312,7 +374,7 @@ export default { ...@@ -312,7 +374,7 @@ export default {
this.formToRow('detailFormData') this.formToRow('detailFormData')
}) })
}, },
handleCancel() { handleCancel () {
this.$router.push({ this.$router.push({
path: '/orderManage/index' path: '/orderManage/index'
}) })
......
...@@ -140,7 +140,7 @@ export default { ...@@ -140,7 +140,7 @@ export default {
fn: '自建编辑' fn: '自建编辑'
}, },
condition: row => { condition: row => {
return !row.goodsStatus && row.goodsSource == 1 return !row.goodsStatus && (row.goodsSource == 1 || row.goodsSource == 3)
}, },
listeners: { listeners: {
click: row => this.handleEdit(2, row) click: row => this.handleEdit(2, row)
...@@ -167,7 +167,7 @@ export default { ...@@ -167,7 +167,7 @@ export default {
type: 'text' type: 'text'
}, },
condition: row => { condition: row => {
return !row.goodsStatus && (row.goodsSource == 1 || (row.goodsSource == 2 && row.originGoodsStatus)) return !row.goodsStatus && (row.goodsSource == 1 || row.goodsSource == 3 || (row.goodsSource == 2 && row.originGoodsStatus))
}, },
listeners: { listeners: {
click: this.handleUpOrDown click: this.handleUpOrDown
...@@ -233,7 +233,7 @@ export default { ...@@ -233,7 +233,7 @@ export default {
fn: '自建查看' fn: '自建查看'
}, },
condition: row => { condition: row => {
return row.goodsStatus && row.goodsSource == 1 return row.goodsStatus && (row.goodsSource == 1 || row.goodsSource == 3)
}, },
listeners: { listeners: {
click: row => this.handleEdit(3, row) click: row => this.handleEdit(3, row)
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
<div class="flex m-b-10 w-100-percent"> <div class="flex m-b-10 w-100-percent">
<span class="table-title"></span> <span class="table-title"></span>
<el-button <el-button
v-if="configShow"
:size="size" :size="size"
class="default-blue-btn" class="default-blue-btn"
type="default" type="default"
...@@ -74,7 +75,7 @@ ...@@ -74,7 +75,7 @@
slot="linkText" slot="linkText"
slot-scope="scope" slot-scope="scope"
> >
<template v-if="scope.scope.incrementFlag == 'Y' || hideStatus"> <template v-if="scope.scope.incrementFlag == 'Y' || !configShow">
{{scope.scope[scope.prop] || 0 }} {{scope.scope[scope.prop] || 0 }}
</template> </template>
<template v-else> <template v-else>
...@@ -115,7 +116,7 @@ ...@@ -115,7 +116,7 @@
:isShareVisible="isShareVisible" :isShareVisible="isShareVisible"
:shareForm="shareForm" :shareForm="shareForm"
@handleShareClose="handleShareClose" @handleShareClose="handleShareClose"
:hideStatus="hideStatus" :hideStatus="!configShow"
></crowdFundingShare> ></crowdFundingShare>
</div> </div>
</template> </template>
...@@ -252,6 +253,9 @@ export default { ...@@ -252,6 +253,9 @@ export default {
attrs: { attrs: {
type: 'text' type: 'text'
}, },
condition: row => {
return this.configShow
},
listeners: { listeners: {
click: this.handleShare click: this.handleShare
} }
...@@ -275,6 +279,9 @@ export default { ...@@ -275,6 +279,9 @@ export default {
type: 'text', type: 'text',
fn: '数据看板' fn: '数据看板'
}, },
condition: row => {
return this.configShow
},
listeners: { listeners: {
click: row => { click: row => {
this.$router.push({ this.$router.push({
...@@ -311,7 +318,7 @@ export default { ...@@ -311,7 +318,7 @@ export default {
} }
] ]
}, },
hideStatus: false configShow: false
} }
}, },
...@@ -451,11 +458,12 @@ export default { ...@@ -451,11 +458,12 @@ export default {
return this.baseData.statusList.find(item => item.confId == cellValue.activityStatus).confName return this.baseData.statusList.find(item => item.confId == cellValue.activityStatus).confName
} }
} }
] ],
{ channelType } = this.$globalState.session
const res = await this.$apis.common.getCrowdfundingOrderConfig(), const res = await this.$apis.common.getCrowdfundingOrderConfig(),
filterTableList = ['paymentModel'], filterTableList = ['paymentModel'],
hideStatus = res == 1 configShow = res != 1
if (hideStatus) { if (!configShow) {
for (let i = 0; i < tableColumns.length; i++) { for (let i = 0; i < tableColumns.length; i++) {
if (filterTableList.includes(tableColumns[i].prop)) { if (filterTableList.includes(tableColumns[i].prop)) {
tableColumns.splice(i, 1) tableColumns.splice(i, 1)
...@@ -463,7 +471,8 @@ export default { ...@@ -463,7 +471,8 @@ export default {
} }
} }
} }
this.hideStatus = hideStatus this.configShow = configShow
this.channelType = channelType
this.tableParams.tableColumns = tableColumns this.tableParams.tableColumns = tableColumns
}, },
getParams () { getParams () {
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
</div> </div>
</div> </div>
<!-- 可配置显示隐藏 👇 --> <!-- 可配置显示隐藏 👇 -->
<template v-if="showTable"> <template v-if="configShow">
<div class="data-board-box"> <div class="data-board-box">
<p class="edit-title">员工排行榜</p> <p class="edit-title">员工排行榜</p>
<div class="p-20"> <div class="p-20">
...@@ -115,6 +115,7 @@ ...@@ -115,6 +115,7 @@
<div class="flex m-b-10 w-100-percent"> <div class="flex m-b-10 w-100-percent">
<span class="table-title">数据列表</span> <span class="table-title">数据列表</span>
<el-button <el-button
v-if="configShow"
:size="size" :size="size"
class="default-blue-btn" class="default-blue-btn"
type="default" type="default"
...@@ -178,6 +179,7 @@ ...@@ -178,6 +179,7 @@
</span> </span>
</span> </span>
<el-button <el-button
v-if="configShow"
:size="size" :size="size"
class="default-blue-btn" class="default-blue-btn"
type="default" type="default"
...@@ -386,7 +388,7 @@ export default { ...@@ -386,7 +388,7 @@ export default {
dataBoard: {}, dataBoard: {},
activityId: '', activityId: '',
liveInfo: {}, liveInfo: {},
showTable: false configShow: false
} }
}, },
computed: { computed: {
...@@ -414,7 +416,7 @@ export default { ...@@ -414,7 +416,7 @@ export default {
methods: { methods: {
async getCrowdfundingOrderConfig () { async getCrowdfundingOrderConfig () {
const res = await this.$apis.common.getCrowdfundingOrderConfig() const res = await this.$apis.common.getCrowdfundingOrderConfig()
this.showTable = res != 1 this.configShow = res != 1
}, },
getLiveData () { getLiveData () {
this.$apis.seckillActivity this.$apis.seckillActivity
......
...@@ -2720,7 +2720,7 @@ export default { ...@@ -2720,7 +2720,7 @@ export default {
// 活动详情 // 活动详情
if (info.activityDetail) { if (info.activityDetail) {
this.editForm.activityDetail = decodeURIComponent(info.activityDetail) this.editForm.activityDetail = decodeURIComponent(info.activityDetail)
this.$refs.configEditFormRef.$refs.activityDetailTextBox[0].setEdit(this.editForm.activityDetail) this.$refs?.configEditFormRef?.$refs?.activityDetailTextBox[0]?.setEdit(this.editForm.activityDetail)
} }
// 活动音乐 // 活动音乐
if (info.activityMusic) { if (info.activityMusic) {
......
...@@ -54,6 +54,22 @@ ...@@ -54,6 +54,22 @@
></i> ></i>
</div> </div>
</template> </template>
<template v-else-if="item.attType == 4">
<div class="welcome-activity-panel">
<div class="welcome-activity-box">
<div class="welcome-activity-icon">
<img :src="handleContentJson(item.attContent).picurl"
v-if="handleContentJson(item.attContent).picurl" alt=""/>
<img src="@/assets/welcomeWord/coupon.png" v-else/>
</div>
<div class="welcome-activity-desc">
<div class="model-item-title">{{ handleContentJson(item.attContent).title }}</div>
<div class="model-item-content">{{ handleContentJson(item.attContent).desc }}</div>
</div>
</div>
</div>
</template>
</div> </div>
</div> </div>
</template> </template>
...@@ -142,11 +158,127 @@ export default { ...@@ -142,11 +158,127 @@ export default {
}, },
deep: true deep: true
} }
},
methods: {
handleContentJson(val) {
if (typeof (val) == 'string') {
return JSON.parse(val)
} else {
return val
}
},
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.welcome-activity-panel {
display: flex;
margin-right: 10px;
.welcome-activity-box {
cursor: pointer;
position: relative;
min-width: 180px;
background: #fafbfe;
border-radius: 2px;
border: 1px solid #e8e8ea;
padding: 8px;
box-sizing: border-box;
display: flex;
&:hover {
.delete-solid {
opacity: 1;
}
}
.welcome-activity-icon {
width: 36px;
height: 36px;
margin-right: 8px;
position: relative;
background-size: 100% 100%;
img {
width: 100%;
height: 100%;
}
video {
object-fit: fill;
}
.el-icon-video-play {
position: absolute;
top: 7px;
left: 7px;
font-size: 22px;
color: rgba(255, 255, 255, 0.8);
}
.img-filter-box {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
color: rgba(255, 255, 255, 0.8);
display: flex;
font-size: 13px;
align-items: center;
justify-content: center;
}
}
.delete-solid {
transition: all 0.5s;
opacity: 0;
position: absolute;
top: 0px;
right: 0px;
width: 14px;
height: 14px;
background: rgba(0, 0, 0, 0.5);
display: flex;
font-size: 12px;
align-items: center;
justify-content: center;
}
.el-icon-delete-solid {
color: rgba(255, 255, 255, 0.5);
}
.model-item-title {
font-size: 14px;
font-weight: 600;
color: #333333;
line-height: 20px;
max-width: 110px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.model-item-content {
font-size: 12px;
font-weight: 400;
color: #999999;
line-height: 17px;
max-width: 110px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
span {
color: #5850ff;
}
}
}
}
.img-list { .img-list {
margin-right: 3px; margin-right: 3px;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!