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
7d0031b2
Commit
7d0031b2
authored
Nov 13, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单编辑详情是否允许控货无收货人逻辑修改
parent
4ef8f1c7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
edit.vue
src/views/ecw/order/edit.vue
+12
-3
No files found.
src/views/ecw/order/edit.vue
View file @
7d0031b2
...
@@ -1271,6 +1271,8 @@ export default {
...
@@ -1271,6 +1271,8 @@ export default {
this
.
form
.
type
=
this
.
form
.
type
?
this
.
form
.
type
.
split
(
'
,
'
).
filter
(
item
=>
item
!=
''
)
:
[]
this
.
form
.
type
=
this
.
form
.
type
?
this
.
form
.
type
.
split
(
'
,
'
).
filter
(
item
=>
item
!=
''
)
:
[]
this
.
form
.
packageTypeArr
=
this
.
form
.
packageType
?
this
.
form
.
packageType
.
split
(
'
,
'
).
filter
(
item
=>
item
!=
''
)
:
[]
this
.
form
.
packageTypeArr
=
this
.
form
.
packageType
?
this
.
form
.
packageType
.
split
(
'
,
'
).
filter
(
item
=>
item
!=
''
)
:
[]
// 每次编辑订单详情需要实时获取发货人当前信息
let
customer
=
null
if
(
res
.
data
.
consignorVO
){
if
(
res
.
data
.
consignorVO
){
this
.
$set
(
this
.
form
,
'
consignorCompany
'
,
res
.
data
.
consignorVO
.
company
)
this
.
$set
(
this
.
form
,
'
consignorCompany
'
,
res
.
data
.
consignorVO
.
company
)
this
.
$set
(
this
.
form
,
'
consignorCompanyEn
'
,
res
.
data
.
consignorVO
.
companyEn
)
this
.
$set
(
this
.
form
,
'
consignorCompanyEn
'
,
res
.
data
.
consignorVO
.
companyEn
)
...
@@ -1281,6 +1283,7 @@ export default {
...
@@ -1281,6 +1283,7 @@ export default {
this
.
$set
(
this
.
form
,
'
consignorName
'
,
res
.
data
.
consignorVO
.
name
)
this
.
$set
(
this
.
form
,
'
consignorName
'
,
res
.
data
.
consignorVO
.
name
)
this
.
$set
(
this
.
form
,
'
consignorNameEn
'
,
res
.
data
.
consignorVO
.
nameEn
)
this
.
$set
(
this
.
form
,
'
consignorNameEn
'
,
res
.
data
.
consignorVO
.
nameEn
)
this
.
$set
(
this
.
form
,
'
consignorPhone
'
,
res
.
data
.
consignorVO
.
phone
)
this
.
$set
(
this
.
form
,
'
consignorPhone
'
,
res
.
data
.
consignorVO
.
phone
)
customer
=
getCustomer
(
res
.
data
.
consignorVO
.
customerId
)
}
}
if
(
res
.
data
.
consigneeVO
){
if
(
res
.
data
.
consigneeVO
){
...
@@ -1297,13 +1300,19 @@ export default {
...
@@ -1297,13 +1300,19 @@ export default {
// res.data.hasConsignee 订单冗余的发货人是否允许无收货人
// res.data.hasConsignee 订单冗余的发货人是否允许无收货人
// res.data.noConsignee 当前订单发货人是否允许无收货
// res.data.noConsignee 当前订单发货人是否允许无收货
// 回显冗余数据
//
this
.
noConsignee
=
res
.
data
.
hasConsignee
if
(
customer
){
// 最新的客户设置信息,是否允许控货无收货人
this
.
noConsignee
=
customer
.
noConsignee
}
else
{
// 默认不允许控货无收货人
this
.
noConsignee
=
false
}
// 是否有收货人
// 是否有收货人
this
.
hasConsignee
=
!!
res
.
data
.
consigneeVO
this
.
hasConsignee
=
!!
res
.
data
.
consigneeVO
// 如果订单无收货人,但是最新的发货人不允许无收货人则重置状态
// 如果订单无收货人,但是最新的发货人不允许无收货人则重置状态
if
(
!
res
.
data
.
noConsignee
&&
!
this
.
hasConsignee
){
if
(
this
.
noConsignee
&&
!
this
.
hasConsignee
){
// 最新的发货人不允许无收货人,则重置为有收货人
// 最新的发货人不允许无收货人,则重置为有收货人
this
.
hasConsignee
=
true
this
.
hasConsignee
=
true
// 如果发货人不允许无收货人,则更新是否允许无收货人状态
// 如果发货人不允许无收货人,则更新是否允许无收货人状态
...
...
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