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
project
jinfa-admin
Commits
ca2d3b33
Commit
ca2d3b33
authored
Sep 28, 2020
by
LeeJiancong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'完善需求单状态和优化'
parent
7e00e0f5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
19 deletions
+32
-19
app.tsx
src/app.tsx
+4
-4
index.tsx
src/pages/requisition/aduit/components/index.tsx
+4
-13
colorTag.ts
src/pages/requisition/common/colorTag.ts
+9
-2
tableStatusList.tsx
src/pages/requisition/common/tableStatusList.tsx
+15
-0
No files found.
src/app.tsx
View file @
ca2d3b33
...
...
@@ -86,10 +86,10 @@ export function render(oldRender:Function) {
export
function
onRouteChange
({
routes
,
matchedRoutes
,
location
,
action
})
{
console
.
log
(
'onRouteChange'
)
//
if (isDev) {
//
console.log('dev')
//
return;
//
}
if
(
isDev
)
{
console
.
log
(
'dev'
)
return
;
}
if
(
whiteLists
.
includes
(
location
.
pathname
))
{
return
...
...
src/pages/requisition/aduit/components/index.tsx
View file @
ca2d3b33
...
...
@@ -3,7 +3,7 @@
* @Date: 2020-08-24 11:39:11
* @LastEditors: LeeJiancong
* @Copyright: 1549414730@qq.com
* @LastEditTime: 2020-09-2
5 14:48:05
* @LastEditTime: 2020-09-2
8 15:29:39
*/
/**
* @description: 组件描述: 一级 二级 待提交需求单
...
...
@@ -34,7 +34,7 @@ import {
}
from
'god/dist/src/standard-table/TableController'
;
import
EyePreview
from
'@/components/EyePreview'
;
import
StatusSwitch
from
'@/components/StatusSwitch'
;
import
{
interiorState
,
interiorStateTwo
,
enquirySearchInteriorState
}
from
'../../common/tableStatusList'
import
{
interiorState
,
interiorStateTwo
,
enquirySearchInteriorState
,
enquirySearchexternalState2
}
from
'../../common/tableStatusList'
import
statuStyle
from
'../../common/colorTag'
import
NiceForm
from
'@/components/NiceForm'
;
import
{
timeRange
}
from
'@/utils/index'
...
...
@@ -145,15 +145,8 @@ const List:React.FC<listParams> = (props) => {
key
:
'externalState'
,
dataIndex
:
'externalState'
,
align
:
'center'
,
render
:
(
text
:
any
,
reconds
)
=>
{
let
component
:
ReactNode
=
null
if
(
text
==
3
)
{
component
=
<><
span
style=
{
statuStyle
.
warn
}
>
审核不通过需求单
</
span
></>
}
else
if
(
text
==
1
)
{
component
=
<><
span
style=
{
statuStyle
.
default
}
>
待提交需求单
</
span
></>
}
return
component
}
render
:
(
text
:
any
,
reconds
)
=>
enquirySearchexternalState2
(
text
)
},
{
title
:
'内部状态'
,
...
...
@@ -161,8 +154,6 @@ const List:React.FC<listParams> = (props) => {
dataIndex
:
'interiorState'
,
align
:
'center'
,
render
:(
text
:
any
)
=>
// props.type === 1 ? interiorState(text) :
// props.type === 2 || props.type == 3? interiorStateTwo(text) : ''
enquirySearchInteriorState
(
text
)
},
{
...
...
src/pages/requisition/common/colorTag.ts
View file @
ca2d3b33
...
...
@@ -2,7 +2,7 @@
* @Author: LeeJiancong
* @Date: 2020-07-30 17:23:48
* @LastEditors: LeeJiancong
* @LastEditTime: 2020-0
7-30 17:24:49
* @LastEditTime: 2020-0
9-28 16:12:56
*/
export
default
{
default
:
{
...
...
@@ -25,7 +25,13 @@ export default {
warn
:
{
color
:
'#E63F3B'
,
padding
:
'2px 5px'
,
background
:
'rgba(255,235,230,1)'
,
background
:
'rgb(255, 235, 230)'
,
borderRadius
:
'4px'
},
Error
:
{
color
:
'red'
,
padding
:
'2px 5px'
,
background
:
'rgba(255,247,227,1)'
,
borderRadius
:
'4px'
}
}
\ No newline at end of file
src/pages/requisition/common/tableStatusList.tsx
View file @
ca2d3b33
import
React
,
{
Component
,
ReactNode
}
from
'react'
;
import
{
Badge
}
from
'antd'
import
statuStyle
from
'./colorTag'
/****** *********************** 需求单 ************************** */
/**
* @description: 需求提交一级
...
...
@@ -64,6 +65,20 @@ export const enquirySearchexternalState = (text:any) => {
return
component
;
}
export
const
enquirySearchexternalState2
=
(
text
:
any
)
=>
{
let
component
:
ReactNode
=
null
;
text
===
1
?
component
=
<
span
style=
{
statuStyle
.
default
}
>
待提交需求单
</
span
>:
text
===
2
?
component
=
<
span
style=
{
statuStyle
.
warn
}
>
提交报价单
</
span
>:
text
===
3
?
component
=
<
span
style=
{
statuStyle
.
confirm
}
>
提交报价单
</
span
>:
text
===
4
?
component
=
<
span
style=
{
statuStyle
.
confirm
}
>
确认报价单
</
span
>:
text
===
5
?
component
=
<
span
style=
{
statuStyle
.
success
}
>
完成
</
span
>:
text
===
6
?
component
=
<
span
style=
{
statuStyle
.
Error
}
>
审核不通过
</
span
>:
component
=
<
span
style=
{
statuStyle
.
default
}
>
取消报价单
</
span
>
return
component
;
}
/****** *********************** 报价单 ************************** */
...
...
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