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
a19c156c
Commit
a19c156c
authored
2 years ago
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
0b5e8dbc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
115 additions
and
11 deletions
+115
-11
MyCustomer.vue
src/components/SalesModule/MyCustomer.vue
+115
-11
No files found.
src/components/SalesModule/MyCustomer.vue
View file @
a19c156c
...
...
@@ -532,7 +532,8 @@
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
:label=
"$t('salesModule.storeName')"
prop=
"customerName"
>
<!-- :label="$t('salesModule.storeName')" -->
<el-form-item
label=
"客户名称"
prop=
"customerName"
>
<el-input
:disabled=
"isOldPerson"
v-model=
"addMsg.customerName"
:placeholder=
"$t('pub.pleaseImport')"
maxlength=
"20"
></el-input>
</el-form-item>
...
...
@@ -570,6 +571,36 @@
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"統一編號"
prop=
"UniqueCode"
>
<el-input
v-model=
"addMsg.UniqueCode"
placeholder=
"请输入統一編號"
maxlength=
"20"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"LINE ID"
prop=
"LINEID"
>
<el-input
v-model=
"addMsg.LINEID"
placeholder=
"请输入LINE ID"
maxlength=
"20"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"Email"
prop=
"Email"
>
<el-input
v-model=
"addMsg.Email"
placeholder=
"请输入Email"
maxlength=
"20"
style=
"width: 200px;"
></el-input>
<span
class=
"q-pl-lg text-grey-8"
style=
"cursor: pointer;"
@
click=
"isShow=!isShow"
>
{{
isShow
?
'收起'
:
'展开'
}}
</span>
</el-form-item>
</el-col>
</el-row>
<template>
<el-row
v-if=
"isShow"
:gutter=
"20"
>
<el-col
:span=
"6"
>
<el-form-item
:label=
"$t('salesModule.CustomerSource')"
prop=
"CustomerSourceType"
>
<el-select
filterable
v-model=
'addMsg.CustomerSourceType'
:placeholder=
"$t('pub.pleaseSel')"
>
<el-option
v-for=
'item in khly'
: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=
"$t('salesModule.Belongbrand')"
prop=
"brandIds"
>
<el-select
filterable
class=
'multiple_input'
multiple
v-model=
'addMsg.brandIds'
...
...
@@ -587,6 +618,8 @@
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row
v-if=
"isShow"
:gutter=
"20"
>
<el-col
:span=
"6"
>
<el-form-item
:label=
"$t('salesModule.premises')"
prop=
"Premises"
>
<el-select
filterable
v-model=
'addMsg.Premises'
:placeholder=
"$t('pub.pleaseSel')"
>
...
...
@@ -595,16 +628,8 @@
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
:label=
"$t('salesModule.CustomerSource')"
prop=
"CustomerSourceType"
>
<el-select
filterable
v-model=
'addMsg.CustomerSourceType'
:placeholder=
"$t('pub.pleaseSel')"
>
<el-option
v-for=
'item in khly'
:label=
'item.Name'
:value=
'item.ID'
:key=
'item.ID'
>
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-row
v-if=
"isShow"
:gutter=
"20"
>
<el-col
:span=
"18"
>
<el-form-item
:label=
"$t('hotel.hotel_remark')"
prop=
"remark"
>
<el-input
v-model=
"addMsg.remark"
type=
"textarea"
maxlength=
"500"
></el-input>
...
...
@@ -616,7 +641,7 @@
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-row
v-if=
"isShow"
:gutter=
"20"
>
<el-col
:span=
"6"
>
<el-form-item
:label=
"$t('salesModule.BusinessPhoto')"
>
<el-upload
class=
"avatar-uploader"
action=
""
:http-request=
"uploadImg"
...
...
@@ -647,6 +672,7 @@
<el-col
:span=
"6"
>
</el-col>
</el-row>
</
template
>
</el-form>
</div>
...
...
@@ -689,6 +715,23 @@
<el-col
:span=
"12"
>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"统一编码:"
>
<el-input
class=
'w200'
v-model=
'updateMsg.UniqueCode'
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"LINE ID:"
>
<el-input
class=
'w200'
v-model=
'updateMsg.LINEID'
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"Email:"
>
<el-input
class=
'w200'
v-model=
'updateMsg.Email'
></el-input>
</el-form-item>
</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
...
...
@@ -806,6 +849,9 @@
Province
:
''
,
City
:
''
,
District
:
''
,
UniqueCode
:
''
,
LINEID
:
''
,
Email
:
''
},
addMsgS
:
{
isPreFilled
:
true
,
...
...
@@ -867,6 +913,21 @@
message
:
this
.
$t
(
'visaT.qsradder'
),
trigger
:
"blur"
}],
UniqueCode
:
[{
required
:
true
,
message
:
'请输入统一编码'
,
trigger
:
"blur"
}],
LINEID
:
[{
required
:
true
,
message
:
'请输入LINE ID'
,
trigger
:
"blur"
}],
Email
:
[{
required
:
true
,
message
:
'请输入Email'
,
trigger
:
"blur"
}],
},
dataList
:
[],
CustomerBrandList
:
[],
...
...
@@ -899,6 +960,9 @@
Images
:
[],
customerExceptionList
:
[],
CustomerExceptionIds
:
[],
UniqueCode
:
''
,
LINEID
:
''
,
Email
:
''
},
cityList
:
[],
regionList
:
[],
...
...
@@ -908,6 +972,7 @@
HousePhotosNew
:
''
,
CustomerException
:
[],
JYExceptionList
:
[],
isShow
:
false
}
},
methods
:
{
...
...
@@ -967,6 +1032,18 @@
})
let
AreaName
=
sheng
+
shi
+
qu
this
.
updateMsg
.
Address
=
AreaName
+
','
+
this
.
updateMsg
.
Address
if
(
!
this
.
updateMsg
.
UniqueCode
){
this
.
$message
.
error
(
'请输入统一编码'
)
return
}
if
(
!
this
.
updateMsg
.
LINEID
){
this
.
$message
.
error
(
'请输入LINE ID'
)
return
}
if
(
!
this
.
updateMsg
.
Email
){
this
.
$message
.
error
(
'请输入Email'
)
return
}
this
.
apipost
(
'app_customer_UpdateCustomerAddress'
,
this
.
updateMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
addLayer1
=
false
;
...
...
@@ -1196,6 +1273,7 @@
this
.
apipost
(
'app_today_visit_GetCustomerPremisesEnum'
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
jycs
=
res
.
data
.
data
this
.
addMsg
.
Premises
=
res
.
data
.
data
[
0
].
ID
}
},
err
=>
{})
},
...
...
@@ -1203,6 +1281,7 @@
this
.
apipost
(
'app_today_visit_GetCustomerDutyEnum'
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
zw
=
res
.
data
.
data
this
.
addMsg
.
Duty
=
res
.
data
.
data
[
1
].
ID
}
},
err
=>
{})
},
...
...
@@ -1210,6 +1289,7 @@
this
.
apipost
(
'app_customer_GetCustomerSourceEnum'
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
khly
=
res
.
data
.
data
this
.
addMsg
.
CustomerSourceType
=
res
.
data
.
data
[
0
].
ID
}
},
err
=>
{})
},
...
...
@@ -1366,6 +1446,30 @@
})
let
AreaName
=
sheng
+
shi
+
qu
this
.
addMsg
.
address
=
AreaName
+
','
+
this
.
addMsg
.
address
if
(
!
this
.
addMsg
.
contactNumber
){
this
.
$message
.
error
(
'请输入联系电话'
)
return
}
if
(
!
this
.
addMsg
.
customerName
){
this
.
$message
.
error
(
'请输入客户名称'
)
return
}
if
(
!
this
.
addMsg
.
contact
){
this
.
$message
.
error
(
'请输入联系人'
)
return
}
if
(
!
this
.
addMsg
.
UniqueCode
){
this
.
$message
.
error
(
'请输入统一编码'
)
return
}
if
(
!
this
.
addMsg
.
LINEID
){
this
.
$message
.
error
(
'请输入LINE ID'
)
return
}
if
(
!
this
.
addMsg
.
Email
){
this
.
$message
.
error
(
'请输入Email'
)
return
}
this
.
apipost
(
'app_add_new_visit_customer'
,
this
.
addMsgS
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
addMsg
=
{
...
...
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