Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
merchant-manage-ui
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
ui
merchant-manage-ui
Commits
255c62e6
Commit
255c62e6
authored
Jun 19, 2023
by
张子雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 解决sentry问题
parent
72b7811b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
42 deletions
+45
-42
index.jsx
...ingDeliveryOrder/components/MultiLogisticsModal/index.jsx
+45
-42
No files found.
src/pages/orderManage/pendingDeliveryOrder/components/MultiLogisticsModal/index.jsx
View file @
255c62e6
...
@@ -248,51 +248,54 @@ const UpdateStatusModal = (props, ref) => {
...
@@ -248,51 +248,54 @@ const UpdateStatusModal = (props, ref) => {
const
onOk
=
async
()
=>
{
const
onOk
=
async
()
=>
{
const
submitApi
=
oldPackageList
.
length
===
0
?
apiDeliveriesAdd
:
apiDeliveriesEdit
;
const
submitApi
=
oldPackageList
.
length
===
0
?
apiDeliveriesAdd
:
apiDeliveriesEdit
;
formRef
.
current
.
form
.
validateFields
().
then
(
async
values
=>
{
formRef
.
current
.
form
const
packageList
=
onFilterParams
(
values
.
packageList
);
.
validateFields
()
.
then
(
async
values
=>
{
const
packageList
=
onFilterParams
(
values
.
packageList
);
// 对比修改差异
// 对比修改差异
oldPackageList
.
forEach
((
item
,
index
)
=>
{
oldPackageList
.
forEach
((
item
,
index
)
=>
{
if
(
!
packageList
[
index
])
return
;
if
(
!
packageList
[
index
])
return
;
const
updateAttr
=
()
=>
{
const
updateAttr
=
()
=>
{
packageList
[
index
].
preExpressCompanyCode
=
item
.
expressCompanyCode
;
packageList
[
index
].
preExpressCompanyCode
=
item
.
expressCompanyCode
;
packageList
[
index
].
preExpressCompanyName
=
item
.
expressCompanyName
;
packageList
[
index
].
preExpressCompanyName
=
item
.
expressCompanyName
;
packageList
[
index
].
preExpressNo
=
item
.
expressNo
;
packageList
[
index
].
preExpressNo
=
item
.
expressNo
;
};
};
// eslint-disable-next-line no-restricted-syntax
// for (const key in item) {
// if (typeof item[key] !== 'object' && item[key] !== packageList[index][key]) {
// console.log('修改了物流信息');
// updateAttr();
// break;
// } else if (
// typeof item[key] === 'object' &&
// JSON.stringify(item[key]) !== JSON.stringify(packageList[index][key])
// ) {
// console.log('修改了选择的商品');
// updateAttr();
// break;
// }
// }
updateAttr
();
});
const
params
=
{
// eslint-disable-next-line no-restricted-syntax
orderNo
:
record
.
orderNo
,
// for (const key in item) {
packageList
,
// if (typeof item[key] !== 'object' && item[key] !== packageList[index][key]) {
};
// console.log('修改了物流信息');
setConfirmLoading
(
true
);
// updateAttr();
const
res
=
await
submitApi
(
params
);
// break;
setConfirmLoading
(
false
);
// } else if (
if
(
res
.
code
===
'
0000
'
&&
res
.
businessCode
===
'
0000
'
)
{
// typeof item[key] === 'object' &&
notification
.
success
({
// JSON.stringify(item[key]) !== JSON.stringify(packageList[index][key])
message
:
'
提交成功
'
,
// ) {
// console.log('修改了选择的商品');
// updateAttr();
// break;
// }
// }
updateAttr
();
});
});
onCancel
();
actionRef
.
current
.
reload
();
const
params
=
{
}
orderNo
:
record
.
orderNo
,
});
packageList
,
};
setConfirmLoading
(
true
);
const
res
=
await
submitApi
(
params
);
setConfirmLoading
(
false
);
if
(
res
.
code
===
'
0000
'
&&
res
.
businessCode
===
'
0000
'
)
{
notification
.
success
({
message
:
'
提交成功
'
,
});
onCancel
();
actionRef
.
current
.
reload
();
}
})
.
catch
(
err
=>
{});
};
};
useImperativeHandle
(
ref
,
()
=>
({
useImperativeHandle
(
ref
,
()
=>
({
...
...
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