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
28271658
Commit
28271658
authored
Mar 23, 2021
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 完成采购报价
parent
66e6900e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
79 additions
and
16 deletions
+79
-16
index.tsx
...es/transaction/purchaseAbility/offter/addOffter/index.tsx
+13
-4
index.tsx
...ansaction/purchaseAbility/offter/auditOffterOne/index.tsx
+1
-1
index.tsx
...ansaction/purchaseAbility/offter/auditOffterTwo/index.tsx
+1
-1
index.less
...ages/transaction/purchaseAbility/offter/detail/index.less
+50
-0
index.tsx
...pages/transaction/purchaseAbility/offter/detail/index.tsx
+0
-0
index.tsx
...transaction/purchaseAbility/offter/submitOffter/index.tsx
+14
-10
No files found.
src/pages/transaction/purchaseAbility/offter/addOffter/index.tsx
View file @
28271658
...
...
@@ -77,7 +77,11 @@ const AddOffter = () => {
record
.
interiorState
===
OFFTER_INTERNALSTATE_TYPE
.
WAITSUBMITAUDIT_TYPE
&&
(
<>
<
Button
type=
'link'
>
提交审核
</
Button
>
<
Popconfirm
title=
"确定要提交审核吗?"
okText=
"是"
cancelText=
"否"
onConfirm=
{
()
=>
fetchSubmitBatch
(
record
.
id
)
}
>
<
Button
type=
'link'
>
提交审核
</
Button
>
</
Popconfirm
>
<
Button
onClick=
{
()
=>
history
.
push
(
`/memberCenter/procurementAbility/offter/edit?id=${record.id}&number=${record.quotedPriceNo}`
)
}
type=
'link'
...
...
@@ -97,8 +101,13 @@ const AddOffter = () => {
const
[
rowkeys
,
setRowKeys
]
=
useState
<
Array
<
number
>>
([]);
/** 批量审核 */
const
fetchSubmitBatch
=
async
()
=>
{
const
res
=
await
PublicApi
.
postPurchaseQuotedPriceSubmitBatch
({
ids
:
rowkeys
});
const
fetchSubmitBatch
=
async
(
id
?:
number
)
=>
{
let
res
=
null
;
if
(
id
)
{
res
=
await
PublicApi
.
postPurchaseQuotedPriceSubmit
({
id
});
}
else
{
res
=
await
PublicApi
.
postPurchaseQuotedPriceSubmitBatch
({
ids
:
rowkeys
});
}
if
(
res
.
code
===
1000
)
{
ref
.
current
.
reload
();
setRowKeys
([])
...
...
@@ -136,7 +145,7 @@ const AddOffter = () => {
<
Col
span=
{
24
}
>
<
Space
size=
{
16
}
>
<
Button
onClick=
{
fetchSubmitBatch
}
onClick=
{
()
=>
fetchSubmitBatch
()
}
disabled=
{
rowkeys
.
length
===
0
}
>
批量提交审核
...
...
src/pages/transaction/purchaseAbility/offter/auditOffterOne/index.tsx
View file @
28271658
...
...
@@ -73,7 +73,7 @@ const AuditOffterOne = () => {
<>
<
Button
type=
'link'
onClick=
{
()
=>
history
.
push
(
`/memberCenter/procurementAbility/
purchaseInquiry/auditInquiryOne/detail?id=${record.id}&number=${record.purchaseInquiry
No}`
)
}
onClick=
{
()
=>
history
.
push
(
`/memberCenter/procurementAbility/
offter/auditOffterOne/detail?id=${record.id}&number=${record.quotedPrice
No}`
)
}
>
审核
</
Button
>
...
...
src/pages/transaction/purchaseAbility/offter/auditOffterTwo/index.tsx
View file @
28271658
...
...
@@ -74,7 +74,7 @@ const AuditOffterTwo = () => {
<>
<
Button
type=
'link'
onClick=
{
()
=>
history
.
push
(
`/memberCenter/procurementAbility/
purchaseInquiry/auditInquiryOne/detail?id=${record.id}&number=${record.purchaseInquiry
No}`
)
}
onClick=
{
()
=>
history
.
push
(
`/memberCenter/procurementAbility/
offter/auditOffterTwo/detail?id=${record.id}&number=${record.quotedPrice
No}`
)
}
>
审核
</
Button
>
...
...
src/pages/transaction/purchaseAbility/offter/detail/index.less
View file @
28271658
...
...
@@ -25,6 +25,9 @@
}
}
.titleBox {
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px 16px;
}
.anchorBox {
...
...
@@ -74,3 +77,50 @@
}
}
}
.tableStyle {
:global {
.ant-table-thead {
tr {
th {
padding: 10px;
.ant-space-item {
margin-bottom: 0;
}
}
}
}
.ant-table-expanded-row td {
padding: 0;
}
}
}
.childrenWrap {
background-color: #fff;
.childrenTitle {
height: 100%;
background: linear-gradient(to left, #FFFFFF, #DAF2E7);
color: #00B37A;
p {
padding-left: 16px;
margin: 0;
font-size: 12px;
height: 14px;
line-height: 14px;
}
padding: 12px 0;
}
.childrenContent {
margin-top: 8px;
p {
margin: 0;
span {
height: 12px;
font-size: 12px;
font-weight: 400;
color: #909399;
line-height: 12px;
padding-right: 10px;
}
}
}
}
src/pages/transaction/purchaseAbility/offter/detail/index.tsx
View file @
28271658
This diff is collapsed.
Click to expand it.
src/pages/transaction/purchaseAbility/offter/submitOffter/index.tsx
View file @
28271658
...
...
@@ -5,7 +5,7 @@ import { ColumnType } from 'antd/lib/table/interface';
import
EyePreview
from
'@/components/EyePreview'
;
import
moment
from
'moment'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
Row
,
Col
,
Button
,
Badge
,
Tag
,
Space
,
Typography
}
from
'antd'
;
import
{
Row
,
Col
,
Button
,
Badge
,
Tag
,
Space
,
Typography
,
Popconfirm
}
from
'antd'
;
import
{
OFFTER_EXTERNALSTATE
,
OFFTER_EXTERNALSTATE_COLOR
,
...
...
@@ -72,12 +72,11 @@ const SubmitOffter = () => {
dataIndex
:
'operate'
,
render
:
(
text
:
any
,
record
:
any
)
=>
(
<>
<
Button
type=
'link'
onClick=
{
()
=>
history
.
push
(
`/memberCenter/procurementAbility/purchaseInquiry/auditInquiryOne/detail?id=${record.id}&number=${record.purchaseInquiryNo}`
)
}
>
提交报价单
</
Button
>
<
Popconfirm
title=
"确定要提交报价单吗?"
okText=
"是"
cancelText=
"否"
onConfirm=
{
()
=>
fetchSubmitBatch
(
record
.
id
)
}
>
<
Button
type=
'link'
>
提交报价单
</
Button
>
</
Popconfirm
>
</>
)
}];
...
...
@@ -88,9 +87,14 @@ const SubmitOffter = () => {
const
[
loading
,
setLoading
]
=
useState
<
boolean
>
(
false
)
/** 批量审核 */
const
fetchSubmitBatch
=
async
()
=>
{
const
fetchSubmitBatch
=
async
(
id
?:
number
)
=>
{
setLoading
(
true
)
const
res
=
await
PublicApi
.
postPurchaseQuotedPriceStayCommitBatch
({
ids
:
rowkeys
});
let
res
=
null
;
if
(
id
)
{
res
=
await
PublicApi
.
postPurchaseQuotedPriceStayCommit
({
id
});
}
else
{
res
=
await
PublicApi
.
postPurchaseQuotedPriceStayCommitBatch
({
ids
:
rowkeys
});
}
if
(
res
.
code
===
1000
)
{
ref
.
current
.
reload
();
setRowKeys
([])
...
...
@@ -114,7 +118,7 @@ const SubmitOffter = () => {
<
Col
span=
{
6
}
>
<
Button
loading=
{
loading
}
onClick=
{
fetchSubmitBatch
}
onClick=
{
()
=>
fetchSubmitBatch
()
}
disabled=
{
rowkeys
.
length
===
0
}
>
批量提交审核
...
...
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