Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
黄庭坚
jinfa-platform
Commits
349d6e62
Commit
349d6e62
authored
Dec 20, 2021
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:
parent
fd7ad619
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
index.tsx
...ges/transaction/purchaseOrder/readyDelevedOrder/index.tsx
+16
-2
index.tsx
src/pages/transaction/saleOrder/index.tsx
+1
-1
No files found.
src/pages/transaction/purchaseOrder/readyDelevedOrder/index.tsx
View file @
349d6e62
import
React
,
{
useState
}
from
'react'
import
{
Card
,
message
}
from
'antd'
import
{
Card
,
message
,
Modal
}
from
'antd'
import
{
StandardTable
}
from
'god'
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
import
{
useSelfTable
}
from
'./model/useSelfTable'
...
...
@@ -38,6 +38,7 @@ const ReadyDelevedOrder:React.FC<ReadyDelevedOrderProps> = () => {
{
id
:
2
,
name
:
intl
.
formatMessage
({
id
:
'purchaseOrder.showDataSourceName2'
})},
{
id
:
3
,
name
:
intl
.
formatMessage
({
id
:
'purchaseOrder.showDataSourceName3'
})},
])
const
[
shareVisible
,
setShareVisible
]
=
useState
<
boolean
>
(
false
)
// 售后唤起弹窗
const
handleSaleAfter
=
({
orderId
,
orderType
})
=>
{
...
...
@@ -89,6 +90,11 @@ const ReadyDelevedOrder:React.FC<ReadyDelevedOrderProps> = () => {
}
}
const
inviteParticipiteActivity
=
(
record
)
=>
{
console
.
log
(
record
)
setShareVisible
(
true
)
}
/** 参照后台数据生成 */
const
renderOptionButton
=
(
record
:
any
)
=>
{
const
buttonGroup
=
{
...
...
@@ -98,7 +104,7 @@ const ReadyDelevedOrder:React.FC<ReadyDelevedOrderProps> = () => {
const
operationHandler
=
{
[
intl
.
formatMessage
({
id
:
'purchaseOrder.operation2'
})]:
()
=>
handleSaleAfter
(
record
),
[
intl
.
formatMessage
({
id
:
'purchaseOrder.operation5'
})]:
()
=>
{}
,
[
intl
.
formatMessage
({
id
:
'purchaseOrder.operation5'
})]:
()
=>
inviteParticipiteActivity
(
record
)
,
}
return
(
...
...
@@ -146,6 +152,14 @@ const ReadyDelevedOrder:React.FC<ReadyDelevedOrderProps> = () => {
onCancel=
{
()
=>
setSaleVisible
(
false
)
}
onClickItem=
{
(
id
)
=>
setCheckedId
(
id
)
}
/>
<
Modal
title=
"生成分享链接"
visible=
{
shareVisible
}
onCancel=
{
()
=>
setShareVisible
(
false
)
}
footer=
{
null
}
>
分享链接
</
Modal
>
</
PageHeaderWrapper
>
}
...
...
src/pages/transaction/saleOrder/index.tsx
View file @
349d6e62
...
...
@@ -557,7 +557,7 @@ const SaleOrder: React.FC<SaleOrderProps> = () => {
>
<
div
>
<
div
style=
{
{
marginBottom
:
10
}
}
>
<
p
>
{
intl
.
formatMessage
({
id
:
'saleOrder.xuanzeleixin'
,
defaultMessage
:
'选择类型:'
})
}
选择类型:
</
p
>
<
p
>
{
intl
.
formatMessage
({
id
:
'saleOrder.xuanzeleixin'
,
defaultMessage
:
'选择类型:'
})
}
</
p
>
<
Radio
.
Group
onChange=
{
onChangePayModel
}
value=
{
payModel
}
>
<
Radio
value=
'web'
>
WEB
</
Radio
>
<
Radio
value=
'app'
>
APP
</
Radio
>
...
...
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