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
b212e0fe
Commit
b212e0fe
authored
Jun 24, 2023
by
邓春圆
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
8b15b3f2
20abbade
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
17 deletions
+36
-17
arrival.vue
src/views/ecw/box/shippingAir/nodePage/arrival.vue
+35
-16
cusClearance.vue
src/views/ecw/box/shippingAir/nodePage/cusClearance.vue
+1
-1
No files found.
src/views/ecw/box/shippingAir/nodePage/arrival.vue
View file @
b212e0fe
<
template
>
<div>
<el-form
ref=
"arrivalForm"
:rules=
"rules"
:model=
"a
rrivalObj
"
label-width=
"120px"
>
<el-form-item
:label=
"$t('预计到港时间')"
>
{{
getExpectedTime
()
}}
</el-form-item>
<el-form
ref=
"arrivalForm"
:rules=
"rules"
:model=
"a
irArrivalInfo
"
label-width=
"120px"
>
<
!--
<
el-form-item
:label=
"$t('预计到港时间')"
>
{{
getExpectedTime
()
}}
</el-form-item>
<el-form-item
:label=
"$t('实际到港时间')"
prop=
"apRealTime"
>
<el-date-picker
type=
"datetime"
:placeholder=
"$t('请选择日期')"
v-model=
"arrivalObj.apRealTime"
value-format=
"yyyy-MM-dd HH:mm:ss"
></el-date-picker>
</el-form-item>
...
...
@@ -9,10 +9,19 @@
<el-date-picker
type=
"datetime"
:placeholder=
"$t('请选择日期')"
v-model=
"arrivalObj.apConfirmTime"
value-format=
"yyyy-MM-dd HH:mm:ss"
>
</el-date-picker>
<p
class=
"message-area"
v-show=
"showMsg"
>
{{
$t
(
'
请确认是否有异常,如有异常请进行异常登记
'
)
}}
</p>
</el-form-item>
-->
<el-form-item
:label=
"$t('实际二程起飞时间')"
prop=
"actSecondTime"
v-show=
"this.$attrs.shipmentObj.bookAirInfo.voyage"
>
<el-date-picker
type=
"datetime"
:placeholder=
"$t('请选择日期')"
v-model=
"airArrivalInfo.actSecondTime"
value-format=
"yyyy-MM-dd HH:mm:ss"
></el-date-picker>
</el-form-item>
<el-form-item
:label=
"$t('预计到港时间')"
prop=
"estTime"
>
<el-date-picker
type=
"datetime"
:placeholder=
"$t('请选择日期')"
v-model=
"airArrivalInfo.estTime"
value-format=
"yyyy-MM-dd HH:mm:ss"
></el-date-picker>
</el-form-item>
<el-form-item
:label=
"$t('
卸港时间')
"
>
<el-date-picker
type=
"datetime"
:placeholder=
"$t('请选择日期')"
v-model=
"a
rrivalObj.apUnloadPor
tTime"
value-format=
"yyyy-MM-dd HH:mm:ss"
></el-date-picker>
<el-form-item
:label=
"$t('
实际到港时间')"
prop=
"actTime
"
>
<el-date-picker
type=
"datetime"
:placeholder=
"$t('请选择日期')"
v-model=
"a
irArrivalInfo.ac
tTime"
value-format=
"yyyy-MM-dd HH:mm:ss"
></el-date-picker>
</el-form-item>
</el-form>
<el-row
class=
"operate-button"
>
...
...
@@ -32,7 +41,7 @@
<
script
>
import
regError
from
"
../../regError
"
;
import
dayjs
from
"
dayjs
"
;
import
{
arrivalCreate
}
from
"
@/api/ecw/boxSea
"
;
import
{
arrivalCreate
}
from
"
@/api/ecw/boxSea
Air
"
;
import
{
formatDateStr
,
serviceMsg
}
from
"
../utils
"
;
/**
...
...
@@ -47,12 +56,15 @@ export default {
data
()
{
return
{
// 到港对象
a
rrivalObj
:
{},
a
irArrivalInfo
:
{},
// 校验
rules
:
{
a
pReal
Time
:
[
a
ctSecond
Time
:
[
{
required
:
true
,
message
:
this
.
$t
(
"
必填
"
),
trigger
:
"
change
"
},
],
actTime
:
[
{
required
:
true
,
message
:
this
.
$t
(
"
必填
"
),
trigger
:
"
change
"
},
]
},
// 弹窗配置
dialogVisible
:
false
,
...
...
@@ -68,16 +80,23 @@ export default {
let
oldData
=
{
...
this
.
$attrs
.
shipmentObj
[
voName
]
};
oldData
=
formatDateStr
(
oldData
,
[
"
a
pRealTime
"
,
"
apConfirm
Time
"
],
[
"
a
ctSecondTime
"
,
"
estTime
"
,
"
act
Time
"
],
"
YYYY-MM-DD HH:mm:ss
"
);
oldData
=
formatDateStr
(
oldData
,
[
"
apUnloadPortTime
"
]);
this
.
arrivalObj
=
oldData
;
this
.
airArrivalInfo
=
oldData
;
},
watch
:
{
// 确认到港时间
"
arrivalObj.apConfirmTime
"
(
val
)
{
this
.
compareDate
(
this
.
getExpectedTime
(),
val
);
// 实际二程起飞时间
"
airArrivalInfo.actSecondTime
"
(
val
)
{
this
.
compareDate
(
this
.
getHeadTravelTime
(),
val
);
},
"
airArrivalInfo.estTime
"
(
val
)
{
this
.
compareDate
(
this
.
airArrivalInfo
.
actTime
,
val
);
},
"
airArrivalInfo.actTime
"
(
val
)
{
this
.
compareDate
(
this
.
airArrivalInfo
.
estTime
,
val
);
},
},
methods
:
{
...
...
@@ -88,10 +107,10 @@ export default {
}
},
// 获取预计到港时间
get
Expected
Time
()
{
get
HeadTravel
Time
()
{
const
{
shippingInfo
}
=
this
.
$attrs
.
shipmentObj
;
if
(
shippingInfo
)
{
return
dayjs
(
shippingInfo
.
dtEstArriva
lTime
).
format
(
return
dayjs
(
shippingInfo
.
realHeadTrave
lTime
).
format
(
"
YYYY-MM-DD HH:mm:ss
"
);
}
...
...
@@ -120,7 +139,7 @@ export default {
this
.
$refs
[
"
arrivalForm
"
].
validate
((
valid
)
=>
{
if
(
valid
)
{
arrivalCreate
({
...
this
.
a
rrivalObj
,
...
this
.
a
irArrivalInfo
,
shipmentId
:
this
.
$attrs
.
shipmentObj
.
id
,
operateType
,
}).
then
((
res
)
=>
{
...
...
src/views/ecw/box/shippingAir/nodePage/cusClearance.vue
View file @
b212e0fe
<
template
>
<div>
<el-form
ref=
"cusClearanceForm"
:rules=
"rules"
:model=
"cusClearanceObj"
label-width=
"120px"
>
<
el-form-item
:label=
"$t('清关代理')"
>
{{
getClAgent
(
'
label
'
)
}}
</el-form-item
>
<
!--
<el-form-item
:label=
"$t('清关代理')"
>
{{
getClAgent
(
'
label
'
)
}}
</el-form-item>
--
>
<el-form-item
:label=
"$t('预计清关时间')"
prop=
"clEstTime"
>
<el-date-picker
type=
"datetime"
:placeholder=
"$t('请选择日期')"
v-model=
"cusClearanceObj.clEstTime"
value-format=
"yyyy-MM-dd HH:mm:ss"
></el-date-picker>
</el-form-item>
...
...
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