Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
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
shenshaokai
jinfa-admin
Commits
9fedd4b6
Commit
9fedd4b6
authored
Jan 13, 2021
by
Bill
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of 10.0.0.22:lingxi/lingxi-business-system into dev
parents
82577175
7848c41d
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
41 additions
and
44 deletions
+41
-44
index.tsx
src/pages/rfq/details/index.tsx
+1
-0
index.tsx
src/pages/rfqOffer/details/index.tsx
+1
-0
payWayTable.tsx
...s/ruleSettingManage/paySetting/components/payWayTable.tsx
+3
-2
settingIndex.tsx
src/pages/ruleSettingManage/paySetting/settingIndex.tsx
+12
-7
detail.tsx
src/pages/ruleSettingManage/payStrategy/detail.tsx
+6
-7
index.tsx
src/pages/ruleSettingManage/schema/index.tsx
+1
-1
index.tsx
src/pages/systemManage/unit/index.tsx
+3
-3
index.ts
src/utils/index.ts
+14
-24
No files found.
src/pages/rfq/details/index.tsx
View file @
9fedd4b6
...
...
@@ -139,6 +139,7 @@ const Details: React.FC<{}> = (props) => {
title
:
'序号'
,
key
:
'inquiryListId'
,
dataIndex
:
'inquiryListId'
,
render
:
(
text
:
any
,
record
:
any
,
index
:
number
)
=>
<>
{
index
+
1
}
</>
},
{
title
:
'操作角色'
,
key
:
'roleName'
,
...
...
src/pages/rfqOffer/details/index.tsx
View file @
9fedd4b6
...
...
@@ -112,6 +112,7 @@ const Details: React.FC<{}> = (props) => {
title
:
'序号'
,
key
:
'inquiryListId'
,
dataIndex
:
'inquiryListId'
,
render
:
(
text
:
any
,
record
:
any
,
index
:
number
)
=>
<>
{
index
+
1
}
</>
},
{
title
:
'操作角色'
,
key
:
'roleName'
,
...
...
src/pages/ruleSettingManage/paySetting/components/payWayTable.tsx
View file @
9fedd4b6
...
...
@@ -6,6 +6,7 @@ import SetUpModal from './setUpModal';
interface
payWayTableParams
{
name
?:
string
,
way
?:
string
,
payParametersList
?:
any
,
payParametersListResponses
?:
any
,
visible
?:
boolean
,
...
...
@@ -22,7 +23,7 @@ const PayWayTable: React.FC<payWayTableParams> = (props) => {
const
[
edit
,
setedit
]
=
useState
<
any
>
({});
const
[
modifyIndex
,
setModifyIndex
]
=
useState
<
any
>
(
0
)
const
[
modify
,
setmodify
]
=
useState
<
boolean
>
(
false
);
const
{
name
,
payParametersListResponses
,
payParametersList
,
visible
,
onType
,
onGet
,
onDel
,
onEdit
,
id
}
=
props
;
const
{
name
,
payParametersListResponses
,
payParametersList
,
visible
,
onType
,
onGet
,
onDel
,
onEdit
,
id
,
way
}
=
props
;
const
columns
:
ColumnType
<
any
>
[]
=
[
{
title
:
'参数代码'
,
...
...
@@ -87,7 +88,7 @@ const PayWayTable: React.FC<payWayTableParams> = (props) => {
<
Button
style=
{
{
marginBottom
:
16
,
marginTop
:
24
}
}
block
icon=
{
<
PlusOutlined
/>
}
onClick=
{
()
=>
{
setmodalvisible
(
true
);
setType
(
id
);
setmodify
(
false
)
}
}
type=
'dashed'
>
新增参数配置
</
Button
>
{
id
!==
2
&&
way
!==
'微信'
&&
<>
<
div
style=
{
{
borderLeft
:
'2px solid #00B37A'
,
margin
:
'41px 0 8px'
,
padding
:
'1px 5px'
}
}
>
{
name
}
转账到银行卡参数配置
</
div
>
<
Table
...
...
src/pages/ruleSettingManage/paySetting/settingIndex.tsx
View file @
9fedd4b6
...
...
@@ -98,27 +98,33 @@ const PayWaySetTemplate: React.FC<{}> = () => {
const
onHnadleSubmit
=
()
=>
{
let
conditions
=
false
;
let
wayName
=
''
;
try
{
payItem
.
forEach
(
item
=>
{
if
(
item
.
id
===
2
&&
item
.
isPitchOn
===
1
)
{
if
(
item
.
way
===
'微信'
&&
item
.
isPitchOn
===
1
)
{
console
.
log
(
1
)
if
(
item
.
payParametersAddListRequests
.
length
>
0
)
{
conditions
=
true
}
else
{
conditions
=
false
wayName
=
item
.
way
return
throw
new
Error
}
}
else
if
(
item
.
id
===
1
&&
item
.
isPitchOn
===
1
)
{
}
else
if
(
item
.
way
===
'支付宝'
&&
item
.
isPitchOn
===
1
)
{
console
.
log
(
2
)
if
(
item
.
payParametersAddListRequests
.
length
>
0
&&
item
.
payParametersList
.
length
>
0
)
{
conditions
=
true
}
else
{
conditions
=
false
wayName
=
item
.
way
return
throw
new
Error
}
}
else
{
conditions
=
true
}
})
}
catch
{
message
.
error
(
`
${
wayName
}
缺少支付参数配置`
)
}
if
(
conditions
)
{
PublicApi
.
postPayCollectionParametersAdd
({
platformPayWays
:
payItem
...
...
@@ -127,8 +133,6 @@ const PayWaySetTemplate: React.FC<{}> = () => {
history
.
push
(
'/ruleSettingManager/paySetting'
)
}
})
}
else
{
message
.
error
(
`请新增
${
wayName
}
的支付参数配置`
)
}
}
...
...
@@ -179,9 +183,10 @@ const PayWaySetTemplate: React.FC<{}> = () => {
selectId=
{
payItem
[
idx
].
id
}
onChange=
{
(
value
)
=>
onChangeRaido
(
value
,
idx
)
}
/>
{
(
payItem
[
idx
].
id
===
1
||
payItem
[
idx
].
id
===
2
)
&&
{
(
payItem
[
idx
].
way
===
'微信'
||
payItem
[
idx
].
way
===
'支付宝'
)
&&
<
PayWayTable
id=
{
payItem
[
idx
].
id
}
way=
{
payItem
[
idx
].
way
}
onType=
{
payItem
[
idx
].
payType
}
name=
{
payItem
[
idx
].
way
}
payParametersList=
{
payItem
[
idx
].
payParametersList
}
...
...
src/pages/ruleSettingManage/payStrategy/detail.tsx
View file @
9fedd4b6
...
...
@@ -61,16 +61,16 @@ const PaySetting: React.FC<{}> = () => {
levelList
:
[],
roleList
:
[]
})
const
[
memberRowSelection
,
memberRowCtl
]
=
useRowSelectionTable
({
customKey
:
'
memberI
d'
})
const
[
memberRowSelection
,
memberRowCtl
]
=
useRowSelectionTable
({
customKey
:
'
i
d'
})
const
[
optionType
,
setoptionType
]
=
useState
(
0
)
const
{
preview
,
pageStatus
}
=
usePageStatus
()
// const initValue = useInitValue(PublicApi.getPayPayMemberTacticsDetails)
const
columnsSetMember
:
ColumnType
<
any
>
[]
=
[
{
title
:
'ID'
,
dataIndex
:
'
memberI
d'
,
dataIndex
:
'
i
d'
,
align
:
'center'
,
key
:
'
memberI
d'
,
key
:
'
i
d'
,
},
{
title
:
'会员名称'
,
...
...
@@ -130,7 +130,7 @@ const PaySetting: React.FC<{}> = () => {
// 弹出会员
const
handleAddMemberBtn
=
()
=>
{
const
checkBoxs
=
payActions
.
getFieldValue
(
'applyMember'
)
memberRowCtl
.
setSelectedRowKeys
(
checkBoxs
.
map
(
v
=>
v
.
memberI
d
))
memberRowCtl
.
setSelectedRowKeys
(
checkBoxs
.
map
(
v
=>
v
.
i
d
))
memberRowCtl
.
setSelectRow
(
checkBoxs
)
setvisible
(
true
)
console
.
log
(
visibleChannelMember
)
...
...
@@ -191,7 +191,7 @@ const PaySetting: React.FC<{}> = () => {
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
let
{
data
}
=
res
.
data
memberRowCtl
.
setSelectedRowKeys
(
data
.
map
(
v
=>
v
.
memberI
d
))
memberRowCtl
.
setSelectedRowKeys
(
data
.
map
(
v
=>
v
.
i
d
))
memberRowCtl
.
setSelectRow
(
data
)
payActions
.
setFieldValue
(
'applyMember'
,
data
)
}
...
...
@@ -417,7 +417,6 @@ const PaySetting: React.FC<{}> = () => {
}
}
//新增
console
.
log
(
param
,
10086
)
if
(
param
.
memberIdRoleIds
.
length
===
0
&&
values
.
isSelected
===
0
)
{
message
.
error
(
'请选择指定的会员'
);
return
...
...
@@ -495,7 +494,7 @@ const PaySetting: React.FC<{}> = () => {
}
}
tableProps=
{
{
rowKey
:
'
memberI
d'
rowKey
:
'
i
d'
}
}
/>
</
PageHeaderWrapper
>
...
...
src/pages/ruleSettingManage/schema/index.tsx
View file @
9fedd4b6
...
...
@@ -55,7 +55,7 @@ export const strategyDetailTab = (props: any, usePageStatus: any) => {
"x-component"
:
'checkbox'
,
'x-component-props'
:
{
},
required
:
fals
e
,
required
:
tru
e
,
}
}
}
...
...
src/pages/systemManage/unit/index.tsx
View file @
9fedd4b6
...
...
@@ -16,8 +16,8 @@ const SensitiveWords: React.FC<{}> = () => {
await
PublicApi
.
getManageUnitUpdateUnitStatus
({
id
:
id
,
status
:
_status
})
ref
.
current
.
reload
()
}
const
confirmCancel
=
(
id
:
number
)
=>
{
PublicApi
.
postManageSensitiveWordDelete
({
ids
:
[
id
]
}).
then
(
res
=>
{
const
confirmCancel
=
(
id
:
any
)
=>
{
PublicApi
.
getManageUnitDeleteUnit
({
id
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
message
.
success
(
'删除成功'
)
ref
.
current
.
reload
()
...
...
@@ -132,7 +132,7 @@ const SensitiveWords: React.FC<{}> = () => {
name
:
{
type
:
'string'
,
'x-component-props'
:
{
placeholder
:
'
属性
名称'
,
placeholder
:
'
单位
名称'
,
},
'x-component'
:
'Search'
}
...
...
src/utils/index.ts
View file @
9fedd4b6
...
...
@@ -59,86 +59,76 @@ export function timeRange(val: number) {
moment
()
.
startOf
(
'days'
)
.
format
(
'YYYY-MM-DD HH:mm:ss'
),
).
unix
();
).
valueOf
();
et
=
moment
(
moment
()
.
endOf
(
'days'
)
.
format
(
'YYYY-MM-DD HH:mm:ss'
),
).
unix
();
).
valueOf
();
break
;
case
2
:
st
=
moment
(
moment
()
.
subtract
(
7
,
'days'
)
.
format
(
'YYYY-MM-DD'
)
+
' 00:00:00'
,
).
unix
();
).
valueOf
();
et
=
moment
(
moment
()
.
endOf
(
'days'
)
.
format
(
'YYYY-MM-DD HH:mm:ss'
),
).
unix
();
).
valueOf
();
break
;
case
3
:
st
=
moment
(
moment
()
.
subtract
(
29
,
'days'
)
.
format
(
'YYYY-MM-DD'
)
+
' 00:00:00'
,
).
unix
();
).
valueOf
();
et
=
moment
(
moment
()
.
endOf
(
'days'
)
.
format
(
'YYYY-MM-DD HH:mm:ss'
),
).
unix
();
).
valueOf
();
break
;
case
4
:
st
=
moment
(
moment
()
.
subtract
(
89
,
'days'
)
.
format
(
'YYYY-MM-DD'
)
+
' 00:00:00'
,
).
unix
();
).
valueOf
();
et
=
moment
(
moment
()
.
endOf
(
'days'
)
.
format
(
'YYYY-MM-DD HH:mm:ss'
),
).
unix
();
).
valueOf
();
break
;
case
5
:
st
=
moment
(
moment
()
.
subtract
(
179
,
'days'
)
.
format
(
'YYYY-MM-DD'
)
+
' 00:00:00'
,
).
unix
();
).
valueOf
();
et
=
moment
(
moment
()
.
endOf
(
'days'
)
.
format
(
'YYYY-MM-DD HH:mm:ss'
),
).
unix
();
).
valueOf
();
break
;
case
6
:
st
=
moment
(
moment
()
.
subtract
(
364
,
'days'
)
.
format
(
'YYYY-MM-DD'
)
+
' 00:00:00'
,
).
unix
();
).
valueOf
();
et
=
moment
(
moment
()
.
endOf
(
'days'
)
.
format
(
'YYYY-MM-DD HH:mm:ss'
),
).
unix
();
).
valueOf
();
break
;
case
7
:
st
=
moment
(
moment
()
.
year
(
moment
().
year
()
-
1
)
.
startOf
(
'year'
)
.
format
(
'YYYY-MM-DD HH:mm:ss'
),
).
unix
();
et
=
moment
(
moment
()
.
year
(
moment
().
year
()
-
1
)
.
endOf
(
'year'
)
.
format
(
'YYYY-MM-DD HH:mm:ss'
),
).
unix
();
st
=
moment
(
'1971-01-01'
,
'YYYY-MM-DD'
).
valueOf
();
// 或者0
et
=
moment
().
subtract
(
1
,
"year"
).
valueOf
();
break
;
}
return
{
st
,
et
}
...
...
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