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
a1a853fb
Commit
a1a853fb
authored
Aug 22, 2022
by
黄卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
入仓修改
parent
f534d19a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
22 deletions
+54
-22
order.js
src/api/ecw/order.js
+9
-0
editDialog.vue
src/views/ecw/order/warehousing/components/editDialog.vue
+45
-22
No files found.
src/api/ecw/order.js
View file @
a1a853fb
...
...
@@ -163,6 +163,15 @@ export function orderWarehouseIn(data){
})
}
// 入仓
export
function
orderWarehouseInUpdateApply
(
data
){
return
request
({
url
:
'
/order/order-warehouse-in/update-apply
'
,
method
:
'
put
'
,
data
})
}
// 入仓完成
export
function
orderWarehouseInFinish
(
data
){
return
request
({
...
...
src/views/ecw/order/warehousing/components/editDialog.vue
View file @
a1a853fb
...
...
@@ -123,9 +123,10 @@
<
script
>
import
dictSelector
from
"
@/components/DictSelector
"
import
{
DICT_TYPE
,
getDictDataLabel
}
from
"
@/utils/dict
"
import
{
orderWarehouseIn
}
from
"
@/api/ecw/order
"
import
{
orderWarehouseIn
,
orderWarehouseInUpdateApply
}
from
'
@/api/ecw/order
'
import
{
getProductBrankPage
}
from
"
@/api/ecw/productBrank
"
import
WorkFlow
from
"
@/components/WorkFlow
"
import
elSelect
from
'
@/components/render/slots/el-select
'
export
default
{
name
:
'
editDialog
'
,
...
...
@@ -140,6 +141,7 @@ export default {
type
:
Boolean
,
default
:
false
},
// 入仓修改
edit
:
{
type
:
Boolean
,
default
:
false
...
...
@@ -232,27 +234,48 @@ export default {
}
},
handleSubmit
()
{
const
orderWarehouseInItemDoList
=
this
.
form
.
orderWarehouseInItemDoList
.
map
(
e
=>
{
return
{
...
e
,
boxGauge
:
e
.
boxGauge1
+
'
*
'
+
e
.
boxGauge2
+
'
*
'
+
e
.
boxGauge3
}
})
return
orderWarehouseIn
({
...
this
.
form
,
brandType
:
this
.
form
.
brand
?
1
:
0
,
orderId
:
this
.
warehousing
.
orderId
,
orderItemId
:
this
.
warehousing
.
orderItemId
,
orderNo
:
this
.
warehousing
.
orderNo
,
orderWarehouseInItemDoList
}).
then
(
r
=>
{
if
(
r
.
data
){
this
.
$message
.
success
(
'
入仓成功
'
)
this
.
handleClose
()
}
else
{
this
.
$message
.
success
(
'
入仓失败
'
)
}
})
const
orderWarehouseInItemDoList
=
[
...
this
.
warehousing
.
orderWarehouseInBackItemDoList
,
...
this
.
form
.
orderWarehouseInItemDoList
.
map
(
e
=>
{
return
{
...
e
,
boxGauge
:
e
.
boxGauge1
+
'
*
'
+
e
.
boxGauge2
+
'
*
'
+
e
.
boxGauge3
}
})
]
if
(
this
.
edit
)
return
orderWarehouseInUpdateApply
({
...
this
.
form
,
brandType
:
this
.
form
.
brand
?
1
:
0
,
orderId
:
this
.
warehousing
.
orderId
,
orderItemId
:
this
.
warehousing
.
orderItemId
,
orderNo
:
this
.
warehousing
.
orderNo
,
"
orderWarehouseInUpdateItemDoList
"
:
orderWarehouseInItemDoList
,
copyUserId
:
this
.
selectedUsers
}).
then
(
r
=>
{
if
(
r
.
data
){
this
.
$message
.
success
(
'
入仓修改发起成功
'
)
this
.
handleClose
()
}
else
{
this
.
$message
.
success
(
'
入仓修改发起失败
'
)
}
})
else
return
orderWarehouseIn
({
...
this
.
form
,
brandType
:
this
.
form
.
brand
?
1
:
0
,
orderId
:
this
.
warehousing
.
orderId
,
orderItemId
:
this
.
warehousing
.
orderItemId
,
orderNo
:
this
.
warehousing
.
orderNo
,
orderWarehouseInItemDoList
}).
then
(
r
=>
{
if
(
r
.
data
){
this
.
$message
.
success
(
'
入仓成功
'
)
this
.
handleClose
()
}
else
{
this
.
$message
.
success
(
'
入仓失败
'
)
}
})
},
handleClose
()
{
this
.
form
.
orderWarehouseInItemDoList
=
[]
...
...
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