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
6fe38a98
Commit
6fe38a98
authored
Sep 30, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 初始展示领券时间、发券数量
parent
93c97ea3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
+12
-6
index.tsx
...upon/merchantCouponQuery/components/ActionModal/index.tsx
+4
-3
index.tsx
...tCoupon/merchantCouponQuery/components/EditForm/index.tsx
+6
-1
index.tsx
...etingAbility/merchantCoupon/merchantCouponQuery/index.tsx
+2
-2
No files found.
src/pages/transaction/marketingAbility/merchantCoupon/merchantCouponQuery/components/ActionModal/index.tsx
View file @
6fe38a98
...
...
@@ -2,16 +2,16 @@
* @Author: XieZhiXiong
* @Date: 2021-07-02 15:30:48
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-0
7-02 18:03:50
* @LastEditTime: 2021-0
9-30 17:02:09
* @Description: 操作 Modal
*/
import
React
,
{
useRef
}
from
'react'
;
import
{
Modal
}
from
'antd'
;
import
ReasonForm
,
{
ReasonValueType
,
ReasonFormRefHandle
}
from
'../ReasonForm'
;
import
EditForm
,
{
EditSubmitValueType
,
EditFormRefHandle
}
from
'../EditForm'
;
import
EditForm
,
{
EditSubmitValueType
,
EditFormRefHandle
,
EditValueType
}
from
'../EditForm'
;
export
type
ActionModalType
=
'stop'
|
'cancel'
|
'startUp'
|
'edit'
;
export
type
ActionModalValueType
=
{
id
:
number
};
export
type
ActionModalValueType
=
{
id
:
number
}
&
Partial
<
EditValueType
>
;
interface
IProps
{
/**
...
...
@@ -96,6 +96,7 @@ const ActionModal: React.FC<IProps> = (props) => {
render
:
()
=>
(
<
EditForm
onSubmit=
{
handleEditSubmit
}
value=
{
value
}
ref=
{
formRef
}
/>
),
...
...
src/pages/transaction/marketingAbility/merchantCoupon/merchantCouponQuery/components/EditForm/index.tsx
View file @
6fe38a98
...
...
@@ -40,6 +40,10 @@ interface IProps {
* 提交触发事件
*/
onSubmit
:
(
values
:
EditSubmitValueType
)
=>
void
,
/**
* 值
*/
value
:
EditValueType
,
}
export
interface
EditFormRefHandle
{
...
...
@@ -47,7 +51,7 @@ export interface EditFormRefHandle {
}
const
EditForm
:
React
.
ForwardRefRenderFunction
<
EditFormRefHandle
,
IProps
>
=
((
props
,
ref
)
=>
{
const
{
onSubmit
}
=
props
;
const
{
onSubmit
,
value
}
=
props
;
useImperativeHandle
(
ref
,
()
=>
({
submit
:
()
=>
formActions
.
submit
(),
...
...
@@ -70,6 +74,7 @@ const EditForm: React.ForwardRefRenderFunction<EditFormRefHandle, IProps> = ((pr
components=
{
{
DatePicker
,
}
}
value=
{
value
}
effects=
{
(
$
,
{
setFieldState
})
=>
{
}
}
...
...
src/pages/transaction/marketingAbility/merchantCoupon/merchantCouponQuery/index.tsx
View file @
6fe38a98
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-06-22 09:49:42
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-09-
22 13:57:50
* @LastEditTime: 2021-09-
30 17:00:59
* @Description: 商家优惠劵查询
*/
import
React
,
{
useRef
,
useState
}
from
'react'
;
...
...
@@ -177,7 +177,7 @@ const MerchantCouponQuery: React.FC = () => {
{
record
.
update
&&
(
<
Button
type=
"link"
onClick=
{
()
=>
handleShowActionModal
(
'edit'
,
{
id
:
record
.
id
})
}
onClick=
{
()
=>
handleShowActionModal
(
'edit'
,
{
id
:
record
.
id
,
releaseTimeStart
:
moment
(
record
.
releaseTimeStart
).
format
(
'YYYY-MM-DD HH:mm:ss'
),
releaseTimeEnd
:
moment
(
record
.
releaseTimeEnd
).
format
(
'YYYY-MM-DD HH:mm:ss'
),
quantity
:
`${record.quantity}`
})
}
>
修改
</
Button
>
...
...
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