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
ac29c6cc
Commit
ac29c6cc
authored
Jun 18, 2023
by
zhoutong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
装箱暂存
parent
4d1fec92
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
240 additions
and
93 deletions
+240
-93
boxAir.js
src/api/ecw/boxAir.js
+60
-1
indexAir.vue
src/views/ecw/box/indexAir.vue
+7
-1
index.vue
src/views/ecw/box/shippingAir/nodePage/mergePkg/index.vue
+143
-91
pkgPage.vue
src/views/ecw/box/shippingAir/nodePage/mergePkg/pkgPage.vue
+15
-0
unPkgPage.vue
...views/ecw/box/shippingAir/nodePage/mergePkg/unPkgPage.vue
+15
-0
No files found.
src/api/ecw/boxAir.js
View file @
ac29c6cc
...
...
@@ -80,7 +80,7 @@ export function createGoods(data) {
*/
export
function
getMergePkgList
(
params
)
{
return
request
({
url
:
"
/ecw/box-merge-pkg/page
r
"
,
url
:
"
/ecw/box-merge-pkg/page
"
,
method
:
"
get
"
,
params
,
});
...
...
@@ -100,3 +100,62 @@ export function createMergePkg(data) {
data
,
});
}
/**
* 更新合包箱
*
* @export
* @param {*} data
* @return {*}
*/
export
function
updateMergePkg
(
data
)
{
return
request
({
url
:
"
/ecw/box-merge-pkg/update
"
,
method
:
"
put
"
,
data
,
});
}
/**
* 删除合包箱
*
* @export
* @param {*} data
* @return {*}
*/
export
function
deleteMergePkg
(
id
)
{
return
request
({
url
:
`/ecw/box-merge-pkg/delete?id=`
+
id
,
method
:
"
delete
"
,
});
}
/**
* 获得未装箱列表分页
*
* @export
* @param {*} data
* @return {*}
*/
export
function
getUnPkgPage
(
params
)
{
return
request
({
url
:
"
/ecw/box-merge-pkg/getUnPkgPage
"
,
method
:
"
get
"
,
params
,
});
}
/**
* 获得已装箱列表分页
*
* @export
* @param {*} data
* @return {*}
*/
export
function
getPkgPageByPkgId
(
params
)
{
return
request
({
url
:
"
/ecw/box-merge-pkg/getPkgPageByPkgId
"
,
method
:
"
get
"
,
params
,
});
}
\ No newline at end of file
src/views/ecw/box/indexAir.vue
View file @
ac29c6cc
...
...
@@ -168,12 +168,17 @@
<
/template
>
<
script
>
import
{
createbox
,
updatebox
,
deletebox
,
getbox
,
getboxPage
,
exportboxExcel
}
from
'
@/api/ecw/box
'
import
{
deletebox
,
getbox
,
getboxPage
,
exportboxExcel
}
from
'
@/api/ecw/box
'
import
{
getChannelList
}
from
'
@/api/ecw/channel
'
import
{
getWarehouseList
}
from
'
@/api/ecw/warehouse
'
import
costForm
from
'
./costForm.vue
'
import
regError
from
'
./regError.vue
'
import
editAirForm
from
'
./editAirForm.vue
'
import
{
downloadFile
,
downloadFileByUrl
,
formatDate
,
}
from
"
./shippingAir/utils
"
;
export
default
{
name
:
'
indexAir
'
,
...
...
@@ -291,6 +296,7 @@ export default {
this
.
getChannelList
()
}
,
methods
:
{
formatDate
,
getChannelList
()
{
getChannelList
().
then
((
res
)
=>
(
this
.
channelList
=
res
.
data
))
}
,
...
...
src/views/ecw/box/shippingAir/nodePage/mergePkg/index.vue
View file @
ac29c6cc
...
...
@@ -5,123 +5,111 @@
<el-card>
<el-descriptions
:column=
"4"
border
>
<el-descriptions-item
:label=
"$t('自编号')"
>
{{
shipmentObj
.
selfNo
}}
{{
shipmentObj
.
selfNo
}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('运输方式')"
>
<dict-tag
:type=
"DICT_TYPE.ECW_TRANSPORT_TYPE"
:value=
"shipmentObj.transportType"
/>
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('始发地')"
>
{{
getCityName
(
shipmentObj
.
startWarehouseId
)
}}
{{
getCityName
(
shipmentObj
.
startWarehouseId
)
}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('目的地')"
>
{{
getCityName
(
shipmentObj
.
destWarehouseId
)
}}
{{
getCityName
(
shipmentObj
.
destWarehouseId
)
}}
</el-descriptions-item>
</el-descriptions>
</el-card>
<el-row
style=
"margin-top: 15px"
>
<el-row>
<el-button
size=
"small"
type=
"primary"
@
click=
"addMergedialogVisible=true"
>
{{
$t
(
'
创建合箱
'
)
}}
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"
addMergedialogVisible = true
addMergeForm =
{}
mergeTitle = $t('新建合包箱号')
"
>
{{
$t
(
'
新建合包箱号
'
)
}}
</el-button
>
</el-row>
<el-row
style=
"margin-top: 5px"
>
<el-table
border
:data=
"tallyList"
@
select=
"checkboxSelect"
@
select-all=
"checkboxSelect"
max-height=
"600px"
>
<el-table-column
type=
"selection"
align=
"center"
width=
"55"
fixed=
"left"
/>
<el-table
border
:data=
"pagList"
max-height=
"600px"
>
<el-table-column
align=
"center"
:label=
"$t('序号')"
width=
"50"
prop=
"tidanNum"
/>
<el-table-column
:label=
"$t('订单号')"
align=
"center"
prop=
"orderNo"
>
<template
slot-scope=
"scope"
>
<div>
{{
scope
.
row
.
orderNo
}}
</div>
<div
style=
"color:blue;fontWeight:bold;"
>
{{
scope
.
row
.
isExternalWarehouse
===
1
?
(
'
(
'
+
$t
(
'
外部仓
'
)
+
'
)
'
)
:
''
}}
</div>
<div
style=
"color:red;fontWeight:bold;"
>
{{
scope
.
row
.
adjustToDestWarehouseId
>
0
?
(
'
(
'
+
$t
(
'
调仓
'
)
+
'
)
'
)
:
''
}}
</div>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('商品信息')"
width=
"250px"
align=
"center"
prop=
""
>
<
template
slot-scope=
"{row}"
>
{{
$l
(
row
,
'
prodTitle
'
)
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('备案')"
align=
"center"
prop=
"feeType"
>
<
template
slot-scope=
"{row}"
>
<template
v-if=
"row.brandName"
>
{{
row
.
brandName
}}
</
template
>
<dict-tag
v-else
:type=
"DICT_TYPE.ECW_IS_BRAND"
:value=
"row.feeType"
/>
</template>
</el-table-column>
<el-table-column
:label=
"$t('报关方式')"
align=
"center"
prop=
"customsType"
>
<
template
slot-scope=
"scope"
>
<div
:class=
"scope.row.customsType !== 1 ? 'custom_type_red' : ''"
>
<dict-tag
:type=
"DICT_TYPE.ECW_CUSTOMS_TYPE"
:value=
"scope.row.customsType"
/>
</div>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('箱数')"
align=
"center"
prop=
"warehouseInInfo.cartonsNum"
>
<
template
slot-scope=
"scope"
>
<el-link
type=
"primary"
@
click.native=
"showWarehouseLogs(scope.row)"
>
{{
scope
.
row
.
warehouseInInfo
.
cartonsNum
}}
</el-link>
<div
style=
"color:blue;fontWeight:bold;"
>
{{
scope
.
row
.
multiSpecification
===
true
?
'
(多规格)
'
:
''
}}
</div>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('纸箱尺寸')"
align=
"center"
prop=
"warehouseInInfo.boxGauge"
>
</el-table-column>
<el-table-column
:label=
"$t('体积')"
align=
"center"
prop=
"warehouseInInfo.volume"
>
</el-table-column>
<el-table-column
:label=
"$t('重量')"
align=
"center"
prop=
"warehouseInInfo.weight"
>
</el-table-column>
<el-table-column
:label=
"$t('数量(个)')"
align=
"center"
prop=
"quantity"
></el-table-column>
<el-table-column
:label=
"$t('储位')"
align=
"center"
prop=
"positionNo"
width=
"250px"
>
<
template
slot-scope=
"scope"
>
{{
notset
(
scope
.
row
.
positionNo
)
}}
</
template
>
<el-table-column
:label=
"$t('箱号')"
align=
"center"
prop=
"pkgNum"
/>
<el-table-column
:label=
"$t('尺寸')"
width=
"250px"
align=
"center"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
pkgLength
}}
*
{{
scope
.
row
.
pkgWidth
}}
*
{{
scope
.
row
.
pkgHight
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('订单数')"
width=
"250px"
align=
"center"
prop=
"orderCount"
/>
<el-table-column
:label=
"$t('箱数')"
width=
"250px"
align=
"center"
prop=
"sumCount"
/>
<el-table-column
:label=
"$t('入仓体积')"
width=
"250px"
align=
"center"
prop=
"sumVolume"
/>
<el-table-column
:label=
"$t('入仓重量')"
align=
"center"
prop=
"sumWeight"
/>
<el-table-column
:label=
"$t('入仓数量(个)')"
align=
"center"
prop=
"sumQuantity"
/>
<el-table-column
:label=
"$t('状态')"
align=
"center"
prop=
"tallyStatus"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
tallyStatus
===
1
?
$t
(
'
已理货
'
)
:
$t
(
'
未理货
'
)
}}
{{
statusData
[
scope
.
row
.
status
]
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('
理货时间')"
align=
"center"
prop=
"tallyTime
"
>
<el-table-column
:label=
"$t('
创建时间')"
align=
"center
"
>
<
template
slot-scope=
"scope"
>
{{
formatDate
(
scope
.
row
.
tallyTime
,
'
YYYY-MM-DD HH:mm:ss
'
)
}}
{{
formatDate
(
scope
.
row
.
createTime
,
'
YYYY-MM-DD HH:mm:ss
'
)
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('操作')"
align=
"center"
width=
"
160"
class-name=
"small-padding fixed-width"
fixed=
"right
"
>
<el-table-column
:label=
"$t('操作')"
align=
"center"
width=
"
260"
class-name=
"small-padding fixed-width
"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"text"
size=
"small"
@
click=
"tallyClick('single',scope.row)"
>
{{
$t
(
'
理货
'
)
}}
</el-button>
<el-button
type=
"text"
size=
"small"
@
click=
"removeClick('single',scope.row)"
>
{{
$t
(
'
移出
'
)
}}
</el-button>
<el-button
v-if=
"scope.row.status == 1"
type=
"text"
size=
"small"
@
click=
"editMerge(scope.row)"
>
{{
$t
(
'
编辑
'
)
}}
</el-button>
<el-button
type=
"text"
size=
"small"
@
click=
"pkgPage(scope.row)"
>
{{
$t
(
'
装箱
'
)
}}
</el-button>
<el-button
v-if=
"scope.row.status != 2"
type=
"text"
size=
"small"
@
click=
"deleteMerge(scope.row.id)"
>
{{
$t
(
'
删除
'
)
}}
</el-button>
<el-button
type=
"text"
size=
"small"
@
click=
"removeClick('single', scope.row)"
>
{{
$t
(
'
打印标签
'
)
}}
</el-button>
</
template
>
</el-table-column>
</el-table>
</el-row>
</el-row>
<el-dialog
custom-class=
"shipping-dialog"
:title=
"$t('生成箱号')"
:visible.sync=
"addMergedialogVisible"
width=
"550px"
:modal-append-to-body=
"false"
append-to-body
>
<!-- 新增合包箱 -->
<el-dialog
:title=
"mergeTitle"
:visible.sync=
"addMergedialogVisible"
width=
"700px"
:modal-append-to-body=
"false"
append-to-body
>
<el-form
ref=
"addMergeForm"
:model=
"addMergeForm"
label-width=
"100px"
>
<el-form-item
:label=
"$t('数量')"
prop=
"num"
:rules=
"[
{ required: true, message: this.$t('数量不能为空'), trigger: 'blur' }
]"
>
<el-form-item
:label=
"$t('箱号')"
prop=
"pkgNum"
>
{{ !isMergeEdit ? '自动生成' : addMergeForm.pkgNum }}
</el-form-item>
<el-form-item
v-if=
"!isMergeEdit"
:label=
"$t('数量')"
prop=
"num"
:rules=
"[{ required: true, message: this.$t('数量不能为空'), trigger: 'blur' }]"
>
<el-input-number
v-model=
"addMergeForm.num"
:controls=
"false"
:min=
"1"
:precision=
"0"
/>
</el-form-item>
<el-row>
<el-col
:span=
"8"
>
<el-form-item
:label=
"$t('长')"
prop=
"pkgLength"
>
<el-input-number
v-model=
"addMergeForm.pkgLength"
:controls=
"false"
:precision=
"2
"
/>
<el-input-number
v-model=
"addMergeForm.pkgLength"
:controls=
"false"
:precision=
"2"
style=
"width: 100px
"
/>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
:label=
"$t('宽')"
prop=
"pkgWidth"
>
<el-input-number
v-model=
"addMergeForm.pkgWidth"
:controls=
"false"
:precision=
"2
"
/>
<el-input-number
v-model=
"addMergeForm.pkgWidth"
:controls=
"false"
:precision=
"2"
style=
"width: 100px
"
/>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
:label=
"$t('高')"
prop=
"pkgHight"
>
<el-input-number
v-model=
"addMergeForm.pkgHight"
:controls=
"false"
:precision=
"2
"
/>
<el-input-number
v-model=
"addMergeForm.pkgHight"
:controls=
"false"
:precision=
"2"
style=
"width: 100px
"
/>
</el-form-item>
</el-col>
</el-row>
</el-form>
<el-button
size=
"small"
type=
"primary"
@
click=
"addMerge"
>
{{$t('确定')}}
</el-button>
<div
style=
"text-align: center"
>
<el-button
size=
"small"
type=
"primary"
@
click=
"addMerge"
>
{{ $t('确定') }}
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"addMergedialogVisible = false"
>
{{ $t('取消') }}
</el-button>
</div>
</el-dialog>
<!-- 装箱 -->
<el-dialog
:title=
"pkgPageTitle"
:visible.sync=
"pkgPagedialogVisible"
:fullscreen=
"true"
:modal-append-to-body=
"false"
append-to-body
>
<el-radio-group
v-model=
"pkgPageType"
>
<el-radio-button
:label=
"1"
>
{{$t('未装箱列表')}}
</el-radio-button>
<el-radio-button
:label=
"2"
>
{{$t('已装箱列表')}}
</el-radio-button>
</el-radio-group>
<un-pkg-page
v-if=
"pkgPageType == 1"
/>
<pkg-page
v-if=
"pkgPageType == 2"
/>
</el-dialog>
<el-row
style=
"margin-top: 15px"
class=
"operate-button"
>
<el-button
size=
"small"
type=
"primary"
@
click=
"
tallyFinish"
>
{{$t('完成理货')
}}
</el-button>
<el-button
size=
"small"
@
click=
"
cancel"
>
{{$t('取消')
}}
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"
finish"
>
{{ $t('完成')
}}
</el-button>
<el-button
size=
"small"
@
click=
"
$emit('closeDialog')"
>
{{ $t('取消')
}}
</el-button>
</el-row>
</el-col>
</el-row>
...
...
@@ -129,31 +117,64 @@
</template>
<
script
>
import
{
getMergePkgList
,
createMergePkg
}
from
"
@/api/ecw/boxAir
"
import
{
getMergePkgList
,
createMergePkg
,
updateMergePkg
,
deleteMergePkg
}
from
'
@/api/ecw/boxAir
'
import
{
formatDate
,
serviceMsg
}
from
'
../../utils
'
import
unPkgPage
from
'
./unPkgPage.vue
'
import
PkgPage
from
'
./pkgPage.vue
'
export
default
{
components
:
{
unPkgPage
,
PkgPage
},
data
()
{
return
{
pagList
:
[],
statusData
:
[
''
,
'
未装箱
'
,
'
装箱中
'
,
'
已封箱
'
],
// 查询参数
queryParams
:
{
page
:
1
,
rows
:
10
,
shipmentId
:
this
.
$attrs
.
shipmentObj
.
id
},
// 出货信息
shipmentObj
:
this
.
$attrs
.
shipmentObj
,
addMergedialogVisible
:
false
,
addMergeForm
:
{}
addMergeForm
:
{},
mergeTitle
:
''
,
isMergeEdit
:
false
,
pkgPageType
:
1
,
pkgPageTitle
:
''
,
pkgPagedialogVisible
:
false
}
},
created
()
{
this
.
getList
()
;
this
.
getList
()
},
computed
:
{
/* 获取仓库 */
getCityName
()
{
return
(
id
)
=>
{
let
arr
=
this
.
$attrs
.
warehouseList
.
filter
((
item
)
=>
item
.
id
==
id
)
;
return
arr
.
length
>
0
?
this
.
$l
(
arr
[
0
],
"
title
"
)
:
this
.
$t
(
"
无
"
);
}
;
}
,
let
arr
=
this
.
$attrs
.
warehouseList
.
filter
((
item
)
=>
item
.
id
==
id
)
return
arr
.
length
>
0
?
this
.
$l
(
arr
[
0
],
'
title
'
)
:
this
.
$t
(
'
无
'
)
}
}
},
methods
:
{
getList
(){
getMergePkgList
()
formatDate
,
getList
()
{
getMergePkgList
(
this
.
queryParams
).
then
((
res
)
=>
{
this
.
pagList
=
res
.
data
.
list
})
},
editMerge
(
row
)
{
this
.
mergeTitle
=
this
.
$t
(
'
编辑合包箱号
'
)
this
.
isMergeEdit
=
true
this
.
addMergedialogVisible
=
true
this
.
addMergeForm
.
pkgNum
=
row
.
pkgNum
this
.
addMergeForm
.
pkgLength
=
row
.
pkgLength
this
.
addMergeForm
.
pkgWidth
=
row
.
pkgWidth
this
.
addMergeForm
.
pkgHight
=
row
.
pkgHight
this
.
addMergeForm
.
id
=
row
.
id
},
addMerge
()
{
this
.
$refs
[
'
addMergeForm
'
].
validate
((
valid
)
=>
{
...
...
@@ -161,9 +182,40 @@ export default {
return
}
this
.
addMergeForm
.
shipmentId
=
this
.
$attrs
.
shipmentObj
.
id
createMergePkg
(
this
.
addMergeForm
)
if
(
!
this
.
addMergeForm
.
id
)
{
createMergePkg
(
this
.
addMergeForm
).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
addMergedialogVisible
=
false
this
.
getList
()
})
})
}
else
{
updateMergePkg
(
this
.
addMergeForm
).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
addMergedialogVisible
=
false
this
.
getList
()
})
})
}
})
},
deleteMerge
(
id
)
{
this
.
$modal
.
confirm
(
this
.
$t
(
'
是否确认删除?
'
))
.
then
(
function
()
{
return
deleteMergePkg
(
id
)
})
.
then
(()
=>
{
this
.
getList
()
this
.
$modal
.
msgSuccess
(
this
.
$t
(
'
删除成功
'
))
})
.
catch
(()
=>
{})
},
pkgPage
(
row
)
{
this
.
pkgPagedialogVisible
=
true
this
.
pkgPageTitle
=
this
.
$t
(
'
合包箱号:
'
)
+
row
.
pkgNum
},
finish
()
{}
}
}
</
script
>
...
...
src/views/ecw/box/shippingAir/nodePage/mergePkg/pkgPage.vue
0 → 100644
View file @
ac29c6cc
<
template
>
<div>
22
</div>
</
template
>
<
script
>
export
default
{
}
</
script
>
<
style
>
</
style
>
\ No newline at end of file
src/views/ecw/box/shippingAir/nodePage/mergePkg/unPkgPage.vue
0 → 100644
View file @
ac29c6cc
<
template
>
<div>
11
</div>
</
template
>
<
script
>
export
default
{
}
</
script
>
<
style
>
</
style
>
\ No newline at end of file
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