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
864ccc22
Commit
864ccc22
authored
May 18, 2023
by
zhoutong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理移出的一些bug
parent
a31b61be
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
117 additions
and
23 deletions
+117
-23
request.js
src/utils/request.js
+1
-0
startPacking.vue
...ews/ecw/box/shippingSea/nodePage/cabinet/startPacking.vue
+11
-6
supplementOrder.vue
.../ecw/box/shippingSea/nodePage/cabinet/supplementOrder.vue
+83
-5
preinstall.vue
src/views/ecw/box/shippingSea/nodePage/preinstall.vue
+11
-6
index.vue
src/views/ecw/box/shippingSea/nodePage/tally/index.vue
+11
-6
No files found.
src/utils/request.js
View file @
864ccc22
...
...
@@ -87,6 +87,7 @@ service.interceptors.response.use(res => {
return
Promise
.
reject
(
'
无效的会话,或者会话已过期,请重新登录。
'
)
}
else
if
(
code
===
500
)
{
Message
({
dangerouslyUseHTMLString
:
true
,
message
:
msg
,
type
:
'
error
'
})
...
...
src/views/ecw/box/shippingSea/nodePage/cabinet/startPacking.vue
View file @
864ccc22
...
...
@@ -538,7 +538,10 @@ export default {
}).
catch
((
res
)
=>
{
if
(
res
.
code
===
666
)
{
this
.
$confirm
(
res
.
msg
+
this
.
$t
(
'
是否需要一起移出?
'
),
this
.
$t
(
"
提示
"
),
{
type
:
"
warning
"
,
dangerouslyUseHTMLString
:
true
,
distinguishCancelAndClose
:
true
,
confirmButtonText
:
'
确定移出
'
,
cancelButtonText
:
'
仅移出当前订单
'
})
.
then
((
_
)
=>
{
remove
({
...
params
,
deleteType
:
2
}).
then
((
res
)
=>
{
...
...
@@ -547,12 +550,14 @@ export default {
});
});
})
.
catch
((
_
)
=>
{
remove
({
...
params
,
deleteType
:
1
}).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
getLoadSecGoodsList
();
.
catch
(
action
=>
{
if
(
action
==
'
cancel
'
){
remove
({
...
params
,
deleteType
:
1
}).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
getLoadSecGoodsList
();
});
});
}
);
}
});
}
});
...
...
src/views/ecw/box/shippingSea/nodePage/cabinet/supplementOrder.vue
View file @
864ccc22
...
...
@@ -246,6 +246,31 @@ export default {
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
getSecGoods
();
});
}).
catch
((
res
)
=>
{
if
(
res
.
code
===
666
)
{
this
.
$confirm
(
res
.
msg
+
this
.
$t
(
'
是否需要一起移出?
'
),
this
.
$t
(
"
提示
"
),
{
dangerouslyUseHTMLString
:
true
,
distinguishCancelAndClose
:
true
,
confirmButtonText
:
'
确定移出
'
,
cancelButtonText
:
'
仅移出当前订单
'
})
.
then
((
_
)
=>
{
remove
({
...
params
,
deleteType
:
2
}).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
getSecGoods
();
});
});
})
.
catch
(
action
=>
{
if
(
action
==
'
cancel
'
){
remove
({
...
params
,
deleteType
:
1
}).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
getSecGoods
();
});
});
}
});
}
});
},
/** 预装 */
...
...
@@ -262,11 +287,64 @@ export default {
}
else
{
params
.
orderItemIdList
=
[
item
.
orderItemId
];
}
createGoods
(
params
).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
queryAllData
();
});
});
createGoods
(
params
)
.
then
((
res
)
=>
{
const
{
data
}
=
res
;
if
(
data
.
relationMsg
)
{
const
msg
=
data
.
relationMsg
.
replaceAll
(
"
,
"
,
"
,
"
);
this
.
$confirm
(
msg
,
this
.
$t
(
"
提示
"
),
{
type
:
"
warning
"
,
})
.
then
((
_
)
=>
{
loadRelationOrder
(
data
).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
queryAllData
();
});
});
})
.
catch
((
_
)
=>
{
this
.
queryAllData
();
});
}
else
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
queryAllData
();
});
}
})
.
catch
((
res
)
=>
{
if
(
res
.
code
===
555
)
{
const
msg
=
res
.
msg
&&
res
.
msg
.
replaceAll
(
"
,
"
,
"
,
"
);
this
.
$confirm
(
msg
,
this
.
$t
(
"
提示
"
),
{
type
:
"
warning
"
,
})
.
then
((
_
)
=>
{
createGoods
({
...
params
,
relationStatus
:
1
}).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
queryAllData
();
});
});
})
.
catch
((
_
)
=>
{
this
.
queryAllData
();
});
}
if
(
res
.
code
===
566
)
{
this
.
$confirm
(
res
.
msg
+
this
.
$t
(
'
是否需要一起预装?
'
),
this
.
$t
(
"
提示
"
),
{
type
:
"
warning
"
,
})
.
then
((
_
)
=>
{
createGoods
({
...
params
,
relationStatus
:
2
}).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
queryAllData
();
});
});
})
.
catch
((
_
)
=>
{
this
.
queryAllData
();
});
}
});
},
/* 增加部分 */
addPart
()
{
...
...
src/views/ecw/box/shippingSea/nodePage/preinstall.vue
View file @
864ccc22
...
...
@@ -747,7 +747,10 @@ export default {
}
).
catch
((
res
)
=>
{
if
(
res
.
code
===
666
)
{
this
.
$confirm
(
res
.
msg
+
this
.
$t
(
'
是否需要一起移出?
'
),
this
.
$t
(
"
提示
"
),
{
type
:
"
warning
"
,
dangerouslyUseHTMLString
:
true
,
distinguishCancelAndClose
:
true
,
confirmButtonText
:
'
确定移出
'
,
cancelButtonText
:
'
仅移出当前订单
'
}
)
.
then
((
_
)
=>
{
deleteGoods
({
...
param
,
deleteType
:
2
}
).
then
((
res
)
=>
{
...
...
@@ -756,12 +759,14 @@ export default {
}
);
}
);
}
)
.
catch
((
_
)
=>
{
deleteGoods
({
...
param
,
deleteType
:
1
}
).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
queryAllData
();
.
catch
(
action
=>
{
if
(
action
==
'
cancel
'
){
deleteGoods
({
...
param
,
deleteType
:
1
}
).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
queryAllData
();
}
);
}
);
}
);
}
}
);
}
}
);
...
...
src/views/ecw/box/shippingSea/nodePage/tally/index.vue
View file @
864ccc22
...
...
@@ -251,7 +251,10 @@ export default {
}).
catch
((
res
)
=>
{
if
(
res
.
code
===
666
)
{
this
.
$confirm
(
res
.
msg
+
this
.
$t
(
'
是否需要一起移出?
'
),
this
.
$t
(
"
提示
"
),
{
type
:
"
warning
"
,
dangerouslyUseHTMLString
:
true
,
distinguishCancelAndClose
:
true
,
confirmButtonText
:
'
确定移出
'
,
cancelButtonText
:
'
仅移出当前订单
'
})
.
then
((
_
)
=>
{
tallyRemove
({
...
param
,
deleteType
:
2
}).
then
((
res
)
=>
{
...
...
@@ -260,12 +263,14 @@ export default {
});
});
})
.
catch
((
_
)
=>
{
tallyRemove
({
...
param
,
deleteType
:
1
}).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
getList
();
.
catch
(
action
=>
{
if
(
action
==
'
cancel
'
){
tallyRemove
({
...
param
,
deleteType
:
1
}).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
getList
();
});
});
}
);
}
});
}
});
...
...
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