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
1288a77a
Commit
1288a77a
authored
Apr 28, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
bb8bef88
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
47 deletions
+23
-47
clueManagement.vue
src/components/clueManagement/clueManagement.vue
+21
-35
guestDialogBox.vue
src/components/clueManagement/guestDialogBox.vue
+1
-11
main.js
src/main.js
+1
-1
No files found.
src/components/clueManagement/clueManagement.vue
View file @
1288a77a
<
style
>
<
style
>
@import
'../../assets/css/customerManage.css'
;
@import
'../../assets/css/customerManage.css'
;
/* .tools{
padding-bottom: 0
}
.tools-item{
display: flex;
height: 41px;
}
.tools-item h1{
margin: 0 20px 0 0;
height: 100%;
line-height: 100%;
border-bottom: solid 2px rgba(35, 98, 251, 0);
}
.customerManage .tools h1:last-child{
margin: 0
}
.tools-item .active{
color: rgb(35, 98, 251);
border-color: rgb(35, 98, 251);
} */
.el-table__fixed-body-wrapper
table
{
.el-table__fixed-body-wrapper
table
{
padding-bottom
:
8px
!important
;
padding-bottom
:
8px
!important
;
...
@@ -30,8 +10,6 @@
...
@@ -30,8 +10,6 @@
<div
class=
"tools"
>
<div
class=
"tools"
>
<div
class=
"tools-item"
>
<div
class=
"tools-item"
>
<h1>
线索管理
</h1>
<h1>
线索管理
</h1>
<!--
<h1
class=
"cp"
:class=
"[activeMenu === 1 ? 'active' : '']"
@
click=
"activeMenu = 1, getList()"
>
客户线索管理
</h1>
<h1
class=
"cp"
:class=
"[activeMenu === 2 ? 'active' : '']"
@
click=
"activeMenu = 2"
>
直客线索管理
</h1>
-->
</div>
</div>
<div
style=
"width: 340px;"
>
<div
style=
"width: 340px;"
>
<el-input
placeholder=
"请输入线索名称/手机"
v-model=
"msg.CustomerName"
class=
"input-with-select"
>
<el-input
placeholder=
"请输入线索名称/手机"
v-model=
"msg.CustomerName"
class=
"input-with-select"
>
...
@@ -39,7 +17,6 @@
...
@@ -39,7 +17,6 @@
</el-input>
</el-input>
</div>
</div>
<div
class=
"rightmenu"
>
<div
class=
"rightmenu"
>
<!--
<el-button
class=
"crm-btn query-btn"
@
click=
"getList"
>
查询
</el-button>
-->
<el-dropdown
@
command=
"handleCommand"
>
<el-dropdown
@
command=
"handleCommand"
>
<el-button
icon=
"el-icon-plus"
class=
"crm-btn org-btn"
>
新建线索
</el-button>
<el-button
icon=
"el-icon-plus"
class=
"crm-btn org-btn"
>
新建线索
</el-button>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-menu
slot=
"dropdown"
>
...
@@ -52,7 +29,8 @@
...
@@ -52,7 +29,8 @@
<i
class=
"iconfont icongengduo"
></i>
<i
class=
"iconfont icongengduo"
></i>
</el-button>
</el-button>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item
command=
"3"
><i
class=
"iconfont icondaoru"
></i>
导入
</el-dropdown-item>
<el-dropdown-item
command=
"3"
><i
class=
"iconfont icondaoru"
></i>
导入客户线索
</el-dropdown-item>
<el-dropdown-item
command=
"4"
><i
class=
"iconfont icondaoru"
></i>
导入直客线索
</el-dropdown-item>
<!--
<el-dropdown-item><i
class=
"iconfont icondaochu"
></i>
导出
</el-dropdown-item>
-->
<!--
<el-dropdown-item><i
class=
"iconfont icondaochu"
></i>
导出
</el-dropdown-item>
-->
</el-dropdown-menu>
</el-dropdown-menu>
</el-dropdown>
</el-dropdown>
...
@@ -139,7 +117,7 @@
...
@@ -139,7 +117,7 @@
<el-table-column
prop=
"CustomerSourceTypeStr"
label=
"线索来源"
v-if=
"queryType[1].show"
<el-table-column
prop=
"CustomerSourceTypeStr"
label=
"线索来源"
v-if=
"queryType[1].show"
show-overflow-tooltip
>
show-overflow-tooltip
>
</el-table-column>
</el-table-column>
<!--
CustomerSource
其他的来源 -->
<!--
CustomerSource
其他的来源 -->
<el-table-column
prop=
"SourceAccountName"
label=
"来源细分"
<el-table-column
prop=
"SourceAccountName"
label=
"来源细分"
v-if=
"queryType[2].show && msg.CustomerType === 1"
show-overflow-tooltip
>
v-if=
"queryType[2].show && msg.CustomerType === 1"
show-overflow-tooltip
>
</el-table-column>
</el-table-column>
...
@@ -162,8 +140,6 @@
...
@@ -162,8 +140,6 @@
<el-table-column
prop=
"WeChatNo"
label=
"微信号"
sortable
v-if=
"queryType[7].show && msg.CustomerType === 1"
<el-table-column
prop=
"WeChatNo"
label=
"微信号"
sortable
v-if=
"queryType[7].show && msg.CustomerType === 1"
show-overflow-tooltip
>
show-overflow-tooltip
>
</el-table-column>
</el-table-column>
<!-- <el-table-column prop="Address" label="地址" v-if="queryType[4].show" show-overflow-tooltip>
</el-table-column> -->
<el-table-column
prop=
"PersonChargeStr"
label=
"负责人"
sortable
<el-table-column
prop=
"PersonChargeStr"
label=
"负责人"
sortable
v-if=
"queryType[8].show && msg.CustomerType === 1"
show-overflow-tooltip
>
v-if=
"queryType[8].show && msg.CustomerType === 1"
show-overflow-tooltip
>
</el-table-column>
</el-table-column>
...
@@ -222,6 +198,10 @@
...
@@ -222,6 +198,10 @@
<div
v-if=
"guestDialogBoxShow"
>
<div
v-if=
"guestDialogBoxShow"
>
<guestDialogBox
@
getList=
"getList"
:name=
"dialogTableVisibleName"
:CustomerId=
"CustomerId"
/>
<guestDialogBox
@
getList=
"getList"
:name=
"dialogTableVisibleName"
:CustomerId=
"CustomerId"
/>
</div>
</div>
<!--显示导入弹窗-->
<div
v-if=
"isShowImport"
>
<importDialogBox
@
getList=
"getList"
:importType=
"importType"
/>
</div>
<el-dialog
:visible
.
sync=
"transferVisible"
:close-on-click-modal=
"false"
width=
"450px"
<el-dialog
:visible
.
sync=
"transferVisible"
:close-on-click-modal=
"false"
width=
"450px"
custom-class=
"transfer-box add-box add-box2"
>
custom-class=
"transfer-box add-box add-box2"
>
<div
class=
"add-tit"
slot=
"title"
>
<div
class=
"add-tit"
slot=
"title"
>
...
@@ -252,13 +232,15 @@
...
@@ -252,13 +232,15 @@
import
customerDialogBox
from
"./customerDialogBox"
;
import
customerDialogBox
from
"./customerDialogBox"
;
import
guestDialogBox
from
"./guestDialogBox"
;
import
guestDialogBox
from
"./guestDialogBox"
;
import
guestInfoBox
from
"./guestInfoBox"
;
import
guestInfoBox
from
"./guestInfoBox"
;
import
importDialogBox
from
"./importDialogBox"
;
export
default
{
export
default
{
components
:
{
components
:
{
mySelect
,
mySelect
,
customerInfoBox
,
customerInfoBox
,
customerDialogBox
,
customerDialogBox
,
guestDialogBox
,
guestDialogBox
,
guestInfoBox
guestInfoBox
,
importDialogBox
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -402,6 +384,8 @@
...
@@ -402,6 +384,8 @@
SceneEmployeeList
:
[],
SceneEmployeeList
:
[],
sceneID
:
29
,
sceneID
:
29
,
visible
:
false
,
visible
:
false
,
isShowImport
:
false
,
//是否显示导入弹窗
importType
:
1
,
//导入文件类型(1-客户导入,2-直客导入)
};
};
},
},
mounted
()
{
mounted
()
{
...
@@ -410,8 +394,9 @@
...
@@ -410,8 +394,9 @@
this
.
Employee
()
this
.
Employee
()
let
$this
=
this
let
$this
=
this
this
.
MsgBus
.
$on
(
'closeCustomerDialogBox'
,
function
()
{
this
.
MsgBus
.
$on
(
'closeCustomerDialogBox'
,
function
()
{
$this
.
dialogTableVisible
=
false
$this
.
dialogTableVisible
=
false
;
$this
.
guestDialogBoxShow
=
false
$this
.
guestDialogBoxShow
=
false
;
$this
.
isShowImport
=
false
;
})
})
this
.
GetSceneEmployeeList
()
this
.
GetSceneEmployeeList
()
this
.
MsgBus
.
$on
(
'sceneSave'
,
function
(
msg
)
{
this
.
MsgBus
.
$on
(
'sceneSave'
,
function
(
msg
)
{
...
@@ -467,7 +452,11 @@
...
@@ -467,7 +452,11 @@
}
else
if
(
command
===
'2'
)
{
}
else
if
(
command
===
'2'
)
{
this
.
guestDialogBoxShow
=
true
this
.
guestDialogBoxShow
=
true
}
else
if
(
command
===
'3'
)
{
}
else
if
(
command
===
'3'
)
{
this
.
$message
.
warning
(
'功能正在开发中~'
);
this
.
importType
=
1
;
this
.
isShowImport
=
true
;
}
else
if
(
command
===
'4'
)
{
this
.
importType
=
2
;
this
.
isShowImport
=
true
;
}
}
},
},
Employee
()
{
Employee
()
{
...
@@ -491,7 +480,6 @@
...
@@ -491,7 +480,6 @@
},
},
//删除
//删除
deleteClue
(
type
)
{
deleteClue
(
type
)
{
let
tips
=
'确定将这些线索删除?'
let
tips
=
'确定将这些线索删除?'
if
(
type
===
1
)
{
if
(
type
===
1
)
{
tips
=
'是否把线索“'
+
this
.
CustomerName
+
'”删除?'
tips
=
'是否把线索“'
+
this
.
CustomerName
+
'”删除?'
...
@@ -534,7 +522,7 @@
...
@@ -534,7 +522,7 @@
changeState
()
{
changeState
()
{
},
},
//
转换为客户
//转换为客户
waters
(
type
)
{
waters
(
type
)
{
let
tips
=
'确定将这些线索转换为客户吗?'
let
tips
=
'确定将这些线索转换为客户吗?'
if
(
type
===
1
)
{
if
(
type
===
1
)
{
...
@@ -677,7 +665,6 @@
...
@@ -677,7 +665,6 @@
this
.
ruleList
=
res
.
data
.
data
.
EmpList
this
.
ruleList
=
res
.
data
.
data
.
EmpList
}
}
})
})
},
},
handleSizeChange
(
val
)
{
handleSizeChange
(
val
)
{
this
.
msg
.
pageSize
=
val
this
.
msg
.
pageSize
=
val
...
@@ -704,7 +691,6 @@
...
@@ -704,7 +691,6 @@
// 获取是否开启规则
// 获取是否开启规则
this
.
GetCustomerAllotRule
()
this
.
GetCustomerAllotRule
()
}
}
},
},
handleSelectionChange
(
val
)
{
handleSelectionChange
(
val
)
{
this
.
multipleSelection
=
val
.
map
(
x
=>
this
.
multipleSelection
=
val
.
map
(
x
=>
...
...
src/components/clueManagement/guestDialogBox.vue
View file @
1288a77a
...
@@ -498,18 +498,13 @@
...
@@ -498,18 +498,13 @@
</div>
</div>
</el-col>
</el-col>
</
template
>
</
template
>
<div
class=
"_addPassengerEconomicCapability"
>
<div
class=
"_addPassengerEconomicCapability"
>
<span
v-for=
"(item, index) in EconomicCapabilityS"
:key=
"index"
@
click=
"addEconomicCapability(item)"
<span
v-for=
"(item, index) in EconomicCapabilityS"
:key=
"index"
@
click=
"addEconomicCapability(item)"
:class=
"{_active:item.isShow}"
>
{{item.Name}}
</span>
:class=
"{_active:item.isShow}"
>
{{item.Name}}
</span>
</div>
</div>
</el-form>
</el-form>
</el-collapse-item>
</el-collapse-item>
</el-collapse>
</el-collapse>
</div>
</div>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
class=
"add-box-btn"
@
click=
"submitForm('form')"
>
确 定
</el-button>
<el-button
type=
"primary"
class=
"add-box-btn"
@
click=
"submitForm('form')"
>
确 定
</el-button>
...
@@ -538,7 +533,7 @@
...
@@ -538,7 +533,7 @@
if
(
!
value
)
{
if
(
!
value
)
{
return
callback
(
new
Error
(
"手机号不能为空"
));
return
callback
(
new
Error
(
"手机号不能为空"
));
}
else
{
}
else
{
const
reg
=
/^1
[
3|4|5|
7|8
][
0-9
]\d{8}
$/
;
const
reg
=
/^1
[
3|4|5|
6|7|8|9
][
0-9
]\d{8}
$/
;
if
(
reg
.
test
(
value
))
{
if
(
reg
.
test
(
value
))
{
callback
();
callback
();
}
else
{
}
else
{
...
@@ -640,11 +635,6 @@
...
@@ -640,11 +635,6 @@
message
:
"请填写客人需求"
,
message
:
"请填写客人需求"
,
trigger
:
"blur"
,
trigger
:
"blur"
,
},
],
},
],
// Remarks: [{
// required: true,
// message: '请填写备注',
// trigger: 'blur'
// }],
WeChatNo
:
[{
WeChatNo
:
[{
required
:
true
,
required
:
true
,
validator
:
validateWechatAndPhone
,
validator
:
validateWechatAndPhone
,
...
...
src/main.js
View file @
1288a77a
...
@@ -223,7 +223,7 @@ Vue.prototype.UploadLocalSystem = function (params, fileObj, successCall) {
...
@@ -223,7 +223,7 @@ Vue.prototype.UploadLocalSystem = function (params, fileObj, successCall) {
let
url
=
that
.
domainManager
().
CRMUploadUrl
;
let
url
=
that
.
domainManager
().
CRMUploadUrl
;
let
formData
=
new
FormData
()
let
formData
=
new
FormData
()
if
(
params
)
{
if
(
params
)
{
formData
.
append
(
"params"
,
params
);
formData
.
append
(
"params"
,
JSON
.
stringify
(
params
)
);
}
}
formData
.
append
(
'myfile'
,
fileObj
);
formData
.
append
(
'myfile'
,
fileObj
);
co
(
function
*
()
{
co
(
function
*
()
{
...
...
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