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
Nov 23, 2022
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
0b5e8dbc
Show 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 @@
...
@@ -532,7 +532,8 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"6"
>
<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')"
<el-input
:disabled=
"isOldPerson"
v-model=
"addMsg.customerName"
:placeholder=
"$t('pub.pleaseImport')"
maxlength=
"20"
></el-input>
maxlength=
"20"
></el-input>
</el-form-item>
</el-form-item>
...
@@ -570,6 +571,36 @@
...
@@ -570,6 +571,36 @@
</el-col>
</el-col>
</el-row>
</el-row>
<el-row
:gutter=
"20"
>
<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-col
:span=
"6"
>
<el-form-item
:label=
"$t('salesModule.Belongbrand')"
prop=
"brandIds"
>
<el-form-item
:label=
"$t('salesModule.Belongbrand')"
prop=
"brandIds"
>
<el-select
filterable
class=
'multiple_input'
multiple
v-model=
'addMsg.brandIds'
<el-select
filterable
class=
'multiple_input'
multiple
v-model=
'addMsg.brandIds'
...
@@ -587,6 +618,8 @@
...
@@ -587,6 +618,8 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
<el-row
v-if=
"isShow"
:gutter=
"20"
>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<el-form-item
:label=
"$t('salesModule.premises')"
prop=
"Premises"
>
<el-form-item
:label=
"$t('salesModule.premises')"
prop=
"Premises"
>
<el-select
filterable
v-model=
'addMsg.Premises'
:placeholder=
"$t('pub.pleaseSel')"
>
<el-select
filterable
v-model=
'addMsg.Premises'
:placeholder=
"$t('pub.pleaseSel')"
>
...
@@ -595,16 +628,8 @@
...
@@ -595,16 +628,8 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</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>
<el-row
:gutter=
"20"
>
<el-row
v-if=
"isShow"
:gutter=
"20"
>
<el-col
:span=
"18"
>
<el-col
:span=
"18"
>
<el-form-item
:label=
"$t('hotel.hotel_remark')"
prop=
"remark"
>
<el-form-item
:label=
"$t('hotel.hotel_remark')"
prop=
"remark"
>
<el-input
v-model=
"addMsg.remark"
type=
"textarea"
maxlength=
"500"
></el-input>
<el-input
v-model=
"addMsg.remark"
type=
"textarea"
maxlength=
"500"
></el-input>
...
@@ -616,7 +641,7 @@
...
@@ -616,7 +641,7 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row
:gutter=
"20"
>
<el-row
v-if=
"isShow"
:gutter=
"20"
>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<el-form-item
:label=
"$t('salesModule.BusinessPhoto')"
>
<el-form-item
:label=
"$t('salesModule.BusinessPhoto')"
>
<el-upload
class=
"avatar-uploader"
action=
""
:http-request=
"uploadImg"
<el-upload
class=
"avatar-uploader"
action=
""
:http-request=
"uploadImg"
...
@@ -647,6 +672,7 @@
...
@@ -647,6 +672,7 @@
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
</el-col>
</el-col>
</el-row>
</el-row>
</
template
>
</el-form>
</el-form>
</div>
</div>
...
@@ -689,6 +715,23 @@
...
@@ -689,6 +715,23 @@
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
</el-col>
</el-col>
</el-row>
</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-row
:gutter=
"20"
style=
'margin-top:13px;'
>
<el-col
:span=
"24"
>
<el-col
:span=
"24"
>
<p
class=
"fz12 color333 fbold"
style=
"border: none; margin-bottom: 15px; padding-left: 20px;"
>
需审核信息
<span
<p
class=
"fz12 color333 fbold"
style=
"border: none; margin-bottom: 15px; padding-left: 20px;"
>
需审核信息
<span
...
@@ -806,6 +849,9 @@
...
@@ -806,6 +849,9 @@
Province
:
''
,
Province
:
''
,
City
:
''
,
City
:
''
,
District
:
''
,
District
:
''
,
UniqueCode
:
''
,
LINEID
:
''
,
Email
:
''
},
},
addMsgS
:
{
addMsgS
:
{
isPreFilled
:
true
,
isPreFilled
:
true
,
...
@@ -867,6 +913,21 @@
...
@@ -867,6 +913,21 @@
message
:
this
.
$t
(
'visaT.qsradder'
),
message
:
this
.
$t
(
'visaT.qsradder'
),
trigger
:
"blur"
trigger
:
"blur"
}],
}],
UniqueCode
:
[{
required
:
true
,
message
:
'请输入统一编码'
,
trigger
:
"blur"
}],
LINEID
:
[{
required
:
true
,
message
:
'请输入LINE ID'
,
trigger
:
"blur"
}],
Email
:
[{
required
:
true
,
message
:
'请输入Email'
,
trigger
:
"blur"
}],
},
},
dataList
:
[],
dataList
:
[],
CustomerBrandList
:
[],
CustomerBrandList
:
[],
...
@@ -899,6 +960,9 @@
...
@@ -899,6 +960,9 @@
Images
:
[],
Images
:
[],
customerExceptionList
:
[],
customerExceptionList
:
[],
CustomerExceptionIds
:
[],
CustomerExceptionIds
:
[],
UniqueCode
:
''
,
LINEID
:
''
,
Email
:
''
},
},
cityList
:
[],
cityList
:
[],
regionList
:
[],
regionList
:
[],
...
@@ -908,6 +972,7 @@
...
@@ -908,6 +972,7 @@
HousePhotosNew
:
''
,
HousePhotosNew
:
''
,
CustomerException
:
[],
CustomerException
:
[],
JYExceptionList
:
[],
JYExceptionList
:
[],
isShow
:
false
}
}
},
},
methods
:
{
methods
:
{
...
@@ -967,6 +1032,18 @@
...
@@ -967,6 +1032,18 @@
})
})
let
AreaName
=
sheng
+
shi
+
qu
let
AreaName
=
sheng
+
shi
+
qu
this
.
updateMsg
.
Address
=
AreaName
+
','
+
this
.
updateMsg
.
Address
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
=>
{
this
.
apipost
(
'app_customer_UpdateCustomerAddress'
,
this
.
updateMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
addLayer1
=
false
;
this
.
addLayer1
=
false
;
...
@@ -1196,6 +1273,7 @@
...
@@ -1196,6 +1273,7 @@
this
.
apipost
(
'app_today_visit_GetCustomerPremisesEnum'
,
{},
res
=>
{
this
.
apipost
(
'app_today_visit_GetCustomerPremisesEnum'
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
jycs
=
res
.
data
.
data
this
.
jycs
=
res
.
data
.
data
this
.
addMsg
.
Premises
=
res
.
data
.
data
[
0
].
ID
}
}
},
err
=>
{})
},
err
=>
{})
},
},
...
@@ -1203,6 +1281,7 @@
...
@@ -1203,6 +1281,7 @@
this
.
apipost
(
'app_today_visit_GetCustomerDutyEnum'
,
{},
res
=>
{
this
.
apipost
(
'app_today_visit_GetCustomerDutyEnum'
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
zw
=
res
.
data
.
data
this
.
zw
=
res
.
data
.
data
this
.
addMsg
.
Duty
=
res
.
data
.
data
[
1
].
ID
}
}
},
err
=>
{})
},
err
=>
{})
},
},
...
@@ -1210,6 +1289,7 @@
...
@@ -1210,6 +1289,7 @@
this
.
apipost
(
'app_customer_GetCustomerSourceEnum'
,
{},
res
=>
{
this
.
apipost
(
'app_customer_GetCustomerSourceEnum'
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
khly
=
res
.
data
.
data
this
.
khly
=
res
.
data
.
data
this
.
addMsg
.
CustomerSourceType
=
res
.
data
.
data
[
0
].
ID
}
}
},
err
=>
{})
},
err
=>
{})
},
},
...
@@ -1366,6 +1446,30 @@
...
@@ -1366,6 +1446,30 @@
})
})
let
AreaName
=
sheng
+
shi
+
qu
let
AreaName
=
sheng
+
shi
+
qu
this
.
addMsg
.
address
=
AreaName
+
','
+
this
.
addMsg
.
address
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
=>
{
this
.
apipost
(
'app_add_new_visit_customer'
,
this
.
addMsgS
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
addMsg
=
{
this
.
addMsg
=
{
...
...
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