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
70a7c6c8
Commit
70a7c6c8
authored
Sep 25, 2022
by
zhoutong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
海空联运
parent
8d2b1a46
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
639 additions
and
323 deletions
+639
-323
boxSeaAir.js
src/api/ecw/boxSeaAir.js
+4
-4
editSeaAirForm.vue
src/views/ecw/box/editSeaAirForm.vue
+160
-0
indexSeaAir.vue
src/views/ecw/box/indexSeaAir.vue
+438
-304
twoWayArrival.vue
src/views/ecw/box/shippingSea/nodePage/twoWayArrival.vue
+4
-14
utils.js
src/views/ecw/box/shippingSea/utils.js
+33
-1
No files found.
src/api/ecw/boxSeaAir.js
View file @
70a7c6c8
import
request
from
"
@/utils/request
"
;
import
request
from
"
@/utils/request
"
;
/**
/**
* 起飞
*
二程
起飞
*
*
* @export
* @export
* @param {*} data
* @param {*} data
...
@@ -23,7 +23,7 @@ import request from "@/utils/request";
...
@@ -23,7 +23,7 @@ import request from "@/utils/request";
}
}
/**
/**
* 到港
*
二程
到港
*
*
* @export
* @export
* @param {*} data
* @param {*} data
...
@@ -32,13 +32,13 @@ import request from "@/utils/request";
...
@@ -32,13 +32,13 @@ import request from "@/utils/request";
export
function
arrivalCreate
(
data
)
{
export
function
arrivalCreate
(
data
)
{
if
(
data
.
id
)
{
if
(
data
.
id
)
{
return
request
({
return
request
({
url
:
"
/ecw/box-arrival/update
"
,
url
:
"
/ecw/box-arrival
-air
/update
"
,
method
:
"
put
"
,
method
:
"
put
"
,
data
,
data
,
});
});
}
}
return
request
({
return
request
({
url
:
"
/ecw/box-arrival/create
"
,
url
:
"
/ecw/box-arrival
-air
/create
"
,
method
:
"
post
"
,
method
:
"
post
"
,
data
,
data
,
});
});
...
...
src/views/ecw/box/editSeaAirForm.vue
0 → 100644
View file @
70a7c6c8
<
template
>
<div
class=
"shippingSea-dialog"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"80px"
>
<el-form-item
label=
"运输方式"
prop=
"transportType"
>
<el-radio-group
v-model=
"form.transportType"
>
<el-radio
v-for=
"dict in transportTypes"
:key=
"dict.value"
:label=
"dict.value"
>
{{
dict
.
label
}}
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
label=
"出货渠道"
prop=
"shippingChannelId"
>
<el-select
v-model=
"form.shippingChannelId"
placeholder=
"请选择出货渠道"
>
<el-option
v-for=
"item in channelList"
:label=
"item.nameZh"
:value=
"item.channelId"
:key=
"item.channelId"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"柜型"
prop=
"cabinetId"
>
<el-select
v-model=
"form.cabinetId"
placeholder=
"请选择柜型"
>
<el-option
v-for=
"item in cabinetList"
:label=
"item.name"
:value=
"item.id"
:key=
"item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"始发地"
prop=
"startWarehouseId"
>
<el-select
v-model=
"form.startWarehouseId"
placeholder=
"请选择始发地"
>
<el-option
v-for=
"item in exportWarehouseList"
:label=
"item.titleZh"
:value=
"item.id"
:key=
"item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"目的地"
prop=
"destWarehouseId"
>
<el-select
v-model=
"form.destWarehouseId"
placeholder=
"请选择目的地"
>
<el-option
v-for=
"item in importWarehouseList"
:label=
"item.titleZh"
:value=
"item.id"
:key=
"item.id"
></el-option>
</el-select>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
</div>
</
template
>
<
script
>
import
{
createbox
,
updatebox
}
from
"
@/api/ecw/box
"
;
import
{
getChannelList
}
from
'
@/api/ecw/channel
'
export
default
{
name
:
"
editForm
"
,
inheritAttrs
:
false
,
props
:
{
transportTypes
:
Array
,
warehouseList
:
Array
,
cabinetList
:
Array
,
shipmentObj
:
Object
,
},
created
()
{
this
.
form
=
{
...
this
.
shipmentObj
};
this
.
getChannelList
()
},
data
()
{
return
{
// 表单参数
form
:
{
transportType
:
'
4
'
},
channelList
:
[],
// 表单校验
rules
:
{
shippingChannelId
:
[
{
required
:
true
,
message
:
'
出货渠道不能为空
'
,
trigger
:
'
blur
'
}
],
cabinetId
:
[
{
required
:
true
,
message
:
'
柜型不能为空
'
,
trigger
:
'
blur
'
}
],
startWarehouseId
:
[
{
required
:
true
,
message
:
'
始发地不能为空
'
,
trigger
:
'
blur
'
}
],
destWarehouseId
:
[
{
required
:
true
,
message
:
'
目的地不能为空
'
,
trigger
:
'
blur
'
}
]
}
};
},
methods
:
{
getChannelList
()
{
getChannelList
().
then
((
res
)
=>
(
this
.
channelList
=
res
.
data
))
},
/** 提交按钮 */
submitForm
()
{
this
.
$refs
[
'
form
'
].
validate
((
valid
)
=>
{
if
(
!
valid
)
{
return
}
this
.
form
.
transportType
=
4
// 修改的提交
if
(
this
.
form
.
id
!=
null
)
{
updatebox
(
this
.
form
).
then
((
response
)
=>
{
this
.
$modal
.
msgSuccess
(
'
修改成功
'
)
this
.
open
=
false
this
.
getList
()
})
return
}
// 添加的提交
createbox
(
this
.
form
).
then
((
response
)
=>
{
this
.
$modal
.
msgSuccess
(
'
新增成功
'
)
this
.
open
=
false
this
.
getList
()
})
})
},
/** 取消按钮 */
cancel
()
{
this
.
$emit
(
"
closeDialog
"
);
},
},
computed
:
{
exportWarehouseList
()
{
return
this
.
warehouseList
.
filter
(
(
item
)
=>
item
.
tradeType
==
"
2
"
||
item
.
type
==
"
3
"
);
},
importWarehouseList
()
{
return
this
.
warehouseList
.
filter
(
(
item
)
=>
item
.
tradeType
==
"
1
"
||
item
.
type
==
"
3
"
);
},
},
};
</
script
>
<
style
lang=
"scss"
>
// 海运操作统一弹窗样式
.shippingSea-dialog
{
// 页面内元素弹窗form控件宽度设置
.el-form-item__content
{
>
div
:not
(
.el-input-number
)
{
width
:
100%
;
}
}
.operate-button
{
text-align
:
center
;
}
.two-element-formItem
{
display
:
flex
;
>
:last-child
{
width
:
100%
;
margin-left
:
10px
;
}
}
.two-element
{
.el-form-item__content
{
display
:
flex
;
>
:last-child
{
margin-left
:
10px
;
}
}
}
}
</
style
>
src/views/ecw/box/indexSeaAir.vue
View file @
70a7c6c8
This diff is collapsed.
Click to expand it.
src/views/ecw/box/shippingSea/nodePage/twoWayArrival.vue
View file @
70a7c6c8
<
template
>
<
template
>
<div>
<div>
<el-form
ref=
"twoWayArrivalForm"
:rules=
"rules"
:model=
"twoWayArrivalObj"
label-width=
"120px"
>
<el-form
ref=
"twoWayArrivalForm"
:rules=
"rules"
:model=
"twoWayArrivalObj"
label-width=
"120px"
>
<el-form-item
label=
"实际到港时间"
prop=
"apRealTime"
>
<el-form-item
label=
"实际到港时间"
prop=
"actTime"
>
<el-date-picker
type=
"datetime"
placeholder=
"请选择日期"
v-model=
"twoWayArrivalObj.apRealTime"
value-format=
"yyyy-MM-dd HH:mm:ss"
></el-date-picker>
<el-date-picker
type=
"datetime"
placeholder=
"请选择日期"
v-model=
"twoWayArrivalObj.actTime"
value-format=
"yyyy-MM-dd HH:mm:ss"
></el-date-picker>
</el-form-item>
<el-form-item
label=
"确认到港时间"
prop=
"apConfirmTime"
>
<el-date-picker
type=
"datetime"
placeholder=
"请选择日期"
v-model=
"twoWayArrivalObj.apConfirmTime"
value-format=
"yyyy-MM-dd HH:mm:ss"
></el-date-picker>
</el-form-item>
<el-form-item
label=
"卸港时间"
prop=
"apUnloadPortTime"
>
<el-date-picker
type=
"datetime"
placeholder=
"请选择日期"
v-model=
"twoWayArrivalObj.apUnloadPortTime"
value-format=
"yyyy-MM-dd HH:mm:ss"
></el-date-picker>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -46,9 +40,7 @@ export default {
...
@@ -46,9 +40,7 @@ export default {
twoWayArrivalObj
:
{},
twoWayArrivalObj
:
{},
// 校验
// 校验
rules
:
{
rules
:
{
actHeadTime
:
[{
required
:
true
,
message
:
"
必填
"
,
trigger
:
"
blur
"
}],
actTime
:
[{
required
:
true
,
message
:
"
必填
"
,
trigger
:
"
blur
"
}]
estHeadTime
:
[{
required
:
true
,
message
:
"
必填
"
,
trigger
:
"
blur
"
}],
estSecondTime
:
[{
required
:
true
,
message
:
"
必填
"
,
trigger
:
"
blur
"
}],
},
},
// 弹窗配置
// 弹窗配置
dialogVisible
:
false
,
dialogVisible
:
false
,
...
@@ -59,9 +51,7 @@ export default {
...
@@ -59,9 +51,7 @@ export default {
created
()
{
created
()
{
const
voName
=
this
.
$attrs
.
currNode
.
voName
;
const
voName
=
this
.
$attrs
.
currNode
.
voName
;
let
oldData
=
{
...
this
.
$attrs
.
shipmentObj
[
voName
]
};
let
oldData
=
{
...
this
.
$attrs
.
shipmentObj
[
voName
]
};
oldData
=
formatDateStr
(
oldData
,
[
"
apConfirmTime
"
],
"
YYYY-MM-DD HH:mm:ss
"
);
oldData
=
formatDateStr
(
oldData
,
[
"
actTime
"
],
"
YYYY-MM-DD HH:mm:ss
"
);
oldData
=
formatDateStr
(
oldData
,
[
"
apRealTime
"
],
"
YYYY-MM-DD HH:mm:ss
"
);
oldData
=
formatDateStr
(
oldData
,
[
"
apUnloadPortTime
"
],
"
YYYY-MM-DD HH:mm:ss
"
);
this
.
twoWayArrivalObj
=
oldData
;
this
.
twoWayArrivalObj
=
oldData
;
},
},
watch
:
{
watch
:
{
...
...
src/views/ecw/box/shippingSea/utils.js
View file @
70a7c6c8
...
@@ -789,7 +789,7 @@ function seaBaseData() {
...
@@ -789,7 +789,7 @@ function seaBaseData() {
/**
/**
* 清关状态:131、未清关;132、已清关
* 清关状态:131、未清关;132、已清关
*/
*/
voName
:
"
arrivalInfo
"
,
voName
:
"
a
irA
rrivalInfo
"
,
keyName
:
"
sapStatus
"
,
keyName
:
"
sapStatus
"
,
status
:
{
status
:
{
start
:
[
151
],
start
:
[
151
],
...
@@ -1172,6 +1172,38 @@ function getColmnMapping() {
...
@@ -1172,6 +1172,38 @@ function getColmnMapping() {
key
:
"
operator
"
,
key
:
"
operator
"
,
},
},
],
],
takeOffInfo
:
[
{
title
:
"
预计头程时间
"
,
key
:
"
estHeadTime
"
,
type
:
"
datetime
"
,
},
{
title
:
"
实际头程时间
"
,
key
:
"
actHeadTime
"
,
type
:
"
datetime
"
,
},
{
title
:
"
预计二程时间
"
,
key
:
"
estSecondTime
"
,
type
:
"
date
"
,
},
{
title
:
"
业务员
"
,
key
:
"
operator
"
,
},
],
airArrivalInfo
:
[
{
title
:
"
实际到港时间
"
,
key
:
"
actTime
"
,
type
:
"
datetime
"
,
},
{
title
:
"
业务员
"
,
key
:
"
operator
"
,
},
],
cabinetUnloadInfo
:
[
cabinetUnloadInfo
:
[
{
{
title
:
"
到仓时间
"
,
title
:
"
到仓时间
"
,
...
...
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