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
linweijiong
jinfa-platform
Commits
8d8d95fb
Commit
8d8d95fb
authored
Jun 02, 2021
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix: 修改采购计划需求计划内部状态
parent
7069a4d5
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
101 additions
and
10 deletions
+101
-10
add.tsx
src/pages/shop/shopSeo/add.tsx
+1
-1
index.tsx
...es/transaction/purchaseAbility/components/table/index.tsx
+8
-2
index.tsx
...ion/purchaseAbility/demandPlan/demandPlanSearch/index.tsx
+3
-0
index.tsx
...saction/purchaseAbility/purchasDoor/purchasInfo/index.tsx
+0
-2
add.tsx
...ransaction/purchaseAbility/purchasDoor/purchasSeo/add.tsx
+1
-1
index.tsx
...transaction/purchaseAbility/purchasePlan/demand/index.tsx
+1
-1
index.tsx
...purchaseAbility/purchasePlan/purchasePlanSearch/index.tsx
+3
-2
demandPlan.ts
src/pages/transaction/purchaseAbility/schema/demandPlan.ts
+1
-1
purchasePlan.ts
src/pages/transaction/purchaseAbility/schema/purchasePlan.ts
+83
-0
No files found.
src/pages/shop/shopSeo/add.tsx
View file @
8d8d95fb
...
...
@@ -5,7 +5,7 @@ import { PageHeaderWrapper } from '@ant-design/pro-layout';
import
ReutrnEle
from
'@/components/ReturnEle'
;
import
RequireItem
from
'@/components/RequireItem'
;
import
{
QuestionCircleOutlined
}
from
'@ant-design/icons'
;
import
{
SELECT_NAME
,
DOORTYPE
}
from
'@/constants'
;
import
{
SELECT_NAME
,
DOORTYPE
}
from
'@/constants
/procurement
'
;
import
{
PublicApi
}
from
'@/services/api'
;
const
{
TabPane
}
=
Tabs
const
layout
:
any
=
{
...
...
src/pages/transaction/purchaseAbility/components/table/index.tsx
View file @
8d8d95fb
...
...
@@ -29,6 +29,7 @@ import {
DEMANDPLAN_SECHEMA
}
from
'../../schema/demandPlan'
;
import
{
PURCHASEPLANSERCH_SECHEMA
,
PURCHASEPLAN_SECHEMA
}
from
'../../schema/purchasePlan'
;
import
{
...
...
@@ -61,6 +62,7 @@ interface Iprops {
'DEMANDPLANSERCH_SECHEMA'
|
'DEMANDPLANADDED_SECHEMA'
|
'DEMANDPLAN_SECHEMA'
|
'PURCHASEPLANSERCH_SECHEMA'
|
'PURCHASEPLAN_SECHEMA'
|
'PURCHASEBIDORDER_SCHEMA'
|
'PURCHASEBIDREADYADD_SCHEMA'
|
...
...
@@ -119,6 +121,8 @@ const Table: React.FC<Iprops> = (props: any) => {
return
DEMANDPLANADDED_SECHEMA
;
case
'DEMANDPLAN_SECHEMA'
:
return
DEMANDPLAN_SECHEMA
;
case
'PURCHASEPLANSERCH_SECHEMA'
:
return
PURCHASEPLANSERCH_SECHEMA
;
case
'PURCHASEPLAN_SECHEMA'
:
return
PURCHASEPLAN_SECHEMA
;
case
'PURCHASEBIDORDER_SCHEMA'
:
...
...
@@ -169,12 +173,14 @@ const Table: React.FC<Iprops> = (props: any) => {
const
linkage
=
useLinkageUtils
();
onFormMount$
().
subscribe
(()
=>
{
externalStatusFetch
&&
externalStatusFetch
().
then
(
res
=>
{
const
_enum
=
res
.
data
.
map
((
item
)
=>
{
return
{
label
:
item
.
name
,
value
:
item
.
satatus
}})
const
_enum
=
res
.
data
.
map
((
item
)
=>
{
return
{
label
:
item
.
name
||
item
.
message
,
value
:
item
.
satatus
||
item
.
code
}})
linkage
.
enum
(
'externalState'
,
_enum
)
linkage
.
enum
(
'externalStatusList'
,
_enum
)
})
interiorStatusFetch
&&
interiorStatusFetch
().
then
(
res
=>
{
const
_enum
=
res
.
data
.
map
((
item
)
=>
{
return
{
label
:
item
.
name
,
value
:
item
.
satatus
}})
const
_enum
=
res
.
data
.
map
((
item
)
=>
{
return
{
label
:
item
.
name
||
item
.
message
,
value
:
item
.
satatus
||
item
.
code
}})
linkage
.
enum
(
'interiorState'
,
_enum
)
linkage
.
enum
(
'innerStatusList'
,
_enum
)
})
})
...
...
src/pages/transaction/purchaseAbility/demandPlan/demandPlanSearch/index.tsx
View file @
8d8d95fb
...
...
@@ -57,12 +57,15 @@ const DemandPlanSearch = () => {
render
:
(
text
:
any
,
record
:
any
)
=>
<
Badge
status=
{
OFFTER_INTERNALSTATE_COLOR
[
text
]
}
text=
{
record
.
innerStatusName
}
/>
}];
return
(
<
Table
schemaType=
"DEMANDPLANSERCH_SECHEMA"
columns=
{
columns
}
effects=
"needPlanNo"
fetch=
{
PublicApi
.
getPurchaseNeedPlanAllList
}
interiorStatusFetch=
{
PublicApi
.
getPurchaseNeedPlanInner
}
/>
)
}
...
...
src/pages/transaction/purchaseAbility/purchasDoor/purchasInfo/index.tsx
View file @
8d8d95fb
...
...
@@ -14,8 +14,6 @@ import styles from './index.less'
import
{
getAuth
}
from
'@/utils/auth'
import
{
isEmpty
}
from
'@formily/antd/esm/shared'
import
{
UPLOAD_TYPE
}
from
'@/constants'
import
CategorySelect
from
'@/components/CategorySelect'
import
{
yearProcessAmount
,
plantArea
,
staffNum
}
from
'@/constants'
;
interface
PurchasInfoPropsType
{
SiteStore
:
{
...
...
src/pages/transaction/purchaseAbility/purchasDoor/purchasSeo/add.tsx
View file @
8d8d95fb
...
...
@@ -5,7 +5,7 @@ import { PageHeaderWrapper } from '@ant-design/pro-layout';
import
ReutrnEle
from
'@/components/ReturnEle'
;
import
RequireItem
from
'@/components/RequireItem'
;
import
{
QuestionCircleOutlined
}
from
'@ant-design/icons'
;
import
{
SELECT_NAME
,
DOORTYPE
}
from
'@/constants'
;
import
{
SELECT_NAME
,
DOORTYPE
}
from
'@/constants
/procurement
'
;
import
{
PublicApi
}
from
'@/services/api'
;
const
{
TabPane
}
=
Tabs
const
layout
:
any
=
{
...
...
src/pages/transaction/purchaseAbility/purchasePlan/demand/index.tsx
View file @
8d8d95fb
...
...
@@ -134,7 +134,7 @@ const DemandDetailed = () => {
}
components=
{
<
Fragment
>
<
ProgressLayout
/>
<
ProgressLayout
logstate=
{
2
}
/>
<
BasicLayout
effect=
{
basicEffect
}
/>
<
DemandPlanMaterialLayout
id=
{
id
}
...
...
src/pages/transaction/purchaseAbility/purchasePlan/purchasePlanSearch/index.tsx
View file @
8d8d95fb
...
...
@@ -58,10 +58,11 @@ const PurchasePlanSearch = () => {
return
(
<
Table
schemaType=
"
DEMANDPLAN
_SECHEMA"
schemaType=
"
PURCHASEPLANSERCH
_SECHEMA"
columns=
{
columns
}
effects=
"
need
PlanNo"
effects=
"
purchase
PlanNo"
fetch=
{
PublicApi
.
getPurchasePurchasePlanAllList
}
interiorStatusFetch=
{
PublicApi
.
getPurchaseNeedPlanInner
}
/>
)
}
...
...
src/pages/transaction/purchaseAbility/schema/demandPlan.ts
View file @
8d8d95fb
...
...
@@ -67,7 +67,7 @@ export const DEMANDPLANSERCH_SECHEMA: ISchema = {
width
:
160
}
},
enum
:
DEMANDPLANINTERNALSTATE
enum
:
[]
},
}
},
...
...
src/pages/transaction/purchaseAbility/schema/purchasePlan.ts
View file @
8d8d95fb
import
{
ISchema
}
from
'@formily/antd'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
/** 采购需求查询 */
export
const
PURCHASEPLANSERCH_SECHEMA
:
ISchema
=
{
type
:
'object'
,
properties
:
{
megalayout
:
{
type
:
'object'
,
"x-component"
:
'mega-layout'
,
properties
:
{
purchasePlanNo
:
{
type
:
'string'
,
"x-component"
:
"Search"
,
"x-mega-props"
:
{
},
"x-component-props"
:
{
placeholder
:
'采购计划编号'
,
align
:
'flex-left'
,
}
}
}
},
[
FORM_FILTER_PATH
]:
{
type
:
'object'
,
"x-component"
:
"flex-layout"
,
"x-component-props"
:
{
rowStyle
:
{
justifyContent
:
'flex-start'
,
flexWrap
:
'nowrap'
},
colStyle
:
{
//改变间隔
marginRight
:
20
}
},
properties
:
{
PRO_LAYOUT
:
{
type
:
'object'
,
"x-component"
:
'mega-layout'
,
"x-mega-props"
:
{
span
:
5
},
"x-component-props"
:
{
inline
:
true
},
properties
:
{
summary
:
{
type
:
'string'
,
"x-component-props"
:
{
placeholder
:
'需求计划摘要'
,
}
},
"[startTime,endTime]"
:
{
type
:
'string'
,
"x-component"
:
"dateSelect"
,
"x-component-props"
:
{
placeholder
:
'需求计划周期'
,
}
},
innerStatusList
:
{
type
:
'string'
,
"x-component-props"
:
{
placeholder
:
'内部状态'
,
style
:
{
width
:
160
}
},
enum
:
[]
},
}
},
sumbit
:
{
"x-component"
:
'Submit'
,
"x-mega-props"
:
{
span
:
1
},
"x-component-props"
:
{
children
:
'查询'
}
}
}
}
}
}
/** 待提交审核采购计划(一级) & (二级) & 待提交审核采购计划 & 待执行采购计划 */
export
const
PURCHASEPLAN_SECHEMA
:
ISchema
=
{
type
:
'object'
,
...
...
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