Commit 349d6e62 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix:

parent fd7ad619
import React, { useState } from 'react' import React, { useState } from 'react'
import { Card, message } from 'antd' import { Card, message, Modal } from 'antd'
import { StandardTable } from 'god' import { StandardTable } from 'god'
import { PageHeaderWrapper } from '@ant-design/pro-layout' import { PageHeaderWrapper } from '@ant-design/pro-layout'
import { useSelfTable } from './model/useSelfTable' import { useSelfTable } from './model/useSelfTable'
...@@ -38,6 +38,7 @@ const ReadyDelevedOrder:React.FC<ReadyDelevedOrderProps> = () => { ...@@ -38,6 +38,7 @@ const ReadyDelevedOrder:React.FC<ReadyDelevedOrderProps> = () => {
{ id: 2, name: intl.formatMessage({ id: 'purchaseOrder.showDataSourceName2' })}, { id: 2, name: intl.formatMessage({ id: 'purchaseOrder.showDataSourceName2' })},
{ id: 3, name: intl.formatMessage({ id: 'purchaseOrder.showDataSourceName3' })}, { id: 3, name: intl.formatMessage({ id: 'purchaseOrder.showDataSourceName3' })},
]) ])
const [shareVisible, setShareVisible] = useState<boolean>(false)
// 售后唤起弹窗 // 售后唤起弹窗
const handleSaleAfter = ({ orderId, orderType }) => { const handleSaleAfter = ({ orderId, orderType }) => {
...@@ -89,6 +90,11 @@ const ReadyDelevedOrder:React.FC<ReadyDelevedOrderProps> = () => { ...@@ -89,6 +90,11 @@ const ReadyDelevedOrder:React.FC<ReadyDelevedOrderProps> = () => {
} }
} }
const inviteParticipiteActivity = (record) => {
console.log(record)
setShareVisible(true)
}
/** 参照后台数据生成 */ /** 参照后台数据生成 */
const renderOptionButton = (record: any) => { const renderOptionButton = (record: any) => {
const buttonGroup = { const buttonGroup = {
...@@ -98,7 +104,7 @@ const ReadyDelevedOrder:React.FC<ReadyDelevedOrderProps> = () => { ...@@ -98,7 +104,7 @@ const ReadyDelevedOrder:React.FC<ReadyDelevedOrderProps> = () => {
const operationHandler = { const operationHandler = {
[intl.formatMessage({id: 'purchaseOrder.operation2'})]: () => handleSaleAfter(record), [intl.formatMessage({id: 'purchaseOrder.operation2'})]: () => handleSaleAfter(record),
[intl.formatMessage({id: 'purchaseOrder.operation5'})]: () => {}, [intl.formatMessage({id: 'purchaseOrder.operation5'})]: () => inviteParticipiteActivity(record),
} }
return ( return (
...@@ -146,6 +152,14 @@ const ReadyDelevedOrder:React.FC<ReadyDelevedOrderProps> = () => { ...@@ -146,6 +152,14 @@ const ReadyDelevedOrder:React.FC<ReadyDelevedOrderProps> = () => {
onCancel={()=>setSaleVisible(false)} onCancel={()=>setSaleVisible(false)}
onClickItem={(id) => setCheckedId(id)} onClickItem={(id) => setCheckedId(id)}
/> />
<Modal
title="生成分享链接"
visible={shareVisible}
onCancel={()=>setShareVisible(false)}
footer={null}
>
分享链接
</Modal>
</PageHeaderWrapper> </PageHeaderWrapper>
} }
......
...@@ -557,7 +557,7 @@ const SaleOrder: React.FC<SaleOrderProps> = () => { ...@@ -557,7 +557,7 @@ const SaleOrder: React.FC<SaleOrderProps> = () => {
> >
<div> <div>
<div style={{marginBottom: 10}}> <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.Group onChange={onChangePayModel} value={payModel}>
<Radio value='web'>WEB</Radio> <Radio value='web'>WEB</Radio>
<Radio value='app'>APP</Radio> <Radio value='app'>APP</Radio>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment