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
b6438373
Commit
b6438373
authored
Mar 30, 2024
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善海运卸柜和空运到仓
parent
eb666c55
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
134 additions
and
9 deletions
+134
-9
startUnloading.vue
...ecw/box/shippingAir/nodePage/unloading/startUnloading.vue
+116
-4
startUnloading.vue
...ecw/box/shippingSea/nodePage/unloading/startUnloading.vue
+18
-5
No files found.
src/views/ecw/box/shippingAir/nodePage/unloading/startUnloading.vue
View file @
b6438373
...
...
@@ -46,9 +46,34 @@
</p>
</el-row>
<el-row>
<el-form
inline
>
<el-form-item
:label=
"$t('订单号')"
>
<el-input
v-model=
"queryParams.orderNo"
:placeholder=
"$t('请输入订单号')"
clearable
></el-input>
</el-form-item>
<el-form-item
:label=
"$t('始发仓')"
>
<el-select
v-model=
"queryParams.startWarehouseIds"
:placeholder=
"$t('请选择始发仓')"
clearable
multiple
>
<el-option
v-for=
"item in exportWarehouseList"
:label=
"$l(item, 'title')"
:value=
"$l(item, 'title')"
:key=
"item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('目的仓')"
>
<el-select
v-model=
"queryParams.destWarehouseIds"
:placeholder=
"$t('请选择目的仓')"
clearable
multiple
>
<el-option
v-for=
"item in importWarehouseList"
:label=
"$l(item, 'title')"
:value=
"$l(item, 'title')"
:key=
"item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('订单状态')"
>
<dict-selector
:type=
"DICT_TYPE.ORDER_STATUS"
v-model=
"queryParams.status"
:filter=
"statusDictFilter"
clearable
/>
</el-form-item>
<el-form-item>
<el-button
@
click=
"batchUnLoad"
:disabled=
"!multipleSelection.length"
>
{{
$t
(
'
选中订单一键卸柜
'
)
}}
</el-button>
</el-form-item>
</el-form>
</el-row>
<!-- 表格 -->
<el-row
class=
"table-area"
>
<el-table
v-loading=
"loading"
:data=
"pageData.sectionOrderList"
border
max-height=
"500px"
>
<el-table
v-loading=
"loading"
:data=
"filteredOrderList"
border
max-height=
"500px"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
:label=
"$t('序号')"
align=
"center"
width=
"50"
prop=
"tidanNum"
/>
<el-table-column
:label=
"$t('订单号')"
align=
"center"
prop=
"orderNo"
>
<template
slot-scope=
"scope"
>
...
...
@@ -177,6 +202,11 @@
<el-dialog
custom-class=
"shipping-dialog"
:title=
"$t('异常')"
:visible.sync=
"dialogVisible"
width=
"600px"
:modal-append-to-body=
false
append-to-body
>
<unloadingError
v-if=
"dialogVisible"
@
closeDialog=
"closeDialog"
v-bind=
"$attrs"
:currRow=
"currRow"
/>
</el-dialog>
<el-dialog
:title=
"$t('批量卸柜选中订单')"
:visible=
"batchUnloading"
:before-close=
"handleCloseBatchUnloading"
append-to-body
>
<
template
v-for=
"item in batchLogs"
>
<div>
{{
item
}}
</div>
</
template
>
</el-dialog>
</div>
</template>
...
...
@@ -196,6 +226,8 @@ import {
import
{
serviceMsg
,
getTotlContent
,
toReviewDetail
}
from
"
../../utils
"
;
import
WorkFlow
from
"
@/components/WorkFlow
"
;
import
Decimal
from
"
decimal.js
"
;
import
{
getWarehouseList
}
from
'
@/api/ecw/warehouse
'
import
Template
from
'
@/views/cms/template/index.vue
'
/**
* 开始卸柜
...
...
@@ -203,7 +235,7 @@ import Decimal from "decimal.js";
export
default
{
name
:
"
startUnloading
"
,
inheritAttrs
:
false
,
components
:
{
unloadingError
,
WorkFlow
},
components
:
{
Template
,
unloadingError
,
WorkFlow
},
data
()
{
return
{
// 标签号
...
...
@@ -241,10 +273,25 @@ export default {
},
selectedUsers
:
[],
sectionOrderList
:
[],
ulWarehouseTime
:
null
ulWarehouseTime
:
null
,
warehouseList
:[],
// 筛选参数
queryParams
:{
orderNo
:
''
,
startWarehouseIds
:[],
destWarehouseIds
:[],
status
:
null
},
// 表格选中的
multipleSelection
:
[],
// 是否正在批量卸柜
batchUnloading
:
false
,
// 批量操作的日志
batchLogs
:[]
};
},
created
()
{
getWarehouseList
().
then
(
res
=>
this
.
warehouseList
=
res
.
data
)
this
.
getLoadGoodsList
();
// 部分
getSectionList
({
shipmentId
:
this
.
$attrs
.
shipmentObj
.
id
}).
then
((
res
)
=>
{
...
...
@@ -407,7 +454,7 @@ export default {
}
else
{
this
.
$message
.
error
(
this
.
$t
(
"
货物到仓数小于实装数,请确认
"
));
}
},
/** 取消 */
cancel
(
type
)
{
...
...
@@ -485,8 +532,73 @@ export default {
toReviewDetail
.
apply
(
this
,
[
cabinetUnloadApprovalInfo
.
bpmProcessId
]);
this
.
$emit
(
"
closeStart
"
,
"
close
"
);
},
// 表格多选
handleSelectionChange
(
selection
)
{
console
.
log
({
selection
})
this
.
multipleSelection
=
selection
},
async
batchUnLoad
(){
if
(
!
this
.
multipleSelection
?.
length
){
return
this
.
$message
(
this
.
$t
(
'
请先选择订单
'
))
}
if
(
!
this
.
ulWarehouseTime
){
return
this
.
$message
(
this
.
$t
(
'
请选择卸柜时间
'
))
}
console
.
log
(
'
批量卸柜
'
)
this
.
batchUnloading
=
true
this
.
batchLogs
=
[]
for
(
const
item
of
this
.
multipleSelection
){
if
(
!
this
.
batchUnloading
)
break
;
const
time
=
new
Date
()
const
timeStr
=
[
time
.
getHours
(),
time
.
getMinutes
(),
time
.
getSeconds
()].
map
(
item
=>
item
.
toString
().
padStart
(
2
,
'
0
'
)).
join
(
'
:
'
)
await
airBatchUnload
({
orderNo
:
item
.
orderNo
,
shipmentId
:
this
.
$attrs
.
shipmentObj
.
id
,
unloadTime
:
this
.
ulWarehouseTime
}).
then
((
res
)
=>
{
this
.
batchLogs
.
push
(
`
${
timeStr
}
订单号:
${
item
.
orderNo
}
卸柜成功`
)
}).
catch
((
err
)
=>
{
this
.
batchLogs
.
push
(
`
${
timeStr
}
订单号:
${
item
.
orderNo
}
卸柜失败`
+
JSON
.
stringify
(
err
))
});
}
this
.
batchLogs
.
push
(
"
批量卸柜完成
"
)
this
.
getLoadGoodsList
();
},
handleCloseBatchUnloading
(){
this
.
batchUnloading
=
false
},
// 过滤订单状态筛选字典内容
statusDictFilter
(
item
){
if
(
item
.
cssClass
&&
item
.
cssClass
!=
'
air
'
){
return
false
}
return
true
},
},
computed
:
{
exportWarehouseList
(){
/* tradeType 1 进口,2出口,3进出口 */
return
this
.
warehouseList
.
filter
(
item
=>
item
.
tradeType
==
2
||
item
.
tradeType
==
3
)
},
importWarehouseList
(){
return
this
.
warehouseList
.
filter
(
item
=>
item
.
tradeType
==
1
||
item
.
tradeType
==
3
)
},
filteredOrderList
(){
if
(
!
this
.
pageData
?.
sectionOrderList
?.
length
)
return
[]
return
this
.
pageData
.
sectionOrderList
.
filter
((
item
)
=>
{
if
(
this
.
queryParams
.
orderNo
&&
item
.
orderNo
.
indexOf
(
this
.
queryParams
.
orderNo
)
==
-
1
)
return
false
if
(
this
.
queryParams
.
startWarehouseIds
?.
length
&&
this
.
queryParams
.
startWarehouseIds
.
indexOf
(
item
.
startWarehouseName
)
===
-
1
){
return
false
}
if
(
this
.
queryParams
.
destWarehouseIds
?.
length
&&
this
.
queryParams
.
destWarehouseIds
.
indexOf
(
item
.
destWarehouseName
)
===
-
1
){
return
false
}
if
(
this
.
queryParams
.
status
&&
this
.
queryParams
.
status
!=
item
.
status
){
return
false
}
return
true
})
},
/* 是否审核中 */
isUnderReview
()
{
const
{
currNode
,
shipmentObj
}
=
this
.
$attrs
;
...
...
src/views/ecw/box/shippingSea/nodePage/unloading/startUnloading.vue
View file @
b6438373
...
...
@@ -32,7 +32,7 @@
<el-row>
<el-form
inline
>
<el-form-item
:label=
"$t('订单号')"
>
<el-input
v-model=
"queryParams.orderNo"
:placeholder=
"$t('请输入订单号')"
></el-input>
<el-input
v-model=
"queryParams.orderNo"
:placeholder=
"$t('请输入订单号')"
clearable
></el-input>
</el-form-item>
<el-form-item
:label=
"$t('始发仓')"
>
<el-select
v-model=
"queryParams.startWarehouseIds"
:placeholder=
"$t('请选择始发仓')"
clearable
multiple
>
...
...
@@ -44,6 +44,9 @@
<el-option
v-for=
"item in importWarehouseList"
:label=
"$l(item, 'title')"
:value=
"$l(item, 'title')"
:key=
"item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('订单状态')"
>
<dict-selector
:type=
"DICT_TYPE.ORDER_STATUS"
v-model=
"queryParams.status"
:filter=
"statusDictFilter"
clearable
/>
</el-form-item>
<el-form-item>
<el-button
@
click=
"batchUnLoad"
:disabled=
"!multipleSelection.length"
>
{{
$t
(
'
选中订单一键卸柜
'
)
}}
</el-button>
</el-form-item>
...
...
@@ -256,7 +259,8 @@ export default {
queryParams
:{
orderNo
:
''
,
startWarehouseIds
:[],
destWarehouseIds
:[]
destWarehouseIds
:[],
status
:
null
},
// 表格选中的
multipleSelection
:
[],
...
...
@@ -517,7 +521,6 @@ export default {
if
(
!
this
.
batchUnloading
)
break
;
const
time
=
new
Date
()
const
timeStr
=
[
time
.
getHours
(),
time
.
getMinutes
(),
time
.
getSeconds
()].
map
(
item
=>
item
.
toString
().
padStart
(
2
,
'
0
'
)).
join
(
'
:
'
)
this
.
batchLogs
.
push
(
`
${
timeStr
}
订单号:
${
item
.
orderNo
}
正在卸柜`
)
await
batchUnload
({
orderNo
:
item
.
orderNo
,
shipmentId
:
this
.
$attrs
.
shipmentObj
.
id
,
...
...
@@ -533,7 +536,14 @@ export default {
},
handleCloseBatchUnloading
(){
this
.
batchUnloading
=
false
}
},
// 过滤订单状态筛选字典内容
statusDictFilter
(
item
){
if
(
item
.
cssClass
&&
item
.
cssClass
!=
'
sea
'
){
return
false
}
return
true
},
},
computed
:
{
exportWarehouseList
(){
...
...
@@ -546,13 +556,16 @@ export default {
filteredOrderList
(){
if
(
!
this
.
pageData
?.
sectionOrderList
?.
length
)
return
[]
return
this
.
pageData
.
sectionOrderList
.
filter
((
item
)
=>
{
if
(
this
.
queryParams
.
orderNo
&&
this
.
queryParams
.
orderNo
!=
item
.
orderNo
)
return
false
if
(
this
.
queryParams
.
orderNo
&&
item
.
orderNo
.
indexOf
(
this
.
queryParams
.
orderNo
)
==
-
1
)
return
false
if
(
this
.
queryParams
.
startWarehouseIds
?.
length
&&
this
.
queryParams
.
startWarehouseIds
.
indexOf
(
item
.
startWarehouseName
)
===
-
1
){
return
false
}
if
(
this
.
queryParams
.
destWarehouseIds
?.
length
&&
this
.
queryParams
.
destWarehouseIds
.
indexOf
(
item
.
destWarehouseName
)
===
-
1
){
return
false
}
if
(
this
.
queryParams
.
status
&&
this
.
queryParams
.
status
!=
item
.
status
){
return
false
}
return
true
})
},
...
...
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