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
09c1572c
Commit
09c1572c
authored
May 18, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拆单重置
parent
864ccc22
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
5 deletions
+32
-5
orderHandle.js
src/api/ecw/orderHandle.js
+9
-1
splitApply.vue
src/views/ecw/order/splitApply.vue
+23
-4
No files found.
src/api/ecw/orderHandle.js
View file @
09c1572c
...
...
@@ -59,7 +59,6 @@ export function deleteSplit(id) {
})
}
//取消申请拆单
export
function
cancelApply
(
data
)
{
return
request
({
url
:
'
/order/split/cancel-apply
'
,
...
...
@@ -137,3 +136,12 @@ export function quantitycheck(query) {
params
:
query
})
}
// 重置拆单
export
function
deleteAllSplit
(
orderId
)
{
return
request
({
url
:
'
/order/split/delete/all
'
,
method
:
'
delete
'
,
params
:
{
orderId
}
})
}
src/views/ecw/order/splitApply.vue
View file @
09c1572c
...
...
@@ -302,7 +302,17 @@
<
script
>
import
{
getDictData
,
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
import
{
getSplitList
,
splitApply
,
createSplit
,
cancelApply
,
createSplitItem
,
deleteSplitItem
,
deleteSplit
,
quantitycheck
}
from
"
@/api/ecw/orderHandle
"
import
{
getSplitList
,
splitApply
,
createSplit
,
cancelApply
,
createSplitItem
,
deleteSplitItem
,
deleteSplit
,
quantitycheck
,
deleteAllSplit
}
from
"
@/api/ecw/orderHandle
"
import
{
getWarehouseList
}
from
'
@/api/ecw/warehouse
'
import
{
getChannelList
}
from
'
@/api/ecw/channel
'
import
WorkFlow
from
'
@/components/WorkFlow
'
...
...
@@ -359,7 +369,7 @@ export default {
quantitySum
:
0
};
},
created
()
{
async
created
()
{
this
.
getChannel
()
getWarehouseList
().
then
(
res
=>
{
this
.
tradeCityList
=
res
.
data
...
...
@@ -368,8 +378,17 @@ export default {
if
(
this
.
$route
.
query
.
orderId
)
{
this
.
queryParams
.
orderId
=
this
.
$route
.
query
.
orderId
}
this
.
getList
()
await
this
.
getList
()
this
.
getOrder
()
console
.
log
(
"
拆单数据
"
,
this
.
splitData
,
this
.
splitData
.
length
)
if
(
this
.
splitData
.
length
){
this
.
$confirm
(
this
.
$t
(
'
已有拆单数据,是否要重置?
'
)).
then
(
res
=>
{
return
deleteAllSplit
(
this
.
queryParams
.
orderId
)
}).
then
(
res
=>
{
this
.
getList
()
this
.
$message
.
success
(
"
重置成功
"
)
})
}
},
watch
:
{
//监听table这个对象
...
...
@@ -459,7 +478,7 @@ export default {
getList
()
{
this
.
loading
=
true
;
// 执行查询
getSplitList
(
this
.
queryParams
).
then
(
response
=>
{
return
getSplitList
(
this
.
queryParams
).
then
(
response
=>
{
this
.
splitData
=
response
.
data
.
orderSplitBackVOList
this
.
orderApprovalBackVO
=
response
.
data
...
...
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