Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-shop
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 c53f9a43
authored
Aug 28, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v4.27.0' of
http://192.168.3.233:8090/saas/scrm-micro-shop
into v4.27.0
2 parents
672de5e6
7831a004
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
264 deletions
src/views/performanceManage/components/residentPerformance.vue
src/views/performanceManage/index.vue
src/views/serviceCenter/editService.vue
src/views/serviceCenter/index.vue
src/views/performanceManage/components/residentPerformance.vue
View file @
c53f9a4
...
@@ -206,12 +206,6 @@ export default {
...
@@ -206,12 +206,6 @@ export default {
},
},
tableOption
:
true
,
tableOption
:
true
,
tableColumns
:
[
tableColumns
:
[
// {
// label: '客户名称',
// prop: 'shopMerchantName',
// addHtml: 'shopMerchantName',
// minWidth: 120
// },
{
{
label
:
'员工姓名'
,
label
:
'员工姓名'
,
prop
:
'staffName'
,
prop
:
'staffName'
,
...
@@ -355,6 +349,7 @@ export default {
...
@@ -355,6 +349,7 @@ export default {
year
=
year
-
1
;
year
=
year
-
1
;
month
=
12
;
month
=
12
;
}
}
month
=
month
>
10
?
month
:
"0"
+
month
this
.
searchForm
.
performanceMonth
=
year
.
toString
()
+
'-'
+
month
;
this
.
searchForm
.
performanceMonth
=
year
.
toString
()
+
'-'
+
month
;
},
},
getServiceCenterList
()
{
getServiceCenterList
()
{
...
...
src/views/performanceManage/index.vue
View file @
c53f9a4
...
@@ -53,126 +53,4 @@ export default {
...
@@ -53,126 +53,4 @@ export default {
}
}
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.activity
{
/deep/
{
.el-select
.el-tag
{
max-width
:
60%
!important
;
}
.el-form-item__content
{
overflow
:
inherit
!important
;
}
}
.container
{
margin-top
:
16px
;
.title
{
height
:
32px
;
line-height
:
32px
;
margin-bottom
:
10px
;
.title-text
{
font-weight
:
600
;
font-size
:
16px
;
color
:
#333333
;
margin-left
:
4px
;
}
}
}
.empty-btn
{
position
:
absolute
;
right
:
-40px
;
top
:
0px
;
font-size
:
14px
;
color
:
#5850ff
;
}
.config-pannel
{
background
:
#f9f9f9
;
width
:
520px
;
height
:
168px
;
display
:
flex
;
.config-item
{
padding
:
26px
20px
;
}
.clear-btn
{
cursor
:
pointer
;
background
:
#f1f1f1
;
width
:
40px
;
height
:
100%
;
line-height
:
20px
;
font-size
:
14px
;
color
:
#666666
;
padding
:
60px
13px
;
box-sizing
:
border-box
;
}
}
.input-tag-wrapper
{
position
:
relative
;
font-size
:
14px
;
background-color
:
#fff
;
background-image
:
none
;
border-radius
:
4px
;
border
:
1px
solid
#dcdfe6
;
box-sizing
:
border-box
;
color
:
#666
;
display
:
inline-block
;
outline
:
none
;
padding
:
5px
;
max-height
:
68px
;
overflow
:
auto
;
flex-wrap
:
wrap
;
transition
:
border-color
0.2s
cubic-bezier
(
0.645
,
0.045
,
0.355
,
1
);
width
:
450px
;
display
:
flex
;
align-items
:
center
;
margin-top
:
6px
;
font-size
:
14px
;
i
{
color
:
#75acff
;
margin-right
:
3px
;
font-size
:
14px
;
}
/
deep
/
.el-tag
{
background-color
:
#fff
!important
;
margin-bottom
:
4px
;
}
}
.select-wrap
{
.common
{
margin
:
4px
0
;
height
:
40px
!important
;
overflow
:
hidden
;
/deep/
.el-input
{
height
:
40px
!important
;
line-height
:
40px
!important
;
}
/
deep
/
.el-input__suffix
{
height
:
40px
!important
;
margin-top
:
-4px
;
.is-reverse
{
transform
:
rotate
(
180deg
);
}
}
}
}
}
.search-groomname
{
width
:
252px
;
margin
:
12px
16px
0
;
/deep/.el-input
{
width
:
252px
;
}
}
.filter-tree
{
padding
:
0
16px
;
}
.empty
{
padding
:
10px
0
;
margin
:
0
;
text-align
:
center
;
color
:
#999
;
font-size
:
13px
;
}
.placeholder
{
font-size
:
14px
;
color
:
#c0c6ce
;
line-height
:
20px
;
}
</
style
>
</
style
>
src/views/serviceCenter/editService.vue
View file @
c53f9a4
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
:isWatch=
"isWatch"
:isWatch=
"isWatch"
:labelWidth=
"defaultLabelWidth"
:labelWidth=
"defaultLabelWidth"
:isBlock=
"true"
:isBlock=
"true"
:formRef=
"edit
Child
Ref"
:formRef=
"edit
Service
Ref"
:formObj=
"editForm"
:formObj=
"editForm"
:formData=
"editFormData"
:formData=
"editFormData"
:formRules=
"editRule"
>
:formRules=
"editRule"
>
...
@@ -51,7 +51,7 @@ export default {
...
@@ -51,7 +51,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
size
:
'small'
,
size
:
'small'
,
edit
ChildRef
:
'editChild
Ref'
,
edit
ServiceRef
:
'editService
Ref'
,
routeInfo
:
{
routeInfo
:
{
editType
:
'add'
,
editType
:
'add'
,
id
:
''
id
:
''
...
@@ -70,7 +70,6 @@ export default {
...
@@ -70,7 +70,6 @@ export default {
},
},
editRule
:
{
editRule
:
{
shopMerchantId
:
[{
required
:
true
,
message
:
'请输入商户号'
,
trigger
:
'change'
}],
shopMerchantId
:
[{
required
:
true
,
message
:
'请输入商户号'
,
trigger
:
'change'
}],
// yqMerchantId: [{ required: true, message: '请选择所属服务中心', trigger: 'change' }],
yqMerchantName
:
[{
required
:
true
,
message
:
'请输入服务中心名称'
,
trigger
:
'change'
}],
yqMerchantName
:
[{
required
:
true
,
message
:
'请输入服务中心名称'
,
trigger
:
'change'
}],
contactName
:
[{
required
:
true
,
message
:
'请输入联系人'
,
trigger
:
'change'
}],
contactName
:
[{
required
:
true
,
message
:
'请输入联系人'
,
trigger
:
'change'
}],
password
:
[{
required
:
true
,
message
:
'请输入登录密码'
,
trigger
:
'change'
}],
password
:
[{
required
:
true
,
message
:
'请输入登录密码'
,
trigger
:
'change'
}],
...
@@ -170,7 +169,7 @@ export default {
...
@@ -170,7 +169,7 @@ export default {
mounted
()
{
mounted
()
{
this
.
routeInfo
=
this
.
$route
.
query
this
.
routeInfo
=
this
.
$route
.
query
this
.
routeInfo
.
editType
!=
'add'
?
this
.
getInfo
()
:
''
this
.
routeInfo
.
editType
!=
'add'
?
this
.
getInfo
()
:
''
this
.
userInfo
=
this
.
$globalState
.
session
//
this.userInfo = this.$globalState.session
this
.
isWatch
=
this
.
routeInfo
.
editType
!=
'add'
this
.
isWatch
=
this
.
routeInfo
.
editType
!=
'add'
if
(
this
.
routeInfo
.
editType
==
'edit'
)
{
if
(
this
.
routeInfo
.
editType
==
'edit'
)
{
// this.changeFormAttr('editFormData', 'isDisabled', ['所属服务中心'], true)
// this.changeFormAttr('editFormData', 'isDisabled', ['所属服务中心'], true)
...
@@ -179,55 +178,9 @@ export default {
...
@@ -179,55 +178,9 @@ export default {
let
id
=
this
.
editFormData
.
findIndex
(
item
=>
item
.
name
==
'shopMerchantId'
)
let
id
=
this
.
editFormData
.
findIndex
(
item
=>
item
.
name
==
'shopMerchantId'
)
this
.
editFormData
.
splice
(
id
,
1
)
this
.
editFormData
.
splice
(
id
,
1
)
}
}
// this.getServiceCenterList()
// this.findProByScene()
},
},
methods
:
{
methods
:
{
// handleMutiSelctChange() {
// this.$refs.editFormRef.$refs[this.editChildRef].validateField('productCodeList')
// },
// changeFormAttr(formName, attrName, labelList, attrValue) {
// labelList.forEach(item => {
// let idx = this[formName].findIndex(k => k.label == item)
// this[formName][idx][attrName] = attrValue
// })
// },
// getServiceCenterList() {
// const params = {
// partnerMerchantId: this.userInfo.merchantId
// }
// this.$apis.customer.getServiceCenterList(params).then(res => {
// this.baseData.merchantList = res
// this.$utils.getOptionsList(this, 'editFormData', false)
// })
// },
// findProByScene() {
// this.$apis.customer.findProByScene({}).then(res => {
// this.baseData.sceneList = res
// if (this.routeInfo.editType == 'edit') {
// this.getSceneProStatus()
// }
// })
// },
// 获取开通状态
// getSceneProStatus() {
// const params = { merchant4sId: this.routeInfo.merchantInfo.shopMerchantId }
// this.$apis.customer.getSceneProStatus(params).then(res => {
// let productCodeList = []
// res.forEach(item => {
// item.productList.forEach(k => {
// if (k.productStatus == 2) {
// productCodeList.push(k.productCode)
// }
// })
// })
// this.$set(this.editForm, 'productCodeList', productCodeList)
// this.$nextTick(() => {
// this.editStatus = false
// })
// })
// },
getInfo
()
{
getInfo
()
{
this
.
editForm
=
{
this
.
editForm
=
{
...
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
),
...
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
),
...
@@ -277,24 +230,12 @@ export default {
...
@@ -277,24 +230,12 @@ export default {
this
.
loading
=
false
this
.
loading
=
false
})
})
},
},
// hasDuplicate(arr1, arr2) {
// const set1 = new Set(arr1)
// for (const num of arr2) {
// if (set1.has(num)) {
// return true
// }
// }
// return false
// },
handleConfirm
()
{
handleConfirm
()
{
this
.
$refs
.
editFormRef
.
$refs
[
this
.
edit
Child
Ref
].
validate
(
valid
=>
{
this
.
$refs
.
editFormRef
.
$refs
[
this
.
edit
Service
Ref
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
var
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
)
var
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
)
console
.
log
(
params
);
console
.
log
(
params
);
// // 商户类型 1-服务中心 2-客户
// params.merchantType = 2
if
(
this
.
routeInfo
.
editType
==
'edit'
)
{
if
(
this
.
routeInfo
.
editType
==
'edit'
)
{
params
.
yqMerchantId
=
this
.
editForm
.
merchantId
params
.
yqMerchantId
=
this
.
editForm
.
merchantId
// params.serviceCenterMerchantId = this.editForm.yqMerchantId
// params.serviceCenterMerchantId = this.editForm.yqMerchantId
...
...
src/views/serviceCenter/index.vue
View file @
c53f9a4
...
@@ -40,18 +40,6 @@
...
@@ -40,18 +40,6 @@
</span>
</span>
</el-popover>
</el-popover>
</div>
</div>
<!--
<div
class=
"tb-ellipsis"
slot=
"yqMerchantName"
slot-scope=
"scope"
>
<el-popover
placement=
"top"
popper-class=
"base-popper"
trigger=
"hover"
:content=
"scope.scope.yqMerchantName"
>
<span
slot=
"reference"
>
{{
scope
.
scope
.
yqMerchantName
}}
</span>
</el-popover>
</div>
-->
<div
class=
"table-btns"
<div
class=
"table-btns"
slot=
"auth-button"
slot=
"auth-button"
slot-scope=
"scope"
>
slot-scope=
"scope"
>
...
@@ -98,15 +86,6 @@ export default {
...
@@ -98,15 +86,6 @@ export default {
isClear
:
true
,
isClear
:
true
,
maxlength
:
20
maxlength
:
20
},
},
// {
// label: '所属服务中心',
// name: 'yqMerchantId',
// type: 'select',
// optionList: [],
// optionId: 'yqMerchantId',
// optionLabel: 'yqMerchantName',
// optionsName: 'merchantList'
// }
],
],
tableButtonList
:
[
tableButtonList
:
[
{
{
...
@@ -120,28 +99,6 @@ export default {
...
@@ -120,28 +99,6 @@ export default {
click
:
row
=>
this
.
handleEditService
(
'edit'
,
row
)
click
:
row
=>
this
.
handleEditService
(
'edit'
,
row
)
}
}
},
},
// {
// type: 'GLButton',
// name: '查看',
// attrs: {
// type: 'text',
// fn: '查看'
// },
// listeners: {
// click: row => this.handleDetail(row)
// }
// },
// {
// type: 'GLButton',
// name: '邀请',
// attrs: {
// type: 'text',
// fn: '邀请'
// },
// listeners: {
// click: row => this.handleInvite(row)
// }
// }
],
],
// 表格
// 表格
getListApi
:
this
.
$apis
.
serviceCenter
.
getList
,
getListApi
:
this
.
$apis
.
serviceCenter
.
getList
,
...
@@ -185,11 +142,9 @@ export default {
...
@@ -185,11 +142,9 @@ export default {
},
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'currentPage'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'currentPage'
,
totalCount
:
'total'
},
isApplyVisible
:
false
,
isApplyVisible
:
false
,
// isInviteVisible: false,
// inviteInfo: {},
// 基本数据
// 基本数据
baseData
:
{
baseData
:
{
// merchantList: []
}
}
}
}
},
},
...
@@ -199,18 +154,9 @@ export default {
...
@@ -199,18 +154,9 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
userInfo
=
this
.
$globalState
.
session
this
.
userInfo
=
this
.
$globalState
.
session
// this.getServiceCenterList()
},
},
methods
:
{
methods
:
{
// getServiceCenterList() {
// const params = {
// partnerMerchantId: this.userInfo.merchantId
// }
// this.$apis.customer.getServiceCenterList(params).then(res => {
// this.baseData.merchantList = res
// this.$utils.getOptionsList(this, 'showFormData')
// })
// },
getParams
()
{
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
return
params
return
params
...
@@ -234,13 +180,6 @@ export default {
...
@@ -234,13 +180,6 @@ export default {
handleApply
()
{
handleApply
()
{
this
.
isApplyVisible
=
!
this
.
isApplyVisible
this
.
isApplyVisible
=
!
this
.
isApplyVisible
},
},
// handleInviteClose() {
// this.isInviteVisible = !this.isInviteVisible
// },
// handleInvite(row) {
// this.inviteInfo = row
// this.handleInviteClose()
// },
handleEditService
(
editType
,
row
)
{
handleEditService
(
editType
,
row
)
{
var
params
=
{
var
params
=
{
editType
:
editType
,
editType
:
editType
,
...
@@ -254,16 +193,6 @@ export default {
...
@@ -254,16 +193,6 @@ export default {
query
:
params
query
:
params
})
})
},
},
// handleDetail(row) {
// console.log(row)
// this.$router.push({
// path: '/customerManage/customerDetail',
// query: {
// $title: encodeURI('查看销售顾问'),
// detailInfo: row
// }
// })
// }
}
}
}
}
</
script
>
</
script
>
...
...
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