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
2ff7a1ab
Commit
2ff7a1ab
authored
Nov 26, 2024
by
Smile
Committed by
wux
Jan 02, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:空运出货自动带出送货地址
parent
29e9b70f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
1 deletion
+30
-1
shipment.vue
src/views/ecw/box/shippingAir/nodePage/shipment.vue
+30
-1
No files found.
src/views/ecw/box/shippingAir/nodePage/shipment.vue
View file @
2ff7a1ab
...
...
@@ -2,7 +2,7 @@
<div>
<el-form
ref=
"airShipmentForm"
:model=
"airShipmentObj"
:rules=
"rules"
label-width=
"100px"
>
<el-form-item
:label=
"$t('')"
prop=
"deliverType"
>
<el-radio-group
v-model=
"airShipmentObj.deliverType"
>
<el-radio-group
v-model=
"airShipmentObj.deliverType"
@
change=
"handleRadioChange"
>
<el-radio
v-for=
"item in deliverTypes"
:key=
"item.value"
:label=
"item.value"
>
{{
item
.
label
}}
</el-radio>
</el-radio-group>
</el-form-item>
...
...
@@ -83,6 +83,12 @@ export default {
return
{
// 空运出货对象
airShipmentObj
:
{},
//初始地址
oldAddress
:
""
,
//订单对象
shipmentObj
:{},
//所有供应商
suppliers
:
[],
// 送货方式
deliverTypes
:
constantDict
.
deliverType
,
// 校验
...
...
@@ -94,10 +100,17 @@ export default {
},
created
()
{
const
voName
=
this
.
$attrs
.
currNode
.
voName
;
this
.
shipmentObj
=
{
...
this
.
$attrs
.
shipmentObj
};
this
.
suppliers
=
this
.
$attrs
.
allSupplier
;
let
oldData
=
{
...
this
.
$attrs
.
shipmentObj
[
voName
]
};
oldData
=
formatDateStr
(
oldData
,
[
"
deliverTime
"
]);
oldData
=
formatNumberString
(
oldData
,
[
"
deliverType
"
]);
this
.
airShipmentObj
=
oldData
;
this
.
oldAddress
=
this
.
airShipmentObj
.
deliverAddress
//判断是否有地址数据,没有就带出默认地址
if
(
!
this
.
oldAddress
)
{
this
.
handleRadioChange
(
this
.
airShipmentObj
.
deliverType
);
}
this
.
airShipmentApprovalInfo
=
this
.
$attrs
.
shipmentObj
.
airShipmentApprovalInfo
},
methods
:
{
...
...
@@ -136,6 +149,22 @@ export default {
cancel
(
type
)
{
this
.
$emit
(
"
closeDialog
"
,
type
);
},
handleRadioChange
:
function
(
value
)
{
if
(
this
.
oldAddress
){
return
}
if
(
value
===
"
1
"
)
{
this
.
shipmentObj
.
bookAirInfo
.
shipperId
;
this
.
suppliers
.
forEach
((
item
)
=>
{
if
(
item
.
id
===
this
.
shipmentObj
.
bookAirInfo
.
shipperId
)
{
this
.
airShipmentObj
.
deliverAddress
=
item
.
address
;
}
});
}
if
(
value
===
"
2
"
)
{
this
.
airShipmentObj
.
deliverAddress
=
this
.
shipmentObj
.
startWarehouseResp
.
addressZh
;
}
}
},
};
</
script
>
...
...
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