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
shenshaokai
jinfa-platform
Commits
c85ec86c
Commit
c85ec86c
authored
Mar 16, 2022
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v2-220318' of
http://10.0.0.22:3000/lingxi/lingxi-business-paltform
into v2-220318
parents
90e9360e
52fbc939
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
48 deletions
+33
-48
index.ts
.../exchangePrSubmit/components/ExchangeForm/schema/index.ts
+2
-13
index.ts
...tion/repairPrSubmit/components/RepairForm/schema/index.ts
+2
-13
index.ts
...tion/returnPrSubmit/components/ReturnForm/schema/index.ts
+2
-13
utils.ts
src/pages/afterService/utils.ts
+20
-2
useHandleSettlementList.tsx
...formSettlement/integral/hooks/useHandleSettlementList.tsx
+7
-7
No files found.
src/pages/afterService/exchangeApplication/exchangePrSubmit/components/ExchangeForm/schema/index.ts
View file @
c85ec86c
...
...
@@ -16,7 +16,7 @@ import {
ORDER_TYPE2_POINTS
,
ORDER_TYPE2_CHANNEL_POINTS
,
}
from
'@/constants/order'
;
import
{
isMaterialOrder
}
from
'../../../../../utils'
;
import
{
isMaterialOrder
,
fetchSupplierList
}
from
'../../../../../utils'
;
const
intl
=
getIntl
();
...
...
@@ -49,17 +49,6 @@ const supplierColumns = [
},
];
// 获取供应会员
const
getSupplier
=
async
(
params
)
=>
{
const
res
=
await
getMemberManageAftersaleReplacePage
({
...
params
,
})
if
(
res
.
code
===
1000
)
{
return
res
.
data
;
}
return
{
totalCount
:
0
,
data
:
[]
};
};
const
supplierSchema
:
ISchema
=
{
type
:
'object'
,
properties
:
{
...
...
@@ -151,7 +140,7 @@ export const addSchema = (orderType: number): ISchema => {
keepAlive
:
false
,
},
columns
:
supplierColumns
,
fetchTableData
:
getSupplier
,
fetchTableData
:
fetchSupplierList
,
formilyProps
:
{
ctx
:
{
schema
:
supplierSchema
,
...
...
src/pages/afterService/repairApplication/repairPrSubmit/components/RepairForm/schema/index.ts
View file @
c85ec86c
...
...
@@ -11,7 +11,7 @@ import {
ORDER_TYPE_POINTS
,
ORDER_TYPE_CHANNEL_POINTS
,
}
from
'@/constants/order'
;
import
{
isMaterialOrder
}
from
'../../../../../utils'
;
import
{
isMaterialOrder
,
fetchSupplierList
}
from
'../../../../../utils'
;
const
intl
=
getIntl
();
...
...
@@ -44,17 +44,6 @@ const supplierColumns = [
},
];
// 获取供应会员
const
getSupplier
=
async
(
params
)
=>
{
const
res
=
await
getMemberManageAftersaleReplacePage
({
...
params
,
})
if
(
res
.
code
===
1000
)
{
return
res
.
data
;
}
return
{
totalCount
:
0
,
data
:
[]
};
};
const
supplierSchema
:
ISchema
=
{
type
:
'object'
,
properties
:
{
...
...
@@ -145,7 +134,7 @@ export const addSchema = (orderType: number): ISchema => {
keepAlive
:
false
,
},
columns
:
supplierColumns
,
fetchTableData
:
getSupplier
,
fetchTableData
:
fetchSupplierList
,
formilyProps
:
{
ctx
:
{
schema
:
supplierSchema
,
...
...
src/pages/afterService/returnApplication/returnPrSubmit/components/ReturnForm/schema/index.ts
View file @
c85ec86c
...
...
@@ -12,7 +12,7 @@ import {
ORDER_TYPE_POINTS
,
ORDER_TYPE_CHANNEL_POINTS
,
}
from
'@/constants/order'
;
import
{
isMaterialOrder
}
from
'../../../../../utils'
;
import
{
isMaterialOrder
,
fetchSupplierList
}
from
'../../../../../utils'
;
const
intl
=
getIntl
();
...
...
@@ -45,17 +45,6 @@ const supplierColumns = [
},
];
// 获取供应会员
const
getSupplier
=
async
(
params
)
=>
{
const
res
=
await
getMemberManageAftersaleReplacePage
({
...
params
,
})
if
(
res
.
code
===
1000
)
{
return
res
.
data
;
}
return
{
totalCount
:
0
,
data
:
[]
};
};
const
supplierSchema
:
ISchema
=
{
type
:
'object'
,
properties
:
{
...
...
@@ -150,7 +139,7 @@ export const addSchema = (orderType: number): ISchema => {
keepAlive
:
false
,
},
columns
:
supplierColumns
,
fetchTableData
:
getSupplier
,
fetchTableData
:
fetchSupplierList
,
formilyProps
:
{
ctx
:
{
schema
:
supplierSchema
,
...
...
src/pages/afterService/utils.ts
View file @
c85ec86c
...
...
@@ -11,6 +11,8 @@ import {
ORDER_TYPE_TENDER_CONTRACT
,
ORDER_TYPE_REQUISITION
,
}
from
'@/constants/order'
;
import
{
getMemberManageAftersaleReplacePage
,
getMemberManageUpperProviderMerchantPage
}
from
'@/services/MemberV220318Api'
;
import
BASE_CONFIG
from
'@/../config/base.config.json'
;
// 是否是采购订单
export
const
isMaterialOrder
=
(
orderType
:
number
)
=>
{
...
...
@@ -32,4 +34,20 @@ export type AsType = 2 | 3 | 4;
* 售后地址角色
* 寄件人 'sender' 收件人 'receiver'
*/
export
type
AsAddressRole
=
'sender'
|
'receiver'
\ No newline at end of file
export
type
AsAddressRole
=
'sender'
|
'receiver'
const
SUPPLIER_LIST_MAP
=
{
0
:
getMemberManageAftersaleReplacePage
,
1
:
getMemberManageUpperProviderMerchantPage
,
};
export
const
fetchSupplierList
=
async
(
params
)
=>
{
const
enableMultiTenancy
=
BASE_CONFIG
.
global
.
siteInfo
.
enableMultiTenancy
||
0
;
const
res
=
await
SUPPLIER_LIST_MAP
[
enableMultiTenancy
]({
...
params
,
})
if
(
res
.
code
===
1000
)
{
return
res
.
data
;
}
return
{
totalCount
:
0
,
data
:
[]
};
};
\ No newline at end of file
src/pages/balance/platformSettlement/integral/hooks/useHandleSettlementList.tsx
View file @
c85ec86c
...
...
@@ -76,13 +76,13 @@ function useHandleSettlementList() {
{
title
:
intl
.
formatMessage
({
id
:
'balance.platformSettlement.integral.columns.settlementWayName'
}),
dataIndex
:
'settlementWayName'
},
{
title
:
intl
.
formatMessage
({
id
:
'balance.platformSettlement.integral.columns.totalCount'
}),
dataIndex
:
'totalCount'
},
{
title
:
intl
.
formatMessage
({
id
:
'balance.platformSettlement.integral.columns.score'
}),
dataIndex
:
'score'
},
{
title
:
intl
.
formatMessage
({
id
:
'balance.platformSettlement.integral.columns.ratio'
}),
dataIndex
:
'ratio'
,
render
:
(
text
,
record
)
=>
{
return
(
record
.
ratio
+
"%"
);
}
},
//
{
//
title: intl.formatMessage({ id: 'balance.platformSettlement.integral.columns.ratio' }),
//
dataIndex: 'ratio',
//
render: (text, record) => {
//
return (record.ratio + "%");
//
}
//
},
{
title
:
intl
.
formatMessage
({
id
:
'balance.platformSettlement.integral.columns.amount'
}),
dataIndex
:
'amount'
},
{
title
:
intl
.
formatMessage
({
id
:
'balance.platformSettlement.columns.estimatedPaymentDate'
,
defaultMessage
:
'预计付款时间'
}),
dataIndex
:
'estimatedPaymentDate'
},
{
title
:
intl
.
formatMessage
({
id
:
'balance.platformSettlement.columns.payTime'
,
defaultMessage
:
'实际付款时间'
}),
dataIndex
:
'payTime'
},
...
...
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