Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
b63aecbc
Commit
b63aecbc
authored
Aug 05, 2023
by
邓春圆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
输入邮箱,和询盘信息添加
parent
49c186bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
5 deletions
+31
-5
edit.vue
src/views/ecw/customer/edit.vue
+31
-5
No files found.
src/views/ecw/customer/edit.vue
View file @
b63aecbc
...
@@ -193,7 +193,11 @@
...
@@ -193,7 +193,11 @@
<el-switch
v-model=
"form.isShowTidanPrice"
></el-switch>
<el-switch
v-model=
"form.isShowTidanPrice"
></el-switch>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
:label=
"$t('询盘信息')"
>
<el-input
show-word-limit
v-model=
"form.inquiry"
:rows=
"3"
type=
"textarea"
:maxlength=
"500"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-col
:span=
"24"
>
<el-form-item
:label=
"$t('到仓确认')"
prop=
"arrivalConfirm"
>
<el-form-item
:label=
"$t('到仓确认')"
prop=
"arrivalConfirm"
>
<el-switch
v-model=
"form.arrivalConfirm"
:active-value=
"1"
:inactive-value=
"0"
/>
<el-switch
v-model=
"form.arrivalConfirm"
:active-value=
"1"
:inactive-value=
"0"
/>
...
@@ -358,12 +362,17 @@
...
@@ -358,12 +362,17 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
width=
"260px"
prop=
"email"
prop=
"email"
:label=
"$t('邮箱')"
:label=
"$t('邮箱')"
>
>
<
template
v-slot=
"{row}"
>
<
template
v-slot=
"{row}"
>
<el-form-item
label=
""
>
<el-form-item
v-for=
"(item, index) in row.email"
:key=
"index"
label=
""
>
<el-input
v-model=
"row.email"
:placeholder=
"$t('请输入邮箱')"
size=
"mini"
/>
<div
style=
"display: flex;align-items: center;"
>
<el-input
v-model=
"row.email[index]"
:placeholder=
"$t('请输入邮箱')"
size=
"mini"
/>
<el-button
@
click=
"deleteEmail(row.email,index)"
v-if=
"row.email.length !== 1"
style=
"height:25px;margin-left: 5px"
type=
"danger"
size=
"mini"
>
删除
</el-button>
<el-button
@
click=
"addEmail(row.email)"
style=
"height: 25px;margin-left: 5px"
v-if=
"index === row.email.length -1 && row.email.length
<
5
"
size=
"mini"
type=
"primary"
>
添加
</el-button>
</div>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -592,6 +601,13 @@ export default {
...
@@ -592,6 +601,13 @@ export default {
this
.
getCustomer
(
this
.
customerId
).
then
(()
=>
{
this
.
getCustomer
(
this
.
customerId
).
then
(()
=>
{
getCustomerContactsListByCustomer
({
customerId
:
customerId
}).
then
(
r
=>
{
getCustomerContactsListByCustomer
({
customerId
:
customerId
}).
then
(
r
=>
{
this
.
form
.
customerContacts
=
r
.
data
this
.
form
.
customerContacts
=
r
.
data
this
.
form
.
customerContacts
.
forEach
(
item
=>
{
if
(
item
.
email
){
item
.
email
=
item
.
email
.
split
(
'
,
'
)
}
else
{
item
.
email
=
[
""
]
}
})
})
})
if
(
this
.
form
.
promoter
){
if
(
this
.
form
.
promoter
){
getCustomerList
({
ids
:
this
.
form
.
promoter
}).
then
(
r
=>
{
getCustomerList
({
ids
:
this
.
form
.
promoter
}).
then
(
r
=>
{
...
@@ -706,6 +722,12 @@ export default {
...
@@ -706,6 +722,12 @@ export default {
},
},
methods
:
{
methods
:
{
addEmail
(
row
){
row
.
push
(
''
)
},
deleteEmail
(
row
,
index
){
row
.
splice
(
index
,
1
)
},
change
(
val
){
change
(
val
){
this
.
form
.
productId
=
''
;
this
.
form
.
productId
=
''
;
this
.
getProductListFn
(
val
);
this
.
getProductListFn
(
val
);
...
@@ -839,7 +861,10 @@ export default {
...
@@ -839,7 +861,10 @@ export default {
}
}
this
.
updateCustomerLines
()
this
.
updateCustomerLines
()
const
form
=
{...
this
.
form
,
type
:
this
.
form
.
type
?.
join
(
'
,
'
),
transportType
:
(
this
.
form
.
transportType
||
[])?.
join
(
'
,
'
),
taxRate
:
Number
(
this
.
form
.
taxRate
)}
const
form
=
{...
this
.
form
,
type
:
this
.
form
.
type
?.
join
(
'
,
'
),
transportType
:
(
this
.
form
.
transportType
||
[])?.
join
(
'
,
'
),
taxRate
:
Number
(
this
.
form
.
taxRate
)}
form
.
customerContacts
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
.
customerContacts
))
form
.
customerContacts
.
forEach
(
e
=>
{
e
.
email
=
[...
e
.
email
].
join
(
'
,
'
)
})
// 检查路线是否启用了但是没选择目的仓
// 检查路线是否启用了但是没选择目的仓
let
errors
=
0
let
errors
=
0
form
.
customerLines
.
forEach
(
line
=>
{
form
.
customerLines
.
forEach
(
line
=>
{
...
@@ -893,6 +918,7 @@ export default {
...
@@ -893,6 +918,7 @@ export default {
/** 表单重置 */
/** 表单重置 */
reset
()
{
reset
()
{
this
.
form
=
{
this
.
form
=
{
inquiry
:
undefined
,
id
:
undefined
,
id
:
undefined
,
number
:
undefined
,
number
:
undefined
,
name
:
undefined
,
name
:
undefined
,
...
@@ -971,7 +997,7 @@ export default {
...
@@ -971,7 +997,7 @@ export default {
"
areaCode
"
:
""
,
"
areaCode
"
:
""
,
// "customerId": 0,q
// "customerId": 0,q
"
department
"
:
""
,
"
department
"
:
""
,
"
email
"
:
""
,
"
email
"
:
[
''
]
,
"
isDefault
"
:
this
.
form
.
customerContacts
.
length
===
0
?
1
:
0
,
"
isDefault
"
:
this
.
form
.
customerContacts
.
length
===
0
?
1
:
0
,
"
name
"
:
""
,
"
name
"
:
""
,
"
phoneNew
"
:
""
,
"
phoneNew
"
:
""
,
...
...
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