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
3658db78
Commit
3658db78
authored
Jun 28, 2021
by
Bill
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-srm' of 10.0.0.22:lingxi/lingxi-business-paltform into dev-srm
parents
a4d437d7
af84ae3d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
16 deletions
+16
-16
DateSelect.tsx
src/components/NiceForm/components/DateSelect.tsx
+1
-3
index.tsx
...ity/components/detail/components/contrastLyout1/index.tsx
+1
-1
index.tsx
...ents/detail/components/contrastLyout1/rowLayout/index.tsx
+4
-2
demandPlan.ts
src/pages/transaction/purchaseAbility/schema/demandPlan.ts
+6
-6
purchasePlan.ts
src/pages/transaction/purchaseAbility/schema/purchasePlan.ts
+4
-4
No files found.
src/components/NiceForm/components/DateSelect.tsx
View file @
3658db78
...
...
@@ -18,9 +18,7 @@ const getPrevTime = (num, flag) => {
const
DateSelect
=
(
props
)
=>
{
const
{
value
,
mutators
}
=
props
const
todayStartTime
=
moment
().
startOf
(
'day'
).
format
(
'x'
)
// const nowTime = moment().format('x').valueOf()
/** 当天的23:59:59 */
const
nowTime
=
moment
().
endOf
(
'day'
).
valueOf
()
const
nowTime
=
moment
().
format
(
'x'
).
valueOf
()
const
dateMemo
=
useMemo
(()
=>
[
{
label
:
'今天'
,
value
:
`
${
todayStartTime
}
,
${
nowTime
}
`
},
{
label
:
'一周内'
,
value
:
`
${
getPrevTime
(
1
,
'week'
)}
,
${
nowTime
}
`
},
...
...
src/pages/transaction/purchaseAbility/components/detail/components/contrastLyout1/index.tsx
View file @
3658db78
...
...
@@ -280,7 +280,7 @@ const ContrastLyout1: React.FC<IProps> = (props: any) => {
data
-
index=
{
index
}
tab=
{
`第${chNum[item]}轮`
}
>
{
(
rowSource
[
idx
]
&&
rowSource
[
idx
].
length
>
0
)
?
<
RowLayout
rowSource=
{
rowSource
[
idx
]
}
/>
:
{
(
rowSource
[
idx
]
&&
rowSource
[
idx
].
length
>
0
)
?
<
RowLayout
encrypt=
{
encrypt
}
rowSource=
{
rowSource
[
idx
]
}
/>
:
<
Empty
image=
{
Empty
.
PRESENTED_IMAGE_SIMPLE
}
/>
}
<
Skeleton
...
...
src/pages/transaction/purchaseAbility/components/detail/components/contrastLyout1/rowLayout/index.tsx
View file @
3658db78
...
...
@@ -7,10 +7,12 @@ import { PRICECONTRAST_TYPE } from '../../../../../constants';
export
interface
IProps
{
/** 信息数据 */
rowSource
?:
any
,
/** 是否加密 */
encrypt
?:
number
,
}
const
RowLayout
:
React
.
FC
<
IProps
>
=
(
props
:
any
)
=>
{
const
{
rowSource
}
=
props
;
const
{
rowSource
,
encrypt
}
=
props
;
const
format
=
(
text
,
fmt
?:
string
)
=>
{
return
<>
{
moment
(
text
).
format
(
fmt
||
"YYYY-MM-DD HH:mm:ss"
)
}
</>
}
...
...
@@ -62,7 +64,7 @@ const RowLayout: React.FC<IProps> = (props: any) => {
</
Row
>
</
div
>
<
div
className=
{
style
[
'card-badge'
]
}
>
{
item
.
isDecrypt
===
PRICECONTRAST_TYPE
.
UNENCRYPTED
?
'已解密'
:
'未解密'
}
{
item
.
isDecrypt
===
PRICECONTRAST_TYPE
.
UNENCRYPTED
?
(
encrypt
===
1
?
'未加密'
:
'已解密'
)
:
'未解密'
}
</
div
>
{
item
.
isDecrypt
===
PRICECONTRAST_TYPE
.
UNENCRYPTED
&&
<
Typography
.
Link
href=
{
`/memberCenter/procurementAbility/confirmOffer/quote/detail?id=${item.id}&number=${item.quotedPriceNo}&turn=${item.turn}`
}
className=
{
style
[
'card-link'
]
}
>
查看报价详情
</
Typography
.
Link
>
}
{
item
.
isDecrypt
===
PRICECONTRAST_TYPE
.
UNDECRYPTED
&&
<
Tooltip
placement=
"topLeft"
title=
'当前报价为密封报价,请先解密报价单'
><
Typography
.
Text
className=
{
style
[
'card-link'
]
}
type=
'success'
>
查看报价详情
</
Typography
.
Text
></
Tooltip
>
}
...
...
src/pages/transaction/purchaseAbility/schema/demandPlan.ts
View file @
3658db78
...
...
@@ -54,9 +54,9 @@ export const DEMANDPLANSERCH_SECHEMA: ISchema = {
},
"[startTime,endTime]"
:
{
type
:
'string'
,
"x-component"
:
"
dateSelect
"
,
"x-component"
:
"
DateRangePickerUnix
"
,
"x-component-props"
:
{
placeholder
:
'需求计划周期'
,
placeholder
:
[
'开始时间'
,
'结束时间'
]
,
}
},
innerStatusList
:
{
...
...
@@ -144,9 +144,9 @@ export const DEMANDPLANADDED_SECHEMA: ISchema = {
},
"[startTime,endTime]"
:
{
type
:
'string'
,
"x-component"
:
"
dateSelect
"
,
"x-component"
:
"
DateRangePickerUnix
"
,
"x-component-props"
:
{
placeholder
:
'需求计划周期'
,
placeholder
:
[
'开始时间'
,
'结束时间'
]
,
}
},
}
...
...
@@ -216,9 +216,9 @@ export const DEMANDPLAN_SECHEMA: ISchema = {
},
"[startTime,endTime]"
:
{
type
:
'string'
,
"x-component"
:
"
dateSelect
"
,
"x-component"
:
"
DateRangePickerUnix
"
,
"x-component-props"
:
{
placeholder
:
'需求计划周期'
,
placeholder
:
[
'开始时间'
,
'结束时间'
]
,
}
},
}
...
...
src/pages/transaction/purchaseAbility/schema/purchasePlan.ts
View file @
3658db78
...
...
@@ -53,9 +53,9 @@ export const PURCHASEPLANSERCH_SECHEMA: ISchema = {
},
"[startTime,endTime]"
:
{
type
:
'string'
,
"x-component"
:
"
dateSelect
"
,
"x-component"
:
"
DateRangePickerUnix
"
,
"x-component-props"
:
{
placeholder
:
'需求计划周期'
,
placeholder
:
[
'开始时间'
,
'结束时间'
]
,
}
},
innerStatusList
:
{
...
...
@@ -136,9 +136,9 @@ export const PURCHASEPLAN_SECHEMA: ISchema = {
},
"[startTime,endTime]"
:
{
type
:
'string'
,
"x-component"
:
"
dateSelect
"
,
"x-component"
:
"
DateRangePickerUnix
"
,
"x-component-props"
:
{
placeholder
:
'采购计划周期'
,
placeholder
:
[
'开始时间'
,
'结束时间'
]
,
}
},
}
...
...
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