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
356567e2
Commit
356567e2
authored
Feb 27, 2024
by
zhoutong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
海运/空运 箱数加弹窗
parent
235469cd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
207 additions
and
10 deletions
+207
-10
startUnloading.vue
...ecw/box/shippingAir/nodePage/unloading/startUnloading.vue
+103
-6
startUnloading.vue
...ecw/box/shippingSea/nodePage/unloading/startUnloading.vue
+104
-4
No files found.
src/views/ecw/box/shippingAir/nodePage/unloading/startUnloading.vue
View file @
356567e2
...
...
@@ -52,8 +52,13 @@
<el-table-column
:label=
"$t('序号')"
align=
"center"
width=
"50"
prop=
"tidanNum"
/>
<el-table-column
:label=
"$t('订单号')"
align=
"center"
prop=
"orderNo"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
orderNo
}}
</
template
>
<div>
<a
href=
"javascript:void(0);"
class=
"order-href"
@
click=
"orderClick(scope.row)"
>
{{
scope
.
row
.
orderNo
}}
</a>
</div>
<div
style=
"color:blue;fontWeight:bold;"
>
{{
scope
.
row
.
isExternalWarehouse
===
1
?
'
(
'
+
$t
(
'
外部仓
'
)
+
'
)
'
:
''
}}
</div>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('商品信息')"
align=
"center"
prop=
"goodsList"
width=
"200px"
>
<
template
slot-scope=
"scope"
>
...
...
@@ -73,8 +78,26 @@
</div>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('实装箱数')"
align=
"center"
prop=
"installNum"
/>
<el-table-column
:label=
"$t('到仓箱数')"
align=
"center"
prop=
"unloadNum"
/>
<el-table-column
:label=
"$t('实装箱数')"
align=
"center"
prop=
"installNum"
>
<
template
slot-scope=
"scope"
>
<div>
<a
href=
"javascript:void(0);"
class=
"order-href"
@
click=
"orderClick(scope.row)"
>
{{
scope
.
row
.
installNum
}}
</a>
</div>
<div
style=
"color:blue;fontWeight:bold;"
>
{{
scope
.
row
.
isExternalWarehouse
===
1
?
'
(
'
+
$t
(
'
外部仓
'
)
+
'
)
'
:
''
}}
</div>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('到仓箱数')"
align=
"center"
prop=
"unloadNum"
>
<
template
slot-scope=
"scope"
>
<div>
<a
href=
"javascript:void(0);"
class=
"order-href"
@
click=
"orderClick(scope.row)"
>
{{
scope
.
row
.
unloadNum
}}
</a>
</div>
<div
style=
"color:blue;fontWeight:bold;"
>
{{
scope
.
row
.
isExternalWarehouse
===
1
?
'
(
'
+
$t
(
'
外部仓
'
)
+
'
)
'
:
''
}}
</div>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('清关状态')"
align=
"center"
prop=
""
>
<
template
slot-scope=
"scope"
>
{{
clearStatus
(
scope
.
row
)
}}
</
template
>
</el-table-column>
...
...
@@ -141,7 +164,14 @@
</el-row>
<!-- 对话框 -->
<el-dialog
custom-class=
"shipping-dialog"
:title=
"$t('异常')"
:visible.sync=
"dialogVisible"
width=
"600px"
:modal-append-to-body=
false
append-to-body
>
<el-dialog
custom-class=
"shipping-dialog"
:title=
"dialogConfig.title"
:visible.sync=
"dialogConfig.dialogVisible"
:fullscreen=
"dialogConfig.fullscreen"
:width=
"dialogConfig.width"
:modal-append-to-body=
false
append-to-body
>
<!-- 已装未装订单 -->
<
template
v-if=
"dialogConfig.type === 'orderTable'"
>
<el-table
:data=
"orderList"
height=
"500px"
border
>
<el-table-column
:label=
"$t('已到')"
align=
"center"
prop=
"loadTag"
/>
<el-table-column
:label=
"$t('未到')"
align=
"center"
prop=
"unloadTag"
/>
</el-table>
</
template
>
<unloadingError
v-if=
"dialogVisible"
@
closeDialog=
"closeDialog"
v-bind=
"$attrs"
:currRow=
"currRow"
/>
</el-dialog>
</div>
...
...
@@ -153,6 +183,7 @@ import {
loadGoodsList
,
airBatchUnload
,
airAllUnload
,
orderTagList
,
approvalCreate
,
approvalCancel
,
getSectionList
,
...
...
@@ -180,8 +211,17 @@ export default {
loading
:
false
,
// 页面数据
pageData
:
{},
// 弹窗配置
// 弹窗配置
dialogConfig
:
{
title
:
""
,
dialogVisible
:
false
,
width
:
"
30%
"
,
type
:
""
,
fullscreen
:
false
,
},
dialogVisible
:
false
,
// 已装/未装
orderList
:
[],
// 自编号
selfNo
:
this
.
$attrs
.
shipmentObj
.
selfNo
,
// 当前行
...
...
@@ -247,6 +287,63 @@ export default {
this
.
pageData
=
data
;
this
.
loading
=
false
;
});
},
/** 表格订单号点击 */
orderClick
(
row
)
{
orderTagList
({
orderId
:
row
.
orderId
}).
then
((
res
)
=>
{
const
{
data
=
{}
}
=
res
;
this
.
orderList
=
[];
// 取最长的list
let
dataLength
=
data
.
loadList
.
length
;
if
(
data
.
unLoadList
.
length
>
dataLength
)
{
dataLength
=
data
.
unLoadList
.
length
;
}
// 组装数据,用一个table组件渲染
for
(
let
index
=
0
;
index
<
dataLength
;
index
++
)
{
this
.
orderList
.
push
({
loadTag
:
data
.
loadList
[
index
],
unloadTag
:
data
.
unLoadList
[
index
],
});
}
});
this
.
shwoDialog
({
type
:
"
orderTable
"
,
title
:
row
.
selfNo
,
});
},
/** 弹窗事件 */
shwoDialog
(
config
)
{
this
.
$set
(
this
.
dialogConfig
,
"
title
"
,
config
.
title
);
this
.
$set
(
this
.
dialogConfig
,
"
type
"
,
config
.
type
);
switch
(
config
.
type
)
{
case
"
orderTable
"
:
this
.
$set
(
this
.
dialogConfig
,
"
fullscreen
"
,
false
);
break
;
case
"
supplementOrder
"
:
this
.
$set
(
this
.
dialogConfig
,
"
fullscreen
"
,
true
);
break
;
case
"
batchInput
"
:
this
.
$set
(
this
.
dialogConfig
,
"
fullscreen
"
,
false
);
this
.
batchObj
=
{
boxNum
:
0
};
this
.
boxOrderInfo
=
{};
break
;
case
"
correction
"
:
this
.
$set
(
this
.
dialogConfig
,
"
fullscreen
"
,
false
);
this
.
correctionObj
=
{};
break
;
case
"
correctionOrder
"
:
this
.
$set
(
this
.
dialogConfig
,
"
fullscreen
"
,
false
);
this
.
orderObj
=
{};
break
;
case
"
modifyCabinet
"
:
this
.
$set
(
this
.
dialogConfig
,
"
fullscreen
"
,
false
);
this
.
modifyCabinetObj
=
{};
this
.
$set
(
this
.
modifyCabinetObj
,
'
cabinetId
'
,
this
.
shipmentObj
.
cabinetId
)
this
.
$set
(
this
.
modifyCabinetObj
,
'
cubNo
'
,
this
.
shipmentObj
.
cubNo
)
break
;
}
this
.
$set
(
this
.
dialogConfig
,
"
dialogVisible
"
,
true
);
},
/* 单个卸柜 */
modifyUnload
()
{
...
...
src/views/ecw/box/shippingSea/nodePage/unloading/startUnloading.vue
View file @
356567e2
...
...
@@ -34,7 +34,12 @@
<el-table-column
:label=
"$t('序号')"
align=
"center"
width=
"50"
prop=
"tidanNum"
/>
<el-table-column
:label=
"$t('订单号')"
align=
"center"
prop=
"orderNo"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
orderNo
}}
<div>
<a
href=
"javascript:void(0);"
class=
"order-href"
@
click=
"orderClick(scope.row)"
>
{{
scope
.
row
.
orderNo
}}
</a>
</div>
<div
style=
"color:blue;fontWeight:bold;"
>
{{
scope
.
row
.
isExternalWarehouse
===
1
?
'
(
'
+
$t
(
'
外部仓
'
)
+
'
)
'
:
''
}}
</div>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('商品信息')"
align=
"center"
prop=
"goodsList"
width=
"200px"
>
...
...
@@ -55,8 +60,26 @@
</div>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('实装箱数')"
align=
"center"
prop=
"installNum"
/>
<el-table-column
:label=
"$t('卸柜箱数')"
align=
"center"
prop=
"unloadNum"
/>
<el-table-column
:label=
"$t('实装箱数')"
align=
"center"
prop=
"installNum"
>
<
template
slot-scope=
"scope"
>
<div>
<a
href=
"javascript:void(0);"
class=
"order-href"
@
click=
"orderClick(scope.row)"
>
{{
scope
.
row
.
installNum
}}
</a>
</div>
<div
style=
"color:blue;fontWeight:bold;"
>
{{
scope
.
row
.
isExternalWarehouse
===
1
?
'
(
'
+
$t
(
'
外部仓
'
)
+
'
)
'
:
''
}}
</div>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('卸柜箱数')"
align=
"center"
prop=
"unloadNum"
>
<
template
slot-scope=
"scope"
>
<div>
<a
href=
"javascript:void(0);"
class=
"order-href"
@
click=
"orderClick(scope.row)"
>
{{
scope
.
row
.
unloadNum
}}
</a>
</div>
<div
style=
"color:blue;fontWeight:bold;"
>
{{
scope
.
row
.
isExternalWarehouse
===
1
?
'
(
'
+
$t
(
'
外部仓
'
)
+
'
)
'
:
''
}}
</div>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('清关状态')"
align=
"center"
prop=
""
>
<
template
slot-scope=
"scope"
>
{{
clearStatus
(
scope
.
row
)
}}
</
template
>
</el-table-column>
...
...
@@ -120,7 +143,13 @@
</el-row>
<!-- 对话框 -->
<el-dialog
custom-class=
"shipping-dialog"
:title=
"$t('异常')"
:visible.sync=
"dialogVisible"
width=
"600px"
:modal-append-to-body=
false
append-to-body
>
<el-dialog
custom-class=
"shipping-dialog"
:title=
"dialogConfig.title"
:visible.sync=
"dialogConfig.dialogVisible"
:fullscreen=
"dialogConfig.fullscreen"
:width=
"dialogConfig.width"
:modal-append-to-body=
false
append-to-body
>
<
template
v-if=
"dialogConfig.type === 'orderTable'"
>
<el-table
:data=
"orderList"
height=
"500px"
border
>
<el-table-column
:label=
"$t('已卸')"
align=
"center"
prop=
"loadTag"
/>
<el-table-column
:label=
"$t('未卸')"
align=
"center"
prop=
"unloadTag"
/>
</el-table>
</
template
>
<unloadingError
v-if=
"dialogVisible"
@
closeDialog=
"closeDialog"
v-bind=
"$attrs"
:currRow=
"currRow"
/>
</el-dialog>
</div>
...
...
@@ -131,6 +160,7 @@ import unloadingError from "./unloadingError.vue";
import
{
loadGoodsList
,
batchUnload
,
orderTagList
,
allUnload
,
approvalCreate
,
approvalCancel
,
...
...
@@ -168,6 +198,16 @@ export default {
sectionList
:
[],
// 已选部分
sectionId
:
"
0
"
,
// 已卸/未卸
orderList
:
[],
// 弹窗配置
dialogConfig
:
{
title
:
""
,
dialogVisible
:
false
,
width
:
"
30%
"
,
type
:
""
,
fullscreen
:
false
,
},
// 部分订单商品
sectionObj
:
{
secStatistics
:
{},
...
...
@@ -272,10 +312,70 @@ export default {
this
.
cancel
();
});
});
},
/** 表格订单号点击 */
orderClick
(
row
)
{
orderTagList
({
orderId
:
row
.
orderId
}).
then
((
res
)
=>
{
const
{
data
=
{}
}
=
res
;
this
.
orderList
=
[];
// 取最长的list
let
dataLength
=
data
.
loadList
.
length
;
if
(
data
.
unLoadList
.
length
>
dataLength
)
{
dataLength
=
data
.
unLoadList
.
length
;
}
// 组装数据,用一个table组件渲染
for
(
let
index
=
0
;
index
<
dataLength
;
index
++
)
{
this
.
orderList
.
push
({
loadTag
:
data
.
loadList
[
index
],
unloadTag
:
data
.
unLoadList
[
index
],
});
}
});
this
.
shwoDialog
({
type
:
"
orderTable
"
,
title
:
row
.
selfNo
,
});
},
/** 取消 */
cancel
()
{
this
.
$emit
(
"
closeStart
"
,
"
submit
"
);
},
/** 弹窗事件 */
shwoDialog
(
config
)
{
this
.
$set
(
this
.
dialogConfig
,
"
title
"
,
config
.
title
);
this
.
$set
(
this
.
dialogConfig
,
"
type
"
,
config
.
type
);
switch
(
config
.
type
)
{
case
"
orderTable
"
:
this
.
$set
(
this
.
dialogConfig
,
"
fullscreen
"
,
false
);
break
;
case
"
supplementOrder
"
:
this
.
$set
(
this
.
dialogConfig
,
"
fullscreen
"
,
true
);
break
;
case
"
batchInput
"
:
this
.
$set
(
this
.
dialogConfig
,
"
fullscreen
"
,
false
);
this
.
batchObj
=
{
boxNum
:
0
};
this
.
boxOrderInfo
=
{};
break
;
case
"
correction
"
:
this
.
$set
(
this
.
dialogConfig
,
"
fullscreen
"
,
false
);
this
.
correctionObj
=
{};
break
;
case
"
correctionOrder
"
:
this
.
$set
(
this
.
dialogConfig
,
"
fullscreen
"
,
false
);
this
.
orderObj
=
{};
break
;
case
"
modifyCabinet
"
:
this
.
$set
(
this
.
dialogConfig
,
"
fullscreen
"
,
false
);
this
.
modifyCabinetObj
=
{};
this
.
$set
(
this
.
modifyCabinetObj
,
'
cabinetId
'
,
this
.
shipmentObj
.
cabinetId
)
this
.
$set
(
this
.
modifyCabinetObj
,
'
cubNo
'
,
this
.
shipmentObj
.
cubNo
)
break
;
case
"
splitOrder
"
:
this
.
$set
(
this
.
dialogConfig
,
"
fullscreen
"
,
true
);
break
;
}
this
.
$set
(
this
.
dialogConfig
,
"
dialogVisible
"
,
true
);
},
/* 关闭弹窗 */
closeDialog
(
type
)
{
...
...
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