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
ba28fb8e
Commit
ba28fb8e
authored
Dec 31, 2020
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 处理交易规则筛选状态清空,处理品牌页面异常
parent
0b48a5da
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
46 additions
and
38 deletions
+46
-38
checkDetail.tsx
...dSettle/amountAccountManage/checkWithdraw/checkDetail.tsx
+8
-8
addBrand.tsx
src/pages/trademark/addBrand.tsx
+1
-0
index.less
src/pages/trademark/index.less
+18
-11
index.ts
...s/transaction/purchaseOrder/orderCollect/effects/index.ts
+17
-15
usePaymentInfo.tsx
...ction/purchaseOrder/orderCollect/model/usePaymentInfo.tsx
+2
-4
RuleSetting.tsx
...s/transaction/transactionRules/components/RuleSetting.tsx
+0
-0
No files found.
src/pages/payandSettle/amountAccountManage/checkWithdraw/checkDetail.tsx
View file @
ba28fb8e
...
@@ -41,7 +41,7 @@ const CheckDetail: React.FC<{}> = () => {
...
@@ -41,7 +41,7 @@ const CheckDetail: React.FC<{}> = () => {
const
{
code
,
data
}
=
res
const
{
code
,
data
}
=
res
setDetails
(
data
)
setDetails
(
data
)
if
(
code
===
1000
)
{
if
(
code
===
1000
)
{
let
bankRes
=
await
PublicApi
.
getSettleAccountsCorporateAccountConfig
({
memberId
:
data
.
memberId
+
''
})
let
bankRes
=
await
PublicApi
.
getSettleAccountsCorporateAccountConfig
({
memberId
:
data
.
memberId
+
''
,
memberRoleId
:
data
.
memberRoleId
+
''
})
setBankDetail
(
bankRes
.
data
)
setBankDetail
(
bankRes
.
data
)
}
}
}
}
...
@@ -66,7 +66,7 @@ const CheckDetail: React.FC<{}> = () => {
...
@@ -66,7 +66,7 @@ const CheckDetail: React.FC<{}> = () => {
title
:
'交易时间'
,
title
:
'交易时间'
,
dataIndex
:
'tradeTime'
,
dataIndex
:
'tradeTime'
,
key
:
'tradeTime'
,
key
:
'tradeTime'
,
render
:
(
text
:
any
)
=>
moment
(
text
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
render
:
(
text
:
any
)
=>
moment
(
text
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
},
},
{
{
title
:
'交易金额(元)'
,
title
:
'交易金额(元)'
,
...
@@ -116,7 +116,7 @@ const CheckDetail: React.FC<{}> = () => {
...
@@ -116,7 +116,7 @@ const CheckDetail: React.FC<{}> = () => {
}
}
const
handleCancel
=
()
=>
{
const
handleCancel
=
()
=>
{
checkForm
.
resetFields
()
checkForm
.
resetFields
()
setVisibleModal
(
false
)
setVisibleModal
(
false
)
}
}
...
@@ -126,7 +126,7 @@ const CheckDetail: React.FC<{}> = () => {
...
@@ -126,7 +126,7 @@ const CheckDetail: React.FC<{}> = () => {
onBack=
{
()
=>
history
.
goBack
()
}
onBack=
{
()
=>
history
.
goBack
()
}
backIcon=
{
<
ReutrnEle
/>
}
backIcon=
{
<
ReutrnEle
/>
}
extra=
{
urlParams
.
preview
?
[]
:
[
extra=
{
urlParams
.
preview
?
[]
:
[
<
Button
<
Button
icon=
{
<
CheckSquareOutlined
/>
}
icon=
{
<
CheckSquareOutlined
/>
}
key=
"1"
key=
"1"
type=
"primary"
type=
"primary"
...
@@ -288,8 +288,8 @@ const CheckDetail: React.FC<{}> = () => {
...
@@ -288,8 +288,8 @@ const CheckDetail: React.FC<{}> = () => {
layout=
"vertical"
layout=
"vertical"
form=
{
checkForm
}
form=
{
checkForm
}
>
>
<
Form
.
Item
<
Form
.
Item
name=
"status"
name=
"status"
label=
""
label=
""
rules=
{
[
rules=
{
[
{
{
...
@@ -305,8 +305,8 @@ const CheckDetail: React.FC<{}> = () => {
...
@@ -305,8 +305,8 @@ const CheckDetail: React.FC<{}> = () => {
</
Radio
.
Group
>
</
Radio
.
Group
>
</
Form
.
Item
>
</
Form
.
Item
>
{
{
checkStatus
===
2
&&
<
Form
.
Item
checkStatus
===
2
&&
<
Form
.
Item
name=
"remark"
name=
"remark"
label=
{
'审核不通过原因'
}
label=
{
'审核不通过原因'
}
rules=
{
[
rules=
{
[
{
{
...
...
src/pages/trademark/addBrand.tsx
View file @
ba28fb8e
...
@@ -186,6 +186,7 @@ const AddBrand: React.FC<{}> = () => {
...
@@ -186,6 +186,7 @@ const AddBrand: React.FC<{}> = () => {
保存
保存
</
Button
>,
</
Button
>,
]
}
]
}
className=
{
styles
.
brandBox
}
>
>
<
Space
direction=
"vertical"
style=
{
{
width
:
'100%'
}
}
>
<
Space
direction=
"vertical"
style=
{
{
width
:
'100%'
}
}
>
<
Card
headStyle=
{
{
borderBottom
:
'none'
}
}
title=
"流程进度"
>
<
Card
headStyle=
{
{
borderBottom
:
'none'
}
}
title=
"流程进度"
>
...
...
src/pages/trademark/index.less
View file @
ba28fb8e
.proveBox{
.proveBox{
width:175px;
width:175px;
height:120px;
height:120px;
border:1px solid rgba(235,236,240,1);
border:1px solid rgba(235,236,240,1);
img {
img {
width: 100%;
width: 100%;
height: 100%;
height: 100%;
padding: 18px;
padding: 18px;
}
}
}
}
\ No newline at end of file
.brandBox {
:global {
.ant-form-item {
display: block;
}
}
}
src/pages/transaction/purchaseOrder/orderCollect/effects/index.ts
View file @
ba28fb8e
...
@@ -259,21 +259,23 @@ export const useElectronicContract = (ctx: ISchemaFormActions | ISchemaFormAsync
...
@@ -259,21 +259,23 @@ export const useElectronicContract = (ctx: ISchemaFormActions | ISchemaFormAsync
params
[
'memberId'
]
=
ctx
.
getFieldValue
(
'supplyMembersId'
)
params
[
'memberId'
]
=
ctx
.
getFieldValue
(
'supplyMembersId'
)
params
[
'memberRoleId'
]
=
ctx
.
getFieldValue
(
'supplyMembersRoleId'
)
params
[
'memberRoleId'
]
=
ctx
.
getFieldValue
(
'supplyMembersRoleId'
)
fetchOrderApi
.
getOrderWorkFlow
(
params
).
then
(
data
=>
{
if
(
params
[
'memberId'
]
&&
params
[
'memberRoleId'
])
{
// 简单流程并使用电子合同 强行启用电子合同
fetchOrderApi
.
getOrderWorkFlow
(
params
).
then
(
data
=>
{
if
(
data
[
"processEnum"
]
===
24
&&
data
[
"isElectronicContract"
])
{
// 简单流程并使用电子合同 强行启用电子合同
ctx
.
setFieldState
(
"usingElectronicContracts"
,
state
=>
{
if
(
data
[
"processEnum"
]
===
24
&&
data
[
"isElectronicContract"
])
{
state
.
visible
=
true
})
ctx
.
setFieldValue
(
"processEnum"
,
data
[
"processEnum"
])
// ctx.setFieldValue("usingElectronicContracts", data["isElectronicContract"] ? 1 : 0)
}
if
(
data
[
'electronicContractId'
])
{
fetchOrderApi
.
createContract
({
contractTemplateId
:
data
[
'electronicContractId'
],
signMemberId
:
params
[
'memberId'
]
}).
then
(
_data
=>
{
ctx
.
setFieldState
(
"usingElectronicContracts"
,
state
=>
{
ctx
.
setFieldState
(
"usingElectronicContracts"
,
state
=>
{
state
.
props
[
"x-component-props"
].
contract
=
{
contractTemplateId
:
data
[
'electronicContractId'
],
...
_data
,
}
state
.
visible
=
true
})
})
})
ctx
.
setFieldValue
(
"processEnum"
,
data
[
"processEnum"
])
}
// ctx.setFieldValue("usingElectronicContracts", data["isElectronicContract"] ? 1 : 0)
})
}
if
(
data
[
'electronicContractId'
])
{
fetchOrderApi
.
createContract
({
contractTemplateId
:
data
[
'electronicContractId'
],
signMemberId
:
params
[
'memberId'
]
}).
then
(
_data
=>
{
ctx
.
setFieldState
(
"usingElectronicContracts"
,
state
=>
{
state
.
props
[
"x-component-props"
].
contract
=
{
contractTemplateId
:
data
[
'electronicContractId'
],
...
_data
,
}
})
})
}
})
}
}
}
src/pages/transaction/purchaseOrder/orderCollect/model/usePaymentInfo.tsx
View file @
ba28fb8e
...
@@ -3,8 +3,6 @@ import { PayInfoCell, EditableRow } from '../components/payInfoTableCell'
...
@@ -3,8 +3,6 @@ import { PayInfoCell, EditableRow } from '../components/payInfoTableCell'
import
{
ISchemaFormActions
,
ISchemaFormAsyncActions
}
from
'@formily/antd'
import
{
ISchemaFormActions
,
ISchemaFormAsyncActions
}
from
'@formily/antd'
import
{
useEffect
,
useState
,
useRef
,
useContext
}
from
'react'
import
{
useEffect
,
useState
,
useRef
,
useContext
}
from
'react'
import
{
PublicApi
}
from
'@/services/api'
import
{
PublicApi
}
from
'@/services/api'
import
{
ReadyAddOrderDetailContext
}
from
'../../context'
import
{
message
}
from
'antd'
export
const
usePaymentInfo
=
(
ctx
:
ISchemaFormActions
|
ISchemaFormAsyncActions
,
memberId
:
any
,
memberRoleId
:
any
,
orderProducts
:
any
):
any
=>
{
export
const
usePaymentInfo
=
(
ctx
:
ISchemaFormActions
|
ISchemaFormAsyncActions
,
memberId
:
any
,
memberRoleId
:
any
,
orderProducts
:
any
):
any
=>
{
const
paywayData
=
useRef
<
any
>
({})
const
paywayData
=
useRef
<
any
>
({})
...
@@ -148,7 +146,7 @@ export const usePaymentInfo = (ctx: ISchemaFormActions | ISchemaFormAsyncActions
...
@@ -148,7 +146,7 @@ export const usePaymentInfo = (ctx: ISchemaFormActions | ISchemaFormAsyncActions
if
(
options
.
filter
(
_item
=>
_item
.
payType
===
4
).
length
)
if
(
options
.
filter
(
_item
=>
_item
.
payType
===
4
).
length
)
options
.
filter
(
_item
=>
_item
.
payType
===
4
)[
0
].
disabled
=
false
options
.
filter
(
_item
=>
_item
.
payType
===
4
)[
0
].
disabled
=
false
}
}
}
,
5
00
)
}
,
8
00
)
setTimeout
(()
=>
{
setTimeout
(()
=>
{
if
(
pros
.
filter
(
item
=>
item
.
deliveryType
===
1
).
length
!==
pros
.
length
)
{
if
(
pros
.
filter
(
item
=>
item
.
deliveryType
===
1
).
length
!==
pros
.
length
)
{
...
@@ -161,7 +159,7 @@ export const usePaymentInfo = (ctx: ISchemaFormActions | ISchemaFormAsyncActions
...
@@ -161,7 +159,7 @@ export const usePaymentInfo = (ctx: ISchemaFormActions | ISchemaFormAsyncActions
}
}
}
}
}
,
800
)
}
,
800
)
console
.
log
(
newColumns
,
'newColumns'
)
setColumns
(
newColumns
)
setColumns
(
newColumns
)
}
}
}
}
...
...
src/pages/transaction/transactionRules/components/RuleSetting.tsx
View file @
ba28fb8e
This diff is collapsed.
Click to expand it.
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