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
3f2e44dd
Commit
3f2e44dd
authored
Dec 23, 2022
by
huyufeng
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
9338d05c
84cd6097
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
10 deletions
+39
-10
order.js
src/api/ecw/order.js
+11
-0
index.vue
src/views/ecw/order/warehousing/index.vue
+28
-10
No files found.
src/api/ecw/order.js
View file @
3f2e44dd
...
...
@@ -181,6 +181,17 @@ export function orderWarehouseInUpdateLabel(data){
})
}
// 根据订单id获取标签箱号列表
export
function
getLabelByOrder
(
orderId
){
return
request
({
url
:
'
/order/order-warehouse-in/get-label-by-order
'
,
method
:
'
get
'
,
params
:
{
orderId
}
})
}
// 入仓修改储位
export
function
saveOrUpdateOrderLocation
(
data
){
return
request
({
...
...
src/views/ecw/order/warehousing/index.vue
View file @
3f2e44dd
...
...
@@ -102,9 +102,9 @@
<el-button
icon=
"el-icon-minus"
circle
v-show=
"index !== 0"
@
click=
"label.orderLabelDtoList.splice(index, 1)"
style=
"margin-left: 10px"
></el-button>
<el-button
icon=
"el-icon-plus"
circle
@
click=
"handleLabelAdd(index)"
></el-button>
</div>
<div
style=
"text-align: center"
>
<el-button
type=
"primary"
@
click=
"handleLabelSubmit"
>
{{$t('修改箱号')}}
</el-button
>
</div
>
<!-- <div style="text-align: center">--
>
<!-- <el-button type="primary" @click="handleLabelSubmit">{{$t('修改箱号')}}</el-button>--
>
<!-- </div>--
>
</el-card>
<h2
v-if=
"orderSpecialNeeds.length > 0"
>
{{$t('特殊需求')}}
</h2>
...
...
@@ -194,6 +194,7 @@
<
script
>
import
{
getCurrencyList
}
from
"
@/api/ecw/currency
"
import
{
getLabelByOrder
,
getOrder
,
getOrderWarehouseIn
,
getSpecialListByOrderId
,
listByOrderId
,
...
...
@@ -293,13 +294,22 @@ export default {
return
arr
.
indexOf
(
state
)
==
-
1
}
},
handleLabelSubmit
(){
orderWarehouseInUpdateLabel
({
...
this
.
label
,
orderId
:
this
.
orderId
}).
then
(
r
=>
{
if
(
r
.
code
===
0
){
this
.
$message
.
success
(
r
.
msg
||
this
.
$t
(
'
修改标签箱号成功
'
))
// handleLabelSubmit(){
// orderWarehouseInUpdateLabel({
// ...this.label,
// orderId: this.orderId
// }).then(r => {
// if (r.code === 0){
// this.$message.success(r.msg || this.$t('修改标签箱号成功'))
// }
// })
// },
// 箱号标签回显
getLabelByOrder
(){
getLabelByOrder
(
this
.
orderId
).
then
(
r
=>
{
if
(
r
.
code
===
0
&&
!!
r
.
data
&&
r
.
data
.
length
>
0
)
{
this
.
label
.
orderLabelDtoList
=
r
.
data
}
})
},
...
...
@@ -323,6 +333,8 @@ export default {
return
getOrder
(
this
.
orderId
).
then
(
r
=>
{
this
.
order
=
r
.
data
this
.
getTowSum
()
}).
then
(()
=>
{
this
.
getLabelByOrder
()
})
},
specialHas0
(){
...
...
@@ -353,6 +365,12 @@ export default {
sumVolume
:
this
.
form
.
sumVolume
,
sumWeight
:
this
.
form
.
sumWeight
}
// 标签箱号
if
(
this
.
order
.
parentOrderId
)
{
form
.
labelList
=
this
.
label
.
orderLabelDtoList
||
[]
}
if
(
this
.
escapeBol
)
{
form
.
exceptionUrls
=
this
.
form
.
exceptionUrls
.
split
(
'
,
'
);
form
.
descZh
=
this
.
form
.
descZh
;
...
...
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