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
linweijiong
jinfa-platform
Commits
5bc4d6d2
Commit
5bc4d6d2
authored
Dec 10, 2020
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into test
parents
aea0a147
fb311c84
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
404 additions
and
401 deletions
+404
-401
index.tsx
src/pages/payandSettle/paySetting/index.tsx
+391
-387
index.tsx
src/pages/transaction/confirmInquiryQuote/schema/index.tsx
+13
-14
No files found.
src/pages/payandSettle/paySetting/index.tsx
View file @
5bc4d6d2
/*
/*
* @Author: LeeJiancong
* @Author: LeeJiancong
* @Date: 2020-08-19 15:25:54
* @Date: 2020-08-19 15:25:54
* @LastEditors: LeeJiancong
* @LastEditors: LeeJiancong
* @Copyright: 1549414730@qq.com
* @Copyright: 1549414730@qq.com
* @LastEditTime: 2020-08-21 18:19:53
* @LastEditTime: 2020-08-21 18:19:53
*/
*/
import
React
,
{
useEffect
,
useState
,
useRef
,
Fragment
}
from
'react'
import
React
,
{
useEffect
,
useState
,
useRef
,
Fragment
}
from
'react'
import
{
Card
,
Button
,
Tabs
,
Radio
,
Space
,
Row
,
Col
,
Table
,
Popconfirm
,
Input
,
Spin
}
from
'antd'
import
{
Card
,
Button
,
Tabs
,
Radio
,
Space
,
Row
,
Col
,
Table
,
Popconfirm
,
Input
,
Spin
}
from
'antd'
import
{
PlusOutlined
,
SaveOutlined
}
from
'@ant-design/icons'
import
{
PlusOutlined
,
SaveOutlined
}
from
'@ant-design/icons'
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
import
EyePreview
from
'@/components/EyePreview'
import
EyePreview
from
'@/components/EyePreview'
import
{
createFormActions
,
FormEffectHooks
,
useFormEffects
}
from
'@formily/antd'
import
{
createFormActions
,
FormEffectHooks
,
useFormEffects
}
from
'@formily/antd'
import
{
GlobalConfig
}
from
'@/global/config'
import
{
GlobalConfig
}
from
'@/global/config'
import
{
ColumnType
}
from
'antd/lib/table/interface'
import
{
ColumnType
}
from
'antd/lib/table/interface'
import
InitBase
from
'../components/initBase'
import
InitBase
from
'../components/initBase'
import
SettingModal
from
'../components/settingModal'
import
SettingModal
from
'../components/settingModal'
import
{
PublicApi
}
from
'@/services/api'
import
{
PublicApi
}
from
'@/services/api'
import
{
history
}
from
'umi'
import
{
history
}
from
'umi'
import
'../components/index.less'
import
'../components/index.less'
const
payActions
=
createFormActions
()
const
payActions
=
createFormActions
()
const
{
TabPane
}
=
Tabs
const
{
TabPane
}
=
Tabs
const
{
onFieldValueChange$
}
=
FormEffectHooks
const
{
onFieldValueChange$
}
=
FormEffectHooks
const
PaySetting
:
React
.
FC
<
{}
>
=
()
=>
{
const
PaySetting
:
React
.
FC
<
{}
>
=
()
=>
{
const
ref
=
useRef
<
any
>
({})
const
ref
=
useRef
<
any
>
({})
const
[
TabList
,
setTabList
]
=
useState
([])
const
[
TabList
,
setTabList
]
=
useState
([])
const
[
mode
,
setmode
]
=
useState
<
number
>
(
0
)
const
[
mode
,
setmode
]
=
useState
<
number
>
(
0
)
const
[
dataInfo
,
setdataInfo
]
=
useState
<
any
>
({})
const
[
dataInfo
,
setdataInfo
]
=
useState
<
any
>
({})
const
[
visible
,
setvisible
]
=
useState
<
boolean
>
(
false
)
const
[
visible
,
setvisible
]
=
useState
<
boolean
>
(
false
)
const
[
optionType
,
setoptionType
]
=
useState
(
0
)
const
[
optionType
,
setoptionType
]
=
useState
(
0
)
const
[
isPitchOn
,
setisPitchOn
]
=
useState
<
number
>
(
0
)
const
[
isPitchOn
,
setisPitchOn
]
=
useState
<
number
>
(
0
)
const
[
payParametersList
,
setpayParametersList
]
=
useState
<
any
>
([])
const
[
payParametersList
,
setpayParametersList
]
=
useState
<
any
>
([])
const
[
payParametersListResponses
,
setpayParametersListResponses
]
=
useState
<
any
>
([])
const
[
payParametersListResponses
,
setpayParametersListResponses
]
=
useState
<
any
>
([])
const
[
initialValues
,
setinitialValues
]
=
useState
({})
const
[
initialValues
,
setinitialValues
]
=
useState
({})
const
[
type
,
settype
]
=
useState
<
any
>
(
null
)
const
[
type
,
settype
]
=
useState
<
any
>
(
null
)
const
[
hasEdit
,
sethasEdit
]
=
useState
<
boolean
>
(
false
);
const
[
hasEdit
,
sethasEdit
]
=
useState
<
boolean
>
(
false
);
const
[
loading
,
setloading
]
=
useState
<
boolean
>
(
false
);
const
[
loading
,
setloading
]
=
useState
<
boolean
>
(
false
);
/**
/**
* @description: isSetting
* @description: isSetting
* @param {type} 默认为已从pass平台为此账号配置好了策略
* @param {type} 默认为已从pass平台为此账号配置好了策略
* @return {type}
* @return {type}
*/
*/
const
[
isSetting
,
setisSetting
]
=
useState
(
true
)
const
[
isSetting
,
setisSetting
]
=
useState
(
true
)
const
[
showInput
,
setshowInput
]
=
useState
(
true
)
//是否显示授权
const
[
showInput
,
setshowInput
]
=
useState
(
true
)
//是否显示授权
const
[
initParam
,
setinitParam
]
=
useState
({
//授权参数
const
[
initParam
,
setinitParam
]
=
useState
({
//授权参数
code
:
''
,
code
:
''
,
value
:
''
,
value
:
''
,
describe
:
''
describe
:
''
})
})
let
[
tabid
,
settabid
]
=
useState
<
any
>
(
null
)
//选项卡id
let
[
tabid
,
settabid
]
=
useState
<
any
>
(
null
)
//选项卡id
const
[
listID
,
setlistID
]
=
useState
(
null
)
//表格id
const
[
listID
,
setlistID
]
=
useState
(
null
)
//表格id
let
[
tabOption
,
settabOption
]
=
useState
({
let
[
tabOption
,
settabOption
]
=
useState
({
tab
:
1
,
tab
:
1
,
type
:
1
type
:
1
})
})
const
handleAddMemberBtn
=
(
id
:
string
|
number
,
type
:
number
)
=>
{
const
handleAddMemberBtn
=
(
id
:
string
|
number
,
type
:
number
)
=>
{
// console.log('id', id, 'type', type)
// console.log('id', id, 'type', type)
setmode
(
0
)
setmode
(
0
)
settype
(
type
)
settype
(
type
)
setvisible
(
true
)
setvisible
(
true
)
setinitialValues
({})
setinitialValues
({})
}
}
const
handleEdit
=
(
record
:
any
,
type
:
number
|
string
,
index
:
number
)
=>
{
const
handleEdit
=
(
record
:
any
,
type
:
number
|
string
,
index
:
number
)
=>
{
setvisible
(
true
)
setvisible
(
true
)
setmode
(
1
)
//编辑还是新增
setmode
(
1
)
//编辑还是新增
settype
(
type
)
settype
(
type
)
setlistID
(
record
.
id
)
setlistID
(
record
.
id
)
setinitialValues
(
record
)
setinitialValues
(
record
)
console
.
log
(
'类型'
,
type
,
'下标'
,
index
,
'record'
,
record
,
'listID:'
,
listID
)
console
.
log
(
'类型'
,
type
,
'下标'
,
index
,
'record'
,
record
,
'listID:'
,
listID
)
}
}
//删除
//删除
const
handleDeleteTable
=
(
type
:
number
,
id
:
number
,
index
)
=>
{
const
handleDeleteTable
=
(
type
:
number
,
id
:
number
,
index
)
=>
{
let
list
:
any
=
[]
let
list
:
any
=
[]
if
(
type
===
1
||
type
===
3
)
{
if
(
type
===
1
||
type
===
3
)
{
list
=
[...
payParametersListResponses
]
list
=
[...
payParametersListResponses
]
list
.
splice
(
index
,
1
)
list
.
splice
(
index
,
1
)
setpayParametersListResponses
(
list
)
setpayParametersListResponses
(
list
)
}
else
if
(
type
===
2
)
{
}
else
if
(
type
===
2
)
{
list
=
[...
payParametersList
]
list
=
[...
payParametersList
]
list
.
splice
(
index
,
1
)
list
.
splice
(
index
,
1
)
setpayParametersList
(
list
)
setpayParametersList
(
list
)
}
}
sethasEdit
(
true
)
sethasEdit
(
true
)
}
}
/**
/**
* @description: 保存 编辑的时候遍历id是否一样 一样就替换
* @description: 保存 编辑的时候遍历id是否一样 一样就替换
* @param {type} type: 1支付宝 2支付宝银行卡 3微信
* @param {type} type: 1支付宝 2支付宝银行卡 3微信
* @return {type}
* @return {type}
*/
*/
const
handleModalOK
=
(
obj
:
any
)
=>
{
const
handleModalOK
=
(
obj
:
any
)
=>
{
// console.log('选项卡:', tabid, '弹窗id:', type)
// console.log('选项卡:', tabid, '弹窗id:', type)
setvisible
(
false
)
setvisible
(
false
)
// console.log('选项卡:', tabid, '数据', obj,'mode:',mode)
// console.log('选项卡:', tabid, '数据', obj,'mode:',mode)
if
(
mode
===
0
)
{
if
(
mode
===
0
)
{
if
(
type
==
1
||
type
==
3
)
{
if
(
type
==
1
||
type
==
3
)
{
let
list
:
any
=
[]
let
list
:
any
=
[]
obj
.
id
=
`obj-
${
payParametersListResponses
.
length
}
`
obj
.
id
=
`obj-
${
payParametersListResponses
.
length
}
`
list
.
push
(
obj
)
list
.
push
(
obj
)
setpayParametersListResponses
([...
payParametersListResponses
,
...
list
])
setpayParametersListResponses
([...
payParametersListResponses
,
...
list
])
sethasEdit
(
true
)
sethasEdit
(
true
)
}
}
if
(
type
==
2
)
{
if
(
type
==
2
)
{
let
list
:
any
=
[]
let
list
:
any
=
[]
obj
.
id
=
`obj-
${
payParametersList
.
length
}
`
obj
.
id
=
`obj-
${
payParametersList
.
length
}
`
list
.
push
(
obj
)
list
.
push
(
obj
)
setpayParametersList
([...
payParametersList
,
...
list
])
setpayParametersList
([...
payParametersList
,
...
list
])
sethasEdit
(
true
)
sethasEdit
(
true
)
}
}
}
else
{
}
else
{
if
(
type
==
1
||
type
==
3
)
{
if
(
type
==
1
||
type
==
3
)
{
let
list
=
[...
payParametersListResponses
]
let
list
=
[...
payParametersListResponses
]
if
(
listID
)
{
if
(
listID
)
{
list
.
forEach
((
v
,
i
)
=>
{
list
.
forEach
((
v
,
i
)
=>
{
if
(
listID
==
v
.
id
)
{
if
(
listID
==
v
.
id
)
{
list
[
i
]
=
obj
list
[
i
]
=
obj
}
}
})
})
}
}
setpayParametersListResponses
([...
list
])
setpayParametersListResponses
([...
list
])
sethasEdit
(
true
)
sethasEdit
(
true
)
}
else
if
(
type
==
2
)
{
//支付宝银行卡
}
else
if
(
type
==
2
)
{
//支付宝银行卡
let
list
=
[...
payParametersList
]
let
list
=
[...
payParametersList
]
if
(
listID
)
{
if
(
listID
)
{
list
.
forEach
((
v
,
i
)
=>
{
list
.
forEach
((
v
,
i
)
=>
{
if
(
listID
==
v
.
id
)
{
if
(
listID
==
v
.
id
)
{
list
[
i
]
=
obj
list
[
i
]
=
obj
}
}
})
})
}
}
setpayParametersList
([...
list
])
setpayParametersList
([...
list
])
sethasEdit
(
true
)
sethasEdit
(
true
)
}
}
}
}
}
}
const
tableColumns
:
ColumnType
<
any
>
[]
=
[
const
tableColumns
:
ColumnType
<
any
>
[]
=
[
{
dataIndex
:
'code'
,
title
:
'参数代码'
,
align
:
'center'
},
{
dataIndex
:
'code'
,
title
:
'参数代码'
,
align
:
'center'
},
{
dataIndex
:
'value'
,
align
:
'center'
,
title
:
'参数值'
},
{
dataIndex
:
'value'
,
align
:
'center'
,
title
:
'参数值'
},
{
dataIndex
:
'describe'
,
title
:
'参数描述'
,
align
:
'center'
},
{
dataIndex
:
'describe'
,
title
:
'参数描述'
,
align
:
'center'
},
{
{
dataIndex
:
'ctl'
,
title
:
'操作'
,
align
:
'center'
,
render
:
(
_
,
record
,
index
)
=>
dataIndex
:
'ctl'
,
title
:
'操作'
,
align
:
'center'
,
render
:
(
_
,
record
,
index
)
=>
<>
<>
<
Button
type=
'link'
onClick=
{
()
=>
handleEdit
(
record
,
record
.
type
,
index
)
}
>
编辑
</
Button
>
<
Button
type=
'link'
onClick=
{
()
=>
handleEdit
(
record
,
record
.
type
,
index
)
}
>
编辑
</
Button
>
<
Button
type=
'link'
onClick=
{
()
=>
handleDeleteTable
(
record
.
type
,
record
.
id
,
index
)
}
>
删除
</
Button
>
<
Button
type=
'link'
onClick=
{
()
=>
handleDeleteTable
(
record
.
type
,
record
.
id
,
index
)
}
>
删除
</
Button
>
</>
</>
}
}
]
]
//初始化
//初始化
const
initBase
=
async
(
id
)
=>
{
const
initBase
=
async
(
id
)
=>
{
setloading
(
true
)
setloading
(
true
)
await
PublicApi
.
getPayMemberQueryPlatformIsStart
({
id
:
id
}).
then
(
res
=>
{
await
PublicApi
.
getPayMemberQueryPlatformIsStart
({
id
:
id
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
let
data
=
{
payParametersListResponses
:
[],
payParametersList
:
[],
isPitchOn
:
0
,
id
:
''
}
let
data
=
{
payParametersListResponses
:
[],
payParametersList
:
[],
isPitchOn
:
0
,
id
:
''
}
if
(
JSON
.
stringify
(
res
.
data
)
!==
'{}'
)
{
if
(
JSON
.
stringify
(
res
.
data
)
!==
'{}'
)
{
console
.
log
(
'加载到'
)
console
.
log
(
'加载到'
)
let
{
id
,
isPitchOn
,
payParametersList
,
payParametersListResponses
}
=
res
.
data
let
{
id
,
isPitchOn
,
payParametersList
,
payParametersListResponses
}
=
res
.
data
setisPitchOn
(
isPitchOn
)
setisPitchOn
(
isPitchOn
)
if
(
id
==
6
)
{
if
(
id
==
6
)
{
let
{
id
,
code
,
value
,
describe
}
=
payParametersListResponses
[
0
]
||
{}
let
{
id
,
code
,
value
,
describe
}
=
payParametersListResponses
[
0
]
||
{}
setinitParam
({
...
initParam
,
code
,
value
,
describe
})
setinitParam
({
...
initParam
,
code
,
value
,
describe
})
}
else
{
}
else
{
payParametersList
=
payParametersList
?
payParametersList
:
[]
payParametersList
=
payParametersList
?
payParametersList
:
[]
payParametersListResponses
=
payParametersListResponses
?
payParametersListResponses
:
[]
payParametersListResponses
=
payParametersListResponses
?
payParametersListResponses
:
[]
setpayParametersList
(
payParametersList
)
setpayParametersList
(
payParametersList
)
setpayParametersListResponses
(
payParametersListResponses
)
setpayParametersListResponses
(
payParametersListResponses
)
}
}
}
}
setloading
(
false
)
setloading
(
false
)
}
else
{
}
else
{
setisPitchOn
(
0
);
setisPitchOn
(
0
);
setloading
(
false
)
setloading
(
false
)
}
}
})
})
}
}
useEffect
(()
=>
{
useEffect
(()
=>
{
PublicApi
.
getPayMemberPayConfig
().
then
(
res
=>
{
PublicApi
.
getPayMemberPayConfig
().
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
let
ids
=
res
.
data
.
map
((
v
,
i
)
=>
v
.
id
)
let
ids
=
res
.
data
.
map
((
v
,
i
)
=>
v
.
id
)
setTabList
(
res
.
data
)
setTabList
(
res
.
data
)
if
(
ids
.
length
>
0
)
{
if
(
ids
.
length
>
0
)
{
settabid
(
ids
[
0
])
settabid
(
ids
[
0
])
initBase
(
ids
[
0
])
initBase
(
ids
[
0
])
}
}
}
else
{
}
else
{
setisSetting
(
false
)
setisSetting
(
false
)
}
}
})
})
return
()
=>
{
return
()
=>
{
}
}
},
[])
},
[])
const
useTabEffects
=
()
=>
{
const
useTabEffects
=
()
=>
{
}
}
/**
/**
* @description: 提交表单 保存
* @description: 提交表单 保存
* @param {type}
* @param {type}
* @return {type}
* @return {type}
*/
*/
const
handleSubmit
=
()
=>
{
const
handleSubmit
=
()
=>
{
let
list
:
any
=
[]
let
list
:
any
=
[]
if
(
tabid
==
1
)
{
if
(
tabid
==
1
)
{
list
=
[...
payParametersList
,
...
payParametersListResponses
]
list
=
[...
payParametersList
,
...
payParametersListResponses
]
}
else
if
(
tabid
==
2
)
{
}
else
if
(
tabid
==
2
)
{
list
=
[...
payParametersListResponses
]
list
=
[...
payParametersListResponses
]
}
else
if
(
tabid
==
6
)
{
}
else
if
(
tabid
==
6
)
{
list
=
[{
list
=
[{
type
:
type
,
type
:
type
,
code
:
initParam
.
code
,
code
:
initParam
.
code
,
value
:
initParam
.
value
,
value
:
initParam
.
value
,
describe
:
initParam
.
describe
describe
:
initParam
.
describe
}]
}]
}
else
{
}
else
{
list
=
[]
list
=
[]
}
}
let
payType
=
TabList
.
filter
(
v
=>
v
.
id
==
tabid
).
map
(
v
=>
v
.
payType
)
let
payType
=
TabList
.
filter
(
v
=>
v
.
id
==
tabid
).
map
(
v
=>
v
.
payType
)
let
way
:
any
=
TabList
.
filter
(
v
=>
v
.
id
==
tabid
).
map
(
v
=>
v
.
way
)
let
way
:
any
=
TabList
.
filter
(
v
=>
v
.
id
==
tabid
).
map
(
v
=>
v
.
way
)
// if(list.length > 0){
// if(list.length > 0){
// list.forEach((v:any) => {
// list.forEach((v:any) => {
// if((v.id).toString().indexOf('obj') !== -1){
// if((v.id).toString().indexOf('obj') !== -1){
// v.id = ''
// v.id = ''
// }
// }
// });
// });
// }
// }
console
.
log
(
'list'
,
list
)
console
.
log
(
'list'
,
list
)
PublicApi
.
postPayMemberQueryPlatformUpdate
({
PublicApi
.
postPayMemberQueryPlatformUpdate
({
id
:
tabid
,
platformPayWays
:[
isPitchOn
:
isPitchOn
,
{
way
:
way
.
toString
(),
id
:
tabid
,
payType
:
Number
(
payType
),
isPitchOn
:
isPitchOn
,
payParametersAddListRequests
:
list
way
:
way
.
toString
(),
}).
then
(
res
=>
{
payType
:
Number
(
payType
),
if
(
res
.
code
===
1000
)
{
payParametersAddListRequests
:
list
setTimeout
(()
=>
{
}
history
.
push
(
'/memberCenter/payandSettle/paySetting/payParamsSetting'
)
]
},
1500
)
}
}).
then
(
res
=>
{
})
if
(
res
.
code
===
1000
)
{
}
setTimeout
(()
=>
{
const
changeTab
=
(
tab
)
=>
{
history
.
push
(
'/memberCenter/payandSettle/paySetting/payParamsSetting'
)
settabid
(
tab
)
},
1500
)
if
(
tab
==
6
)
{
//授信
}
settype
(
tab
)
})
}
}
if
(
!!
isPitchOn
)
{
const
changeTab
=
(
tab
)
=>
{
setshowInput
(
true
)
settabid
(
tab
)
}
else
{
if
(
tab
==
6
)
{
//授信
setshowInput
(
false
)
settype
(
tab
)
}
}
initBase
(
tab
)
if
(
!!
isPitchOn
)
{
}
setshowInput
(
true
)
const
changeRadio
=
(
e
)
=>
{
}
else
{
setisPitchOn
(
e
.
target
.
value
)
setshowInput
(
false
)
if
(
tabid
==
6
&&
e
.
target
.
value
)
{
}
setshowInput
(
true
)
initBase
(
tab
)
}
else
{
}
setshowInput
(
false
)
const
changeRadio
=
(
e
)
=>
{
}
setisPitchOn
(
e
.
target
.
value
)
}
if
(
tabid
==
6
&&
e
.
target
.
value
)
{
const
options
=
[{
label
:
'是'
,
value
:
1
},
{
label
:
'否'
,
value
:
0
}]
setshowInput
(
true
)
return
(
}
else
{
<
PageHeaderWrapper
setshowInput
(
false
)
extra=
{
}
hasEdit
?
}
<
Popconfirm
title=
"配置已修改,是否保存?"
okText=
"是"
cancelText=
"否"
onConfirm=
{
()
=>
const
options
=
[{
label
:
'是'
,
value
:
1
},
{
label
:
'否'
,
value
:
0
}]
handleSubmit
()
return
(
}
>
<
PageHeaderWrapper
<
Button
type=
"primary"
icon=
{
<
SaveOutlined
/>
}
>
extra=
{
保存
hasEdit
?
</
Button
>
<
Popconfirm
title=
"配置已修改,是否保存?"
okText=
"是"
cancelText=
"否"
onConfirm=
{
()
=>
</
Popconfirm
>
handleSubmit
()
:
}
>
<
Button
type=
"primary"
onClick=
{
()
=>
handleSubmit
()
}
icon=
{
<
SaveOutlined
/>
}
>
<
Button
type=
"primary"
icon=
{
<
SaveOutlined
/>
}
>
保存
保存
</
Button
>
</
Button
>
}
</
Popconfirm
>
>
:
{
<
Button
type=
"primary"
onClick=
{
()
=>
handleSubmit
()
}
icon=
{
<
SaveOutlined
/>
}
>
isSetting
&&
保存
<
Card
>
</
Button
>
}
<
Tabs
onTabClick=
{
(
e
)
=>
changeTab
(
e
)
}
type=
"card"
>
>
{
{
TabList
.
map
((
v
,
i
)
=>
{
isSetting
&&
return
<
Fragment
key=
{
v
.
id
}
>
<
Card
>
<
TabPane
tab=
{
`${v.way}`
}
key=
{
v
.
id
}
forceRender
>
<
Spin
spinning=
{
loading
}
>
<
Tabs
onTabClick=
{
(
e
)
=>
changeTab
(
e
)
}
type=
"card"
>
<
Space
size=
{
49
}
>
{
<
span
>
是否开启
{
v
.
way
}
</
span
>
TabList
.
map
((
v
,
i
)
=>
{
<
Radio
.
Group
return
<
Fragment
key=
{
v
.
id
}
>
className=
'radio-group-box'
<
TabPane
tab=
{
`${v.way}`
}
key=
{
v
.
id
}
forceRender
>
size=
"small"
<
Spin
spinning=
{
loading
}
>
value=
{
isPitchOn
}
<
Space
size=
{
49
}
>
buttonStyle=
"solid"
<
span
>
是否开启
{
v
.
way
}
</
span
>
options=
{
options
}
<
Radio
.
Group
optionType=
"button"
className=
'radio-group-box'
onChange=
{
value
=>
changeRadio
(
value
)
}
/>
size=
"small"
</
Space
>
value=
{
isPitchOn
}
{
buttonStyle=
"solid"
options=
{
options
}
(
v
.
id
===
1
||
v
.
id
===
2
)
&&
optionType=
"button"
<
Row
>
onChange=
{
value
=>
changeRadio
(
value
)
}
/>
</
Space
>
<
Col
><
div
style=
{
{
borderLeft
:
'2px solid #00B37A'
,
margin
:
'41px 0 8px'
,
padding
:
'1px 5px'
}
}
>
{
v
.
way
}
参数配置
</
div
></
Col
>
{
<
Col
span=
{
24
}
>
<
Table
dataSource=
{
payParametersListResponses
}
columns=
{
tableColumns
}
pagination=
{
false
}
/>
(
v
.
id
===
1
||
v
.
id
===
2
)
&&
{
<
Row
>
v
.
id
==
1
?
<
Col
><
div
style=
{
{
borderLeft
:
'2px solid #00B37A'
,
margin
:
'41px 0 8px'
,
padding
:
'1px 5px'
}
}
>
{
v
.
way
}
参数配置
</
div
></
Col
>
<
Button
style=
{
{
marginBottom
:
16
,
marginTop
:
24
}
}
block
icon=
{
<
PlusOutlined
/>
}
onClick=
{
()
=>
handleAddMemberBtn
(
`${v.id}`
,
1
)
}
type=
'dashed'
>
新增参数配置
</
Button
>
<
Col
span=
{
24
}
>
:
<
Table
dataSource=
{
payParametersListResponses
}
columns=
{
tableColumns
}
pagination=
{
false
}
/>
<
Button
style=
{
{
marginBottom
:
16
,
marginTop
:
24
}
}
block
icon=
{
<
PlusOutlined
/>
}
onClick=
{
()
=>
handleAddMemberBtn
(
`${v.id}`
,
3
)
}
type=
'dashed'
>
新增参数配置
</
Button
>
{
}
v
.
id
==
1
?
</
Col
>
<
Button
style=
{
{
marginBottom
:
16
,
marginTop
:
24
}
}
block
icon=
{
<
PlusOutlined
/>
}
onClick=
{
()
=>
handleAddMemberBtn
(
`${v.id}`
,
1
)
}
type=
'dashed'
>
新增参数配置
</
Button
>
</
Row
>
:
<
Button
style=
{
{
marginBottom
:
16
,
marginTop
:
24
}
}
block
icon=
{
<
PlusOutlined
/>
}
onClick=
{
()
=>
handleAddMemberBtn
(
`${v.id}`
,
3
)
}
type=
'dashed'
>
新增参数配置
</
Button
>
}
}
{
</
Col
>
v
.
id
===
1
&&
<
Row
>
</
Row
>
<
Col
><
div
style=
{
{
borderLeft
:
'2px solid #00B37A'
,
margin
:
'41px 0 8px'
,
padding
:
'1px 5px'
}
}
>
{
v
.
way
}
转账到银行卡参数配置
</
div
></
Col
>
<
Col
span=
{
24
}
>
}
<
Table
dataSource=
{
payParametersList
}
columns=
{
tableColumns
}
pagination=
{
false
}
/>
{
<
Button
style=
{
{
marginBottom
:
16
,
marginTop
:
24
}
}
block
icon=
{
<
PlusOutlined
/>
}
onClick=
{
()
=>
handleAddMemberBtn
(
`${v.id}`
,
2
)
}
type=
'dashed'
>
新增参数配置
</
Button
>
v
.
id
===
1
&&
</
Col
>
<
Row
>
</
Row
>
<
Col
><
div
style=
{
{
borderLeft
:
'2px solid #00B37A'
,
margin
:
'41px 0 8px'
,
padding
:
'1px 5px'
}
}
>
{
v
.
way
}
转账到银行卡参数配置
</
div
></
Col
>
}
<
Col
span=
{
24
}
>
{
<
Table
dataSource=
{
payParametersList
}
columns=
{
tableColumns
}
pagination=
{
false
}
/>
(
v
.
id
===
6
&&
showInput
)
&&
<
Button
style=
{
{
marginBottom
:
16
,
marginTop
:
24
}
}
block
icon=
{
<
PlusOutlined
/>
}
onClick=
{
()
=>
handleAddMemberBtn
(
`${v.id}`
,
2
)
}
type=
'dashed'
>
新增参数配置
</
Button
>
<
div
style=
{
{
marginTop
:
42
}
}
>
</
Col
>
<
Space
direction=
"horizontal"
size=
{
16
}
>
</
Row
>
初始申请额度不超过
}
<
Input
value=
{
initParam
.
code
}
addonBefore=
"¥"
onChange=
{
e
=>
setinitParam
({
...
initParam
,
code
:
e
.
target
.
value
})
}
/>
{
允许满
<
Input
value=
{
initParam
.
value
}
onChange=
{
e
=>
setinitParam
({
...
initParam
,
value
:
e
.
target
.
value
})
}
/>
(
v
.
id
===
6
&&
showInput
)
&&
天后申请上调
<
Input
value=
{
initParam
.
describe
}
addonAfter=
"%"
onChange=
{
e
=>
setinitParam
({
...
initParam
,
describe
:
e
.
target
.
value
})
}
/>
<
div
style=
{
{
marginTop
:
42
}
}
>
</
Space
>
<
Space
direction=
"horizontal"
size=
{
16
}
>
</
div
>
初始申请额度不超过
}
<
Input
value=
{
initParam
.
code
}
addonBefore=
"¥"
onChange=
{
e
=>
setinitParam
({
...
initParam
,
code
:
e
.
target
.
value
})
}
/>
</
Spin
>
允许满
<
Input
value=
{
initParam
.
value
}
onChange=
{
e
=>
setinitParam
({
...
initParam
,
value
:
e
.
target
.
value
})
}
/>
</
TabPane
>
天后申请上调
<
Input
value=
{
initParam
.
describe
}
addonAfter=
"%"
onChange=
{
e
=>
setinitParam
({
...
initParam
,
describe
:
e
.
target
.
value
})
}
/>
</
Fragment
>
</
Space
>
})
</
div
>
}
}
</
Tabs
>
</
Spin
>
<
SettingModal
</
TabPane
>
mode=
{
mode
}
</
Fragment
>
id=
{
listID
}
})
type=
{
type
}
}
dialogVisible=
{
visible
}
</
Tabs
>
initialValues=
{
initialValues
}
<
SettingModal
onCancel=
{
()
=>
setvisible
(
false
)
}
mode=
{
mode
}
onOK=
{
(
list
)
=>
handleModalOK
(
list
)
}
id=
{
listID
}
/>
type=
{
type
}
</
Card
>
dialogVisible=
{
visible
}
}
initialValues=
{
initialValues
}
{
onCancel=
{
()
=>
setvisible
(
false
)
}
isSetting
===
false
&&
onOK=
{
(
list
)
=>
handleModalOK
(
list
)
}
<
InitBase
/>
/>
}
</
Card
>
}
</
PageHeaderWrapper
>
{
isSetting
===
false
&&
)
<
InitBase
/>
}
}
export
default
PaySetting
\ No newline at end of file
</
PageHeaderWrapper
>
)
}
export
default
PaySetting
src/pages/transaction/confirmInquiryQuote/schema/index.tsx
View file @
5bc4d6d2
...
@@ -6,8 +6,8 @@ import { PublicApi } from '@/services/api'
...
@@ -6,8 +6,8 @@ import { PublicApi } from '@/services/api'
/**
/**
* @description: 公用
* @description: 公用
* @param {type}
* @param {type}
* @return {type}
* @return {type}
*/
*/
export
const
commonEnquieryOfferSchema
:
ISchema
=
{
export
const
commonEnquieryOfferSchema
:
ISchema
=
{
type
:
'object'
,
type
:
'object'
,
...
@@ -33,7 +33,7 @@ export const commonEnquieryOfferSchema: ISchema = {
...
@@ -33,7 +33,7 @@ export const commonEnquieryOfferSchema: ISchema = {
},
},
"x-component-props"
:{
"x-component-props"
:{
placeholder
:
'报价单
搜索
'
placeholder
:
'报价单
号
'
}
}
}
}
}
}
...
@@ -63,7 +63,7 @@ export const commonEnquieryOfferSchema: ISchema = {
...
@@ -63,7 +63,7 @@ export const commonEnquieryOfferSchema: ISchema = {
inquiryListNo
:{
//需求单号
inquiryListNo
:{
//需求单号
type
:
'string'
,
type
:
'string'
,
"x-mega-props"
:{
"x-mega-props"
:{
},
},
"x-component-props"
:{
"x-component-props"
:{
placeholder
:
'询价单号'
placeholder
:
'询价单号'
...
@@ -95,7 +95,7 @@ export const commonEnquieryOfferSchema: ISchema = {
...
@@ -95,7 +95,7 @@ export const commonEnquieryOfferSchema: ISchema = {
sumbit
:{
sumbit
:{
"x-component"
:
'Submit'
,
"x-component"
:
'Submit'
,
"x-mega-props"
:{
"x-mega-props"
:{
span
:
1
span
:
1
},
},
"x-component-props"
:{
"x-component-props"
:{
children
:
'查询'
children
:
'查询'
...
@@ -108,8 +108,8 @@ export const commonEnquieryOfferSchema: ISchema = {
...
@@ -108,8 +108,8 @@ export const commonEnquieryOfferSchema: ISchema = {
/**
/**
* @description: 需求报价-需求单查询
* @description: 需求报价-需求单查询
* @param {type}
* @param {type}
* @return {type}
* @return {type}
*/
*/
export
const
enquierySearchSchema
:
ISchema
=
{
export
const
enquierySearchSchema
:
ISchema
=
{
type
:
'object'
,
type
:
'object'
,
...
@@ -207,8 +207,8 @@ export const enquierySearchSchema: ISchema = {
...
@@ -207,8 +207,8 @@ export const enquierySearchSchema: ISchema = {
/**
/**
* @description: 需求报价-报价查询
* @description: 需求报价-报价查询
* @param {type}
* @param {type}
* @return {type}
* @return {type}
*/
*/
export
const
enquieryOfferSearchSchema
:
ISchema
=
{
export
const
enquieryOfferSearchSchema
:
ISchema
=
{
type
:
'object'
,
type
:
'object'
,
...
@@ -293,8 +293,8 @@ export const enquieryOfferSearchSchema: ISchema = {
...
@@ -293,8 +293,8 @@ export const enquieryOfferSearchSchema: ISchema = {
/**
/**
* @description: 报价单新增编辑-需求单查询
* @description: 报价单新增编辑-需求单查询
* @param {type}
* @param {type}
* @return {type}
* @return {type}
*/
*/
export
const
dialogEqformSearch
:
ISchema
=
{
export
const
dialogEqformSearch
:
ISchema
=
{
type
:
'object'
,
type
:
'object'
,
...
@@ -376,7 +376,7 @@ export const dialogEqformSearch: ISchema = {
...
@@ -376,7 +376,7 @@ export const dialogEqformSearch: ISchema = {
}
}
/**
/**
* @description: 报价单查询-搜索
* @description: 报价单查询-搜索
* @param {type}
* @param {type}
* @return {type}
* @return {type}
*/
*/
export
const
quoteFormSearch
:
ISchema
=
{
export
const
quoteFormSearch
:
ISchema
=
{
...
@@ -485,4 +485,4 @@ export const quoteFormSearch: ISchema = {
...
@@ -485,4 +485,4 @@ export const quoteFormSearch: ISchema = {
}
}
}
}
}
}
}
}
\ No newline at end of file
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