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 6c5424c2
authored
Mar 14, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.6.0' of
http://192.168.3.233:8090/saas/scrm-micro-marketing
into v3.6.0
2 parents
31240a1a
980b6273
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
212 additions
and
81 deletions
package-lock.json
package.json
src/api/modules/common.js
src/main.js
src/setup/qiankun.js
src/views/friendGroup/friendGroupAdd.vue
src/views/orderManage/index.vue
src/views/productStore/index.vue
package-lock.json
View file @
6c5424c
...
@@ -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.8
"
,
"version"
:
"1.
1.0
"
,
"resolved"
:
"https://registry.npmmirror.com/word-edit/-/word-edit-1.
0.8
.tgz"
,
"resolved"
:
"https://registry.npmmirror.com/word-edit/-/word-edit-1.
1.0
.tgz"
,
"integrity"
:
"sha512-
MyEkcrUkZFEO5JQyXXUX0Azi4uWZ45nzwhkcdyML/CGWhZxtGGBbE/p3hgVKxVp6Q2GKMwtdIOvX+WAghmnDlA
=="
,
"integrity"
:
"sha512-
H+yKkQxwsljYhGrmf8biDp9XkopKBF37CyedKR4kP8NOt4Qv+o7zwQCiQUkz/+oxboVJfHoJ+aAxgd7XzBaf8Q
=="
,
"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 @
6c5424c
...
@@ -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.8
"
"word-edit"
:
"^1.
1.0
"
},
},
"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 @
6c5424c
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/main.js
View file @
6c5424c
...
@@ -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 @
6c5424c
...
@@ -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/friendGroupAdd.vue
View file @
6c5424c
...
@@ -26,32 +26,36 @@
...
@@ -26,32 +26,36 @@
</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
type=
"text"
v-show=
"isUpdate"
:loading=
"viewLoading"
@
click=
"viewMembers('all')
"
>
查看
</el-button>
</el-button>
<!--
<span
v-show=
"isUpdate"
@
click=
"viewMembers"
>
查看
</span>
-->
<span
v-show=
"!isUpdate"
>
{{
groupNumber
}}
</span>
<span
v-show=
"!isUpdate"
>
{{
groupNumber
}}
</span>
</div>
</div>
</div>
</div>
</el-form-item>
</div>
<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 =='2'"
>
<div
v-show=
"basicForm.visibleCustomer =='2'"
>
<el-button
<el-button
v-show=
"customerDataList.length == 0 ||customerDataList.every(item => item.labelList.length == 0)"
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"
class=
"screeningCustomers default-blue-btn el-icon-plus m-t-10"
size=
"small"
@
click=
"
handleSelectCustomer
()"
>
去选择
@
click=
"
viewMembers
()"
>
去选择
</el-button>
</el-button>
<div
<div
v-show=
"customerDataList.length != 0 && customerDataList.some(item => item.labelList.length !== 0)"
>
v-show=
"customerDataList.length != 0 && customerDataList.some(item => item.labelList.length !== 0)"
>
<div
class=
"customer-box m-t-10"
>
<div
class=
"customer-box m-t-10"
>
<div
class=
"el-input-tag input-tag-wrapper
flex-wrapper
"
>
<div
class=
"el-input-tag input-tag-wrapper "
>
<div
class=
"customer-title"
>
<div
class=
"customer-title"
>
标签客户:预估
标签客户:预估
<el-button
type=
"text"
:loading=
"customerLoading"
<el-button
type=
"text"
:loading=
"customerLoading"
...
@@ -60,7 +64,7 @@
...
@@ -60,7 +64,7 @@
</el-button>
</el-button>
人
人
</div>
</div>
<div>
<div
>
<div
v-for=
"(subItem, subIdx) in customerDataList"
:key=
"subIdx"
>
<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"
<el-tag
v-for=
"(k, n) in subItem.labelList"
:key=
"n"
class=
"customer-tag"
:size=
"size"
type=
"info"
:closable=
"true"
:disable-transitions=
"false"
type=
"info"
:closable=
"true"
:disable-transitions=
"false"
...
@@ -198,10 +202,11 @@ export default {
...
@@ -198,10 +202,11 @@ export default {
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
:
'视频'
,
...
@@ -213,13 +218,15 @@ export default {
...
@@ -213,13 +218,15 @@ export default {
// 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
:
'链接'
,
name
:
'链接'
,
type
:
'postLink'
,
type
:
'postLink'
,
funName
:
'postLink'
,
funName
:
'postLink'
,
togetherItem
:
[
ATT_TYPE
.
TEXT
],
togetherItem
:
[
ATT_TYPE
.
TEXT
],
limitOrNot
:
true
,
uploadApi
:
this
.
$apis
.
common
.
pictureUpload
uploadApi
:
this
.
$apis
.
common
.
pictureUpload
}
}
],
],
...
@@ -275,7 +282,8 @@ export default {
...
@@ -275,7 +282,8 @@ export default {
customerDataList
:
[],
customerDataList
:
[],
isTagVisible
:
false
,
isTagVisible
:
false
,
estimatedNumberOfPeople
:
''
,
estimatedNumberOfPeople
:
''
,
customerLoading
:
false
customerLoading
:
false
,
whetherToSelectMembers
:
true
,
}
}
},
},
watch
:
{
watch
:
{
...
@@ -294,24 +302,30 @@ export default {
...
@@ -294,24 +302,30 @@ export default {
this
.
customerDataList
=
[]
this
.
customerDataList
=
[]
this
.
customerLoading
=
false
this
.
customerLoading
=
false
this
.
estimatedNumberOfPeople
=
''
this
.
estimatedNumberOfPeople
=
''
this
.
$refs
.
selectTagForm
.
labelTreeRetSelect
=
[]
}
}
}
}
},
},
mounted
()
{
mounted
()
{
},
},
methods
:
{
methods
:
{
getCustomerByTagList
()
{
getCustomerByTagList
(
type
)
{
var
params
=
{
let
params
=
{}
combineType
:
2
,
if
(
type
==
'all'
)
{
pageSize
:
1
,
this
.
viewLoading
=
true
pageNum
:
1
,
}
tagLists
:
[]
if
(
type
==
'filtrate'
)
{
params
=
{
selectType
:
2
,
condition
:
{
labelList
:
[]
}
}
}
this
.
customerDataList
&&
this
.
customerDataList
&&
this
.
customerDataList
.
forEach
(
item
=>
{
this
.
customerDataList
.
forEach
(
item
=>
{
item
.
labelList
.
length
&&
item
.
labelList
.
length
&&
item
.
labelList
.
forEach
(
subItem
=>
{
item
.
labelList
.
forEach
(
subItem
=>
{
params
.
tagLists
.
push
({
params
.
condition
.
labelList
.
push
({
groupId
:
item
.
labelGroup
.
id
,
groupId
:
item
.
labelGroup
.
id
,
groupName
:
item
.
labelGroup
.
name
,
groupName
:
item
.
labelGroup
.
name
,
groupType
:
item
.
labelType
,
groupType
:
item
.
labelType
,
...
@@ -320,30 +334,61 @@ export default {
...
@@ -320,30 +334,61 @@ export default {
})
})
})
})
})
})
this
.
$apis
.
sop
.
getCustomerByTagListApi
(
params
).
then
(
res
=>
{
this
.
estimatedNumberOfPeople
=
res
.
count
}
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
this
.
customerLoading
=
false
}
})
})
.
catch
(
err
=>
{
this
.
viewLoading
=
false
this
.
groupNumber
=
0
})
},
},
handleDeleteCustomer
(
idx
,
pIdx
)
{
handleDeleteCustomer
(
idx
,
pIdx
)
{
this
.
customerDataList
[
pIdx
].
labelList
.
splice
(
idx
,
1
)
this
.
customerDataList
[
pIdx
].
labelList
.
splice
(
idx
,
1
)
this
.
customerLoading
=
true
this
.
customerLoading
=
true
this
.
getCustomerByTagList
()
this
.
getCustomerByTagList
(
'filtrate'
)
},
},
handleResetCustomer
()
{
handleResetCustomer
()
{
this
.
customerDataList
=
[]
this
.
customerDataList
=
[]
this
.
customerLoading
=
false
this
.
customerLoading
=
false
this
.
estimatedNumberOfPeople
=
''
this
.
estimatedNumberOfPeople
=
''
this
.
$refs
.
selectTagForm
.
labelTreeRetSelect
=
[]
},
},
handleDialogConfirm
(
val
)
{
handleDialogConfirm
(
val
)
{
this
.
customerDataList
=
val
this
.
customerDataList
=
val
this
.
customerLoading
=
true
this
.
customerLoading
=
true
this
.
getCustomerByTagList
()
this
.
getCustomerByTagList
(
'filtrate'
)
},
},
handleSelectCustomer
()
{
handleSelectCustomer
()
{
this
.
isTagVisible
=
!
this
.
isTagVisible
this
.
isTagVisible
=
!
this
.
isTagVisible
this
.
$refs
.
selectTagForm
.
init
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
customerDataList
)))
this
.
$refs
.
selectTagForm
.
init
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
customerDataList
)))
},
},
previewForm
(
val
)
{
previewForm
(
val
)
{
// this.previewView = val
// this.previewView = val
...
@@ -351,9 +396,11 @@ export default {
...
@@ -351,9 +396,11 @@ export default {
if
(
value
[
0
]
&&
!
value
[
0
].
attContent
)
value
.
splice
(
0
,
1
)
if
(
value
[
0
]
&&
!
value
[
0
].
attContent
)
value
.
splice
(
0
,
1
)
this
.
previewView
=
value
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
(
'当前有内容信息未保存,是否继续返回?'
,
'提示'
,
{
...
@@ -379,33 +426,10 @@ export default {
...
@@ -379,33 +426,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
=>
{
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
)
...
@@ -489,12 +513,25 @@ export default {
...
@@ -489,12 +513,25 @@ export default {
// 对链接字段做处理
// 对链接字段做处理
attachmentList
.
forEach
(
item
=>
{
attachmentList
.
forEach
(
item
=>
{
if
(
item
.
attType
==
4
){
if
(
item
.
attType
==
4
)
{
item
.
attContent
=
JSON
.
stringify
(
item
.
attContent
)
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
}
}
...
@@ -570,7 +607,7 @@ export default {
...
@@ -570,7 +607,7 @@ export default {
padding
:
0
10px
10px
;
padding
:
0
10px
10px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
color
:
#666
;
color
:
#666
;
display
:
inline-block
;
display
:
inline-block
!important
;
outline
:
none
;
outline
:
none
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
transition
:
border-color
0.2s
cubic-bezier
(
0.645
,
0.045
,
0.355
,
1
);
transition
:
border-color
0.2s
cubic-bezier
(
0.645
,
0.045
,
0.355
,
1
);
...
...
src/views/orderManage/index.vue
View file @
6c5424c
...
@@ -492,7 +492,7 @@ export default {
...
@@ -492,7 +492,7 @@ 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
},
},
listeners
:
{
listeners
:
{
click
:
row
=>
{
click
:
row
=>
{
...
...
src/views/productStore/index.vue
View file @
6c5424c
...
@@ -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
)
...
...
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