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
1eab2626
Commit
1eab2626
authored
May 13, 2022
by
前端-许冠华
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '0518' into 'jinfa-0518'
fix: 修改请购单bug See merge request project/jinfa-platform!35
parents
31b70a9f
aa852323
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
5 deletions
+12
-5
index.tsx
src/components/TableOperation/index.tsx
+1
-1
order.ts
src/constants/order.ts
+4
-0
utils.ts
src/pages/afterService/utils.ts
+2
-0
index.tsx
...purchaseRequisition/components/descriptionsInfo/index.tsx
+1
-0
index.tsx
...ion/increaseRequisition/components/editSalesman/index.tsx
+3
-3
defaultHomePath.ts
src/utils/defaultHomePath.ts
+1
-1
No files found.
src/components/TableOperation/index.tsx
View file @
1eab2626
...
...
@@ -32,7 +32,7 @@ const TableOperation: React.FC<TableOperationProps> = (props) =>
const
{
buttonTextFieldMap
,
operationHandler
,
buttonPermissionsMap
=
null
,
menuCode
=
null
}
=
props
const
keyNames
=
Object
.
keys
(
buttonTextFieldMap
)
console
.
log
(
buttonPermissionsMap
,
keyNames
)
return
(<>
{
Object
.
values
(
buttonTextFieldMap
).
filter
(
Boolean
).
length
>
2
...
...
src/constants/order.ts
View file @
1eab2626
...
...
@@ -14,6 +14,10 @@ const intl = getIntl();
/** 订单类型 */
/**
* 请购单合同
*/
export
const
ORDER_TYPE_REQUISITION_CONTRACT
=
14
;
/**
* 询价采购
*/
export
const
ORDER_TYPE_INQUIRYT_PURCHASE
=
1
;
...
...
src/pages/afterService/utils.ts
View file @
1eab2626
...
...
@@ -10,6 +10,7 @@ import {
ORDER_TYPE_BIDDING_CONTRACT
,
ORDER_TYPE_TENDER_CONTRACT
,
ORDER_TYPE_REQUISITION
,
ORDER_TYPE_REQUISITION_CONTRACT
,
}
from
'@/constants/order'
;
import
{
getMemberManageAftersaleReplacePage
,
getMemberManageUpperProviderMerchantPage
}
from
'@/services/MemberV2Api'
;
import
BASE_CONFIG
from
'@/../config/base.config.json'
;
...
...
@@ -21,6 +22,7 @@ export const isMaterialOrder = (orderType: number) => {
||
orderType
===
ORDER_TYPE_BIDDING_CONTRACT
||
orderType
===
ORDER_TYPE_TENDER_CONTRACT
||
orderType
===
ORDER_TYPE_REQUISITION
||
orderType
===
ORDER_TYPE_REQUISITION_CONTRACT
)
};
...
...
src/pages/transaction/purchaseRequisition/components/descriptionsInfo/index.tsx
View file @
1eab2626
...
...
@@ -37,6 +37,7 @@ const DescriptionsInfo: React.FC<BasicInfoProps> = ({ cardTitle, type, styles })
{
title
:
intl
.
formatMessage
({
id
:
'purchaseRequisition.qinggoubumen:'
,
defaultMessage
:
'请购部门:'
}),
name
:
'department'
},
{
title
:
"请购人:"
,
name
:
'requisitioner'
},
{
title
:
"币别:"
,
name
:
'currencyName'
},
{
title
:
intl
.
formatMessage
({
id
:
'purchaseRequisition.spaNo:'
,
defaultMessage
:
'SAP需求编号:'
}),
name
:
'sapNo'
},
{
title
:
"内部状态:"
,
name
:
'innerStatusName'
},
]
},
...
...
src/pages/transaction/purchaseRequisition/increaseRequisition/components/editSalesman/index.tsx
View file @
1eab2626
import
React
,
{
Fragment
,
useEffect
,
useState
}
from
'react'
;
import
{
Modal
,
Form
,
Space
,
Input
,
Select
,
Button
,
Row
,
Col
}
from
'antd'
;
import
{
MinusOutlined
,
PlusOutlined
}
from
'@ant-design/icons'
;
import
{
getMemberUserSalesManList
}
from
'@/services/MemberV2Api'
;
import
{
getMemberUser
Page
,
getMemberUser
SalesManList
}
from
'@/services/MemberV2Api'
;
import
{
ISchemaFormActions
,
ISchemaFormAsyncActions
}
from
'@formily/antd'
;
import
{
useIntl
}
from
'umi'
;
...
...
@@ -24,11 +24,11 @@ const EditSalesman: React.FC<MemberModalTableProps> = (props) => {
const
[
form
]
=
Form
.
useForm
();
useEffect
(()
=>
{
getMemberUser
SalesManList
(
).
then
(
res
=>
{
getMemberUser
Page
({
pageSize
:
'9999'
,
current
:
'1'
}
as
any
).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
return
}
setSalesManList
(
res
.
data
)
setSalesManList
(
res
.
data
.
data
)
})
},
[])
...
...
src/utils/defaultHomePath.ts
View file @
1eab2626
...
...
@@ -7,7 +7,7 @@ import { getAuth } from "./auth";
*/
const
defaultHomePath
=
():
string
=>
{
const
userAuth
=
getAuth
();
if
(
userAuth
.
urls
.
includes
(
SRM_PURCHASER_HOME_PATH
))
{
if
(
userAuth
.
urls
?
.
includes
(
SRM_PURCHASER_HOME_PATH
))
{
return
SRM_PURCHASER_HOME_PATH
;
}
return
HOME_PATH
;
...
...
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