Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e3e85c93
authored
Mar 22, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.6.0' into 'master'
合并V3.6.0 See merge request
!474
2 parents
48dd1ef4
0cfa2d8d
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
830 additions
and
183 deletions
package-lock.json
package.json
src/api/modules/common.js
src/components/selectTag/index.vue
src/main.js
src/setup/qiankun.js
src/views/friendGroup/components/basicInfo.vue
src/views/friendGroup/friendGroupAdd.vue
src/views/friendGroup/index.vue
src/views/memberCenter/order.vue
src/views/memberCenter/setmealAddUpdate.vue
src/views/orderManage/index.vue
src/views/orderManage/orderDetail.vue
src/views/productStore/index.vue
src/views/seckillActivity/crowdFundList.vue
src/views/seckillActivity/dataBoard.vue
src/views/seckillActivity/editCrowdFund.vue
src/views/sop/editSop/components/FriendGroupPreview/index.vue
package-lock.json
View file @
e3e85c9
...
@@ -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/MaJzRkIk4
Q=="
,
"integrity"
:
"sha512-
0wsrzgTz/kAVIeuxSjnpGC56rzYtr6JT/2BwEvMaPhFIoYa1aGO8LbzuU1R0uUYQkLpWBTOj0l/CLAJB64J6n
Q=="
,
"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.npm
js.org/word-edit/-/word-edit-1.0
.5.tgz"
,
"resolved"
:
"https://registry.npm
mirror.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"
,
...
...
package.json
View file @
e3e85c9
...
@@ -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"
,
...
...
src/api/modules/common.js
View file @
e3e85c9
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
=>
{
...
@@ -117,6 +118,29 @@ const pictureUpload = params => {
...
@@ -117,6 +118,29 @@ const pictureUpload = params => {
})
})
}
}
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
...
@@ -184,4 +208,24 @@ const getCrowdfundingOrderConfig = (params = {}) => {
...
@@ -184,4 +208,24 @@ const getCrowdfundingOrderConfig = (params = {}) => {
})
})
}
}
export
default
{
getMerchantGoodsListApi
,
getGoodsListApi
,
uploadImgApi
,
uploadMusicApi
,
uploadVideoApi
,
uploadFundingVideoApi
,
getMerchantList
,
getSimpleMerchantList
,
getZoneListApi
,
getClassifyListApi
,
pictureUpload
,
querylabeltree
,
getCrowdTreeListApi
,
getStaffFollowerListApi
,
getMerchantInfoApi
,
getSuperMerchantApi
,
getCrowdfundingOrderConfig
}
export
default
{
getMerchantGoodsListApi
,
getGoodsListApi
,
uploadImgApi
,
uploadMusicApi
,
uploadVideoApi
,
uploadFundingVideoApi
,
getMerchantList
,
getSimpleMerchantList
,
getZoneListApi
,
getClassifyListApi
,
pictureUpload
,
querylabeltree
,
getCrowdTreeListApi
,
getStaffFollowerListApi
,
getMerchantInfoApi
,
getSuperMerchantApi
,
getCrowdfundingOrderConfig
,
compressPicture
,
compressVideo
}
src/components/selectTag/index.vue
View file @
e3e85c9
...
@@ -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
}
}
})
})
...
...
src/main.js
View file @
e3e85c9
...
@@ -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
)
src/setup/qiankun.js
View file @
e3e85c9
...
@@ -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,8 +28,18 @@ Vue.use(GLCombiForm)
...
@@ -27,8 +28,18 @@ 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
})
{
const
{
response
,
request
,
request2
,
sign
,
secret
,
sign_common
,
request_common
,
request_merchant
}
=
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
...
@@ -37,10 +48,47 @@ export async function bootstrap({ history, common, messenger, globalState, route
...
@@ -37,10 +48,47 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue
.
prototype
.
$messageBox
=
messageBox
Vue
.
prototype
.
$messageBox
=
messageBox
// 集团版集团账号
// 集团版集团账号
Vue
.
prototype
.
$isGroupUp
=
globalState
.
session
.
accountLevel
!=
4
Vue
.
prototype
.
$isGroupUp
=
globalState
.
session
.
accountLevel
!=
4
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http
=
new
common
.
Http
({
Vue
.
prototype
.
$http2
=
new
common
.
Http
({
response
,
request
:
request2
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
response
,
Vue
.
prototype
.
$http_merchant
=
new
common
.
Http
({
response
,
request
:
request_merchant
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
request
,
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
}
})
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
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.$http_xiaolong = new common.Http({ response, request: xiaolong_req, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue
.
prototype
.
$tracker
=
common
.
tracker
Vue
.
prototype
.
$tracker
=
common
.
tracker
// const myToken = 'scrm-base-107ee03c-1214-48c3-a443-a2332e553b2f-rop'
// const myToken = 'scrm-base-107ee03c-1214-48c3-a443-a2332e553b2f-rop'
...
@@ -53,9 +101,10 @@ export async function bootstrap({ history, common, messenger, globalState, route
...
@@ -53,9 +101,10 @@ export async function bootstrap({ history, common, messenger, globalState, route
// 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
)
routes
=
getRoutes
(
routesData
)
routes
=
getRoutes
(
routesData
)
subscribe
({
messenger
})
subscribe
({
messenger
})
Vue
.
use
(
GLButton
,
{
routes
,
routerBase
})
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
...
@@ -69,7 +118,7 @@ export async function unmount() {
...
@@ -69,7 +118,7 @@ export async function unmount() {
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
)
})
})
...
...
src/views/friendGroup/components/basicInfo.vue
View file @
e3e85c9
...
@@ -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'
,
...
...
src/views/friendGroup/friendGroupAdd.vue
View file @
e3e85c9
...
@@ -19,21 +19,68 @@
...
@@ -19,21 +19,68 @@
</el-button>
</el-button>
<div
class=
"sale-select"
v-show=
"basicForm.userList && basicForm.userList.length != 0"
>
<div
class=
"sale-select"
v-show=
"basicForm.userList && basicForm.userList.length != 0"
>
<div
:key=
"key"
class=
"el-input-tag input-tag-wrapper"
>
<div
:key=
"key"
class=
"el-input-tag input-tag-wrapper"
>
<el-tag
effect=
"plain"
type=
"info"
v-for=
"(tag, idx) in basicForm.userList"
:key=
"idx"
closable
:disable-transitions=
"false"
@
close=
"remove(tag, idx)"
>
<el-tag
effect=
"plain"
type=
"info"
v-for=
"(tag, idx) in basicForm.userList"
:key=
"idx"
closable
:disable-transitions=
"false"
@
close=
"remove(tag, idx)"
>
<i
class=
"el-icon-user-solid"
></i>
<i
class=
"el-icon-user-solid"
></i>
{{
tag
.
staffName
}}
{{
tag
.
staffName
}}
</el-tag>
</el-tag>
</div>
</div>
</div>
</div>
</el-form-item>
<el-form-item
label=
"可见的客户:"
prop=
"visibleCustomer"
>
<el-radio-group
v-model=
"basicForm.visibleCustomer"
>
<el-radio
:label=
"1"
>
全部客户
</el-radio>
<el-radio
:label=
"2"
>
筛选客户
</el-radio>
</el-radio-group>
<div
v-show=
"basicForm.visibleCustomer =='1'"
>
<div
class=
"filter-footer"
>
<div
class=
"filter-footer"
>
<!--
<span>
将消息发送给客户符合条件的客户
</span>
-->
<!--
<span>
将消息发送给客户符合条件的客户
</span>
-->
<div
class=
"filter-number"
>
<div
class=
"filter-number"
>
查看客户数
查看客户数
<el-button
type=
"text"
v-show=
"isUpdate"
:loading=
"viewLoading"
@
click=
"viewMembers"
>
查看
</el-button>
<el-button
type=
"text"
v-show=
"isUpdate"
:loading=
"viewLoading"
@
click=
"viewMembers('all')"
>
查看
<!--
<span
v-show=
"isUpdate"
@
click=
"viewMembers"
>
查看
</span>
--
>
</el-button
>
<span
v-show=
"!isUpdate"
>
{{
groupNumber
}}
</span>
<span
v-show=
"!isUpdate"
>
{{
groupNumber
}}
</span>
</div>
</div>
</div>
</div>
</div>
<div
v-show=
"basicForm.visibleCustomer =='2'"
>
<el-button
v-show=
"customerDataList.length == 0 ||customerDataList.every(item => item.labelList.length == 0)"
class=
"screeningCustomers default-blue-btn el-icon-plus m-t-10"
size=
"small"
@
click=
"viewMembers()"
>
去选择
</el-button>
<div
v-show=
"customerDataList.length != 0 && customerDataList.some(item => item.labelList.length !== 0)"
>
<div
class=
"customer-box m-t-10"
>
<div
class=
"el-input-tag input-tag-wrapper "
>
<div
class=
"customer-title"
>
标签客户:预估
<el-button
type=
"text"
:loading=
"customerLoading"
>
<span
v-if=
"!customerLoading"
>
{{
estimatedNumberOfPeople
}}
</span>
</el-button>
人
</div>
<div>
<div
v-for=
"(subItem, subIdx) in customerDataList"
:key=
"subIdx"
>
<el-tag
v-for=
"(k, n) in subItem.labelList"
:key=
"n"
class=
"customer-tag"
:size=
"size"
type=
"info"
:closable=
"true"
:disable-transitions=
"false"
@
close=
"handleDeleteCustomer(n, subIdx)"
>
<span>
{{
subItem
.
labelGroup
.
name
}}
:
{{
k
.
name
}}
</span>
</el-tag>
</div>
</div>
</div>
</div>
<div
class=
"m-t-10 screeningCustomers"
>
<el-button
type=
"text"
@
click=
"handleSelectCustomer()"
>
编辑
</el-button>
<el-button
type=
"text"
@
click=
"handleResetCustomer()"
>
重置
</el-button>
</div>
</div>
</div>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
...
@@ -46,8 +93,9 @@
...
@@ -46,8 +93,9 @@
<GLEditor
ref=
"welcome"
:form=
"'customer'"
:btnList=
"btnList"
@
previewWord=
"previewForm"
></GLEditor>
<GLEditor
ref=
"welcome"
:form=
"'customer'"
:btnList=
"btnList"
@
previewWord=
"previewForm"
></GLEditor>
<div
v-show=
"attachmentShow"
class=
"el-form-item__error"
>
{{
attachmentText
}}
</div>
<div
v-show=
"attachmentShow"
class=
"el-form-item__error"
>
{{
attachmentText
}}
</div>
<div
class=
"tips-text"
>
<div
class=
"tips-text"
>
<img
src=
"@/assets/guestCustom/tips.png"
class=
"tips-icon"
alt
/>
<img
src=
"@/assets/guestCustom/tips.png"
class=
"tips-icon"
alt
/>
<span>
因企业微信限制,普通图片:总像素不超过1555200,大小不超过10M,数量不超过9张。视频建议不超过1280x720,帧率30FPS,视频码率1.67 Mbps,最长不超过30S,最大不超过10MB
</span>
<!-- 因企业微信限制,普通图片:总像素不超过1555200,大小不超过10M,数量不超过9张。视频建议不超过1280x720,帧率30FPS,视频码率1.67 Mbps,最长不超过30S,最大不超过10MB-->
<span>
因为企业微信限制,普通图片:数量不超过9张;视频时长不超过30s,数量只支持1个视频。
</span>
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
"发送时间:"
prop=
"sendType"
>
<el-form-item
label=
"发送时间:"
prop=
"sendType"
>
...
@@ -56,9 +104,12 @@
...
@@ -56,9 +104,12 @@
<el-radio
:label=
"2"
>
定时发送
</el-radio>
<el-radio
:label=
"2"
>
定时发送
</el-radio>
</el-radio-group>
</el-radio-group>
<div
v-show=
"basicForm.sendType == 2"
class=
"date-picker"
>
<div
v-show=
"basicForm.sendType == 2"
class=
"date-picker"
>
<el-date-picker
v-model=
"basicForm.sendTime"
size=
"small"
type=
"date"
value-format=
"yyyy-MM-dd"
placeholder=
"选择日期"
:picker-options=
"dateOptions"
@
change=
"changeValue"
></el-date-picker>
<el-date-picker
v-model=
"basicForm.sendTime"
size=
"small"
type=
"date"
value-format=
"yyyy-MM-dd"
placeholder=
"选择日期"
:picker-options=
"dateOptions"
@
change=
"changeValue"
></el-date-picker>
-
-
<el-time-picker
v-model=
"basicForm.sendDate"
size=
"small"
value-format=
"HH:mm:ss"
placeholder=
"选择时间"
:picker-options=
"timeOptions"
></el-time-picker>
<el-time-picker
v-model=
"basicForm.sendDate"
size=
"small"
value-format=
"HH:mm:ss"
placeholder=
"选择时间"
:picker-options=
"timeOptions"
></el-time-picker>
</div>
</div>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -69,10 +120,13 @@
...
@@ -69,10 +120,13 @@
</div>
</div>
</div>
</div>
</div>
</div>
<GLDialog
bigTitle=
"选择成员"
mode=
"big"
:visible
.
sync=
"membersVisible"
@
onOk=
"handleConfirm"
@
onCancel=
"membersVisible = !membersVisible"
>
<GLDialog
bigTitle=
"选择成员"
mode=
"big"
:visible
.
sync=
"membersVisible"
@
onOk=
"handleConfirm"
@
onCancel=
"membersVisible = !membersVisible"
>
<!--
<SelectMembers
islord=
"false"
:selectData=
"selectData"
ref=
"membersForm"
></SelectMembers>
-->
<!--
<SelectMembers
islord=
"false"
:selectData=
"selectData"
ref=
"membersForm"
></SelectMembers>
-->
<SelectMember
ref=
"membersForm"
v-if=
"membersVisible"
:selectData=
"selectData"
></SelectMember>
<SelectMember
ref=
"membersForm"
v-if=
"membersVisible"
:selectData=
"selectData"
></SelectMember>
</GLDialog>
</GLDialog>
<select-tag
ref=
"selectTagForm"
@
tagSelected=
"handleDialogConfirm"
:dialogVisible=
"isTagVisible"
:labelTypesStr=
"'企业标签'"
></select-tag>
</div>
</div>
<GLFooter>
<GLFooter>
<el-button
@
click=
"handleCancel"
>
取消
</el-button>
<el-button
@
click=
"handleCancel"
>
取消
</el-button>
...
@@ -94,8 +148,9 @@ const ATT_TYPE = {
...
@@ -94,8 +148,9 @@ const ATT_TYPE = {
import
Vue
from
'vue'
import
Vue
from
'vue'
import
emoji
from
'@/utils/emo'
import
emoji
from
'@/utils/emo'
import
SelectMember
from
'./components/selectMember.vue'
import
SelectMember
from
'./components/selectMember.vue'
import
Preview
from
'.
/components/preview
.vue'
import
Preview
from
'.
./sop/editSop/components/FriendGroupPreview/index
.vue'
import
*
as
dayjs
from
'dayjs'
import
*
as
dayjs
from
'dayjs'
export
default
{
export
default
{
components
:
{
components
:
{
SelectMember
,
SelectMember
,
...
@@ -107,7 +162,7 @@ export default {
...
@@ -107,7 +162,7 @@ export default {
if
(
userList
&&
userList
.
length
!=
0
)
{
if
(
userList
&&
userList
.
length
!=
0
)
{
callback
()
callback
()
}
else
{
}
else
{
callback
(
new
Error
(
'请选择
群发账号
'
))
callback
(
new
Error
(
'请选择
发表成员
'
))
}
}
}
}
const
validatorSendType
=
(
rule
,
value
,
callback
)
=>
{
const
validatorSendType
=
(
rule
,
value
,
callback
)
=>
{
...
@@ -144,39 +199,41 @@ export default {
...
@@ -144,39 +199,41 @@ export default {
funcName
:
''
,
funcName
:
''
,
type
:
'img'
,
type
:
'img'
,
togetherItem
:
[
ATT_TYPE
.
TEXT
],
//只允许文本和图片
togetherItem
:
[
ATT_TYPE
.
TEXT
],
//只允许文本和图片
limitSize
:
10
,
//限制图片大小
//
limitSize: 10, //限制图片大小
limitNum
:
9
,
//限制图片数量
limitNum
:
9
,
//限制图片数量
limitPx
:
1555200
,
// limitPx: 1555200,
paramsType
:
'form-data'
,
// limitWidth: 10000, //限制单张图片宽度
// limitWidth: 10000, //限制单张图片宽度
// limitHeight: 10000,//限制单张图片高度
// limitHeight: 10000,//限制单张图片高度
Isdraggable
:
true
,
//图片拖拽
Isdraggable
:
true
,
//图片拖拽
,
uploadApi
:
this
.
$apis
.
common
.
pictureUpload
uploadApi
:
this
.
$apis
.
common
.
compressPicture
},
},
{
{
name
:
'视频'
,
name
:
'视频'
,
funcName
:
''
,
funcName
:
''
,
type
:
'video'
,
type
:
'video'
,
limitSize
:
10
,
//限制视频大小
//
limitSize: 10, //限制视频大小
togetherItem
:
[
ATT_TYPE
.
TEXT
],
//只允许文本和图片
togetherItem
:
[
ATT_TYPE
.
TEXT
],
//只允许文本和图片
limitNum
:
1
,
//限制视频数量
limitNum
:
1
,
//限制视频数量
limitWidth
:
1280
,
//限制视频宽度
//
limitWidth: 1280, //限制视频宽度
limitHeight
:
720
,
//限制视频高度
//
limitHeight: 720, //限制视频高度
limitTime
:
30
,
//限制视频时长
limitTime
:
30
,
//限制视频时长
uploadApi
:
this
.
$apis
.
common
.
pictureUpload
paramsType
:
'form-data'
,
}
uploadApi
:
this
.
$apis
.
common
.
compressVideo
// {
},
// name: '模板',
{
// type: 'message',
name
:
'链接'
,
// funName: 'message',
type
:
'postLink'
,
// getSearchApi: this.$apis.welcomeword.createdNameList,
funName
:
'postLink'
,
// templateApi: this.$apis.welcomeword.templatePage,
togetherItem
:
[
ATT_TYPE
.
TEXT
],
// templateUpdateApi: this.$apis.welcomeword.templateUpdate,
limitOrNot
:
true
,
// templateSaveApi: this.$apis.welcomeword.templateSave,
Isdraggable
:
true
,
//需要配置限制时,也传递该属性
// templateDetailApi: this.$apis.welcomeword.templateDetail
paramsType
:
'form-data'
,
// }
uploadApi
:
this
.
$apis
.
common
.
compressPicture
}
],
],
basicForm
:
{
basicForm
:
{
selectType
:
1
,
visibleCustomer
:
1
,
condition
:
{
condition
:
{
sex
:
''
,
sex
:
''
,
chat
:
[]
chat
:
[]
...
@@ -187,16 +244,16 @@ export default {
...
@@ -187,16 +244,16 @@ export default {
basicRules
:
{
basicRules
:
{
userList
:
[
userList
:
[
// { required: true, message: '请选择群发账号', trigger: 'blur' },
// { required: true, message: '请选择群发账号', trigger: 'blur' },
{
validator
:
validatorUser
,
trigger
:
'change'
}
{
validator
:
validatorUser
,
trigger
:
'change'
},
],
],
selectType
:
[{
required
:
true
,
message
:
'请选择客户类型'
,
trigger
:
'change'
}],
visibleCustomer
:
[{
required
:
true
,
message
:
'请选择可见的客户'
,
trigger
:
'change'
}],
// attachmentList: [
// attachmentList: [
// // { required: true, message: '请输入入群欢迎语' },
// // { required: true, message: '请输入入群欢迎语' },
// { validator: validatorAttachment, trigger: 'change' }
// { validator: validatorAttachment, trigger: 'change' }
// ],
// ],
sendType
:
[
sendType
:
[
{
required
:
true
,
message
:
'请选择发送时间'
,
trigger
:
'change'
},
{
required
:
true
,
message
:
'请选择发送时间'
,
trigger
:
'change'
},
{
validator
:
validatorSendType
,
trigger
:
'change'
}
{
validator
:
validatorSendType
,
trigger
:
'change'
}
]
]
},
},
membersVisible
:
false
,
membersVisible
:
false
,
...
@@ -223,7 +280,12 @@ export default {
...
@@ -223,7 +280,12 @@ export default {
firstFlag
:
true
,
firstFlag
:
true
,
footerLeft
:
40
,
footerLeft
:
40
,
footerWidth
:
500
,
footerWidth
:
500
,
viewLoading
:
false
viewLoading
:
false
,
customerDataList
:
[],
isTagVisible
:
false
,
estimatedNumberOfPeople
:
''
,
customerLoading
:
false
,
whetherToSelectMembers
:
true
,
}
}
},
},
watch
:
{
watch
:
{
...
@@ -236,17 +298,111 @@ export default {
...
@@ -236,17 +298,111 @@ export default {
}
}
},
},
deep
:
true
deep
:
true
},
'basicForm.visibleCustomer'
(
newVal
,
oldVal
)
{
if
(
newVal
!==
oldVal
)
{
this
.
customerDataList
=
[]
this
.
customerLoading
=
false
this
.
estimatedNumberOfPeople
=
''
this
.
$refs
.
selectTagForm
.
labelTreeRetSelect
=
[]
}
}
}
},
},
mounted
()
{},
mounted
()
{
},
methods
:
{
methods
:
{
getCustomerByTagList
(
type
)
{
let
params
=
{}
if
(
type
==
'all'
)
{
this
.
viewLoading
=
true
}
if
(
type
==
'filtrate'
)
{
params
=
{
selectType
:
2
,
condition
:
{
labelList
:
[]
}
}
this
.
customerDataList
&&
this
.
customerDataList
.
forEach
(
item
=>
{
item
.
labelList
.
length
&&
item
.
labelList
.
forEach
(
subItem
=>
{
params
.
condition
.
labelList
.
push
({
groupId
:
item
.
labelGroup
.
id
,
groupName
:
item
.
labelGroup
.
name
,
groupType
:
item
.
labelType
,
labelId
:
subItem
.
id
,
labelName
:
subItem
.
name
})
})
})
}
const
userList
=
this
.
basicForm
.
userList
.
map
(
item
=>
{
return
{
staffId
:
item
.
staffId
,
staffName
:
item
.
staffName
,
masterStatus
:
item
.
masterStatus
,
follow
:
item
.
follow
}
})
params
.
userList
=
userList
this
.
$apis
.
friendGroup
.
momentCount
(
params
)
.
then
(
res
=>
{
if
(
this
.
basicForm
.
visibleCustomer
==
1
)
{
this
.
viewLoading
=
false
this
.
groupNumber
=
res
this
.
isUpdate
=
false
}
else
{
this
.
estimatedNumberOfPeople
=
res
this
.
customerLoading
=
false
}
})
.
catch
(
err
=>
{
this
.
viewLoading
=
false
this
.
groupNumber
=
0
})
},
handleDeleteCustomer
(
idx
,
pIdx
)
{
this
.
customerDataList
[
pIdx
].
labelList
.
splice
(
idx
,
1
)
this
.
customerLoading
=
true
this
.
getCustomerByTagList
(
'filtrate'
)
},
handleResetCustomer
()
{
this
.
customerDataList
=
[]
this
.
customerLoading
=
false
this
.
estimatedNumberOfPeople
=
''
this
.
$refs
.
selectTagForm
.
labelTreeRetSelect
=
[]
},
handleDialogConfirm
(
val
)
{
this
.
customerDataList
=
val
this
.
customerLoading
=
true
this
.
getCustomerByTagList
(
'filtrate'
)
},
handleSelectCustomer
()
{
this
.
isTagVisible
=
!
this
.
isTagVisible
this
.
$refs
.
selectTagForm
.
init
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
customerDataList
)))
},
previewForm
(
val
)
{
previewForm
(
val
)
{
console
.
log
(
val
)
// this.previewView = val
this
.
previewView
=
val
const
value
=
this
.
$common
.
utils
.
deepClone
(
val
)
if
(
value
[
0
]
&&
!
value
[
0
].
attContent
)
value
.
splice
(
0
,
1
)
this
.
previewView
=
value
},
},
openMembers
()
{
openMembers
()
{
this
.
membersVisible
=
!
this
.
membersVisible
this
.
membersVisible
=
!
this
.
membersVisible
},
},
handleCancel
()
{
handleCancel
()
{
if
(
this
.
editStatus
||
this
.
$refs
.
welcome
.
previewList
.
length
>
0
)
{
if
(
this
.
editStatus
||
this
.
$refs
.
welcome
.
previewList
.
length
>
0
)
{
this
.
$confirm
(
'当前有内容信息未保存,是否继续返回?'
,
'提示'
,
{
this
.
$confirm
(
'当前有内容信息未保存,是否继续返回?'
,
'提示'
,
{
...
@@ -257,7 +413,8 @@ export default {
...
@@ -257,7 +413,8 @@ export default {
.
then
(()
=>
{
.
then
(()
=>
{
this
.
$router
.
push
(
'/friendGroup/index'
)
this
.
$router
.
push
(
'/friendGroup/index'
)
})
})
.
catch
(()
=>
{})
.
catch
(()
=>
{
})
}
else
{
}
else
{
this
.
$router
.
push
(
'/friendGroup/index'
)
this
.
$router
.
push
(
'/friendGroup/index'
)
}
}
...
@@ -271,35 +428,10 @@ export default {
...
@@ -271,35 +428,10 @@ export default {
})
})
return
return
}
}
this
.
viewLoading
=
true
this
.
basicForm
.
visibleCustomer
==
2
?
this
.
handleSelectCustomer
()
:
this
.
getCustomerByTagList
(
'all'
)
const
userList
=
this
.
basicForm
.
userList
.
map
(
item
=>
{
return
{
staffId
:
item
.
staffId
,
staffName
:
item
.
staffName
,
masterStatus
:
item
.
masterStatus
,
follow
:
item
.
follow
}
})
let
params
=
{
userList
}
this
.
$apis
.
friendGroup
.
momentCount
(
params
)
.
then
(
res
=>
{
// if (res) {
this
.
viewLoading
=
false
this
.
groupNumber
=
res
// }
this
.
isUpdate
=
false
})
.
catch
(
err
=>
{
this
.
viewLoading
=
false
this
.
groupNumber
=
0
})
},
},
// 成员弹窗
// 成员弹窗
handleConfirm
()
{
handleConfirm
()
{
console
.
log
(
this
.
$refs
.
membersForm
.
innerTags
)
if
(
this
.
$refs
.
membersForm
.
innerTags
.
length
)
{
if
(
this
.
$refs
.
membersForm
.
innerTags
.
length
)
{
// this.basicForm.userList = this.$refs.membersForm.innerTags
// this.basicForm.userList = this.$refs.membersForm.innerTags
this
.
$set
(
this
.
basicForm
,
'userList'
,
this
.
$refs
.
membersForm
.
innerTags
)
this
.
$set
(
this
.
basicForm
,
'userList'
,
this
.
$refs
.
membersForm
.
innerTags
)
...
@@ -341,6 +473,14 @@ export default {
...
@@ -341,6 +473,14 @@ export default {
if
(
previewList
.
length
!=
0
)
{
if
(
previewList
.
length
!=
0
)
{
this
.
basicForm
.
attachmentList
=
previewList
this
.
basicForm
.
attachmentList
=
previewList
}
}
if
(
this
.
basicForm
.
visibleCustomer
==
2
&&
(
!
this
.
customerDataList
.
length
||
this
.
customerDataList
.
every
(
item
=>
item
.
labelList
.
length
==
0
)))
{
this
.
$message
({
type
:
'error'
,
message
:
'请筛选客户!'
})
return
}
this
.
$refs
.
groupForm
.
validate
(
v
=>
{
this
.
$refs
.
groupForm
.
validate
(
v
=>
{
if
(
v
)
{
if
(
v
)
{
const
params
=
{}
const
params
=
{}
...
@@ -352,7 +492,9 @@ export default {
...
@@ -352,7 +492,9 @@ export default {
staffName
:
item
.
staffName
staffName
:
item
.
staffName
}
}
})
})
let
attachmentList
=
this
.
$refs
.
welcome
.
previewList
// let attachmentList = this.$refs.welcome.previewList
let
attachmentList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
$refs
.
welcome
.
previewList
))
const
material
=
previewList
.
filter
(
item
=>
item
.
attType
!=
ATT_TYPE
.
TEXT
)
const
material
=
previewList
.
filter
(
item
=>
item
.
attType
!=
ATT_TYPE
.
TEXT
)
let
materialType
=
0
let
materialType
=
0
if
(
material
&&
material
.
length
>
0
)
{
if
(
material
&&
material
.
length
>
0
)
{
...
@@ -372,10 +514,32 @@ export default {
...
@@ -372,10 +514,32 @@ export default {
materialType
=
2
materialType
=
2
}
}
params
.
materialType
=
materialType
params
.
materialType
=
materialType
// 对链接字段做处理
attachmentList
.
forEach
(
item
=>
{
if
(
item
.
attType
==
4
)
{
item
.
attContent
=
JSON
.
stringify
(
item
.
attContent
)
}
})
params
.
attachmentList
=
attachmentList
params
.
attachmentList
=
attachmentList
// 筛选客户
if
(
this
.
basicForm
.
visibleCustomer
)
{
params
.
labelIdList
=
[]
this
.
customerDataList
&&
this
.
customerDataList
.
forEach
(
item
=>
{
item
.
labelList
.
length
&&
item
.
labelList
.
forEach
(
subItem
=>
{
params
.
labelIdList
.
push
(
subItem
.
id
,
)
})
})
}
if
(
params
.
sendType
==
2
)
{
if
(
params
.
sendType
==
2
)
{
params
.
sendTimeStr
=
this
.
basicForm
.
sendTime
+
' '
+
this
.
basicForm
.
sendDate
params
.
sendTimeStr
=
this
.
basicForm
.
sendTime
+
' '
+
this
.
basicForm
.
sendDate
}
}
this
.
addLoading
=
true
this
.
addLoading
=
true
this
.
$apis
.
friendGroup
.
momentInsert
(
params
).
then
(
res
=>
{
this
.
$apis
.
friendGroup
.
momentInsert
(
params
).
then
(
res
=>
{
this
.
addLoading
=
false
this
.
addLoading
=
false
...
@@ -415,6 +579,64 @@ export default {
...
@@ -415,6 +579,64 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.m-t-10
{
margin-top
:
10px
;
}
.screeningCustomers
{
margin-left
:
152px
;
}
.customer-box
{
margin-left
:
152px
;
.flex-wrapper
{
//
display
:
flex
;
//
flex-direction
:
column
;
//
justify-content
:
flex-start
;
}
.customer-title
{
box-sizing
:
border-box
;
height
:
39px
;
line-height
:
39px
;
padding
:
0
10px
;
//
border-bottom
:
1px
solid
#dcdfe6
;
}
.input-tag-wrapper
{
max-height
:
227px
;
overflow
:
auto
;
position
:
relative
;
font-size
:
14px
;
padding
:
0
10px
10px
;
box-sizing
:
border-box
;
color
:
#666
;
display
:
inline-block
!important
;
outline
:
none
;
flex-wrap
:
wrap
;
transition
:
border-color
0.2s
cubic-bezier
(
0.645
,
0.045
,
0.355
,
1
);
display
:
flex
;
align-items
:
center
;
font-size
:
14px
;
.el-tag.el-tag--info
.el-tag__close
{
color
:
#909399
!important
;
background
:
transparent
!important
;
}
.customer-tag
{
margin
:
4px
;
}
i
{
color
:
#75acff
;
margin-right
:
3px
;
font-size
:
14px
;
}
}
}
.container
{
.container
{
margin-bottom
:
16px
;
margin-bottom
:
16px
;
background
:
#ffffff
;
background
:
#ffffff
;
...
@@ -426,6 +648,7 @@ export default {
...
@@ -426,6 +648,7 @@ export default {
color
:
#333
;
color
:
#333
;
font-weight
:
600
;
font-weight
:
600
;
border-bottom
:
1px
solid
#d8d8d8
;
border-bottom
:
1px
solid
#d8d8d8
;
>
span
{
>
span
{
font-size
:
14px
;
font-size
:
14px
;
color
:
#999999
;
color
:
#999999
;
...
@@ -433,6 +656,7 @@ export default {
...
@@ -433,6 +656,7 @@ export default {
font-weight
:
100
;
font-weight
:
100
;
}
}
}
}
.tips-text
{
.tips-text
{
display
:
flex
;
display
:
flex
;
//
align-items
:
center
;
//
align-items
:
center
;
...
@@ -450,28 +674,34 @@ export default {
...
@@ -450,28 +674,34 @@ export default {
max-width
:
844px
;
max-width
:
844px
;
width
:
auto
;
width
:
auto
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
.tips-icon
{
.tips-icon
{
width
:
14px
;
width
:
14px
;
height
:
14px
;
height
:
14px
;
margin
:
6px
8px
0
0
;
margin
:
6px
8px
0
0
;
}
}
}
}
.info-box
{
.info-box
{
display
:
inline-flex
;
display
:
inline-flex
;
width
:
100%
;
width
:
100%
;
padding-bottom
:
30px
;
padding-bottom
:
30px
;
align-items
:
flex-end
;
align-items
:
flex-end
;
justify-content
:
space-between
;
justify-content
:
space-between
;
.preview
{
.preview
{
flex
:
1
;
flex
:
1
;
}
}
.info-content
{
.info-content
{
width
:
66%
;
width
:
66%
;
.filter-box
{
.filter-box
{
//
margin-left
:
120px
;
//
margin-left
:
120px
;
margin-bottom
:
10px
;
margin-bottom
:
10px
;
min-width
:
656px
;
min-width
:
656px
;
background-color
:
#f7f7f7
;
background-color
:
#f7f7f7
;
.filter-memeber
{
.filter-memeber
{
padding
:
20px
0
;
padding
:
20px
0
;
//
border-bottom
:
1px
solid
#dcdfe6
;
//
border-bottom
:
1px
solid
#dcdfe6
;
...
@@ -490,21 +720,25 @@ export default {
...
@@ -490,21 +720,25 @@ export default {
color
:
#999
;
color
:
#999
;
margin-left
:
154px
;
margin-left
:
154px
;
font-size
:
14px
;
font-size
:
14px
;
.filter-number
{
.filter-number
{
display
:
inline-block
;
display
:
inline-block
;
line-height
:
20px
;
line-height
:
20px
;
padding
:
7px
14px
;
padding
:
7px
14px
;
background-color
:
#e6e9ff
;
background-color
:
#e6e9ff
;
color
:
#333
;
color
:
#333
;
span
{
span
{
color
:
#5850ff
;
color
:
#5850ff
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
}
}
}
}
.basic-form
{
.basic-form
{
padding
:
32px
0
20px
20px
;
padding
:
32px
0
20px
20px
;
/deep/.el-input
{
/deep/
.el-input
{
width
:
320px
;
width
:
320px
;
}
}
}
}
...
@@ -515,11 +749,13 @@ export default {
...
@@ -515,11 +749,13 @@ export default {
font-size
:
12px
;
font-size
:
12px
;
color
:
#999
;
color
:
#999
;
}
}
.preview
{
.preview
{
margin-right
:
24px
;
margin-right
:
24px
;
margin-bottom
:
100px
;
margin-bottom
:
100px
;
}
}
}
}
.footer-panel
{
.footer-panel
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
...
@@ -531,18 +767,22 @@ export default {
...
@@ -531,18 +767,22 @@ export default {
background
:
#ffffff
;
background
:
#ffffff
;
box-shadow
:
0px
-1px
1px
0px
rgba
(
88
,
80
,
255
,
0.1
);
box-shadow
:
0px
-1px
1px
0px
rgba
(
88
,
80
,
255
,
0.1
);
}
}
.label-text
{
.label-text
{
margin-left
:
10px
;
margin-left
:
10px
;
font-size
:
14px
;
font-size
:
14px
;
span
{
span
{
color
:
#5850ff
;
color
:
#5850ff
;
}
}
}
}
.sale-select
{
.sale-select
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
margin-left
:
154px
;
margin-left
:
154px
;
}
}
.input-tag-wrapper
{
.input-tag-wrapper
{
max-height
:
75px
;
max-height
:
75px
;
overflow
:
auto
;
overflow
:
auto
;
...
@@ -564,12 +804,14 @@ export default {
...
@@ -564,12 +804,14 @@ export default {
align-items
:
center
;
align-items
:
center
;
margin-top
:
6px
;
margin-top
:
6px
;
font-size
:
14px
;
font-size
:
14px
;
i
{
i
{
color
:
#75acff
;
color
:
#75acff
;
margin-right
:
3px
;
margin-right
:
3px
;
font-size
:
14px
;
font-size
:
14px
;
}
}
}
}
.el-tag
{
.el-tag
{
margin-right
:
4px
;
margin-right
:
4px
;
height
:
26px
;
height
:
26px
;
...
@@ -577,6 +819,7 @@ export default {
...
@@ -577,6 +819,7 @@ export default {
margin-bottom
:
5px
;
margin-bottom
:
5px
;
//
background
:
#fff
!important
;
//
background
:
#fff
!important
;
}
}
.tag-input
{
.tag-input
{
background
:
transparent
;
background
:
transparent
;
border
:
none
!important
;
border
:
none
!important
;
...
@@ -586,31 +829,38 @@ export default {
...
@@ -586,31 +829,38 @@ export default {
padding-left
:
0
;
padding-left
:
0
;
width
:
100px
;
width
:
100px
;
}
}
.form-error
{
.form-error
{
color
:
#f56c6c
;
color
:
#f56c6c
;
font-size
:
12px
;
font-size
:
12px
;
margin-left
:
186px
;
margin-left
:
186px
;
margin-top
:
10px
;
margin-top
:
10px
;
}
}
/
deep
/
{
/
deep
/
{
.el-form-item
.el-form-item
{
.el-form-item
.el-form-item
{
margin-bottom
:
22px
;
margin-bottom
:
22px
;
}
}
.required
{
.required
{
display
:
inline-block
;
display
:
inline-block
;
line-height
:
40px
;
line-height
:
40px
;
}
}
.required
::before
{
.required
::before
{
content
:
'*'
;
content
:
'*'
;
color
:
#f56c6c
;
color
:
#f56c6c
;
margin-right
:
4
px
;
margin-right
:
4px
;
}
}
.el-loading-spinner
{
.el-loading-spinner
{
transform
:
translateY
(
8px
);
transform
:
translateY
(
8px
);
}
}
.el-scrollbar
{
.el-scrollbar
{
padding-bottom
:
10px
;
padding-bottom
:
10px
;
}
}
.welcome-box
{
.welcome-box
{
min-width
:
488px
;
min-width
:
488px
;
max-width
:
844px
;
max-width
:
844px
;
...
@@ -618,11 +868,14 @@ export default {
...
@@ -618,11 +868,14 @@ export default {
margin-left
:
154px
;
margin-left
:
154px
;
}
}
}
}
.group-content
{
.group-content
{
padding
:
22px
0
20px
;
padding
:
22px
0
20px
;
}
}
.date-picker
{
.date-picker
{
margin-left
:
150px
;
margin-left
:
150px
;
/deep/
{
/deep/
{
.el-date-editor
{
.el-date-editor
{
width
:
136px
;
width
:
136px
;
...
...
src/views/friendGroup/index.vue
View file @
e3e85c9
...
@@ -4,10 +4,11 @@
...
@@ -4,10 +4,11 @@
<div
class=
"m-b-20 friend-title"
>
<div
class=
"m-b-20 friend-title"
>
<div
class=
"friend-title-left"
>
<div
class=
"friend-title-left"
>
<GLButton
:size=
"size"
type=
"primary"
fn=
"编辑朋友圈"
@
click=
"handleEdit(1)"
>
发布朋友圈
</GLButton>
<GLButton
:size=
"size"
type=
"primary"
fn=
"编辑朋友圈"
@
click=
"handleEdit(1)"
>
发布朋友圈
</GLButton>
<span
class=
"friend-tip-text"
>
管理员可直接在后台为员工创建朋友圈,员工收到朋友圈新消息提醒后,可快捷将管理员创建的朋友圈发送到自己朋友圈中。
</span>
<span
class=
"friend-tip-text"
>
管理员可直接在后台为员工创建朋友圈,员工收到朋友圈新消息提醒后,可快捷将管理员创建的朋友圈发送到自己朋友圈中。
</span>
</div>
</div>
<div
class=
"title"
>
<div
class=
"title"
>
<span
class=
"info-time"
>
{{
this
.
sendType
}}
:
{{
this
.
updatedTime
}}
</span>
<span
class=
"info-time"
>
{{
this
.
sendType
}}
:
{{
this
.
updatedTime
}}
</span>
<span
class=
"info-refresh"
@
click=
"handleRefresh"
>
<span
class=
"info-refresh"
@
click=
"handleRefresh"
>
刷新数据
刷新数据
...
@@ -26,26 +27,48 @@
...
@@ -26,26 +27,48 @@
</span>
</span>
</glsx-combi-form>
</glsx-combi-form>
</div>
-->
</div>
-->
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
v-loading=
"loading"
ref=
"proGroupRef"
@
refreshTable=
"handleSearch"
:layout=
"layout"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
>
<GLTable
v-loading=
"loading"
ref=
"proGroupRef"
@
refreshTable=
"handleSearch"
:layout=
"layout"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
>
<div
slot=
"attachmentList"
class=
"table-attachmentList"
slot-scope=
"scope"
>
<div
slot=
"attachmentList"
class=
"table-attachmentList"
slot-scope=
"scope"
>
<div
class=
"attachmentList-box"
>
<div
class=
"attachmentList-box"
>
<template
v-if=
"scope.scope.previewListUrl && scope.scope.previewListUrl.length"
>
<div
v-for=
"(item,index) in scope.scope.previewListUrl"
:key=
"index"
class=
"linkStyle"
>
<img
:src=
"JSON.parse(item.attContent).picurl"
alt=
""
/>
<span
class=
"linkText"
>
{{
JSON
.
parse
(
item
.
attContent
).
title
}}
</span>
</div>
</
template
>
<
template
v-else
>
<div
v-for=
"(item, index) in scope.scope.previewListImg"
:key=
"item.id"
>
<div
v-for=
"(item, index) in scope.scope.previewListImg"
:key=
"item.id"
>
<div
class=
"attachmentList-image"
v-if=
"index == 0 && item.attType == 1 && (scope.scope.materialType == 0 || scope.scope.materialType == 4)"
></div>
<div
class=
"attachmentList-image"
<div
class=
"attachmentList-image"
v-if=
"index == 0 && item.attType == 2 && scope.scope.materialType == 1"
><img
:src=
"item.attContent[0]"
alt=
""
/></div>
v-if=
"index == 0 && item.attType == 1 && (scope.scope.materialType == 0 )"
></div>
<div
class=
"attachmentList-image"
v-if=
"index == 0 && item.attType == 2 && scope.scope.materialType == 2"
>
<img
:src=
"item.attContent[0]"
alt=
""
/>
<div
class=
"attachmentList-image"
v-if=
"index == 0 && item.attType == 2 && scope.scope.materialType == 1"
><img
:src=
"item.attContent[0]"
alt=
""
/></div>
<div
class=
"attachmentList-image"
v-if=
"index == 0 && item.attType == 2 && scope.scope.materialType == 2"
>
<img
:src=
"item.attContent[0]"
alt=
""
/>
<div
class=
"image-num"
>
{{
scope
.
scope
.
previewListImg
.
length
}}
</div>
<div
class=
"image-num"
>
{{
scope
.
scope
.
previewListImg
.
length
}}
</div>
<div
class=
"image-panel"
><img
src=
"@/assets/imgNum.png"
/></div>
<div
class=
"image-panel"
><img
src=
"@/assets/imgNum.png"
/></div>
</div>
</div>
<div
class=
"attachmentList-image attachmentList-video"
v-if=
"index == 0 && item.attType == 3 && scope.scope.materialType == 3"
><img
src=
"@/assets/guestCustom/video-list.png"
/></div>
<div
class=
"attachmentList-image attachmentList-video"
v-if=
"index == 0 && item.attType == 3 && scope.scope.materialType == 3"
><img
src=
"@/assets/guestCustom/video-list.png"
/></div>
</div>
</div>
<div
v-for=
"item in scope.scope.previewListText"
:key=
"item.id"
>
<div
v-for=
"item in scope.scope.previewListText"
:key=
"item.id"
>
<div
class=
"attachmentList-text"
v-if=
"item.attContent"
>
{{
item
.
attContent
[
0
]
}}
</div>
<div
class=
"attachmentList-text"
v-if=
"item.attContent && item.attType !== 4"
>
{{
item
.
attContent
[
0
]
}}
</div>
</div>
</div>
</div>
</
template
>
</div>
</div>
</div>
<div
slot=
"sendType"
slot-scope=
"scope"
>
<div
slot=
"sendType"
slot-scope=
"scope"
>
<span
style=
"color: #eb4e4e"
v-if=
"scope.scope.sendType == 2"
>
定时发送
</span>
<span
style=
"color: #eb4e4e"
v-if=
"scope.scope.sendType == 2"
>
定时发送
</span>
...
@@ -66,7 +89,8 @@
...
@@ -66,7 +89,8 @@
<!-- 表格区域 end -->
<!-- 表格区域 end -->
</div>
</div>
<!-- 下架 -->
<!-- 下架 -->
<glsx-dialog
title=
"下架"
:isVisible
.
sync=
"isDownVisible"
@
confirmDialog=
"handleDownConfirm"
@
closeDialog=
"handleDownClose"
>
<glsx-dialog
title=
"下架"
:isVisible
.
sync=
"isDownVisible"
@
confirmDialog=
"handleDownConfirm"
@
closeDialog=
"handleDownClose"
>
<el-form
ref=
"downRef"
label-width=
"100px"
:rules=
"downRules"
:model=
"downForm"
>
<el-form
ref=
"downRef"
label-width=
"100px"
:rules=
"downRules"
:model=
"downForm"
>
<el-form-item
label=
"下架备注"
prop=
"offReason"
>
<el-form-item
label=
"下架备注"
prop=
"offReason"
>
<el-input
:size=
"size"
v-model=
"downForm.offReason"
placeholder=
"请输入下架备注"
maxlength=
"30"
></el-input>
<el-input
:size=
"size"
v-model=
"downForm.offReason"
placeholder=
"请输入下架备注"
maxlength=
"30"
></el-input>
...
@@ -80,7 +104,8 @@
...
@@ -80,7 +104,8 @@
<
script
>
<
script
>
import
*
as
dayjs
from
'dayjs'
import
*
as
dayjs
from
'dayjs'
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
import
{
utils
}
from
'glsx-common'
import
{
utils
}
from
'glsx-common'
export
default
{
export
default
{
name
:
'friendGroup'
,
name
:
'friendGroup'
,
data
()
{
data
()
{
...
@@ -97,10 +122,10 @@ export default {
...
@@ -97,10 +122,10 @@ export default {
goodsStatus
:
0
goodsStatus
:
0
},
},
downRules
:
{
downRules
:
{
offReason
:
[{
required
:
true
,
message
:
'请输入下架备注'
,
trigger
:
'change'
}]
offReason
:
[{
required
:
true
,
message
:
'请输入下架备注'
,
trigger
:
'change'
}]
},
},
updatedTime
:
''
,
updatedTime
:
''
,
sendType
:
''
,
sendType
:
''
,
// 分享
// 分享
isShareVisible
:
false
,
isShareVisible
:
false
,
shareForm
:
{},
shareForm
:
{},
...
@@ -154,7 +179,8 @@ export default {
...
@@ -154,7 +179,8 @@ export default {
return
row
.
status
==
2
||
row
.
status
==
1
return
row
.
status
==
2
||
row
.
status
==
1
},
},
listeners
:
{
listeners
:
{
click
:
()
=>
{}
click
:
()
=>
{
}
}
}
},
},
{
{
...
@@ -168,7 +194,8 @@ export default {
...
@@ -168,7 +194,8 @@ export default {
return
row
.
status
==
-
1
return
row
.
status
==
-
1
},
},
listeners
:
{
listeners
:
{
click
:
()
=>
{}
click
:
()
=>
{
}
}
}
},
},
{
{
...
@@ -182,7 +209,8 @@ export default {
...
@@ -182,7 +209,8 @@ export default {
return
row
.
status
==
4
return
row
.
status
==
4
},
},
listeners
:
{
listeners
:
{
click
:
()
=>
{}
click
:
()
=>
{
}
}
}
},
},
{
{
...
@@ -296,7 +324,7 @@ export default {
...
@@ -296,7 +324,7 @@ export default {
},
},
layout
:
'sizes, prev, pager, next, jumper, ->, total'
,
layout
:
'sizes, prev, pager, next, jumper, ->, total'
,
tableTotal
:
0
,
tableTotal
:
0
,
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'count'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'count'
},
baseData
:
{
baseData
:
{
typeStatusList
:
[
typeStatusList
:
[
{
{
...
@@ -370,14 +398,16 @@ export default {
...
@@ -370,14 +398,16 @@ export default {
previewListFilter
=
previewListFilter
.
reduce
((
prev
,
cur
)
=>
{
previewListFilter
=
previewListFilter
.
reduce
((
prev
,
cur
)
=>
{
let
index
=
prev
.
findIndex
(
item
=>
item
.
attType
==
2
)
let
index
=
prev
.
findIndex
(
item
=>
item
.
attType
==
2
)
if
(
index
!=
-
1
&&
prev
.
length
)
{
if
(
index
!=
-
1
&&
prev
.
length
)
{
return
prev
.
concat
({
attType
:
cur
.
attType
,
attContent
:
prev
[
index
].
attContent
.
concat
(
cur
.
attContent
)
})
return
prev
.
concat
({
attType
:
cur
.
attType
,
attContent
:
prev
[
index
].
attContent
.
concat
(
cur
.
attContent
)
})
}
}
return
prev
.
concat
(
cur
)
return
prev
.
concat
(
cur
)
},
[])
},
[])
const
previewListUrl
=
previewListFilter
.
filter
(
item
=>
item
.
attType
==
4
)
const
previewListText
=
previewListFilter
.
filter
(
item
=>
item
.
attType
==
1
)
const
previewListText
=
previewListFilter
.
filter
(
item
=>
item
.
attType
==
1
)
const
previewListImg
=
previewListFilter
.
filter
(
item
=>
item
.
attType
!=
1
)
const
previewListImg
=
previewListFilter
.
filter
(
item
=>
item
.
attType
!=
1
)
this
.
$set
(
listM
,
'previewListText'
,
previewListText
)
this
.
$set
(
listM
,
'previewListText'
,
previewListText
)
this
.
$set
(
listM
,
'previewListImg'
,
previewListImg
)
this
.
$set
(
listM
,
'previewListImg'
,
previewListImg
)
this
.
$set
(
listM
,
'previewListUrl'
,
previewListUrl
)
})
})
this
.
tableTotal
=
res
.
count
this
.
tableTotal
=
res
.
count
}
}
...
@@ -536,18 +566,22 @@ export default {
...
@@ -536,18 +566,22 @@ export default {
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
color
:
#666666
;
color
:
#666666
;
.friend-title-left
{
.friend-title-left
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
}
}
.title
{
.title
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
margin-left
:
74px
;
margin-left
:
74px
;
white-space
:
nowrap
;
white-space
:
nowrap
;
.info-refresh
{
.info-refresh
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
.icon-wrap
{
.icon-wrap
{
width
:
24px
;
width
:
24px
;
height
:
24px
;
height
:
24px
;
...
@@ -558,24 +592,29 @@ export default {
...
@@ -558,24 +592,29 @@ export default {
text-align
:
center
;
text-align
:
center
;
line-height
:
24px
;
line-height
:
24px
;
}
}
.el-icon-refresh
{
.el-icon-refresh
{
color
:
#fff
;
color
:
#fff
;
}
}
font-size
:
14px
;
font-size
:
14px
;
color
:
#5850ff
;
color
:
#5850ff
;
cursor
:
pointer
;
cursor
:
pointer
;
margin-left
:
8px
;
margin-left
:
8px
;
.wait-status
{
.wait-status
{
transition
:
all
ease-in
1s
;
transition
:
all
ease-in
1s
;
transform
:
rotate
(
360deg
);
transform
:
rotate
(
360deg
);
}
}
}
}
.info-time
{
.info-time
{
font-size
:
14px
;
font-size
:
14px
;
color
:
#7d7d7d
;
color
:
#7d7d7d
;
margin-left
:
10px
;
margin-left
:
10px
;
}
}
}
}
span
{
span
{
font-size
:
14px
;
font-size
:
14px
;
margin-left
:
10px
;
margin-left
:
10px
;
...
@@ -584,9 +623,11 @@ export default {
...
@@ -584,9 +623,11 @@ export default {
//
width
:
80%
;
//
width
:
80%
;
}
}
}
}
.attachmentList-box
{
.attachmentList-box
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
.attachmentList-image
{
.attachmentList-image
{
width
:
36px
;
width
:
36px
;
height
:
36px
;
height
:
36px
;
...
@@ -597,21 +638,25 @@ export default {
...
@@ -597,21 +638,25 @@ export default {
align-items
:
center
;
align-items
:
center
;
color
:
#fff
;
color
:
#fff
;
font-size
:
24px
;
font-size
:
24px
;
.image-num
{
.image-num
{
font-size
:
14px
;
font-size
:
14px
;
z-index
:
10
;
z-index
:
10
;
}
}
.image-panel
{
.image-panel
{
position
:
absolute
;
position
:
absolute
;
width
:
36px
;
width
:
36px
;
height
:
36px
;
height
:
36px
;
top
:
0px
;
top
:
0px
;
left
:
0px
;
left
:
0px
;
img
{
img
{
width
:
36px
;
width
:
36px
;
height
:
36px
;
height
:
36px
;
}
}
}
}
.el-icon-reading
{
.el-icon-reading
{
position
:
absolute
;
position
:
absolute
;
font-size
:
24px
;
font-size
:
24px
;
...
@@ -619,9 +664,11 @@ export default {
...
@@ -619,9 +664,11 @@ export default {
left
:
5px
;
left
:
5px
;
color
:
#fff
;
color
:
#fff
;
}
}
&
.attachmentList-video
{
&
.attachmentList-video
{
background
:
rgba
(
$
color
:
#000000
,
$
alpha
:
0.7
);
background
:
rgba
(
$
color
:
#000000
,
$
alpha
:
0.7
);
position
:
relative
;
position
:
relative
;
img
{
img
{
position
:
absolute
;
position
:
absolute
;
top
:
6px
;
top
:
6px
;
...
@@ -630,6 +677,7 @@ export default {
...
@@ -630,6 +677,7 @@ export default {
height
:
24px
;
height
:
24px
;
}
}
}
}
>
img
{
>
img
{
position
:
absolute
;
position
:
absolute
;
top
:
0px
;
top
:
0px
;
...
@@ -638,10 +686,31 @@ export default {
...
@@ -638,10 +686,31 @@ export default {
height
:
36px
;
height
:
36px
;
}
}
}
}
.attachmentList-text
{
.attachmentList-text
{
font-size
:
14px
;
font-size
:
14px
;
text-align
:
left
;
text-align
:
left
;
text-overflow
:
-o-ellipsis-lastline
;
//
text-overflow
:
-o-ellipsis-lastline
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
display
:
-webkit-box
;
-webkit-line-clamp
:
2
;
line-clamp
:
2
;
-webkit-box-orient
:
vertical
;
}
}
.linkStyle
{
display
:
flex
;
align-items
:
center
;
img{
width
:
36px
;
height
:
36px
;
margin-right
:
4px
;
}
.linkText
{
font-size
:
14px
;
text-align
:
left
;
//
text-overflow
:
-o-ellipsis-lastline
;
overflow
:
hidden
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
display
:
-webkit-box
;
display
:
-webkit-box
;
...
...
src/views/memberCenter/order.vue
View file @
e3e85c9
<
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
>
src/views/memberCenter/setmealAddUpdate.vue
View file @
e3e85c9
...
@@ -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,11 +94,12 @@ export default {
...
@@ -94,11 +94,12 @@ 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
)
{
return
callback
(
new
Error
(
'套餐售价不能低于会员卡价格'
))
}
else
{
}
else
{
callback
()
callback
()
}
}
...
...
src/views/orderManage/index.vue
View file @
e3e85c9
...
@@ -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
))
{
...
...
src/views/orderManage/orderDetail.vue
View file @
e3e85c9
...
@@ -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 }}
{{ detailForm.deliveryNumber }}
</span>
<span>
{{ detailForm.deliveryCompany }}
{{ 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'
})
})
...
...
src/views/productStore/index.vue
View file @
e3e85c9
...
@@ -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
)
...
...
src/views/seckillActivity/crowdFundList.vue
View file @
e3e85c9
...
@@ -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
()
{
...
...
src/views/seckillActivity/dataBoard.vue
View file @
e3e85c9
...
@@ -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
...
...
src/views/seckillActivity/editCrowdFund.vue
View file @
e3e85c9
...
@@ -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
)
{
...
...
src/views/sop/editSop/components/FriendGroupPreview/index.vue
View file @
e3e85c9
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment