Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-web-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
1
Merge Requests
1
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-web-master
Commits
249295cb
Commit
249295cb
authored
Dec 04, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发货的默认付款人逻辑补充
parent
f0225682
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
delivery.vue
src/views/jiedao/profile/delivery.vue
+13
-1
No files found.
src/views/jiedao/profile/delivery.vue
View file @
249295cb
...
...
@@ -1947,6 +1947,7 @@ export default {
},
'
form.isCargoControl
'
()
{
// this.isCargoControlDrawee()
this
.
setDefaultDrawee
()
this
.
getIdCardData
()
},
'
form.channelId
'
()
{
...
...
@@ -2013,11 +2014,12 @@ export default {
hasConsignee
(){
// 无收货人,默认发货人付款,而且必须控货
if
(
!
this
.
hasConsignee
){
this
.
form
.
drawee
=
1
//
this.form.drawee = 1
this
.
form
.
isCargoControl
=
true
this
.
$refs
.
form
.
clearValidate
(
"
consigneeName
"
)
this
.
$refs
.
form
.
clearValidate
(
"
consigneePhone
"
)
this
.
$refs
.
form
.
clearValidate
(
"
consigneeCompany
"
)
this
.
setDefaultDrawee
()
}
}
},
...
...
@@ -2132,6 +2134,16 @@ export default {
this.form.objectiveId = this.importCityList[0].id
} */
},
setDefaultDrawee
(){
// 优先级为:发货人默认付款,发货人付款>收货人默认付款,收货人付款>订单控货,收货人付款
if
(
this
.
userInfo
.
defaultPay
){
this
.
form
.
drawee
=
1
return
}
if
(
this
.
form
.
isCargoControl
){
this
.
form
.
drawee
=
2
}
},
async
getChannelList
()
{
const
query
=
{
cityId
:
this
.
form
.
objectiveId
,
...
...
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