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
5fbf69b1
Commit
5fbf69b1
authored
Apr 14, 2022
by
Bill
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix418' into 'v2-220418'
确认询价报价跳转采购订单链接更改/待审核商品添加按钮权限 See merge request linkseeks-design/pro-platform!298
parents
d705b24e
7a8ee31e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
15 deletions
+19
-15
checkProduct.tsx
src/pages/commodity/products/checkProduct.tsx
+6
-5
checkProductDetail.tsx
src/pages/commodity/products/checkProductDetail.tsx
+12
-9
index.tsx
...ransaction/dealAbility/confirmOffer/offerSearch/index.tsx
+1
-1
No files found.
src/pages/commodity/products/checkProduct.tsx
View file @
5fbf69b1
...
...
@@ -13,13 +13,14 @@ import { FORM_FILTER_PATH } from '@/formSchema/const'
import
{
createFormActions
,
FormEffectHooks
}
from
'@formily/antd'
import
{
searchBrandOptionEffect
,
searchCustomerCategoryOptionEffect
}
from
'./effect'
import
{
getProductCommodityGetUnCheckCommodityList
}
from
'@/services/ProductV2Api'
import
AuthButton
from
'@/components/AuthButton'
import
{
AuthUrl
}
from
'@/components/AuthButton/AuthUrl'
const
formActions
=
createFormActions
();
const
CheckProduct
:
React
.
FC
<
{}
>
=
()
=>
{
const
intl
=
useIntl
()
const
ref
=
useRef
<
any
>
({})
const
MENU_NODE
=
'commodity.productWillCheck'
const
columns
:
ColumnType
<
any
>
[]
=
[
{
title
:
'ID'
,
...
...
@@ -31,7 +32,7 @@ const CheckProduct: React.FC<{}> = () => {
dataIndex
:
'name'
,
key
:
'name'
,
className
:
'commonPickColor'
,
render
:
(
text
,
record
)
=>
<
EyePreview
render
:
(
text
,
record
)
=>
<
EyePreview
type=
{
AuthUrl
(
'checkProduct.chakan'
)
?
'link'
:
'button'
}
url=
{
`/memberCenter/commodityAbility/commodity/checkProduct/detail?id=${record.id}&preview=1`
}
>
{
text
}
...
...
@@ -133,9 +134,9 @@ const CheckProduct: React.FC<{}> = () => {
render
:
(
text
,
record
)
=>
{
return
(
<>
{
/* <AuthButton menuCode={MENU_NODE} btnCode="DevTest"> */
}
<
Button
type=
'link'
onClick=
{
()
=>
history
.
push
(
`/memberCenter/commodityAbility/commodity/checkProduct/detail?id=${record.id}`
)
}
>
{
intl
.
formatMessage
({
id
:
'commodity.checkProduct.check'
})
}
</
Button
>
{
/* </AuthButton> */
}
<
AuthButton
btnCode=
"checkProduct.shenhe"
>
<
Button
type=
'link'
onClick=
{
()
=>
history
.
push
(
`/memberCenter/commodityAbility/commodity/checkProduct/detail?id=${record.id}`
)
}
>
{
intl
.
formatMessage
({
id
:
'commodity.checkProduct.check'
})
}
</
Button
>
</
AuthButton
>
</>
)
}
...
...
src/pages/commodity/products/checkProductDetail.tsx
View file @
5fbf69b1
...
...
@@ -20,6 +20,7 @@ import {
postProductCommodityCheckCommodity
}
from
'@/services/ProductV2Api'
import
{
getLogisticsCompanyGet
,
getLogisticsFreightTemplateGet
,
getLogisticsShipperAddressGet
}
from
'@/services/LogisticsV2Api'
import
AuthButton
from
'@/components/AuthButton'
interface
IColumn
{
title
:
string
;
...
...
@@ -445,15 +446,17 @@ const CheckProductDetail: React.FC<{}> = () => {
backIcon=
{
<
ReutrnEle
logoSrc=
{
productDetail
?.
unitPriceAndPicList
[
0
]?.
commodityPic
[
0
]
}
/>
}
content=
{
content
}
extra=
{
!
preview
&&
[
<
Button
icon=
{
<
CheckSquareOutlined
/>
}
key=
"1"
type=
"primary"
onClick=
{
handleApplyCheck
}
disabled=
{
disableCheck
}
>
{
intl
.
formatMessage
({
id
:
'commodity.checkProductDetail.shangpinshenhe'
})
}
</
Button
>
<
AuthButton
btnCode=
"checkProductDetail.shenhe"
>
<
Button
icon=
{
<
CheckSquareOutlined
/>
}
key=
"1"
type=
"primary"
onClick=
{
handleApplyCheck
}
disabled=
{
disableCheck
}
>
{
intl
.
formatMessage
({
id
:
'commodity.checkProductDetail.shangpinshenhe'
})
}
</
Button
>
</
AuthButton
>
]
}
>
<
Space
direction=
"vertical"
style=
{
{
width
:
'100%'
}
}
>
...
...
src/pages/transaction/dealAbility/confirmOffer/offerSearch/index.tsx
View file @
5fbf69b1
...
...
@@ -76,7 +76,7 @@ const OfferSearch = () => {
dataIndex
:
'operate'
,
render
:
(
_
,
record
)
=>
record
.
isShowPurchaseOrder
&&
<
AuthButton
btnCode=
'waitAuditOfferOne.chuangjiancaigoudingdan'
>
<
Button
type=
'link'
onClick=
{
()
=>
history
.
push
(
`/memberCenter/
tranactionAbility
/purchaseOrder/readyAddB2bOrder/add?modelType=3"ationId=${record.id}`
)
}
>
{
intl
.
formatMessage
({
id
:
'dealAbility.chuangjiancaigoudingdan'
})
}
</
Button
>
<
Button
type=
'link'
onClick=
{
()
=>
history
.
push
(
`/memberCenter/
order
/purchaseOrder/readyAddB2bOrder/add?modelType=3"ationId=${record.id}`
)
}
>
{
intl
.
formatMessage
({
id
:
'dealAbility.chuangjiancaigoudingdan'
})
}
</
Button
>
</
AuthButton
>
}
...
...
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