Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
0d1d85af
Commit
0d1d85af
authored
Nov 11, 2019
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
69cf40a2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
1 deletion
+55
-1
MyCustomer.vue
src/components/SalesModule/MyCustomer.vue
+55
-1
No files found.
src/components/SalesModule/MyCustomer.vue
View file @
0d1d85af
...
...
@@ -81,6 +81,9 @@
line-height
:
38px
;
text-align
:
center
;
}
.page_MyCustomer
.upload-demo
{
text-align
:
center
;
}
</
style
>
<
template
>
<div
class=
"page_MyCustomer"
>
...
...
@@ -93,6 +96,8 @@
<li>
<button
class=
"hollowFixedBtn"
@
click=
"getList()"
>
{{
$t
(
'pub.searchBtn'
)
}}
</button>
<button
class=
"normalBtn"
@
click=
"addShow=true;isOldPerson=false"
>
{{
$t
(
'salesModule.addCustomer'
)
}}
</button>
<button
class=
"normalBtn"
@
click=
"outerVisible=true"
>
导入
</button>
<button
class=
"normalBtn"
@
click=
"getDownList"
>
模板下载
</button>
</li>
</div>
<div
class=
"_mc_addbox"
>
...
...
@@ -333,6 +338,19 @@
</el-row>
</el-form>
</div>
<el-dialog
custom-class=
"w700"
title=
"模板导入"
:visible
.
sync=
"outerVisible"
center
>
<el-upload
ref=
"ticketUpload"
drag
class=
"upload-demo"
:action=
"getImportFileUrl()"
:on-success=
"handleAvatarSuccess"
>
<i
class=
"el-icon-upload"
></i>
<div
class=
"el-upload__text"
>
将文件拖到此处,或
<em>
点击上传
</em>
</div>
<div
slot=
"tip"
class=
"el-upload__tip"
>
只能上传Excel文件
</div>
</el-upload>
</el-dialog>
</div>
</
template
>
<
script
>
...
...
@@ -418,8 +436,44 @@ export default {
jycs
:[],
//经营场所
zw
:[],
//职务
khly
:[],
//客户来源
outerVisible
:
false
,
}
},
methods
:{
//导入
getImportFileUrl
()
{
let
url
=
this
.
domainManager
().
UploadFileUrl
+
"?cmd=dmc_post_LocalFileUpload&fileType=1&fileLimit=1&Type=2&uid="
+
this
.
getLocalStorage
().
EmployeeId
+
"&importType="
+
this
.
importType
;
return
url
;
},
//上传文件后清空文件队列
handleAvatarSuccess
(
res
,
file
)
{
this
.
$refs
.
ticketUpload
.
clearFiles
();
if
(
res
.
resultCode
==
1
)
{
this
.
Success
(
res
.
message
);
this
.
outerVisible
=
false
;
}
},
//下载模板文件
getDownList
()
{
this
.
apipost
(
"AirTicket_post_DownAirticket"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
downList
=
this
.
domainManager
().
LocalTemplateFileDownLoadUrl
+
res
.
data
.
data
.
FileUrl
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{}
);
},
deleteCustomer
(
obj
){
this
.
$confirm
(
this
.
$t
(
'tips.shifoushanchu'
),
this
.
$t
(
'tips.tips'
),
{
confirmButtonText
:
this
.
$t
(
'pub.sureBtn'
),
...
...
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