Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CRM
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
华国豪
CRM
Commits
7cea1560
Commit
7cea1560
authored
May 18, 2023
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
7467ba7c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
2043 additions
and
2137 deletions
+2043
-2137
clueComponent.vue
src/components/clueManagement/clueComponent.vue
+799
-824
payroll.vue
src/components/dev/payroll.vue
+118
-87
allList.vue
src/components/myOrdersAllType/components/allList.vue
+555
-592
apipost.js
src/plugins/apipost.js
+47
-50
domainManager.js
src/plugins/domainManager.js
+1
-1
index.js
src/plugins/index.js
+0
-1
CustomerOperation.vue
src/views/customerSet/components/CustomerOperation.vue
+2
-6
addfield.vue
src/views/customerSet/components/addfield.vue
+129
-103
businessModel.vue
src/views/customerSet/components/businessModel.vue
+4
-8
clueRule.vue
src/views/customerSet/components/clueRule.vue
+0
-3
customerField.vue
src/views/customerSet/components/customerField.vue
+0
-2
customerPhase.vue
src/views/customerSet/components/customerPhase.vue
+131
-180
laqundistribution.vue
src/views/customerSet/components/laqundistribution.vue
+0
-4
DrainageRankingStatistics.vue
src/views/workstatistics/DrainageRankingStatistics.vue
+257
-276
No files found.
src/components/clueManagement/clueComponent.vue
View file @
7cea1560
This diff is collapsed.
Click to expand it.
src/components/dev/payroll.vue
View file @
7cea1560
This diff is collapsed.
Click to expand it.
src/components/myOrdersAllType/components/allList.vue
View file @
7cea1560
This diff is collapsed.
Click to expand it.
src/plugins/apipost.js
View file @
7cea1560
import
axios
from
'axios'
import
domainManager
from
'./domainManager'
const
getLocalStorage
=
function
()
{
var
localStorageData
=
window
.
localStorage
[
"userInfo"
];
if
(
localStorageData
!=
undefined
)
{
return
JSON
.
parse
(
localStorageData
);
}
else
{
return
null
;
}
}
//CRM接口
export
default
function
(
cmd
,
content
,
msg
,
successCall
,
faildCall
)
{
console
.
log
(
'CRM接口'
,
content
)
if
(
msg
==
null
||
msg
==
""
)
{
msg
=
{}
}
var
apiurl
=
domainManager
().
PostUrl
+
cmd
;
var
timestamp
=
(
new
Date
()).
valueOf
();
var
token
=
""
;
var
key
=
""
;
if
(
getLocalStorage
()
!=
null
)
{
token
=
getLocalStorage
().
token
;
key
=
getLocalStorage
().
secretKey
;
}
var
encodeMsg
=
encodeURIComponent
(
JSON
.
stringify
(
msg
)).
toLowerCase
();
var
md5Str
=
md5
(
`cmd=
${
cmd
}
&msg=
${
encodeMsg
}
×tamp=
${
timestamp
}
&token=
${
token
}
&key=
${
key
}
`
);
var
postData
=
{
"msg"
:
msg
,
"timestamp"
:
timestamp
,
"token"
:
token
,
"sign"
:
md5Str
var
localStorageData
=
window
.
localStorage
[
"userInfo"
];
if
(
localStorageData
!=
undefined
)
{
return
JSON
.
parse
(
localStorageData
);
}
else
{
return
null
;
}
}
//CRM接口
export
default
function
(
cmd
,
content
,
msg
,
successCall
,
faildCall
)
{
if
(
msg
==
null
||
msg
==
""
)
{
msg
=
{}
}
var
apiurl
=
domainManager
().
PostUrl
+
cmd
;
var
timestamp
=
(
new
Date
()).
valueOf
();
var
token
=
""
;
var
key
=
""
;
if
(
getLocalStorage
()
!=
null
)
{
token
=
getLocalStorage
().
token
;
key
=
getLocalStorage
().
secretKey
;
}
var
encodeMsg
=
encodeURIComponent
(
JSON
.
stringify
(
msg
)).
toLowerCase
();
var
md5Str
=
md5
(
`cmd=
${
cmd
}
&msg=
${
encodeMsg
}
×tamp=
${
timestamp
}
&token=
${
token
}
&key=
${
key
}
`
);
var
postData
=
{
"msg"
:
msg
,
"timestamp"
:
timestamp
,
"token"
:
token
,
"sign"
:
md5Str
}
if
(
localStorage
.
g
&&
localStorage
.
g
!=
'undefined'
)
{
postData
.
groupId
=
2
;
}
axios
.
post
(
apiurl
,
postData
,
{
headers
:
{
'Content-Type'
:
'application/json'
,
'Referer-Viitto'
:
content
.
$route
.
path
}
if
(
localStorage
.
g
&&
localStorage
.
g
!=
'undefined'
)
{
postData
.
groupId
=
2
;
}
axios
.
post
(
apiurl
,
postData
,
{
headers
:
{
'Content-Type'
:
'application/json'
,
'Referer-Viitto'
:
content
.
$route
.
path
}
})
.
then
(
res
=>
{
if
(
res
.
data
.
resultCode
==
10000
||
res
.
data
.
resultCode
==
10001
)
{
content
.
$router
.
push
({
path
:
'/login'
})
.
then
(
res
=>
{
if
(
res
.
data
.
resultCode
==
10000
||
res
.
data
.
resultCode
==
10001
)
{
content
.
$router
.
push
({
path
:
'/login'
})
}
else
if
(
res
.
data
.
resultCode
==
10005
)
{
content
.
$router
.
go
(
-
1
)
}
else
{
successCall
(
res
)
}
},
faildCall
)
}
\ No newline at end of file
}
else
if
(
res
.
data
.
resultCode
==
10005
)
{
content
.
$router
.
go
(
-
1
)
}
else
{
successCall
(
res
)
}
},
faildCall
)
}
\ No newline at end of file
src/plugins/domainManager.js
View file @
7cea1560
...
...
@@ -5,7 +5,7 @@ export default function() {
//CRM API
let
domainUrl
=
""
;
// domainUrl = "http://192.168.10.46:8500";
domainUrl
=
"http://192.168.10.
226
:5003"
;
domainUrl
=
"http://192.168.10.
128
:5003"
;
// domainUrl = "http://crm.oytour.com"
//domainUrl = "http://localhost:5003";
let
locationName
=
window
.
location
.
hostname
;
...
...
src/plugins/index.js
View file @
7cea1560
...
...
@@ -135,7 +135,6 @@ export default {
if
(
msg
==
null
||
msg
==
""
)
{
msg
=
{}
}
console
.
log
(
'CRM接口'
,
this
)
var
apiurl
=
this
.
domainManager
().
PostUrl
+
cmd
;
var
timestamp
=
(
new
Date
()).
valueOf
();
var
token
=
""
;
...
...
src/views/customerSet/components/CustomerOperation.vue
View file @
7cea1560
...
...
@@ -246,7 +246,6 @@
//获取客户操作配置
const
getConfig
=
()
=>
{
customerSetService
.
getCustomerConfig
({}).
then
(
res
=>
{
console
.
log
(
'客户操作配置'
,
res
.
data
.
Data
)
data
.
data
=
res
.
data
.
Data
if
(
data
.
data
.
PublicGetDept
==
-
1
)
{
data
.
PublicGetDeptState
=
false
...
...
@@ -312,7 +311,6 @@
data
.
data
.
AbandonDept
=
ids
data
.
data
.
AbandonDeptList
=
dept
}
console
.
log
(
'dpt'
,
dept
)
}
//以下部门允许领取公海客户
const
ChangePublicGetDeptState
=
val
=>
{
...
...
@@ -324,7 +322,7 @@
watch
(
()
=>
data
.
data
,
val
=>
{
console
.
log
(
'watch'
,
val
)
},
{
deep
:
true
}
...
...
@@ -347,7 +345,6 @@
}
}
})
</
script
>
<
style
lang=
"scss"
scoped
>
.CustomerOperation
{
...
...
@@ -409,5 +406,4 @@
padding
:
0
14px
;
margin
:
6px
;
}
</
style
>
</
style
>
\ No newline at end of file
src/views/customerSet/components/addfield.vue
View file @
7cea1560
This diff is collapsed.
Click to expand it.
src/views/customerSet/components/businessModel.vue
View file @
7cea1560
...
...
@@ -11,12 +11,12 @@
</div>
</div>
<div
class=
"box-businessModel"
:class=
"
{ 'checked-border': msg.type == 2 }" @click="chooseChange(2)">
<div
>
<div>
<i
class=
"iconfont icon-customer"
style=
"font-size:38px"
></i>
<span
class=
"q-mx-md"
style=
"font-size:28px"
>
+
</span>
<i
class=
"iconfont icon-qiye"
style=
"font-size:38px"
></i>
</div>
<div>
个人客户 + 企业客户
</div>
<div
class=
"right"
v-if=
"msg.type == 2"
>
<q-icon
name=
"check"
class=
"check-icon"
/>
...
...
@@ -32,14 +32,12 @@
}
from
'vue'
export
default
defineComponent
({
setup
()
{
const
msg
=
reactive
({
type
:
1
})
const
chooseChange
=
(
n
)
=>
{
msg
.
type
=
n
;
console
.
log
(
msg
)
}
return
{
msg
,
...
...
@@ -47,11 +45,10 @@
}
}
})
</
script
>
<
style
lang=
"scss"
scoped
>
.businessModel
{
overflow
:
hidden
;
overflow
:
hidden
;
display
:
flex
;
flex-wrap
:
wrap
;
margin
:
0
auto
;
...
...
@@ -106,5 +103,4 @@
border
:
2px
solid
#3470ff
!
important
;
color
:
#3470ff
;
}
</
style
>
</
style
>
\ No newline at end of file
src/views/customerSet/components/clueRule.vue
View file @
7cea1560
...
...
@@ -227,7 +227,6 @@
cancel
:
'取消'
,
ok
:
"确认"
}).
onOk
(()
=>
{
console
.
log
(
'>>>> OK'
,
id
)
let
msg
=
{
RuleId
:
id
,
Type
:
2
,
...
...
@@ -237,10 +236,8 @@
}
const
configChange
=
()
=>
{
customerSetService
.
setCustomerClueRuleConfig
(
configMsg
).
then
(
res
=>
{
console
.
log
(
228
,
res
.
data
)
})
}
const
setState
=
(
msg
)
=>
{
customerSetService
.
setCustomerClueRuleState
(
msg
).
then
(
res
=>
{
message
.
successMsg
(
res
.
data
.
Message
)
...
...
src/views/customerSet/components/customerField.vue
View file @
7cea1560
...
...
@@ -113,7 +113,6 @@
});
},
datadragEnd(e) {
// console.log('拖动结束',e)
let olddragId = 0
if (e.newIndex > 0) {
olddragId = data[e.newIndex - 1].Id
...
...
@@ -127,7 +126,6 @@
}
this.apipost('/api/Scene/SetCustomerFiledState',msg,(res) => {
if (res.data.Code == 1) {
console.log(res)
} else {//如果移动失败 重新获取列表
this.changePage()
}
...
...
src/views/customerSet/components/customerPhase.vue
View file @
7cea1560
This diff is collapsed.
Click to expand it.
src/views/customerSet/components/laqundistribution.vue
View file @
7cea1560
...
...
@@ -101,7 +101,6 @@ export default defineComponent({
{
Name
:
' 根据设置自动指定负责人 '
},
])
const
Addallocation
=
(
url
:
string
)
=>
{
//新增分配规则
console
.
log
(
'新增匹配规则'
)
router
.
push
({
path
:
url
,
query
:
{
...
...
@@ -109,9 +108,6 @@ export default defineComponent({
}
})
}
// onMounted(() => {
// })
return
{
Addallocation
,
icon
:
ref
(
false
),
...
...
src/views/workstatistics/DrainageRankingStatistics.vue
View file @
7cea1560
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment