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
3c2659f7
Commit
3c2659f7
authored
Jun 23, 2023
by
wanglianghe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
起飞
parent
b76fee56
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
19 deletions
+44
-19
boxAir.js
src/api/ecw/boxAir.js
+19
-0
permission.js
src/utils/permission.js
+1
-0
twoWayTakeoff.vue
src/views/ecw/box/shippingAir/nodePage/twoWayTakeoff.vue
+18
-13
utils.js
src/views/ecw/box/shippingAir/utils.js
+6
-6
No files found.
src/api/ecw/boxAir.js
View file @
3c2659f7
...
...
@@ -255,3 +255,22 @@ export function getMergeTagById(id) {
/***************************** 合包 end **********************************/
/***************************** 起运 start *******************************/
export
function
takeoffCreate
(
data
)
{
if
(
data
.
id
)
{
return
request
({
url
:
"
/ecw/box-air-fly/update
"
,
method
:
"
put
"
,
data
,
});
}
return
request
({
url
:
"
/ecw/box-air-fly/create
"
,
method
:
"
post
"
,
data
,
});
}
/***************************** 起运 end *******************************/
src/utils/permission.js
View file @
3c2659f7
...
...
@@ -10,6 +10,7 @@ export function checkPermi(value) {
const
permissions
=
store
.
getters
&&
store
.
getters
.
permissions
const
permissionDatas
=
value
const
all_permission
=
"
*:*:*
"
;
console
.
log
(
permissionDatas
)
const
hasPermission
=
permissions
.
some
(
permission
=>
{
return
all_permission
===
permission
||
permissionDatas
.
includes
(
permission
)
...
...
src/views/ecw/box/shippingAir/nodePage/twoWayTakeoff.vue
View file @
3c2659f7
<
template
>
<div>
<el-form
ref=
"twoWayTakeoffForm"
:rules=
"rules"
:model=
"twoWayTakeoffObj"
label-width=
"120px"
>
<el-form-item
:label=
"$t('预计
头程时间')"
prop=
"estHeadTime
"
>
<el-date-picker
type=
"datetime"
:placeholder=
"$t('请选择日期')"
v-model=
"twoWayTakeoffObj.estHeadTime"
value-format=
"yyyy-MM-dd HH:mm:ss"
></el-date-picker>
<el-form-item
:label=
"$t('预计
起飞时间')
"
>
{{
getTakeOffTime
()
}}
</el-form-item>
<el-form-item
:label=
"$t('实际
头程时间')"
prop=
"actHead
Time"
>
<el-date-picker
type=
"datetime"
:placeholder=
"$t('请选择日期')"
v-model=
"twoWayTakeoffObj.
actHead
Time"
value-format=
"yyyy-MM-dd HH:mm:ss"
></el-date-picker>
<el-form-item
:label=
"$t('实际
起飞时间')"
prop=
"dtRealFly
Time"
>
<el-date-picker
type=
"datetime"
:placeholder=
"$t('请选择日期')"
v-model=
"twoWayTakeoffObj.
dtRealFly
Time"
value-format=
"yyyy-MM-dd HH:mm:ss"
></el-date-picker>
</el-form-item>
<el-form-item
:label=
"$t('
预计二程时间')"
prop=
"estSecond
Time"
>
<el-date-picker
type=
"datetime"
:placeholder=
"$t('请选择日期')"
v-model=
"twoWayTakeoffObj.
estSecond
Time"
value-format=
"yyyy-MM-dd HH:mm:ss"
></el-date-picker>
<el-form-item
:label=
"$t('
实际头程时间')"
prop=
"realHeadTravel
Time"
>
<el-date-picker
type=
"datetime"
:placeholder=
"$t('请选择日期')"
v-model=
"twoWayTakeoffObj.
realHeadTravel
Time"
value-format=
"yyyy-MM-dd HH:mm:ss"
></el-date-picker>
</el-form-item>
</el-form>
...
...
@@ -28,7 +28,7 @@
<
script
>
import
regError
from
"
../../regError
"
;
import
{
takeoffCreate
}
from
"
@/api/ecw/box
Sea
Air
"
;
import
{
takeoffCreate
}
from
"
@/api/ecw/boxAir
"
;
import
{
formatDateStr
,
serviceMsg
}
from
"
../utils
"
;
/**
...
...
@@ -46,9 +46,8 @@ export default {
twoWayTakeoffObj
:
{},
// 校验
rules
:
{
actHeadTime
:
[{
required
:
true
,
message
:
this
.
$t
(
"
必填
"
),
trigger
:
"
blur
"
}],
estHeadTime
:
[{
required
:
true
,
message
:
this
.
$t
(
"
必填
"
),
trigger
:
"
blur
"
}],
estSecondTime
:
[{
required
:
true
,
message
:
this
.
$t
(
"
必填
"
),
trigger
:
"
blur
"
}],
dtRealFlyTime
:
[{
required
:
true
,
message
:
this
.
$t
(
"
必填
"
),
trigger
:
"
blur
"
}],
realHeadTravelTime
:
[{
required
:
true
,
message
:
this
.
$t
(
"
必填
"
),
trigger
:
"
blur
"
}],
},
// 弹窗配置
dialogVisible
:
false
,
...
...
@@ -59,9 +58,8 @@ export default {
created
()
{
const
voName
=
this
.
$attrs
.
currNode
.
voName
;
let
oldData
=
{
...
this
.
$attrs
.
shipmentObj
[
voName
]
};
oldData
=
formatDateStr
(
oldData
,
[
"
actHeadTime
"
],
"
YYYY-MM-DD HH:mm:ss
"
);
oldData
=
formatDateStr
(
oldData
,
[
"
estHeadTime
"
],
"
YYYY-MM-DD HH:mm:ss
"
);
oldData
=
formatDateStr
(
oldData
,
[
"
estSecondTime
"
],
"
YYYY-MM-DD HH:mm:ss
"
);
oldData
=
formatDateStr
(
oldData
,
[
"
dtRealFlyTime
"
],
"
YYYY-MM-DD HH:mm:ss
"
);
oldData
=
formatDateStr
(
oldData
,
[
"
realHeadTravelTime
"
],
"
YYYY-MM-DD HH:mm:ss
"
);
this
.
twoWayTakeoffObj
=
oldData
;
},
watch
:
{
...
...
@@ -91,6 +89,13 @@ export default {
cancel
(
type
)
{
this
.
$emit
(
"
closeDialog
"
,
type
);
},
// 预计开船时间
getTakeOffTime
()
{
return
dayjs
(
this
.
$attrs
.
shipmentObj
.
bookAirInfo
.
flyTime
).
format
(
"
YYYY-MM-DD HH:mm:ss
"
);
},
},
};
</
script
>
...
...
src/views/ecw/box/shippingAir/utils.js
View file @
3c2659f7
...
...
@@ -200,16 +200,16 @@ function airBaseData() {
end
:
require
(
"
@/assets/images/shipping/ecqf-end.png
"
),
},
type
:
"
twoWayTakeoff
"
,
dataKey
:
"
14
"
,
// 字典数据键值
dataKey
:
"
9
"
,
// 字典数据键值
/**
* 起飞状态:
141、未起飞;14
2、已起飞
* 起飞状态:
231、未起飞;23
2、已起飞
*/
voName
:
"
takeOff
Info
"
,
keyName
:
"
stk
Status
"
,
voName
:
"
boxAirFly
Info
"
,
keyName
:
"
fly
Status
"
,
status
:
{
start
:
[
14
1
],
start
:
[
23
1
],
wait
:
[],
end
:
[
14
2
],
end
:
[
23
2
],
},
},
],
...
...
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