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
0d8c20bb
Commit
0d8c20bb
authored
May 18, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
44ca2cbd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
425 additions
and
408 deletions
+425
-408
jp.js
src/assets/common/lang/jp.js
+1
-0
zh.js
src/assets/common/lang/zh.js
+1
-1
MyCustomer.vue
src/components/SalesModule/MyCustomer.vue
+423
-407
No files found.
src/assets/common/lang/jp.js
View file @
0d8c20bb
...
...
@@ -220,6 +220,7 @@ export const admin={ //行政
mane
:
'名前'
,
admin_group
:
'グループ名'
,
admin_company
:
'会社名'
,
CompanyTitle
:
"確認物の台頭"
,
admin_department
:
'部署名'
,
admin_departmentLevel
:
'部署ランク'
,
admin_parentdepartment
:
'上司'
,
...
...
src/assets/common/lang/zh.js
View file @
0d8c20bb
...
...
@@ -220,7 +220,7 @@ export const admin={ //行政
mane
:
'名称'
,
admin_group
:
'集团名称'
,
admin_company
:
'公司名称'
,
CompanyTitle
:
""
,
CompanyTitle
:
"
确认件抬头
"
,
admin_department
:
'部门名称'
,
admin_departmentLevel
:
'部门层级'
,
admin_parentdepartment
:
'上级部门'
,
...
...
src/components/SalesModule/MyCustomer.vue
View file @
0d8c20bb
...
...
@@ -52,8 +52,8 @@
background
:
#fff
;
padding-top
:
20px
;
box-sizing
:
border-box
;
overflow
:
hidden
!important
;
overflow
:
hidden
!important
;
}
.page_MyCustomer
._mc_list
>
ul
>
li
{
...
...
@@ -319,49 +319,79 @@
.page_MyCustomer
.upload-demo
{
text-align
:
center
;
}
.MycustomerTable
th
,
.MycustomerTable
td
{
.MycustomerTable
th
,
.MycustomerTable
td
{
text-align
:
left
;
padding-left
:
25px
padding-left
:
25px
}
.MyCustomerDetailbottomLayer
{
overflow
:
auto
;
position
:
absolute
;
height
:
200px
;
z-index
:
50
;
bottom
:
0
;
left
:
0
;
border-top
:
1px
solid
#d1d1d1
;
background-color
:
#FFFFFF
;
padding
:
20px
20px
0
;
width
:
100%
;
}
.MyCustomerDetailbottomLayer
>
p
{
border-left
:
3px
solid
#E95252
;
text-indent
:
15px
;
height
:
14px
;
font-size
:
14px
;
margin-bottom
:
20px
;
line-height
:
14px
;
color
:
#000
;
}
.MyCustomerDetailbottomLayer
.el-form-item__label
{
font-size
:
12px
!important
;
}
.MyCustomerDetailbottomLayer
.avatar-uploader
.el-upload
{
border
:
1px
dashed
#d9d9d9
;
border-radius
:
6px
;
cursor
:
pointer
;
position
:
relative
;
overflow
:
hidden
;
}
.MyCustomerDetailbottomLayer
.avatar-uploader
.el-upload
:hover
{
border-color
:
#409EFF
;
}
.MyCustomerDetailbottomLayer
{
overflow
:
auto
;
position
:
absolute
;
height
:
200px
;
z-index
:
50
;
bottom
:
0
;
left
:
0
;
border-top
:
1px
solid
#d1d1d1
;
background-color
:
#FFFFFF
;
padding
:
20px
20px
0
;
width
:
100%
;}
.MyCustomerDetailbottomLayer
>
p
{
border-left
:
3px
solid
#E95252
;
text-indent
:
15px
;
height
:
14px
;
font-size
:
14px
;
margin-bottom
:
20px
;
line-height
:
14px
;
color
:
#000
;}
.MyCustomerDetailbottomLayer
.el-form-item__label
{
font-size
:
12px
!important
;}
.MyCustomerDetailbottomLayer
.avatar-uploader
.el-upload
{
border
:
1px
dashed
#d9d9d9
;
border-radius
:
6px
;
cursor
:
pointer
;
position
:
relative
;
overflow
:
hidden
;
}
.MyCustomerDetailbottomLayer
.avatar-uploader
.el-upload
:hover
{
border-color
:
#409EFF
;
}
.MyCustomerDetailbottomLayer
.avatar-uploader-icon
{
font-size
:
28px
;
color
:
#8c939d
;
width
:
148px
;
height
:
148px
;
line-height
:
148px
;
text-align
:
center
;
}
.MyCustomerDetailbottomLayer
.avatar
{
width
:
148px
;
height
:
148px
;
display
:
block
;
}
.yichangde
{
display
:
inline-block
;
border-radius
:
50%
;
color
:
red
;
border
:
1px
solid
red
;
font-size
:
12px
;
width
:
18px
;
height
:
18px
;
text-align
:
center
;
cursor
:
pointer
;
}
.MyCustomerDetailbottomLayer
.avatar-uploader-icon
{
font-size
:
28px
;
color
:
#8c939d
;
width
:
148px
;
height
:
148px
;
line-height
:
148px
;
text-align
:
center
;
}
.MyCustomerDetailbottomLayer
.avatar
{
width
:
148px
;
height
:
148px
;
display
:
block
;
}
.yichangde
{
display
:
inline-block
;
border-radius
:
50%
;
color
:
red
;
border
:
1px
solid
red
;
font-size
:
12px
;
width
:
18px
;
height
:
18px
;
text-align
:
center
;
cursor
:
pointer
;
}
</
style
>
<
template
>
<div
class=
"page_MyCustomer MyCustomerDiv"
>
...
...
@@ -375,7 +405,8 @@
</li>
<li>
<button
class=
"hollowFixedBtn"
@
click=
"getList()"
>
{{
$t
(
'pub.searchBtn'
)
}}
</button>
<button
class=
"normalBtn"
@
click=
"addShow=true;isOldPerson=false,addLayer1=false"
>
{{
$t
(
'salesModule.addCustomer'
)
}}
</button>
<button
class=
"normalBtn"
@
click=
"addShow=true;isOldPerson=false,addLayer1=false"
>
{{
$t
(
'salesModule.addCustomer'
)
}}
</button>
<button
class=
"normalBtn"
@
click=
"outerVisible=true"
>
导入
</button>
<button
class=
"normalBtn"
@
click=
"getDownList"
>
模板下载
</button>
</li>
...
...
@@ -399,80 +430,88 @@
</li>
</div>
<div
class=
"_mc_list _scrollbar"
:class=
"addShow==true?'_edHeight':''"
>
<table
class=
"MycustomerTable singeRowTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
"loading"
>
<tr>
<th>
姓名
</th>
<th>
联系电话
</th>
<th>
门店名称
</th>
<th>
近期约访
</th>
<th>
最近拜访
</th>
<th>
累计拜访
</th>
<th>
幸福存折
</th>
<th>
累计交易额
</th>
<th>
询价与需求
</th>
<th>
所属联盟
</th>
<th>
优惠券
</th>
<th>
操作
</th>
</tr
>
<tr
v-for=
"(item,i) in dataList"
:key=
"i"
>
<td
>
<span>
{{
item
.
contact
}}
</span
>
<el-popover
width=
"280"
popper-class=
"pd20"
trigger=
"click
"
>
<table
width=
"100%"
border=
"0"
cellspacing=
"0"
cellpadding=
"0
"
>
<tr
class=
"_color_666"
>
<th>
异常名称
</th>
<th>
创建人
</th>
<
th>
创建时间
</th
>
</tr
>
<tr
v-for=
"(unionItem,x) in CustomerException"
>
<td>
{{
unionItem
.
Exception
Name
}}
</td>
<td>
{{
unionItem
.
CreateByName
}}
</td>
<
td>
{{
unionItem
.
CreateTimestr
}}
</td
>
</t
r
>
</table>
<span
v-show=
"item.exceptionCount > 0"
slot=
"reference"
class=
"yichangde"
@
click=
"yichangde(item)"
>
异
</span>
</el-popover>
</td>
<td>
{{
item
.
contactNumber
}}
</td>
<td>
{{
item
.
customerName
}}
</td>
<td>
<table
class=
"MycustomerTable singeRowTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
"loading"
>
<tr>
<th>
姓名
</th>
<th>
联系电话
</th>
<th>
门店名称
</th>
<th>
近期约访
</th>
<th>
最近拜访
</th>
<th>
累计拜访
</th>
<th>
幸福存折
</th>
<th>
累计交易额
</th>
<th>
询价与需求
</th>
<th>
所属联盟
</th>
<th>
优惠券
</th>
<th>
操作
</th>
</tr>
<tr
v-for=
"(item,i) in dataList"
:key=
"i"
>
<td
>
<span>
{{
item
.
contact
}}
</span
>
<el-popover
width=
"280"
popper-class=
"pd20"
trigger=
"click"
>
<table
width=
"100%"
border=
"0"
cellspacing=
"0"
cellpadding=
"0
"
>
<tr
class=
"_color_666
"
>
<th>
异常名称
</th
>
<th>
创建人
</th>
<th>
创建时间
</th>
<
/tr
>
<tr
v-for=
"(unionItem,x) in CustomerException"
>
<td>
{{
unionItem
.
ExceptionName
}}
</td
>
<td>
{{
unionItem
.
CreateBy
Name
}}
</td>
<td>
{{
unionItem
.
CreateTimestr
}}
</td>
<
/tr
>
</t
able
>
<span
v-show=
"item.exceptionCount > 0"
slot=
"reference"
class=
"yichangde"
@
click=
"yichangde(item)"
>
异
</span>
</el-popover>
</td>
<td>
{{
item
.
contactNumber
}}
</td>
<td>
{{
item
.
customerName
}}
</td>
<td>
<p
v-if=
"item.customerVisitList.length>0"
>
{{
item
.
customerVisitList
[
0
].
visitDateTime
}}
</p>
<p
v-else
>
{{
$t
(
'salesModule.noYuefang'
)
}}
</p>
</td>
<td>
<div
@
click=
"goUrl(type,item.customerId,1)"
>
<p
v-if=
"item.customerVisitList[1]"
>
<span
style=
"cursor: pointer;text-decoration: underline;"
>
{{
item
.
customerVisitList
[
1
].
visitDateTime
}}
</span></p>
</td>
<td>
<div
@
click=
"goUrl(type,item.customerId,1)"
>
<p
v-if=
"item.customerVisitList[1]"
>
<span
style=
"cursor: pointer;text-decoration: underline;"
>
{{
item
.
customerVisitList
[
1
].
visitDateTime
}}
</span>
</p>
<p
v-else
>
<span
style=
"cursor: pointer;text-decoration: underline;"
>
{{
$t
(
'pub.noMsg'
)
}}
</span></p>
</div>
</td>
<td><span
@
click=
"goUrl(type,item.customerId,2)"
style=
"cursor: pointer;text-decoration: underline;"
>
{{
item
.
visiteCount
}}
</span></td>
<td>
{{
item
.
cL_Balance
}}
</td>
<td><span
@
click=
"goUrl(type,item.customerId,3)"
style=
"cursor: pointer;text-decoration: underline;"
>
{{
item
.
tradeTotal
}}
</span></td>
<td>
{{
item
.
inquireCount
}}
</td>
<td>
{{
item
.
allianceName
}}
</td>
<td><span
style=
"cursor: pointer;text-decoration: underline;"
@
click
.
stop=
"goUrC('CouponsList',item.customerAccountId)"
>
{{
item
.
couponNum
}}
</span></td>
<td>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"编辑"
placement=
"top-start"
>
<el-button
@
click
.
stop=
"EditMsg(item)"
style=
"padding:4px"
type=
"primary"
icon=
"iconfont icon-bianji"
circle
></el-button>
</div>
</td>
<td><span
@
click=
"goUrl(type,item.customerId,2)"
style=
"cursor: pointer;text-decoration: underline;"
>
{{
item
.
visiteCount
}}
</span></td>
<td>
{{
item
.
cL_Balance
}}
</td>
<td><span
@
click=
"goUrl(type,item.customerId,3)"
style=
"cursor: pointer;text-decoration: underline;"
>
{{
item
.
tradeTotal
}}
</span></td>
<td>
{{
item
.
inquireCount
}}
</td>
<td>
{{
item
.
allianceName
}}
</td>
<td><span
style=
"cursor: pointer;text-decoration: underline;"
@
click
.
stop=
"goUrC('CouponsList',item.customerAccountId)"
>
{{
item
.
couponNum
}}
</span></td>
<td>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"编辑"
placement=
"top-start"
>
<el-button
@
click
.
stop=
"EditMsg(item)"
style=
"padding:4px"
type=
"primary"
icon=
"iconfont icon-bianji"
circle
></el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"账户管理"
placement=
"top-start"
>
<el-button
style=
"padding:4px"
@
click
.
stop=
"goUrlT('empBankAccount',item.customerId)"
type=
"danger"
icon=
"iconfont icon-guanliyuan"
circle
></el-button>
<el-button
style=
"padding:4px"
@
click
.
stop=
"goUrlT('empBankAccount',item.customerId)"
type=
"danger"
icon=
"iconfont icon-guanliyuan"
circle
></el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"交易详情"
placement=
"top-start"
>
<el-button
style=
"padding:4px"
@
click
.
stop=
"goUrC('CustomerAnalysis',item.customerId)"
type=
"success"
icon=
"iconfont icon-icon-test6"
circle
></el-button>
<el-button
style=
"padding:4px"
@
click
.
stop=
"goUrC('CustomerAnalysis',item.customerId)"
type=
"success"
icon=
"iconfont icon-icon-test6"
circle
></el-button>
</el-tooltip>
</td>
</tr>
<tr
v-if=
"dataList.length==0"
>
<td
colspan=
"12"
style=
"text-align:center"
>
暂无数据
</td>
</tr>
</table>
</td>
</tr>
<tr
v-if=
"dataList.length==0"
>
<td
colspan=
"12"
style=
"text-align:center"
>
暂无数据
</td>
</tr>
</table>
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
layout=
"total,prev, pager, next, jumper"
:page-size=
"this.msg.pageSize"
:total=
"total"
>
</el-pagination>
...
...
@@ -623,127 +662,104 @@
</el-upload>
</el-dialog>
<div
class=
"MyCustomerDetailbottomLayer ownScrollbarStyle"
style=
"height:500px;"
v-show=
"addLayer1"
>
<p>
修改客户信息
</p>
<p
class=
"fz12 color333 fbold"
style=
"border: none; padding-left: 3px;"
>
可直接保存
</p>
<el-form
label-width=
"80px"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"门店名称:"
>
<el-input
class=
'w200'
v-model=
'updateMsg.CustomerName'
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"联系人姓名"
>
<el-input
class=
'w200'
v-model=
'updateMsg.Contact'
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
v-if=
"updateMsg.customerExceptionList.length > 0"
>
<el-form-item
label=
"解决异常"
>
<el-select
class=
'w200'
filterable
multiple
clearable
collapse-tags
v-model=
'updateMsg.CustomerExceptionIds'
>
<el-option
v-for=
'item in updateMsg.customerExceptionList'
:label=
'item.exceptionName'
:value=
'item.exceptionId'
:key=
'item.exceptionId'
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
</el-col>
</el-row>
<el-row
:gutter=
"20"
style=
'margin-top:13px;'
>
<el-col
:span=
"24"
>
<p
class=
"fz12 color333 fbold"
style=
"border: none; margin-bottom: 15px; padding-left: 20px;"
>
需审核信息
<span
class=
"colorE95252 fz12 fwnormal"
>
(编辑门店地址后,客户将重新进入审核流程)
</span>
</p>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"区域:"
>
<el-select
class=
'w200'
filterable
v-model=
'updateMsg.Province'
@
change=
'getCityNew'
>
<el-option
v-for=
'item in provinceList'
:label=
'item.Name'
:value=
'item.ID'
:key=
'item.ID'
>
</el-option>
</el-select>
<el-select
class=
'w200'
filterable
v-model=
'updateMsg.City'
@
change=
'getRegionNew'
>
<el-option
v-for=
'item in cityList'
:label=
'item.Name'
:value=
'item.ID'
:key=
'item.ID'
>
</el-option>
</el-select>
<el-select
class=
'w200'
filterable
v-model=
'updateMsg.District'
>
<el-option
v-for=
'item in regionList'
:label=
'item.Name'
:value=
'item.ID'
:key=
'item.ID'
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"详细地址:"
>
<el-input
v-model=
'updateMsg.Address'
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"名片照片:"
>
<el-upload
class=
"avatar-uploader"
action=
""
:http-request=
"uploadImgNew"
accept=
"image/jpeg,image/gif,image/png,image/bmp"
:show-file-list=
"false"
>
<img
v-if=
"BusinessCardPhotosNew"
:src=
"BusinessCardPhotosNew"
class=
"avatar"
>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
</el-upload>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"门牌照片:"
>
<el-upload
class=
"avatar-uploader"
action=
""
:http-request=
"uploadImg1New"
accept=
"image/jpeg,image/gif,image/png,image/bmp"
:show-file-list=
"false"
>
<img
v-if=
"HousePhotosNew"
:src=
"HousePhotosNew"
class=
"avatar"
>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
</el-upload>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"营业执照:"
>
<el-upload
class=
"avatar-uploader"
action=
""
:http-request=
"uploadImg2New"
accept=
"image/jpeg,image/gif,image/png,image/bmp"
:show-file-list=
"false"
>
<img
v-if=
"ImagesNew"
:src=
"ImagesNew"
class=
"avatar"
>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
</el-upload>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<input
type=
"button"
class=
"normalBtn"
value=
"保存"
@
click=
"saveUpdate()"
/>
<input
type=
"button"
class=
"hollowFixedBtn"
value=
"取消"
@
click=
"addLayer1=false"
/>
</el-col>
</el-row>
</el-form>
</div>
<p>
修改客户信息
</p>
<p
class=
"fz12 color333 fbold"
style=
"border: none; padding-left: 3px;"
>
可直接保存
</p>
<el-form
label-width=
"80px"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"门店名称:"
>
<el-input
class=
'w200'
v-model=
'updateMsg.CustomerName'
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"联系人姓名"
>
<el-input
class=
'w200'
v-model=
'updateMsg.Contact'
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
v-if=
"updateMsg.customerExceptionList.length > 0"
>
<el-form-item
label=
"解决异常"
>
<el-select
class=
'w200'
filterable
multiple
clearable
collapse-tags
v-model=
'updateMsg.CustomerExceptionIds'
>
<el-option
v-for=
'item in updateMsg.customerExceptionList'
:label=
'item.exceptionName'
:value=
'item.exceptionId'
:key=
'item.exceptionId'
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
</el-col>
</el-row>
<el-row
:gutter=
"20"
style=
'margin-top:13px;'
>
<el-col
:span=
"24"
>
<p
class=
"fz12 color333 fbold"
style=
"border: none; margin-bottom: 15px; padding-left: 20px;"
>
需审核信息
<span
class=
"colorE95252 fz12 fwnormal"
>
(编辑门店地址后,客户将重新进入审核流程)
</span>
</p>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"区域:"
>
<el-select
class=
'w200'
filterable
v-model=
'updateMsg.Province'
@
change=
'getCityNew'
>
<el-option
v-for=
'item in provinceList'
:label=
'item.Name'
:value=
'item.ID'
:key=
'item.ID'
>
</el-option>
</el-select>
<el-select
class=
'w200'
filterable
v-model=
'updateMsg.City'
@
change=
'getRegionNew'
>
<el-option
v-for=
'item in cityList'
:label=
'item.Name'
:value=
'item.ID'
:key=
'item.ID'
>
</el-option>
</el-select>
<el-select
class=
'w200'
filterable
v-model=
'updateMsg.District'
>
<el-option
v-for=
'item in regionList'
:label=
'item.Name'
:value=
'item.ID'
:key=
'item.ID'
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"详细地址:"
>
<el-input
v-model=
'updateMsg.Address'
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"名片照片:"
>
<el-upload
class=
"avatar-uploader"
action=
""
:http-request=
"uploadImgNew"
accept=
"image/jpeg,image/gif,image/png,image/bmp"
:show-file-list=
"false"
>
<img
v-if=
"BusinessCardPhotosNew"
:src=
"BusinessCardPhotosNew"
class=
"avatar"
>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
</el-upload>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"门牌照片:"
>
<el-upload
class=
"avatar-uploader"
action=
""
:http-request=
"uploadImg1New"
accept=
"image/jpeg,image/gif,image/png,image/bmp"
:show-file-list=
"false"
>
<img
v-if=
"HousePhotosNew"
:src=
"HousePhotosNew"
class=
"avatar"
>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
</el-upload>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"营业执照:"
>
<el-upload
class=
"avatar-uploader"
action=
""
:http-request=
"uploadImg2New"
accept=
"image/jpeg,image/gif,image/png,image/bmp"
:show-file-list=
"false"
>
<img
v-if=
"ImagesNew"
:src=
"ImagesNew"
class=
"avatar"
>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
</el-upload>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<input
type=
"button"
class=
"normalBtn"
value=
"保存"
@
click=
"saveUpdate()"
/>
<input
type=
"button"
class=
"hollowFixedBtn"
value=
"取消"
@
click=
"addLayer1=false"
/>
</el-col>
</el-row>
</el-form>
</div>
</div>
</
template
>
...
...
@@ -751,7 +767,7 @@
export
default
{
data
()
{
return
{
addLayer1
:
false
,
addLayer1
:
false
,
allowAdd
:
true
,
defaultImg
:
'this.src="'
+
require
(
"../../assets/img/litheader.png"
)
+
'"'
,
BusinessCardPhotos
:
''
,
...
...
@@ -812,11 +828,10 @@
trigger
:
"blur"
}],
contactNumber
:
[{
required
:
true
,
message
:
this
.
$t
(
'rule.EnterPNum'
),
trigger
:
"blur"
}
],
required
:
true
,
message
:
this
.
$t
(
'rule.EnterPNum'
),
trigger
:
"blur"
}],
brandIds
:
[{
required
:
true
,
message
:
this
.
$t
(
'rule.ChoiceBrand'
),
...
...
@@ -870,185 +885,186 @@
zw
:
[],
//职务
khly
:
[],
//客户来源
outerVisible
:
false
,
updateMsg
:{
CustomerName
:
''
,
CustomerId
:
0
,
Address
:
''
,
Country
:
2
,
Province
:
0
,
Contact
:
''
,
City
:
0
,
District
:
0
,
HousePhotos
:
[],
BusinessCardPhotos
:
[],
Images
:[],
updateMsg
:
{
CustomerName
:
''
,
CustomerId
:
0
,
Address
:
''
,
Country
:
2
,
Province
:
0
,
Contact
:
''
,
City
:
0
,
District
:
0
,
HousePhotos
:
[],
BusinessCardPhotos
:
[],
Images
:
[],
customerExceptionList
:
[],
CustomerExceptionIds
:
[],
},
cityList
:[],
regionList
:[],
id
:
''
,
ImagesNew
:
''
,
BusinessCardPhotosNew
:
''
,
HousePhotosNew
:
''
,
cityList
:
[],
regionList
:
[],
id
:
''
,
ImagesNew
:
''
,
BusinessCardPhotosNew
:
''
,
HousePhotosNew
:
''
,
CustomerException
:
[],
JYExceptionList
:
[],
}
},
methods
:
{
yichangde
(
obj
){
this
.
apipost
(
"app_get_GetCustomerException"
,
{
customerId
:
obj
.
customerId
},
res
=>
{
yichangde
(
obj
)
{
this
.
apipost
(
"app_get_GetCustomerException"
,
{
customerId
:
obj
.
customerId
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
CustomerException
=
res
.
data
.
data
}
})
},
EditMsg
(
item
){
this
.
addLayer1
=
true
;
this
.
id
=
item
.
customerId
;
EditMsg
(
item
)
{
this
.
addLayer1
=
true
;
this
.
id
=
item
.
customerId
;
this
.
getMyCustomerInfo
();
},
saveUpdate
(){
if
(
this
.
updateMsg
.
District
==
''
)
{
this
.
updateMsg
.
District
=
0
}
if
(
this
.
BusinessCardPhotos
)
{
this
.
updateMsg
.
BusinessCardPhotos
=
[]
this
.
updateMsg
.
BusinessCardPhotos
.
push
(
this
.
BusinessCardPhotos
)
}
if
(
this
.
HousePhotos
)
{
this
.
updateMsg
.
HousePhotos
=
[]
this
.
updateMsg
.
HousePhotos
.
push
(
this
.
HousePhotos
)
}
if
(
this
.
Images
)
{
this
.
updateMsg
.
Images
=
[]
this
.
updateMsg
.
Images
.
push
(
this
.
Images
)
}
let
sheng
=
''
let
shi
=
''
let
qu
=
''
if
(
this
.
updateMsg
.
District
==
''
)
{
this
.
updateMsg
.
District
=
0
}
if
(
this
.
updateMsg
.
City
==
''
)
{
this
.
updateMsg
.
City
=
0
}
this
.
provinceList
.
forEach
(
item
=>
{
if
(
this
.
updateMsg
.
Province
==
item
.
ID
)
{
sheng
=
item
.
Name
}
})
this
.
cityList
.
forEach
(
item
=>
{
if
(
this
.
updateMsg
.
City
==
item
.
ID
)
{
shi
=
item
.
Name
}
})
this
.
regionList
.
forEach
(
item
=>
{
if
(
this
.
updateMsg
.
District
==
item
.
ID
)
{
qu
=
item
.
Name
}
})
let
AreaName
=
sheng
+
shi
+
qu
this
.
updateMsg
.
Address
=
AreaName
+
','
+
this
.
updateMsg
.
Address
this
.
apipost
(
'app_customer_UpdateCustomerAddress'
,
this
.
updateMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
addLayer1
=
false
;
this
.
$message
.
success
(
res
.
data
.
message
)
this
.
getList
()
this
.
addLayer1
=
false
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
}
},
err
=>
{})
saveUpdate
()
{
if
(
this
.
updateMsg
.
District
==
''
)
{
this
.
updateMsg
.
District
=
0
}
if
(
this
.
BusinessCardPhotos
)
{
this
.
updateMsg
.
BusinessCardPhotos
=
[]
this
.
updateMsg
.
BusinessCardPhotos
.
push
(
this
.
BusinessCardPhotos
)
}
if
(
this
.
HousePhotos
)
{
this
.
updateMsg
.
HousePhotos
=
[]
this
.
updateMsg
.
HousePhotos
.
push
(
this
.
HousePhotos
)
}
if
(
this
.
Images
)
{
this
.
updateMsg
.
Images
=
[]
this
.
updateMsg
.
Images
.
push
(
this
.
Images
)
}
let
sheng
=
''
let
shi
=
''
let
qu
=
''
if
(
this
.
updateMsg
.
District
==
''
)
{
this
.
updateMsg
.
District
=
0
}
if
(
this
.
updateMsg
.
City
==
''
)
{
this
.
updateMsg
.
City
=
0
}
this
.
provinceList
.
forEach
(
item
=>
{
if
(
this
.
updateMsg
.
Province
==
item
.
ID
)
{
sheng
=
item
.
Name
}
})
this
.
cityList
.
forEach
(
item
=>
{
if
(
this
.
updateMsg
.
City
==
item
.
ID
)
{
shi
=
item
.
Name
}
})
this
.
regionList
.
forEach
(
item
=>
{
if
(
this
.
updateMsg
.
District
==
item
.
ID
)
{
qu
=
item
.
Name
}
})
let
AreaName
=
sheng
+
shi
+
qu
this
.
updateMsg
.
Address
=
AreaName
+
','
+
this
.
updateMsg
.
Address
this
.
apipost
(
'app_customer_UpdateCustomerAddress'
,
this
.
updateMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
addLayer1
=
false
;
this
.
$message
.
success
(
res
.
data
.
message
)
this
.
getList
()
this
.
addLayer1
=
false
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
}
},
err
=>
{})
},
uploadImgNew
(
file
)
{
//上传
let
newArr
=
[];
newArr
.
push
(
file
.
file
);
let
path
=
"/Upload/Temporary/"
;
this
.
UploadSelfFileT
(
path
,
newArr
,
x
=>
{
this
.
BusinessCardPhotosNew
=
this
.
domainManager
().
ViittoFileUrl
+
x
.
data
.
FilePath
});
},
uploadImg1New
(
file
)
{
//上传
let
newArr
=
[];
newArr
.
push
(
file
.
file
);
let
path
=
"/Upload/Temporary/"
;
this
.
UploadSelfFileT
(
path
,
newArr
,
x
=>
{
this
.
HousePhotosNew
=
this
.
domainManager
().
ViittoFileUrl
+
x
.
data
.
FilePath
});
},
uploadImg2New
(
file
)
{
//上传
let
newArr
=
[];
newArr
.
push
(
file
.
file
);
let
path
=
"/Upload/Temporary/"
;
this
.
UploadSelfFileT
(
path
,
newArr
,
x
=>
{
this
.
ImagesNew
=
this
.
domainManager
().
ViittoFileUrl
+
x
.
data
.
FilePath
});
},
getMyCustomerInfo
(){
this
.
apipost
(
'app_GetMyCustomerInfo'
,{
customerId
:
this
.
id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
let
x
=
res
.
data
.
data
;
// this.customerInfo=res.data.data
// if(this.customerInfo.address.indexOf(',')!=-1){
// this.customerInfo.address=this.customerInfo.address.split(',')[1]
// }else{
// this.customerInfo.address=this.customerInfo.address
// }
// this.contact=res.data.data.contact
this
.
updateMsg
.
CustomerName
=
x
.
customerName
this
.
updateMsg
.
Contact
=
x
.
contactName
this
.
updateMsg
.
CustomerId
=
x
.
customerId
this
.
updateMsg
.
Address
=
x
.
address
.
split
(
','
)[
1
]
this
.
updateMsg
.
Province
=
x
.
province
this
.
getCityNew
()
this
.
updateMsg
.
City
=
x
.
city
this
.
getRegionNew
()
this
.
updateMsg
.
customerExceptionList
=
x
.
customerExceptionList
//上传
let
newArr
=
[];
newArr
.
push
(
file
.
file
);
let
path
=
"/Upload/Temporary/"
;
this
.
UploadSelfFileT
(
path
,
newArr
,
x
=>
{
this
.
BusinessCardPhotosNew
=
this
.
domainManager
().
ViittoFileUrl
+
x
.
data
.
FilePath
});
},
uploadImg1New
(
file
)
{
//上传
let
newArr
=
[];
newArr
.
push
(
file
.
file
);
let
path
=
"/Upload/Temporary/"
;
this
.
UploadSelfFileT
(
path
,
newArr
,
x
=>
{
this
.
HousePhotosNew
=
this
.
domainManager
().
ViittoFileUrl
+
x
.
data
.
FilePath
});
},
uploadImg2New
(
file
)
{
//上传
let
newArr
=
[];
newArr
.
push
(
file
.
file
);
let
path
=
"/Upload/Temporary/"
;
this
.
UploadSelfFileT
(
path
,
newArr
,
x
=>
{
this
.
ImagesNew
=
this
.
domainManager
().
ViittoFileUrl
+
x
.
data
.
FilePath
});
},
getMyCustomerInfo
()
{
this
.
apipost
(
'app_GetMyCustomerInfo'
,
{
customerId
:
this
.
id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
x
=
res
.
data
.
data
;
// this.customerInfo=res.data.data
// if(this.customerInfo.address.indexOf(',')!=-1){
// this.customerInfo.address=this.customerInfo.address.split(',')[1]
// }else{
// this.customerInfo.address=this.customerInfo.address
// }
// this.contact=res.data.data.contact
this
.
updateMsg
.
CustomerName
=
x
.
customerName
this
.
updateMsg
.
Contact
=
x
.
contactName
this
.
updateMsg
.
CustomerId
=
x
.
customerId
this
.
updateMsg
.
Address
=
x
.
address
.
split
(
','
)[
1
]
this
.
updateMsg
.
Province
=
x
.
province
this
.
getCityNew
()
this
.
updateMsg
.
City
=
x
.
city
this
.
getRegionNew
()
this
.
updateMsg
.
customerExceptionList
=
x
.
customerExceptionList
this
.
updateMsg
.
CustomerExceptionIds
=
[]
this
.
updateMsg
.
District
=
x
.
district
if
(
x
.
businessCardPhotos
&&
x
.
businessCardPhotos
.
length
>
0
)
{
this
.
BusinessCardPhotos
=
x
.
businessCardPhotos
[
0
]
}
if
(
x
.
images
&&
x
.
images
.
length
>
0
)
{
this
.
Images
=
x
.
images
[
0
]
}
if
(
x
.
housePhotos
&&
x
.
housePhotos
.
length
>
0
)
{
this
.
HousePhotos
=
x
.
housePhotos
[
0
]
}
}
else
{}
},
err
=>
{})
},
getCityNew
(){
this
.
apipost
(
'app_customer_GetChildList'
,{
Id
:
this
.
updateMsg
.
Province
,
"level"
:
2
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
cityList
=
res
.
data
.
data
;
// this.regionList=[]
// this.updateMsg.City=''
// this.updateMsg.District=''
}
},
err
=>
{})
},
getRegionNew
(){
this
.
apipost
(
'app_customer_GetChildList'
,{
Id
:
this
.
updateMsg
.
City
,
"level"
:
3
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
regionList
=
res
.
data
.
data
// this.updateMsg.District=''
}
},
err
=>
{})
},
this
.
updateMsg
.
District
=
x
.
district
if
(
x
.
businessCardPhotos
&&
x
.
businessCardPhotos
.
length
>
0
)
{
this
.
BusinessCardPhotos
=
x
.
businessCardPhotos
[
0
]
}
if
(
x
.
images
&&
x
.
images
.
length
>
0
)
{
this
.
Images
=
x
.
images
[
0
]
}
if
(
x
.
housePhotos
&&
x
.
housePhotos
.
length
>
0
)
{
this
.
HousePhotos
=
x
.
housePhotos
[
0
]
}
}
else
{}
},
err
=>
{})
},
getCityNew
()
{
this
.
apipost
(
'app_customer_GetChildList'
,
{
Id
:
this
.
updateMsg
.
Province
,
"level"
:
2
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
cityList
=
res
.
data
.
data
;
// this.regionList=[]
// this.updateMsg.City=''
// this.updateMsg.District=''
}
},
err
=>
{})
},
getRegionNew
()
{
this
.
apipost
(
'app_customer_GetChildList'
,
{
Id
:
this
.
updateMsg
.
City
,
"level"
:
3
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
regionList
=
res
.
data
.
data
// this.updateMsg.District=''
}
},
err
=>
{})
},
//导入
getImportFileUrl
()
{
let
url
=
...
...
@@ -1075,8 +1091,8 @@
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
downList
=
this
.
domainManager
().
LocalTemplateFileDownLoadUrl
+
res
.
data
.
data
.
FileUrl
;
window
.
open
(
this
.
downList
);
res
.
data
.
data
.
FileUrl
;
window
.
open
(
this
.
downList
);
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
...
...
@@ -1251,24 +1267,24 @@
}
},
err
=>
{})
},
goUrl
(
type
,
id
,
num
)
{
goUrl
(
type
,
id
,
num
)
{
this
.
$router
.
push
({
name
:
'MyCustomerDetail'
,
query
:
{
"id"
:
id
,
"num"
:
num
"num"
:
num
}
})
},
goUrC
(
path
,
customerId
)
{
this
.
$router
.
push
({
name
:
path
,
query
:
{
"customerId"
:
customerId
,
blank
:
'y'
}
})
this
.
$router
.
push
({
name
:
path
,
query
:
{
"customerId"
:
customerId
,
blank
:
'y'
}
})
},
goUrlT
(
path
,
id
)
{
this
.
$router
.
push
({
...
...
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