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
2a864dd6
Commit
2a864dd6
authored
Oct 09, 2023
by
zhoutong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复bug
parent
47d26c56
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
32 deletions
+57
-32
arrival.vue
src/views/ecw/box/shippingAir/nodePage/arrival.vue
+1
-1
cusClearance.vue
src/views/ecw/box/shippingAir/nodePage/cusClearance.vue
+56
-31
No files found.
src/views/ecw/box/shippingAir/nodePage/arrival.vue
View file @
2a864dd6
...
...
@@ -187,7 +187,7 @@ export default {
filterOrder
(
val
){
if
(
val
!=
''
){
this
.
orderListFilter
=
this
.
orderList
.
filter
(
item
=>
{
return
item
.
orderNo
.
indexOf
(
val
)
>
-
1
||
item
.
tidanNo
.
indexOf
(
val
)
>
-
1
||
item
.
marks
.
indexOf
(
val
)
>
-
1
return
item
.
orderNo
&&
item
.
orderNo
.
indexOf
(
val
)
>
-
1
||
item
.
tidanNo
&&
item
.
tidanNo
.
indexOf
(
val
)
>
-
1
||
item
.
marks
&&
item
.
marks
.
indexOf
(
val
)
>
-
1
})
}
else
{
this
.
orderListFilter
=
this
.
orderList
...
...
src/views/ecw/box/shippingAir/nodePage/cusClearance.vue
View file @
2a864dd6
...
...
@@ -9,7 +9,7 @@
</el-form-item>
<el-form-item
:label=
"$t('选择订单')"
prop=
"clearanceOrderIdList"
v-show=
"cusClearanceObj.clearanceType == 1"
>
<el-select
v-model=
"cusClearanceObj.clearanceOrderIdList"
multiple
filterable
clearable
reserve-keyword
:filter-method=
"filterOrder"
:placeholder=
"$t('请输入订单号、提单号、唛头')"
@
change=
"selectOrderId"
>
<el-option
v-for=
"item in statusOrderList"
:key=
"item.orderId"
:label=
"item.orderNo + ' ' + item.arrival"
:value=
"item.orderId"
>
</el-option>
<el-option
v-for=
"item in statusOrderList"
:key=
"item.orderId"
:label=
"item.orderNo + ' ' + item.
clear + ' ' + item.
arrival"
:value=
"item.orderId"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('已清关订单')"
v-show=
"cusClearanceObj.clearanceType == 1"
>
...
...
@@ -17,15 +17,17 @@
</el-form-item>
<div
v-if=
"cusClearanceObj.clearanceOrderIdList.length > 0"
>
<el-form-item
:label=
"$t('实际二程起飞时间')"
prop=
"actSecondTime"
>
<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('实际到港时间')"
prop=
"actTime"
>
<el-date-picker
type=
"datetime"
:placeholder=
"$t('请选择日期')"
v-model=
"airArrivalInfo.actTime"
value-format=
"yyyy-MM-dd HH:mm:ss"
></el-date-picker>
</el-form-item>
<el-form
ref=
"airArrivalForm"
:rules=
"airArrivalrules"
:model=
"airArrivalInfo"
label-width=
"120px"
>
<el-form-item
:label=
"$t('实际二程起飞时间')"
prop=
"actSecondTime"
>
<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('实际到港时间')"
prop=
"actTime"
>
<el-date-picker
type=
"datetime"
:placeholder=
"$t('请选择日期')"
v-model=
"airArrivalInfo.actTime"
value-format=
"yyyy-MM-dd HH:mm:ss"
></el-date-picker>
</el-form-item>
</el-form>
</div>
<el-form-item
:label=
"$t('预计清关时间')"
prop=
"clEstTime"
>
...
...
@@ -57,7 +59,7 @@ import dayjs from 'dayjs'
import
{
clearanceCreate
}
from
'
@/api/ecw/boxSea
'
import
{
shipmentOrderList
}
from
'
@/api/ecw/boxAir
'
import
{
formatDateStr
,
serviceMsg
,
formatDate
}
from
'
../utils
'
import
{
updateOrderArrival
}
from
"
@/api/ecw/boxAir
"
;
import
{
updateOrderArrival
}
from
'
@/api/ecw/boxAir
'
/**
* 清关
...
...
@@ -77,6 +79,10 @@ export default {
clEstTime
:
[{
required
:
true
,
message
:
this
.
$t
(
'
必填
'
),
trigger
:
'
change
'
}],
clClearTime
:
[{
required
:
true
,
message
:
this
.
$t
(
'
必填
'
),
trigger
:
'
change
'
}]
},
airArrivalrules
:
{
actSecondTime
:
[{
required
:
true
,
message
:
this
.
$t
(
'
必填
'
),
trigger
:
'
change
'
}],
actTime
:
[{
required
:
true
,
message
:
this
.
$t
(
'
必填
'
),
trigger
:
'
change
'
}]
},
// 弹窗配置
dialogVisible
:
false
,
// 提示消息
...
...
@@ -95,7 +101,7 @@ export default {
this
.
cusClearanceObj
=
oldData
if
(
!
this
.
cusClearanceObj
.
clearanceType
)
this
.
$set
(
this
.
cusClearanceObj
,
'
clearanceType
'
,
0
)
this
.
$set
(
this
.
cusClearanceObj
,
'
clearanceOrderIdList
'
,
[])
if
(
this
.
$attrs
.
shipmentObj
.
airArrivalInfo
.
arrivalOrderList
)
this
.
arrivalOrderList
=
this
.
$attrs
.
shipmentObj
.
airArrivalInfo
.
arrivalOrderList
if
(
this
.
$attrs
.
shipmentObj
.
airArrivalInfo
.
arrivalOrderList
)
this
.
arrivalOrderList
=
this
.
$attrs
.
shipmentObj
.
airArrivalInfo
.
arrivalOrderList
shipmentOrderList
(
this
.
$attrs
.
shipmentObj
.
id
).
then
((
r
)
=>
{
this
.
orderList
=
r
.
data
this
.
orderListFilter
=
r
.
data
...
...
@@ -111,16 +117,12 @@ export default {
this
.
compareDate
(
this
.
cusClearanceObj
.
clEstTime
,
val
)
},
'
cusClearanceObj.clearanceType
'
(
val
)
{
if
(
val
==
1
)
{
if
(
val
==
1
)
{
this
.
$set
(
this
.
cusClearanceObj
,
'
clEstTime
'
,
null
)
this
.
$set
(
this
.
cusClearanceObj
,
'
clClearTime
'
,
null
)
}
else
{
let
oldData
=
{
...
this
.
$attrs
.
shipmentObj
[
this
.
$attrs
.
currNode
.
voName
]
};
oldData
=
formatDateStr
(
oldData
,
[
"
clEstTime
"
,
"
clClearTime
"
],
"
YYYY-MM-DD HH:mm:ss
"
);
}
else
{
let
oldData
=
{
...
this
.
$attrs
.
shipmentObj
[
this
.
$attrs
.
currNode
.
voName
]
}
oldData
=
formatDateStr
(
oldData
,
[
'
clEstTime
'
,
'
clClearTime
'
],
'
YYYY-MM-DD HH:mm:ss
'
)
this
.
$set
(
this
.
cusClearanceObj
,
'
clClearTime
'
,
oldData
.
clClearTime
)
this
.
$set
(
this
.
cusClearanceObj
,
'
clEstTime
'
,
oldData
.
clEstTime
)
}
...
...
@@ -136,11 +138,17 @@ export default {
tidanNo
:
item
.
tidanNo
,
marks
:
item
.
marks
}
let
index
=
this
.
cusClearanceObj
.
clearanceOrderList
?
this
.
cusClearanceObj
.
clearanceOrderList
.
findIndex
((
p
)
=>
p
.
orderId
==
item
.
orderId
)
:
-
1
if
(
index
!=
-
1
)
{
json
.
arrival
=
this
.
$t
(
'
已清关
'
)
let
clear
index
=
this
.
cusClearanceObj
.
clearanceOrderList
?
this
.
cusClearanceObj
.
clearanceOrderList
.
findIndex
((
p
)
=>
p
.
orderId
==
item
.
orderId
)
:
-
1
if
(
clear
index
!=
-
1
)
{
json
.
clear
=
this
.
$t
(
'
已清关
'
)
}
else
{
json
.
arrival
=
this
.
$t
(
'
未清关
'
)
json
.
clear
=
this
.
$t
(
'
未清关
'
)
}
let
arrivalindex
=
this
.
arrivalOrderList
?
this
.
arrivalOrderList
.
findIndex
((
p
)
=>
p
.
orderId
==
item
.
orderId
)
:
-
1
if
(
arrivalindex
!=
-
1
)
{
json
.
arrival
=
this
.
$t
(
'
已到港
'
)
}
else
{
json
.
arrival
=
this
.
$t
(
'
未到港
'
)
}
data
.
push
(
json
)
})
...
...
@@ -152,7 +160,7 @@ export default {
filterOrder
(
val
)
{
if
(
val
!=
''
)
{
this
.
orderListFilter
=
this
.
orderList
.
filter
((
item
)
=>
{
return
item
.
orderNo
.
indexOf
(
val
)
>
-
1
||
item
.
tidanNo
.
indexOf
(
val
)
>
-
1
||
item
.
marks
.
indexOf
(
val
)
>
-
1
return
item
.
orderNo
&&
item
.
orderNo
.
indexOf
(
val
)
>
-
1
||
item
.
tidanNo
&&
item
.
tidanNo
.
indexOf
(
val
)
>
-
1
||
item
.
marks
&&
item
.
marks
.
indexOf
(
val
)
>
-
1
})
}
else
{
this
.
orderListFilter
=
this
.
orderList
...
...
@@ -199,11 +207,28 @@ export default {
onSubmit
(
operateType
)
{
this
.
$refs
[
'
cusClearanceForm
'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
updateOrderArrival
({
...
this
.
airArrivalInfo
,
shipmentId
:
this
.
$attrs
.
shipmentObj
.
id
,
orderIdList
:
this
.
cusClearanceObj
.
clearanceOrderIdList
}).
then
(()
=>
{
if
(
this
.
cusClearanceObj
.
clearanceType
==
1
)
{
this
.
$refs
[
'
airArrivalForm
'
].
validate
((
arrvalid
)
=>
{
if
(
arrvalid
)
{
updateOrderArrival
({
...
this
.
airArrivalInfo
,
shipmentId
:
this
.
$attrs
.
shipmentObj
.
id
,
orderIdList
:
this
.
cusClearanceObj
.
clearanceOrderIdList
}).
then
(()
=>
{
clearanceCreate
({
...
this
.
cusClearanceObj
,
shipmentId
:
this
.
$attrs
.
shipmentObj
.
id
,
clAgentId
:
this
.
getClAgent
(),
operateType
}).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
cancel
(
'
submit
'
)
})
})
})
}
})
}
else
{
clearanceCreate
({
...
this
.
cusClearanceObj
,
shipmentId
:
this
.
$attrs
.
shipmentObj
.
id
,
...
...
@@ -214,7 +239,7 @@ export default {
this
.
cancel
(
'
submit
'
)
})
})
}
)
}
}
})
},
...
...
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