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
1dc993bf
Commit
1dc993bf
authored
Jun 02, 2022
by
张子雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 去掉2.1代码
parent
2389e6ce
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1 addition
and
105 deletions
+1
-105
index.jsx
src/pages/AfterSaleManage/PassAudit/index.jsx
+0
-14
index.jsx
src/pages/AfterSaleManage/Pending/index.jsx
+1
-34
recordModal.jsx
src/pages/AfterSaleManage/components/recordModal.jsx
+0
-40
data.js
src/pages/AfterSaleManage/data.js
+0
-9
services.js
src/pages/AfterSaleManage/services.js
+0
-8
No files found.
src/pages/AfterSaleManage/PassAudit/index.jsx
View file @
1dc993bf
...
...
@@ -9,7 +9,6 @@ import DetailTable from '../components/detailTable';
import
ProofsModal
from
'
../components/proofsModal
'
;
import
LogisticsCom
from
'
../../orderManage/pendingDeliveryOrder/components/LogisticsCom
'
;
import
AppealDetail
from
'
../../afterSale/components/detail
'
;
import
RecordModal
from
'
../components/recordModal
'
;
export
default
()
=>
{
const
table
=
useRef
();
...
...
@@ -23,7 +22,6 @@ export default () => {
const
[
LogisticsComModalVisible
,
handleComModalVisible
]
=
useState
(
false
);
const
[
appealDetailModal
,
setAppealDetailModal
]
=
useState
(
false
);
const
[
selectedRow
,
setSelectedRow
]
=
useState
({});
const
[
recordVisible
,
setRecordVisible
]
=
useState
(
false
);
const
viewDetail
=
async
({
serviceNo
})
=>
{
const
data
=
await
orderDetail
({
serviceNo
});
setDetailInfo
(
data
||
[]);
...
...
@@ -87,9 +85,6 @@ export default () => {
setAppealDetailModal
(
true
);
setSelectedRow
(
detailData
);
};
const
recordDetail
=
()
=>
{
setRecordVisible
(
true
);
};
const
columns
=
[
...
columnPassAudit
,
{
...
...
@@ -152,9 +147,6 @@ export default () => {
>
查看物流
</
Button
>,
<
Button
key=
"link"
className=
"mr10 mt10"
onClick=
{
()
=>
recordDetail
(
r
)
}
type=
"primary"
>
查看记录
</
Button
>,
],
},
];
...
...
@@ -191,12 +183,6 @@ export default () => {
modalVisible=
{
appealDetailModal
}
onCancel=
{
closeModal
}
></
AppealDetail
>
<
RecordModal
visible=
{
recordVisible
}
onCancel=
{
()
=>
{
setRecordVisible
(
false
);
}
}
></
RecordModal
>
</
div
>
);
};
src/pages/AfterSaleManage/Pending/index.jsx
View file @
1dc993bf
...
...
@@ -3,14 +3,13 @@ import { notification, Button, Popconfirm } from 'antd';
import
ProTable
from
'
@ant-design/pro-table
'
;
import
moment
from
'
moment
'
;
import
_
from
'
lodash
'
;
import
{
searchList
,
auditInfoApi
,
orderDetail
,
logisticsIntercept
}
from
'
../services
'
;
import
{
searchList
,
auditInfoApi
,
orderDetail
}
from
'
../services
'
;
import
{
columnSticData
,
appealType
}
from
'
../data
'
;
import
AuditModal
from
'
../components/auditModal
'
;
import
DetailTable
from
'
../components/detailTable
'
;
import
ProofsModal
from
'
../components/proofsModal
'
;
import
{
getDetail
}
from
'
../../afterSale/appeal/services
'
;
import
AppealDetail
from
'
../../afterSale/components/detail
'
;
import
RecordModal
from
'
../components/recordModal
'
;
export
default
()
=>
{
const
table
=
useRef
();
...
...
@@ -24,7 +23,6 @@ export default () => {
const
[
selectedRow
,
setSelectedRow
]
=
useState
({});
const
[
timeString
,
setTimeString
]
=
useState
({});
const
[
time
,
setTime
]
=
useState
({});
const
[
recordVisible
,
setRecordVisible
]
=
useState
(
false
);
const
viewDetail
=
async
({
serviceNo
})
=>
{
const
data
=
await
orderDetail
({
serviceNo
});
setDetailInfo
(
data
||
[]);
...
...
@@ -91,17 +89,6 @@ export default () => {
},
1000
);
}
};
const
logistics
=
async
info
=>
{
const
[
data
]
=
await
logisticsIntercept
({
serviceNo
:
info
.
serviceNo
});
if
(
data
)
{
notification
.
success
({
message
:
'
操作成功
'
});
// eslint-disable-next-line no-unused-expressions
table
.
current
?.
reload
?.();
}
};
const
recordDetail
=
()
=>
{
setRecordVisible
(
true
);
};
const
columns
=
[
{
title
:
'
审核倒计时
'
,
...
...
@@ -153,23 +140,9 @@ export default () => {
<
Button
key=
"link1"
onClick=
{
()
=>
openAudit
(
r
)
}
className=
"mr10"
type=
"primary"
>
审核
</
Button
>,
<
Popconfirm
title=
"请在48小时内完成物流包裹,确认是否需要进行物流拦截?"
onConfirm=
{
()
=>
logistics
(
r
)
}
okText=
"确认"
cancelText=
"取消"
key=
"pop"
>
<
Button
key=
"link1"
className=
"mr10"
type=
"primary"
>
物流拦截
</
Button
>
</
Popconfirm
>,
<
Button
key=
"link"
onClick=
{
()
=>
viewDetail
(
r
)
}
type=
"primary"
>
订单详情
</
Button
>,
<
Button
key=
"link"
onClick=
{
()
=>
recordDetail
(
r
)
}
type=
"primary"
>
查看记录
</
Button
>,
],
},
];
...
...
@@ -199,12 +172,6 @@ export default () => {
modalVisible=
{
appealDetailModal
}
onCancel=
{
closeModal
}
></
AppealDetail
>
<
RecordModal
visible=
{
recordVisible
}
onCancel=
{
()
=>
{
setRecordVisible
(
false
);
}
}
></
RecordModal
>
</
div
>
);
};
src/pages/AfterSaleManage/components/recordModal.jsx
deleted
100644 → 0
View file @
2389e6ce
import
{
Modal
,
Timeline
}
from
'
antd
'
;
import
React
,
{
Component
}
from
'
react
'
;
class
RecordModal
extends
Component
{
state
=
{};
onCancel
=
()
=>
{
this
.
props
.
onCancel
();
};
render
()
{
const
{
visible
,
data
}
=
this
.
props
;
return
(
<
Modal
title=
"查看记录"
visible=
{
visible
}
onCancel=
{
()
=>
this
.
onCancel
()
}
footer=
{
null
}
width=
"500px"
>
{
data
?.
length
?
data
.
map
((
item
,
index
)
=>
(
// eslint-disable-next-line react/no-array-index-key
<
Timeline
key=
{
`${index}${item.title}`
}
>
{
item
.
detailList
?.
map
((
log
,
i
)
=>
(
// eslint-disable-next-line react/no-array-index-key
<
Timeline
.
Item
color=
{
i
>
0
?
'
gray
'
:
'
blue
'
}
key=
{
i
}
>
<
p
>
{
log
.
desc
}
</
p
>
<
p
>
{
log
.
logisticsTime
}
</
p
>
</
Timeline
.
Item
>
))
}
</
Timeline
>
))
:
'
暂无记录
'
}
</
Modal
>
);
}
}
export
default
RecordModal
;
src/pages/AfterSaleManage/data.js
View file @
1dc993bf
...
...
@@ -54,15 +54,6 @@ export const columnSticData = [
},
width
:
100
,
},
{
title
:
'
售后类型
'
,
dataIndex
:
'
serviceType
'
,
hideInTable
:
true
,
valueEnum
:
{
1
:
'
仅退款
'
,
2
:
'
退货退款
'
,
},
},
{
title
:
'
收货人姓名
'
,
dataIndex
:
'
receiverName
'
,
...
...
src/pages/AfterSaleManage/services.js
View file @
1dc993bf
...
...
@@ -82,11 +82,3 @@ export async function trackInfo(params) {
}
return
{};
}
// 商户操作物流拦截
export
async
function
logisticsIntercept
(
params
)
{
return
request
.
get
(
'
/api/kdsp/op/afs/shop/logisticsIntercept
'
,
{
params
,
prefix
:
kdspApi
,
});
}
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