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
5f5db997
Commit
5f5db997
authored
Aug 13, 2021
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat(商品询价): 二次询价
parent
f9d171be
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
4 deletions
+33
-4
index.tsx
...ransaction/dealAbility/confirmOffer/offerSearch/index.tsx
+2
-1
index.tsx
...nsaction/dealAbility/inquiryOffer/inquirySearch/index.tsx
+24
-3
add.tsx
...saction/dealAbility/productInquiry/waitAddInquiry/add.tsx
+4
-0
inquiryProduct.tsx
...oductInquiry/waitAddInquiry/components/inquiryProduct.tsx
+3
-0
No files found.
src/pages/transaction/dealAbility/confirmOffer/offerSearch/index.tsx
View file @
5f5db997
import
React
,
{
useRef
}
from
'react'
;
import
React
,
{
useRef
}
from
'react'
;
import
Table
from
'@/pages/transaction/components/TableLayout'
;
import
Table
from
'@/pages/transaction/components/TableLayout'
;
import
{
history
}
from
'umi'
;
import
{
history
}
from
'umi'
;
import
{
Tag
,
Badge
}
from
'antd'
;
import
{
Tag
,
Badge
,
Button
}
from
'antd'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
EyePreview
from
'@/components/EyePreview'
;
import
EyePreview
from
'@/components/EyePreview'
;
import
moment
from
'moment'
;
import
moment
from
'moment'
;
...
@@ -70,6 +70,7 @@ const OfferSearch = () => {
...
@@ -70,6 +70,7 @@ const OfferSearch = () => {
title
:
'操作'
,
title
:
'操作'
,
key
:
'operate'
,
key
:
'operate'
,
dataIndex
:
'operate'
,
dataIndex
:
'operate'
,
render
:
(
_
,
record
)
=>
record
.
isShowPurchaseOrder
&&
<
Button
type=
'link'
onClick=
{
()
=>
history
.
push
(
`/memberCenter/tranactionAbility/purchaseOrder/readyAddOrder/b2b/add?modelType=3`
)
}
>
创建采购订单
</
Button
>
}
}
];
];
...
...
src/pages/transaction/dealAbility/inquiryOffer/inquirySearch/index.tsx
View file @
5f5db997
...
@@ -8,6 +8,7 @@ import moment from 'moment';
...
@@ -8,6 +8,7 @@ import moment from 'moment';
import
{
PublicApi
}
from
'@/services/api'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
INQUIRYSEARCHSCHEMA
}
from
'./schema'
;
import
{
INQUIRYSEARCHSCHEMA
}
from
'./schema'
;
import
{
EXTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
EXTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
setAuth
,
setRouters
}
from
'@/utils/auth'
;
const
InquirySearch
=
()
=>
{
const
InquirySearch
=
()
=>
{
...
@@ -17,6 +18,22 @@ const InquirySearch = () => {
...
@@ -17,6 +18,22 @@ const InquirySearch = () => {
return
<>
{
moment
(
text
).
format
(
fmt
||
"YYYY-MM-DD HH:mm:ss"
)
}
</>
return
<>
{
moment
(
text
).
format
(
fmt
||
"YYYY-MM-DD HH:mm:ss"
)
}
</>
}
}
/** 二次询价 */
const
secondInquiry
=
(
id
)
=>
{
PublicApi
.
postMemberLoginSwitchrole
({
memberRoleId
:
11
,
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
return
;
}
setAuth
(
res
.
data
);
setRouters
(
res
.
data
.
urls
);
setTimeout
(()
=>
{
window
.
location
.
replace
(
`/memberCenter/tranactionAbility/productInquiry/waitAddInquiry/add?id=
${
id
}
`
);
},
800
);
}).
catch
(
err
=>
{})
}
const
columns
:
ColumnType
<
any
>
[]
=
[
const
columns
:
ColumnType
<
any
>
[]
=
[
{
{
title
:
'询价单号'
,
title
:
'询价单号'
,
...
@@ -63,9 +80,13 @@ const InquirySearch = () => {
...
@@ -63,9 +80,13 @@ const InquirySearch = () => {
title
:
'操作'
,
title
:
'操作'
,
key
:
'options'
,
key
:
'options'
,
dataIndex
:
'options'
,
dataIndex
:
'options'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<>
render
:
(
_text
:
any
,
record
:
any
)
=>
<>
<
Button
disabled=
{
record
.
isQuoted
===
1
}
onClick=
{
()
=>
history
.
push
(
`/memberCenter/tranactionAbility/inquiryOffer/waitAddOffer/offer?id=${record.id}`
)
}
type=
'link'
>
报价
</
Button
>
{
record
.
isShowQuote
&&
(
<
Button
disabled=
{
record
.
isQuoted
===
1
}
type=
'link'
>
二次询价
</
Button
>
<
Button
onClick=
{
()
=>
history
.
push
(
`/memberCenter/tranactionAbility/inquiryOffer/waitAddOffer/offer?id=${record.id}`
)
}
type=
'link'
>
报价
</
Button
>
)
}
{
record
.
isShowSecondInquiry
&&
(
<
Button
type=
'link'
onClick=
{
()
=>
secondInquiry
(
record
.
id
)
}
>
二次询价
</
Button
>
)
}
</>
</>
}
}
];
];
...
...
src/pages/transaction/dealAbility/productInquiry/waitAddInquiry/add.tsx
View file @
5f5db997
import
React
from
'react'
;
import
React
from
'react'
;
import
AddForm
from
'./addForm'
;
import
AddForm
from
'./addForm'
;
import
{
history
}
from
'umi'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
PublicApi
}
from
'@/services/api'
;
const
AddEnquiryOrder
=
(
props
:
any
)
=>
{
const
AddEnquiryOrder
=
(
props
:
any
)
=>
{
const
{
id
}
=
history
.
location
.
query
;
return
(
return
(
<
AddForm
<
AddForm
id=
{
id
}
isEdit=
{
id
&&
true
}
title=
{
props
.
route
.
name
}
title=
{
props
.
route
.
name
}
fetchRequest=
{
PublicApi
.
postTransactionInquiryListAdd
}
fetchRequest=
{
PublicApi
.
postTransactionInquiryListAdd
}
/>
/>
...
...
src/pages/transaction/dealAbility/productInquiry/waitAddInquiry/components/inquiryProduct.tsx
View file @
5f5db997
...
@@ -143,6 +143,9 @@ const InquiryProductLayout: React.FC<InquiryProductLayoutProps> = (props: any) =
...
@@ -143,6 +143,9 @@ const InquiryProductLayout: React.FC<InquiryProductLayoutProps> = (props: any) =
memberRoleId
:
v
.
memberRoleId
,
memberRoleId
:
v
.
memberRoleId
,
imgUrl
:
v
.
mainPic
,
imgUrl
:
v
.
mainPic
,
taxRate
:
v
.
taxRate
,
taxRate
:
v
.
taxRate
,
upperCommoditySkuId
:
v
.
commodityUnitPriceAndPicId
,
upperMemberId
:
v
.
upperMemberId
,
upperMemberRoleId
:
v
.
upperMemberRoleId
,
})
})
})
})
resolve
({
resolve
({
...
...
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