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
19f927c1
Commit
19f927c1
authored
Nov 17, 2021
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 商品询价&询价报价&我的询价报价修改接口引入方式
parent
7fa79aaa
Hide whitespace changes
Inline
Side-by-side
Showing
38 changed files
with
151 additions
and
139 deletions
+151
-139
index.tsx
...nel/propsSettings/components/channelInformation/index.tsx
+1
-0
audit.tsx
...ges/transaction/dealAbility/confirmOffer/detail/audit.tsx
+2
-2
index.tsx
...ges/transaction/dealAbility/confirmOffer/detail/index.tsx
+6
-6
index.tsx
...ransaction/dealAbility/confirmOffer/offerSearch/index.tsx
+4
-4
index.tsx
...es/transaction/dealAbility/confirmOffer/preview/index.tsx
+2
-2
index.tsx
...on/dealAbility/confirmOffer/waitAuditInquiryOne/index.tsx
+5
-5
index.tsx
...on/dealAbility/confirmOffer/waitAuditInquiryTwo/index.tsx
+5
-5
index.tsx
...n/dealAbility/confirmOffer/waitSubmitAuditOffer/index.tsx
+5
-5
index.tsx
...action/dealAbility/confirmOffer/waitSubmitOffer/index.tsx
+5
-5
index.tsx
...ges/transaction/dealAbility/inquiryOffer/detail/index.tsx
+6
-6
index.tsx
...nsaction/dealAbility/inquiryOffer/inquirySearch/index.tsx
+5
-4
index.tsx
...ransaction/dealAbility/inquiryOffer/offerSearch/index.tsx
+4
-4
index.tsx
...es/transaction/dealAbility/inquiryOffer/preview/index.tsx
+2
-2
add.tsx
...transaction/dealAbility/inquiryOffer/waitAddOffer/add.tsx
+2
-2
addForm.tsx
...saction/dealAbility/inquiryOffer/waitAddOffer/addForm.tsx
+5
-5
basicInfo.tsx
...bility/inquiryOffer/waitAddOffer/components/basicInfo.tsx
+2
-2
otherExplain.tsx
...ity/inquiryOffer/waitAddOffer/components/otherExplain.tsx
+8
-4
productQuote.tsx
...ity/inquiryOffer/waitAddOffer/components/productQuote.tsx
+2
-2
edit.tsx
...ransaction/dealAbility/inquiryOffer/waitAddOffer/edit.tsx
+2
-2
index.tsx
...ansaction/dealAbility/inquiryOffer/waitAddOffer/index.tsx
+8
-8
quote.tsx
...ansaction/dealAbility/inquiryOffer/waitAddOffer/quote.tsx
+2
-2
index.tsx
...tion/dealAbility/inquiryOffer/waitAuditOfferOne/index.tsx
+5
-5
index.tsx
...tion/dealAbility/inquiryOffer/waitAuditOfferTwo/index.tsx
+5
-5
index.tsx
...action/dealAbility/inquiryOffer/waitSubmitOffer/index.tsx
+4
-4
index.tsx
...s/transaction/dealAbility/productInquiry/detail/index.tsx
+5
-5
index.tsx
...action/dealAbility/productInquiry/inquirySearch/index.tsx
+4
-4
add.tsx
...saction/dealAbility/productInquiry/waitAddInquiry/add.tsx
+2
-2
addForm.tsx
...ion/dealAbility/productInquiry/waitAddInquiry/addForm.tsx
+5
-4
basicInfo.tsx
...ty/productInquiry/waitAddInquiry/components/basicInfo.tsx
+4
-3
inquiryProduct.tsx
...oductInquiry/waitAddInquiry/components/inquiryProduct.tsx
+4
-4
tradeTerms.tsx
...y/productInquiry/waitAddInquiry/components/tradeTerms.tsx
+8
-4
edit.tsx
...action/dealAbility/productInquiry/waitAddInquiry/edit.tsx
+2
-2
index.tsx
...ction/dealAbility/productInquiry/waitAddInquiry/index.tsx
+6
-6
rfq.tsx
...saction/dealAbility/productInquiry/waitAddInquiry/rfq.tsx
+2
-2
two.tsx
...saction/dealAbility/productInquiry/waitAddInquiry/two.tsx
+2
-2
index.tsx
.../dealAbility/productInquiry/waitAuditInquiryOne/index.tsx
+3
-3
index.tsx
.../dealAbility/productInquiry/waitAuditInquiryTwo/index.tsx
+3
-3
index.tsx
...on/dealAbility/productInquiry/waitSubmitInquiry/index.tsx
+4
-4
No files found.
src/pages/editor/mobileSettingPanel/propsSettings/components/channelInformation/index.tsx
View file @
19f927c1
...
@@ -213,6 +213,7 @@ const ChannelInformation: React.FC<BannerPropsType> = (props) => {
...
@@ -213,6 +213,7 @@ const ChannelInformation: React.FC<BannerPropsType> = (props) => {
idList
:
informationIdList
,
idList
:
informationIdList
,
}
}
/** manage/contentInformation/pageByIdNotIn*/
const
res
=
await
getManageContentInformationPageByIdNotIn
(
params
,
{
ctlType
:
'none'
})
const
res
=
await
getManageContentInformationPageByIdNotIn
(
params
,
{
ctlType
:
'none'
})
return
res
.
data
return
res
.
data
}
}
...
...
src/pages/transaction/dealAbility/confirmOffer/detail/audit.tsx
View file @
19f927c1
import
React
,
{
useCallback
,
useState
}
from
'react'
;
import
React
,
{
useCallback
,
useState
}
from
'react'
;
import
{
Modal
,
Form
,
Radio
,
Tooltip
,
Typography
,
Input
,
Space
}
from
'antd'
;
import
{
Modal
,
Form
,
Radio
,
Tooltip
,
Typography
,
Input
,
Space
}
from
'antd'
;
import
{
PublicApi
}
from
'@/services/a
pi'
;
import
{
postTransactionNotarizeEnquiryQuotedPriceAffirm
}
from
'@/services/TransactionV2A
pi'
;
interface
AutditLayoutProps
{
interface
AutditLayoutProps
{
/** 显示/隐藏 */
/** 显示/隐藏 */
...
@@ -19,7 +19,7 @@ const AuditLayout: React.FC<AutditLayoutProps> = (props: any) => {
...
@@ -19,7 +19,7 @@ const AuditLayout: React.FC<AutditLayoutProps> = (props: any) => {
const
handleSubmit
=
useCallback
(
async
()
=>
{
const
handleSubmit
=
useCallback
(
async
()
=>
{
await
form
.
validateFields
().
then
(
res
=>
{
await
form
.
validateFields
().
then
(
res
=>
{
PublicApi
.
postTransactionNotarizeEnquiryQuotedPriceAffirm
({
id
,
state
:
res
.
state
,
auditOpinion
:
res
.
audit
}).
then
(
res
=>
{
postTransactionNotarizeEnquiryQuotedPriceAffirm
({
id
,
state
:
res
.
state
,
auditOpinion
:
res
.
audit
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
if
(
res
.
code
!==
1000
)
{
setLoading
(
false
)
setLoading
(
false
)
return
return
...
...
src/pages/transaction/dealAbility/confirmOffer/detail/index.tsx
View file @
19f927c1
...
@@ -5,7 +5,6 @@ import { ColumnType } from 'antd/lib/table/interface';
...
@@ -5,7 +5,6 @@ import { ColumnType } from 'antd/lib/table/interface';
import
PeripheralLayout
from
'@/pages/transaction/components/detailLayout'
;
import
PeripheralLayout
from
'@/pages/transaction/components/detailLayout'
;
import
{
Context
}
from
'@/pages/transaction/components/detailLayout/components/context'
;
import
{
Context
}
from
'@/pages/transaction/components/detailLayout/components/context'
;
import
moment
from
'moment'
;
import
moment
from
'moment'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
CheckCircleOutlined
,
LinkOutlined
}
from
'@ant-design/icons'
;
import
{
CheckCircleOutlined
,
LinkOutlined
}
from
'@ant-design/icons'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
ProgressLayout
from
'@/pages/transaction/components/detailLayout/components/progressLayout'
;
import
ProgressLayout
from
'@/pages/transaction/components/detailLayout/components/progressLayout'
;
...
@@ -16,6 +15,7 @@ import RecordLyout from '@/pages/transaction/components/detailLayout/components/
...
@@ -16,6 +15,7 @@ import RecordLyout from '@/pages/transaction/components/detailLayout/components/
import
ModalOperate
from
'@/pages/transaction/components/modalOperate'
;
import
ModalOperate
from
'@/pages/transaction/components/modalOperate'
;
import
{
ENTERPRISE_CENTER_URL
}
from
'@/constants'
;
import
{
ENTERPRISE_CENTER_URL
}
from
'@/constants'
;
import
AuditLayout
from
'./audit'
;
import
AuditLayout
from
'./audit'
;
import
{
getTransactionInquiryDetails
,
getTransactionNotarizeEnquiryProductQuotationDetails
,
postTransactionNotarizeEnquiryQuotedPriceAudit
,
postTransactionNotarizeEnquiryQuotedPriceAuditTwo
,
postTransactionNotarizeEnquiryQuotedPriceSubmit
}
from
'@/services/TransactionV2Api'
;
const
TABLINK
=
[
const
TABLINK
=
[
{
id
:
'progressLayout'
,
title
:
'流转进度'
},
{
id
:
'progressLayout'
,
title
:
'流转进度'
},
...
@@ -121,7 +121,7 @@ const ConfirmOfferDetail = () => {
...
@@ -121,7 +121,7 @@ const ConfirmOfferDetail = () => {
}
}
const
fetchDataSource
=
async
()
=>
{
const
fetchDataSource
=
async
()
=>
{
await
PublicApi
.
getTransactionNotarizeEnquiryProductQuotationDetails
({
id
}).
then
((
res
:
any
)
=>
{
await
getTransactionNotarizeEnquiryProductQuotationDetails
({
id
}).
then
((
res
:
any
)
=>
{
if
(
res
.
code
!==
1000
)
{
if
(
res
.
code
!==
1000
)
{
history
.
goBack
();
history
.
goBack
();
return
;
return
;
...
@@ -201,13 +201,13 @@ const ConfirmOfferDetail = () => {
...
@@ -201,13 +201,13 @@ const ConfirmOfferDetail = () => {
let
fetchSoure
:
any
=
null
;
let
fetchSoure
:
any
=
null
;
switch
(
pathPci
)
{
switch
(
pathPci
)
{
case
'waitSubmitAuditOffer'
:
case
'waitSubmitAuditOffer'
:
fetchSoure
=
PublicApi
.
postTransactionNotarizeEnquiryQuotedPriceSubmit
fetchSoure
=
postTransactionNotarizeEnquiryQuotedPriceSubmit
break
;
break
;
case
'waitAuditInquiryOne'
:
case
'waitAuditInquiryOne'
:
fetchSoure
=
PublicApi
.
postTransactionNotarizeEnquiryQuotedPriceAudit
fetchSoure
=
postTransactionNotarizeEnquiryQuotedPriceAudit
break
;
break
;
case
'waitAuditInquiryTwo'
:
case
'waitAuditInquiryTwo'
:
fetchSoure
=
PublicApi
.
postTransactionNotarizeEnquiryQuotedPriceAuditTwo
fetchSoure
=
postTransactionNotarizeEnquiryQuotedPriceAuditTwo
break
;
break
;
}
}
return
fetchSoure
return
fetchSoure
...
@@ -242,7 +242,7 @@ const ConfirmOfferDetail = () => {
...
@@ -242,7 +242,7 @@ const ConfirmOfferDetail = () => {
anchor=
"inquiryProductLayout"
anchor=
"inquiryProductLayout"
title=
"询价商品"
title=
"询价商品"
columns=
{
columns
}
columns=
{
columns
}
fetch=
{
PublicApi
.
getTransactionInquiryDetails
}
fetch=
{
getTransactionInquiryDetails
}
/>
/>
<
GeneralLayout
<
GeneralLayout
anchor=
"otherLayout"
anchor=
"otherLayout"
...
...
src/pages/transaction/dealAbility/confirmOffer/offerSearch/index.tsx
View file @
19f927c1
...
@@ -5,9 +5,9 @@ import { Tag, Badge, Button } from 'antd';
...
@@ -5,9 +5,9 @@ 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'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
OFFERSEARCHSCHEMA
}
from
'./schema'
;
import
{
OFFERSEARCHSCHEMA
}
from
'./schema'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
getTransactionNotarizeEnquiryExternalStateEnum
,
getTransactionNotarizeEnquiryProductQuotationList
,
getTransactionProductInquiryInteriorStateEnum
}
from
'@/services/TransactionV2Api'
;
const
OfferSearch
=
()
=>
{
const
OfferSearch
=
()
=>
{
...
@@ -79,10 +79,10 @@ const OfferSearch = () => {
...
@@ -79,10 +79,10 @@ const OfferSearch = () => {
schema=
{
OFFERSEARCHSCHEMA
}
schema=
{
OFFERSEARCHSCHEMA
}
columns=
{
columns
}
columns=
{
columns
}
effects=
"quotationNo"
effects=
"quotationNo"
fetch=
{
PublicApi
.
getTransactionNotarizeEnquiryProductQuotationList
}
fetch=
{
getTransactionNotarizeEnquiryProductQuotationList
}
reload=
{
reload
}
reload=
{
reload
}
externalStatusFetch=
{
PublicApi
.
getTransactionNotarizeEnquiryExternalStateEnum
()
}
externalStatusFetch=
{
getTransactionNotarizeEnquiryExternalStateEnum
()
}
interiorStatusFetch=
{
PublicApi
.
getTransactionProductInquiryInteriorStateEnum
({
type
:
'3'
})
}
interiorStatusFetch=
{
getTransactionProductInquiryInteriorStateEnum
({
type
:
'3'
})
}
/>
/>
)
)
}
}
...
...
src/pages/transaction/dealAbility/confirmOffer/preview/index.tsx
View file @
19f927c1
...
@@ -5,7 +5,6 @@ import { ColumnType } from 'antd/lib/table/interface';
...
@@ -5,7 +5,6 @@ import { ColumnType } from 'antd/lib/table/interface';
import
PeripheralLayout
from
'@/pages/transaction/components/detailLayout'
;
import
PeripheralLayout
from
'@/pages/transaction/components/detailLayout'
;
import
{
Context
}
from
'@/pages/transaction/components/detailLayout/components/context'
;
import
{
Context
}
from
'@/pages/transaction/components/detailLayout/components/context'
;
import
moment
from
'moment'
;
import
moment
from
'moment'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
CheckCircleOutlined
,
LinkOutlined
}
from
'@ant-design/icons'
;
import
{
CheckCircleOutlined
,
LinkOutlined
}
from
'@ant-design/icons'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
ProgressLayout
from
'@/pages/transaction/components/detailLayout/components/progressLayout'
;
import
ProgressLayout
from
'@/pages/transaction/components/detailLayout/components/progressLayout'
;
...
@@ -15,6 +14,7 @@ import GeneralLayout from '@/pages/transaction/components/detailLayout/component
...
@@ -15,6 +14,7 @@ import GeneralLayout from '@/pages/transaction/components/detailLayout/component
import
RecordLyout
from
'@/pages/transaction/components/detailLayout/components/recordLyout'
;
import
RecordLyout
from
'@/pages/transaction/components/detailLayout/components/recordLyout'
;
import
EyePreview
from
'@/components/EyePreview'
;
import
EyePreview
from
'@/components/EyePreview'
;
import
{
ENTERPRISE_CENTER_URL
}
from
'@/constants'
;
import
{
ENTERPRISE_CENTER_URL
}
from
'@/constants'
;
import
{
getTransactionNotarizeEnquiryQuotedPriceDetails
}
from
'@/services/TransactionV2Api'
;
const
TABLINK
=
[
const
TABLINK
=
[
{
id
:
'progressLayout'
,
title
:
'流转进度'
},
{
id
:
'progressLayout'
,
title
:
'流转进度'
},
...
@@ -118,7 +118,7 @@ const ConfirmOfferPreview = () => {
...
@@ -118,7 +118,7 @@ const ConfirmOfferPreview = () => {
}
}
const
fetchDataSource
=
async
()
=>
{
const
fetchDataSource
=
async
()
=>
{
await
PublicApi
.
getTransactionNotarizeEnquiryQuotedPriceDetails
({
id
}).
then
((
res
:
any
)
=>
{
await
getTransactionNotarizeEnquiryQuotedPriceDetails
({
id
}).
then
((
res
:
any
)
=>
{
if
(
res
.
code
!==
1000
)
{
if
(
res
.
code
!==
1000
)
{
history
.
goBack
();
history
.
goBack
();
return
;
return
;
...
...
src/pages/transaction/dealAbility/confirmOffer/waitAuditInquiryOne/index.tsx
View file @
19f927c1
...
@@ -4,10 +4,10 @@ import { history } from 'umi';
...
@@ -4,10 +4,10 @@ import { history } from 'umi';
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'
import
{
PublicApi
}
from
'@/services/api'
;
import
{
Row
,
Col
,
Button
,
Tag
,
Badge
}
from
'antd'
;
import
{
Row
,
Col
,
Button
,
Tag
,
Badge
}
from
'antd'
;
import
{
WAITAUDITINQUIRYONESCHEMA
}
from
'./schema'
;
import
{
WAITAUDITINQUIRYONESCHEMA
}
from
'./schema'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
getTransactionNotarizeEnquiryQuotedPriceAuditList
,
getTransactionProductInquiryExternalStateEnum
,
getTransactionProductInquiryInteriorStateEnum
,
postTransactionNotarizeEnquiryQuotedPriceAuditAll
}
from
'@/services/TransactionV2Api'
;
const
WaitAuditInquiryOne
=
()
=>
{
const
WaitAuditInquiryOne
=
()
=>
{
const
ref
=
useRef
<
any
>
({});
const
ref
=
useRef
<
any
>
({});
...
@@ -17,7 +17,7 @@ const WaitAuditInquiryOne = () => {
...
@@ -17,7 +17,7 @@ const WaitAuditInquiryOne = () => {
const
[
rowkeys
,
setRowKeys
]
=
useState
<
Array
<
number
>>
([]);
const
[
rowkeys
,
setRowKeys
]
=
useState
<
Array
<
number
>>
([]);
/** 批量审核 */
/** 批量审核 */
const
fetchSubmitBatch
=
async
()
=>
{
const
fetchSubmitBatch
=
async
()
=>
{
const
res
=
await
PublicApi
.
postTransactionNotarizeEnquiryQuotedPriceAuditAll
({
ids
:
rowkeys
});
const
res
=
await
postTransactionNotarizeEnquiryQuotedPriceAuditAll
({
ids
:
rowkeys
});
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
ref
.
current
.
reload
();
ref
.
current
.
reload
();
setRowKeys
([])
setRowKeys
([])
...
@@ -88,9 +88,9 @@ const WaitAuditInquiryOne = () => {
...
@@ -88,9 +88,9 @@ const WaitAuditInquiryOne = () => {
schema=
{
WAITAUDITINQUIRYONESCHEMA
}
schema=
{
WAITAUDITINQUIRYONESCHEMA
}
columns=
{
columns
}
columns=
{
columns
}
effects=
"quotationNo"
effects=
"quotationNo"
fetch=
{
PublicApi
.
getTransactionNotarizeEnquiryQuotedPriceAuditList
}
fetch=
{
getTransactionNotarizeEnquiryQuotedPriceAuditList
}
externalStatusFetch=
{
PublicApi
.
getTransactionProductInquiryExternalStateEnum
({
type
:
'2'
})
}
externalStatusFetch=
{
getTransactionProductInquiryExternalStateEnum
({
type
:
'2'
})
}
interiorStatusFetch=
{
PublicApi
.
getTransactionProductInquiryInteriorStateEnum
({
type
:
'2'
})
}
interiorStatusFetch=
{
getTransactionProductInquiryInteriorStateEnum
({
type
:
'2'
})
}
fetchRowkeys=
{
(
e
)
=>
setRowKeys
(
e
)
}
fetchRowkeys=
{
(
e
)
=>
setRowKeys
(
e
)
}
controllerBtns=
{
controllerBtns=
{
<
Row
>
<
Row
>
...
...
src/pages/transaction/dealAbility/confirmOffer/waitAuditInquiryTwo/index.tsx
View file @
19f927c1
...
@@ -4,10 +4,10 @@ import { history } from 'umi';
...
@@ -4,10 +4,10 @@ import { history } from 'umi';
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'
import
{
PublicApi
}
from
'@/services/api'
;
import
{
Row
,
Col
,
Button
,
Tag
,
Badge
}
from
'antd'
;
import
{
Row
,
Col
,
Button
,
Tag
,
Badge
}
from
'antd'
;
import
{
WAITAUDITINQUIRYTWOSCHEMA
}
from
'./schema'
;
import
{
WAITAUDITINQUIRYTWOSCHEMA
}
from
'./schema'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
getTransactionNotarizeEnquiryQuotedPriceAuditListTwo
,
getTransactionProductInquiryExternalStateEnum
,
getTransactionProductInquiryInteriorStateEnum
,
postTransactionNotarizeEnquiryQuotedPriceAuditAllTwo
}
from
'@/services/TransactionV2Api'
;
const
WaitAuditInquiryOne
=
()
=>
{
const
WaitAuditInquiryOne
=
()
=>
{
const
ref
=
useRef
<
any
>
({});
const
ref
=
useRef
<
any
>
({});
...
@@ -17,7 +17,7 @@ const WaitAuditInquiryOne = () => {
...
@@ -17,7 +17,7 @@ const WaitAuditInquiryOne = () => {
const
[
rowkeys
,
setRowKeys
]
=
useState
<
Array
<
number
>>
([]);
const
[
rowkeys
,
setRowKeys
]
=
useState
<
Array
<
number
>>
([]);
/** 批量审核 */
/** 批量审核 */
const
fetchSubmitBatch
=
async
()
=>
{
const
fetchSubmitBatch
=
async
()
=>
{
const
res
=
await
PublicApi
.
postTransactionNotarizeEnquiryQuotedPriceAuditAllTwo
({
ids
:
rowkeys
});
const
res
=
await
postTransactionNotarizeEnquiryQuotedPriceAuditAllTwo
({
ids
:
rowkeys
});
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
ref
.
current
.
reload
();
ref
.
current
.
reload
();
setRowKeys
([])
setRowKeys
([])
...
@@ -88,9 +88,9 @@ const WaitAuditInquiryOne = () => {
...
@@ -88,9 +88,9 @@ const WaitAuditInquiryOne = () => {
schema=
{
WAITAUDITINQUIRYTWOSCHEMA
}
schema=
{
WAITAUDITINQUIRYTWOSCHEMA
}
columns=
{
columns
}
columns=
{
columns
}
effects=
"quotationNo"
effects=
"quotationNo"
fetch=
{
PublicApi
.
getTransactionNotarizeEnquiryQuotedPriceAuditListTwo
}
fetch=
{
getTransactionNotarizeEnquiryQuotedPriceAuditListTwo
}
externalStatusFetch=
{
PublicApi
.
getTransactionProductInquiryExternalStateEnum
({
type
:
'2'
})
}
externalStatusFetch=
{
getTransactionProductInquiryExternalStateEnum
({
type
:
'2'
})
}
interiorStatusFetch=
{
PublicApi
.
getTransactionProductInquiryInteriorStateEnum
({
type
:
'2'
})
}
interiorStatusFetch=
{
getTransactionProductInquiryInteriorStateEnum
({
type
:
'2'
})
}
fetchRowkeys=
{
(
e
)
=>
setRowKeys
(
e
)
}
fetchRowkeys=
{
(
e
)
=>
setRowKeys
(
e
)
}
controllerBtns=
{
controllerBtns=
{
<
Row
>
<
Row
>
...
...
src/pages/transaction/dealAbility/confirmOffer/waitSubmitAuditOffer/index.tsx
View file @
19f927c1
...
@@ -5,9 +5,9 @@ import { Tag, Badge, Button, Row, Col } from 'antd';
...
@@ -5,9 +5,9 @@ import { Tag, Badge, Button, Row, Col } 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'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
WAITSUBMITAUDITOFFERSCHEMA
}
from
'./schema'
;
import
{
WAITSUBMITAUDITOFFERSCHEMA
}
from
'./schema'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
getTransactionNotarizeEnquiryQuotedPriceList
,
getTransactionProductInquiryExternalStateEnum
,
getTransactionProductInquiryInteriorStateEnum
,
postTransactionNotarizeEnquiryQuotedPriceSubmitAll
}
from
'@/services/TransactionV2Api'
;
const
WaitSubmitAuditOffer
=
()
=>
{
const
WaitSubmitAuditOffer
=
()
=>
{
...
@@ -21,7 +21,7 @@ const WaitSubmitAuditOffer = () => {
...
@@ -21,7 +21,7 @@ const WaitSubmitAuditOffer = () => {
/** 批量审核 */
/** 批量审核 */
const
fetchSubmitBatch
=
async
()
=>
{
const
fetchSubmitBatch
=
async
()
=>
{
const
res
=
await
PublicApi
.
postTransactionNotarizeEnquiryQuotedPriceSubmitAll
({
ids
:
rowkeys
});
const
res
=
await
postTransactionNotarizeEnquiryQuotedPriceSubmitAll
({
ids
:
rowkeys
});
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
reload
.
current
.
reload
();
reload
.
current
.
reload
();
setRowKeys
([])
setRowKeys
([])
...
@@ -91,12 +91,12 @@ const WaitSubmitAuditOffer = () => {
...
@@ -91,12 +91,12 @@ const WaitSubmitAuditOffer = () => {
schema=
{
WAITSUBMITAUDITOFFERSCHEMA
}
schema=
{
WAITSUBMITAUDITOFFERSCHEMA
}
columns=
{
columns
}
columns=
{
columns
}
effects=
"quotationNo"
effects=
"quotationNo"
fetch=
{
PublicApi
.
getTransactionNotarizeEnquiryQuotedPriceList
}
fetch=
{
getTransactionNotarizeEnquiryQuotedPriceList
}
reload=
{
reload
}
reload=
{
reload
}
selectedRow
selectedRow
fetchRowkeys=
{
(
e
)
=>
setRowKeys
(
e
)
}
fetchRowkeys=
{
(
e
)
=>
setRowKeys
(
e
)
}
externalStatusFetch=
{
PublicApi
.
getTransactionProductInquiryExternalStateEnum
({
type
:
'3'
})
}
externalStatusFetch=
{
getTransactionProductInquiryExternalStateEnum
({
type
:
'3'
})
}
interiorStatusFetch=
{
PublicApi
.
getTransactionProductInquiryInteriorStateEnum
({
type
:
'3'
})
}
interiorStatusFetch=
{
getTransactionProductInquiryInteriorStateEnum
({
type
:
'3'
})
}
controllerBtns=
{
controllerBtns=
{
<
Row
>
<
Row
>
<
Col
span=
{
6
}
>
<
Col
span=
{
6
}
>
...
...
src/pages/transaction/dealAbility/confirmOffer/waitSubmitOffer/index.tsx
View file @
19f927c1
...
@@ -5,9 +5,9 @@ import { Tag, Badge, Button, Row, Col } from 'antd';
...
@@ -5,9 +5,9 @@ import { Tag, Badge, Button, Row, Col } 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'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
WAITSUBMITOFFERSCHEMA
}
from
'./schema'
;
import
{
WAITSUBMITOFFERSCHEMA
}
from
'./schema'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
getTransactionNotarizeEnquiryQuotedPriceAffirmList
,
getTransactionProductInquiryExternalStateEnum
,
getTransactionProductInquiryInteriorStateEnum
,
postTransactionNotarizeEnquiryQuotedPriceAffirmAll
}
from
'@/services/TransactionV2Api'
;
const
WaitSubmitOffer
=
()
=>
{
const
WaitSubmitOffer
=
()
=>
{
...
@@ -20,7 +20,7 @@ const WaitSubmitOffer = () => {
...
@@ -20,7 +20,7 @@ const WaitSubmitOffer = () => {
const
[
rowkeys
,
setRowKeys
]
=
useState
<
Array
<
number
>>
([]);
const
[
rowkeys
,
setRowKeys
]
=
useState
<
Array
<
number
>>
([]);
/** 批量审核 */
/** 批量审核 */
const
fetchSubmitBatch
=
async
()
=>
{
const
fetchSubmitBatch
=
async
()
=>
{
const
res
=
await
PublicApi
.
postTransactionNotarizeEnquiryQuotedPriceAffirmAll
({
ids
:
rowkeys
});
const
res
=
await
postTransactionNotarizeEnquiryQuotedPriceAffirmAll
({
ids
:
rowkeys
});
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
reload
.
current
.
reload
();
reload
.
current
.
reload
();
setRowKeys
([])
setRowKeys
([])
...
@@ -89,12 +89,12 @@ const WaitSubmitOffer = () => {
...
@@ -89,12 +89,12 @@ const WaitSubmitOffer = () => {
schema=
{
WAITSUBMITOFFERSCHEMA
}
schema=
{
WAITSUBMITOFFERSCHEMA
}
columns=
{
columns
}
columns=
{
columns
}
effects=
"quotationNo"
effects=
"quotationNo"
fetch=
{
PublicApi
.
getTransactionNotarizeEnquiryQuotedPriceAffirmList
}
fetch=
{
getTransactionNotarizeEnquiryQuotedPriceAffirmList
}
reload=
{
reload
}
reload=
{
reload
}
selectedRow
selectedRow
fetchRowkeys=
{
(
e
)
=>
setRowKeys
(
e
)
}
fetchRowkeys=
{
(
e
)
=>
setRowKeys
(
e
)
}
externalStatusFetch=
{
PublicApi
.
getTransactionProductInquiryExternalStateEnum
({
type
:
'3'
})
}
externalStatusFetch=
{
getTransactionProductInquiryExternalStateEnum
({
type
:
'3'
})
}
interiorStatusFetch=
{
PublicApi
.
getTransactionProductInquiryInteriorStateEnum
({
type
:
'3'
})
}
interiorStatusFetch=
{
getTransactionProductInquiryInteriorStateEnum
({
type
:
'3'
})
}
controllerBtns=
{
controllerBtns=
{
<
Row
>
<
Row
>
<
Col
span=
{
6
}
>
<
Col
span=
{
6
}
>
...
...
src/pages/transaction/dealAbility/inquiryOffer/detail/index.tsx
View file @
19f927c1
...
@@ -6,7 +6,6 @@ import PeripheralLayout from '@/pages/transaction/components/detailLayout';
...
@@ -6,7 +6,6 @@ import PeripheralLayout from '@/pages/transaction/components/detailLayout';
import
{
Context
}
from
'@/pages/transaction/components/detailLayout/components/context'
;
import
{
Context
}
from
'@/pages/transaction/components/detailLayout/components/context'
;
import
moment
from
'moment'
;
import
moment
from
'moment'
;
import
{
ENTERPRISE_CENTER_URL
}
from
'@/constants'
import
{
ENTERPRISE_CENTER_URL
}
from
'@/constants'
import
{
PublicApi
}
from
'@/services/api'
;
import
{
CheckCircleOutlined
,
LinkOutlined
}
from
'@ant-design/icons'
;
import
{
CheckCircleOutlined
,
LinkOutlined
}
from
'@ant-design/icons'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
ProgressLayout
from
'@/pages/transaction/components/detailLayout/components/progressLayout'
;
import
ProgressLayout
from
'@/pages/transaction/components/detailLayout/components/progressLayout'
;
...
@@ -17,6 +16,7 @@ import RecordLyout from '@/pages/transaction/components/detailLayout/components/
...
@@ -17,6 +16,7 @@ import RecordLyout from '@/pages/transaction/components/detailLayout/components/
import
ModalOperate
from
'@/pages/transaction/components/modalOperate'
;
import
ModalOperate
from
'@/pages/transaction/components/modalOperate'
;
import
{
StandardTable
}
from
'god'
;
import
{
StandardTable
}
from
'god'
;
import
{
getAuth
}
from
'@/utils/auth'
import
{
getAuth
}
from
'@/utils/auth'
import
{
getTransactionInquiryDetails
,
getTransactionProductQuotationDetails
,
getTransactionProductQuotationHistoryList
,
postTransactionProductQuotationtAuditSubmit
,
postTransactionProductQuotationtAuditSubmitTwo
}
from
'@/services/TransactionV2Api'
;
const
TABLINK
=
[
const
TABLINK
=
[
{
id
:
'progressLayout'
,
title
:
'流转进度'
},
{
id
:
'progressLayout'
,
title
:
'流转进度'
},
...
@@ -124,7 +124,7 @@ const InquiryOfferDetail = () => {
...
@@ -124,7 +124,7 @@ const InquiryOfferDetail = () => {
}
}
const
fetchDataSource
=
async
()
=>
{
const
fetchDataSource
=
async
()
=>
{
await
PublicApi
.
getTransactionProductQuotationDetails
({
id
}).
then
((
res
:
any
)
=>
{
await
getTransactionProductQuotationDetails
({
id
}).
then
((
res
:
any
)
=>
{
if
(
res
.
code
!==
1000
)
{
if
(
res
.
code
!==
1000
)
{
history
.
goBack
();
history
.
goBack
();
return
;
return
;
...
@@ -298,10 +298,10 @@ const InquiryOfferDetail = () => {
...
@@ -298,10 +298,10 @@ const InquiryOfferDetail = () => {
let
fetchSoure
:
any
=
null
;
let
fetchSoure
:
any
=
null
;
switch
(
pathPci
)
{
switch
(
pathPci
)
{
case
'waitAuditOfferOne'
:
case
'waitAuditOfferOne'
:
fetchSoure
=
PublicApi
.
postTransactionProductQuotationtAuditSubmit
fetchSoure
=
postTransactionProductQuotationtAuditSubmit
break
;
break
;
case
'waitAuditOfferTwo'
:
case
'waitAuditOfferTwo'
:
fetchSoure
=
PublicApi
.
postTransactionProductQuotationtAuditSubmitTwo
fetchSoure
=
postTransactionProductQuotationtAuditSubmitTwo
break
;
break
;
}
}
return
fetchSoure
return
fetchSoure
...
@@ -309,7 +309,7 @@ const InquiryOfferDetail = () => {
...
@@ -309,7 +309,7 @@ const InquiryOfferDetail = () => {
const
fetchTableData
=
(
params
:
any
)
=>
{
const
fetchTableData
=
(
params
:
any
)
=>
{
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
PublicApi
.
getTransactionProductQuotationHistoryList
({
...
params
,
commoditySkuId
}).
then
(
res
=>
{
getTransactionProductQuotationHistoryList
({
...
params
,
commoditySkuId
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
if
(
res
.
code
!==
1000
)
{
return
return
}
}
...
@@ -347,7 +347,7 @@ const InquiryOfferDetail = () => {
...
@@ -347,7 +347,7 @@ const InquiryOfferDetail = () => {
anchor=
"inquiryProductLayout"
anchor=
"inquiryProductLayout"
title=
"询价商品"
title=
"询价商品"
columns=
{
columns
}
columns=
{
columns
}
fetch=
{
PublicApi
.
getTransactionInquiryDetails
}
fetch=
{
getTransactionInquiryDetails
}
/>
/>
<
GeneralLayout
<
GeneralLayout
anchor=
"otherLayout"
anchor=
"otherLayout"
...
...
src/pages/transaction/dealAbility/inquiryOffer/inquirySearch/index.tsx
View file @
19f927c1
...
@@ -5,11 +5,12 @@ import { Tag, Button, Modal, Form, Select, Typography } from 'antd';
...
@@ -5,11 +5,12 @@ import { Tag, Button, Modal, Form, Select, Typography } 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'
;
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
,
getAuth
}
from
'@/utils/auth'
;
import
{
setAuth
,
setRouters
,
getAuth
}
from
'@/utils/auth'
;
import
{
isEmpty
}
from
'@antv/util'
;
import
{
isEmpty
}
from
'@antv/util'
;
import
{
postMemberLoginSwitchrole
}
from
'@/services/MemberV2Api'
;
import
{
getTransactionProductInquiryList
,
getTransactionQuotationtInquiryExternalStateEnum
}
from
'@/services/TransactionV2Api'
;
interface
MemberRole
{
interface
MemberRole
{
memberRoleId
:
number
;
memberRoleId
:
number
;
...
@@ -32,7 +33,7 @@ const InquirySearch = () => {
...
@@ -32,7 +33,7 @@ const InquirySearch = () => {
}
}
const
handleFieldsAPI
=
(
memberRoleId
:
number
,
id
?)
=>
{
const
handleFieldsAPI
=
(
memberRoleId
:
number
,
id
?)
=>
{
PublicApi
.
postMemberLoginSwitchrole
({
postMemberLoginSwitchrole
({
memberRoleId
,
memberRoleId
,
}).
then
((
res
:
any
)
=>
{
}).
then
((
res
:
any
)
=>
{
if
(
res
.
code
!==
1000
)
{
if
(
res
.
code
!==
1000
)
{
...
@@ -162,9 +163,9 @@ const InquirySearch = () => {
...
@@ -162,9 +163,9 @@ const InquirySearch = () => {
schema=
{
INQUIRYSEARCHSCHEMA
}
schema=
{
INQUIRYSEARCHSCHEMA
}
columns=
{
columns
}
columns=
{
columns
}
effects=
"inquiryListNo"
effects=
"inquiryListNo"
fetch=
{
PublicApi
.
getTransactionProductInquiryList
}
fetch=
{
getTransactionProductInquiryList
}
reload=
{
reload
}
reload=
{
reload
}
externalStatusFetch=
{
PublicApi
.
getTransactionQuotationtInquiryExternalStateEnum
()
}
externalStatusFetch=
{
getTransactionQuotationtInquiryExternalStateEnum
()
}
/>
/>
{
!
isEmpty
(
role
)
&&
(
{
!
isEmpty
(
role
)
&&
(
<
Modal
<
Modal
...
...
src/pages/transaction/dealAbility/inquiryOffer/offerSearch/index.tsx
View file @
19f927c1
...
@@ -5,9 +5,9 @@ import { Tag, Badge } from 'antd';
...
@@ -5,9 +5,9 @@ import { Tag, Badge } 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'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
OFFERSEARCHSCHEMA
}
from
'./schema'
;
import
{
OFFERSEARCHSCHEMA
}
from
'./schema'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
getTransactionProductInquiryInteriorStateEnum
,
getTransactionProductQuotationList
,
getTransactionQuotationtInquiryExternalStateEnum
}
from
'@/services/TransactionV2Api'
;
const
OfferSearch
=
()
=>
{
const
OfferSearch
=
()
=>
{
...
@@ -73,10 +73,10 @@ const OfferSearch = () => {
...
@@ -73,10 +73,10 @@ const OfferSearch = () => {
schema=
{
OFFERSEARCHSCHEMA
}
schema=
{
OFFERSEARCHSCHEMA
}
columns=
{
columns
}
columns=
{
columns
}
effects=
"quotationNo"
effects=
"quotationNo"
fetch=
{
PublicApi
.
getTransactionProductQuotationList
}
fetch=
{
getTransactionProductQuotationList
}
reload=
{
reload
}
reload=
{
reload
}
externalStatusFetch=
{
PublicApi
.
getTransactionQuotationtInquiryExternalStateEnum
()
}
externalStatusFetch=
{
getTransactionQuotationtInquiryExternalStateEnum
()
}
interiorStatusFetch=
{
PublicApi
.
getTransactionProductInquiryInteriorStateEnum
({
type
:
'2'
})
}
interiorStatusFetch=
{
getTransactionProductInquiryInteriorStateEnum
({
type
:
'2'
})
}
/>
/>
)
)
}
}
...
...
src/pages/transaction/dealAbility/inquiryOffer/preview/index.tsx
View file @
19f927c1
...
@@ -5,7 +5,6 @@ import { ColumnType } from 'antd/lib/table/interface';
...
@@ -5,7 +5,6 @@ import { ColumnType } from 'antd/lib/table/interface';
import
PeripheralLayout
from
'@/pages/transaction/components/detailLayout'
;
import
PeripheralLayout
from
'@/pages/transaction/components/detailLayout'
;
import
{
Context
}
from
'@/pages/transaction/components/detailLayout/components/context'
;
import
{
Context
}
from
'@/pages/transaction/components/detailLayout/components/context'
;
import
moment
from
'moment'
;
import
moment
from
'moment'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
CheckCircleOutlined
,
LinkOutlined
}
from
'@ant-design/icons'
;
import
{
CheckCircleOutlined
,
LinkOutlined
}
from
'@ant-design/icons'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
ProgressLayout
from
'@/pages/transaction/components/detailLayout/components/progressLayout'
;
import
ProgressLayout
from
'@/pages/transaction/components/detailLayout/components/progressLayout'
;
...
@@ -16,6 +15,7 @@ import RecordLyout from '@/pages/transaction/components/detailLayout/components/
...
@@ -16,6 +15,7 @@ import RecordLyout from '@/pages/transaction/components/detailLayout/components/
import
EyePreview
from
'@/components/EyePreview'
;
import
EyePreview
from
'@/components/EyePreview'
;
import
{
ENTERPRISE_CENTER_URL
}
from
'@/constants'
;
import
{
ENTERPRISE_CENTER_URL
}
from
'@/constants'
;
import
{
GlobalConfig
}
from
'@/global/config'
;
import
{
GlobalConfig
}
from
'@/global/config'
;
import
{
getTransactionProductInquiryDetails
}
from
'@/services/TransactionV2Api'
;
const
TABLINK
=
[
const
TABLINK
=
[
{
id
:
'progressLayout'
,
title
:
'流转进度'
},
{
id
:
'progressLayout'
,
title
:
'流转进度'
},
...
@@ -124,7 +124,7 @@ const InquiryOfferPreview = () => {
...
@@ -124,7 +124,7 @@ const InquiryOfferPreview = () => {
}
}
const
fetchDataSource
=
async
()
=>
{
const
fetchDataSource
=
async
()
=>
{
await
PublicApi
.
getTransactionProductInquiryDetails
({
id
}).
then
((
res
:
any
)
=>
{
await
getTransactionProductInquiryDetails
({
id
}).
then
((
res
:
any
)
=>
{
if
(
res
.
code
!==
1000
)
{
if
(
res
.
code
!==
1000
)
{
history
.
goBack
();
history
.
goBack
();
return
;
return
;
...
...
src/pages/transaction/dealAbility/inquiryOffer/waitAddOffer/add.tsx
View file @
19f927c1
import
React
from
'react'
;
import
React
from
'react'
;
import
AddQuoteForm
from
'./addForm'
;
import
AddQuoteForm
from
'./addForm'
;
import
{
history
}
from
'umi'
;
import
{
history
}
from
'umi'
;
import
{
PublicApi
}
from
'@/services/a
pi'
;
import
{
postTransactionProductQuotationAdd
}
from
'@/services/TransactionV2A
pi'
;
const
AddQuote
=
(
props
:
any
)
=>
{
const
AddQuote
=
(
props
:
any
)
=>
{
return
(
return
(
<
AddQuoteForm
<
AddQuoteForm
title=
{
props
.
route
.
name
}
title=
{
props
.
route
.
name
}
fetchRequest=
{
PublicApi
.
postTransactionProductQuotationAdd
}
fetchRequest=
{
postTransactionProductQuotationAdd
}
/>
/>
)
)
}
}
...
...
src/pages/transaction/dealAbility/inquiryOffer/waitAddOffer/addForm.tsx
View file @
19f927c1
...
@@ -7,8 +7,8 @@ import BasicInfoLayout from "./components/basicInfo";
...
@@ -7,8 +7,8 @@ import BasicInfoLayout from "./components/basicInfo";
import
ProductQuoteLayout
from
"./components/productQuote"
;
import
ProductQuoteLayout
from
"./components/productQuote"
;
import
OtherExplainLayout
from
"./components/otherExplain"
;
import
OtherExplainLayout
from
"./components/otherExplain"
;
import
AttachLayout
from
"./components/attach"
;
import
AttachLayout
from
"./components/attach"
;
import
{
PublicApi
}
from
"@/services/api"
;
import
{
SaveOutlined
}
from
"@ant-design/icons"
;
import
{
SaveOutlined
}
from
"@ant-design/icons"
;
import
{
getTransactionProductInquiryDetails
,
getTransactionProductQuotationDetails
}
from
"@/services/TransactionV2Api"
;
const
layout
:
any
=
{
const
layout
:
any
=
{
colon
:
false
,
colon
:
false
,
...
@@ -46,11 +46,11 @@ const AddedFormLayout: React.FC<AddedFormLayoutProps> = (props: any) => {
...
@@ -46,11 +46,11 @@ const AddedFormLayout: React.FC<AddedFormLayoutProps> = (props: any) => {
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
id
&&
!
spam
)
{
if
(
id
&&
!
spam
)
{
PublicApi
.
getTransactionProductQuotationDetails
({
id
}).
then
(
res
=>
{
getTransactionProductQuotationDetails
({
id
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
if
(
res
.
code
!==
1000
)
{
return
return
}
}
PublicApi
.
getTransactionProductInquiryDetails
({
id
:
res
.
data
.
inquiryListId
.
toString
()
}).
then
(
resolve
=>
{
getTransactionProductInquiryDetails
({
id
:
res
.
data
.
inquiryListId
.
toString
()
}).
then
(
resolve
=>
{
if
(
resolve
.
code
!==
1000
)
{
if
(
resolve
.
code
!==
1000
)
{
return
return
}
}
...
@@ -77,7 +77,7 @@ const AddedFormLayout: React.FC<AddedFormLayoutProps> = (props: any) => {
...
@@ -77,7 +77,7 @@ const AddedFormLayout: React.FC<AddedFormLayoutProps> = (props: any) => {
console
.
warn
(
error
)
console
.
warn
(
error
)
})
})
}
else
if
(
id
&&
spam
)
{
}
else
if
(
id
&&
spam
)
{
PublicApi
.
getTransactionProductInquiryDetails
({
id
}).
then
(
res
=>
{
getTransactionProductInquiryDetails
({
id
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
if
(
res
.
code
!==
1000
)
{
return
return
}
}
...
@@ -143,7 +143,7 @@ const AddedFormLayout: React.FC<AddedFormLayoutProps> = (props: any) => {
...
@@ -143,7 +143,7 @@ const AddedFormLayout: React.FC<AddedFormLayoutProps> = (props: any) => {
inquiryListId
:
value
.
orderId
,
inquiryListId
:
value
.
orderId
,
inquiryListNo
:
value
.
orderNo
,
inquiryListNo
:
value
.
orderNo
,
})
})
PublicApi
.
getTransactionProductInquiryDetails
({
id
:
value
.
orderId
.
toString
()
}).
then
(
resolve
=>
{
getTransactionProductInquiryDetails
({
id
:
value
.
orderId
.
toString
()
}).
then
(
resolve
=>
{
if
(
resolve
.
code
!==
1000
)
{
if
(
resolve
.
code
!==
1000
)
{
return
return
}
}
...
...
src/pages/transaction/dealAbility/inquiryOffer/waitAddOffer/components/basicInfo.tsx
View file @
19f927c1
...
@@ -5,11 +5,11 @@ import { LinkOutlined } from '@ant-design/icons';
...
@@ -5,11 +5,11 @@ import { LinkOutlined } from '@ant-design/icons';
import
Card
from
'@/pages/transaction/components/card'
;
import
Card
from
'@/pages/transaction/components/card'
;
import
style
from
'./index.less'
;
import
style
from
'./index.less'
;
import
TableModal
from
'@/pages/transaction/components/tableModal'
;
import
TableModal
from
'@/pages/transaction/components/tableModal'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
moment
from
'moment'
;
import
moment
from
'moment'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
useStateFilterSearchLinkageEffect
}
from
'@/formSchema/effects/useFilterSearch'
;
import
{
useStateFilterSearchLinkageEffect
}
from
'@/formSchema/effects/useFilterSearch'
;
import
{
isEmpty
}
from
'lodash'
;
import
{
isEmpty
}
from
'lodash'
;
import
{
getTransactionCorrespondingInquiryNumber
}
from
'@/services/TransactionV2Api'
;
interface
BasicInfoLayoutProps
{
interface
BasicInfoLayoutProps
{
/** 获取询价单 */
/** 获取询价单 */
getInquiryInfo
:
(
e
)
=>
void
,
getInquiryInfo
:
(
e
)
=>
void
,
...
@@ -54,7 +54,7 @@ const BasicInfoLayout: React.FC<BasicInfoLayoutProps> = (props: any) => {
...
@@ -54,7 +54,7 @@ const BasicInfoLayout: React.FC<BasicInfoLayoutProps> = (props: any) => {
const
handleFetchData
=
useCallback
((
params
:
any
)
=>
{
const
handleFetchData
=
useCallback
((
params
:
any
)
=>
{
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
PublicApi
.
getTransactionCorrespondingInquiryNumber
({
...
params
}).
then
(
res
=>
{
getTransactionCorrespondingInquiryNumber
({
...
params
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
if
(
res
.
code
!==
1000
)
{
return
return
}
}
...
...
src/pages/transaction/dealAbility/inquiryOffer/waitAddOffer/components/otherExplain.tsx
View file @
19f927c1
...
@@ -2,10 +2,10 @@ import React, { useCallback, useEffect, useState } from 'react';
...
@@ -2,10 +2,10 @@ import React, { useCallback, useEffect, useState } from 'react';
import
{
Row
,
Col
,
Form
,
Input
,
InputNumber
,
Select
,
Button
}
from
'antd'
;
import
{
Row
,
Col
,
Form
,
Input
,
InputNumber
,
Select
,
Button
}
from
'antd'
;
import
Card
from
'@/pages/transaction/components/card'
;
import
Card
from
'@/pages/transaction/components/card'
;
import
{
LinkOutlined
}
from
'@ant-design/icons'
;
import
{
LinkOutlined
}
from
'@ant-design/icons'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
TableModal
from
'@/pages/transaction/components/tableModal'
;
import
TableModal
from
'@/pages/transaction/components/tableModal'
;
import
{
useStateFilterSearchLinkageEffect
}
from
'@/formSchema/effects/useFilterSearch'
;
import
{
useStateFilterSearchLinkageEffect
}
from
'@/formSchema/effects/useFilterSearch'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
getMemberManageUsersPage
}
from
'@/services/MemberV2Api'
;
interface
OtherExplainLayoutProps
{
interface
OtherExplainLayoutProps
{
/** 获取联系人 */
/** 获取联系人 */
...
@@ -18,7 +18,7 @@ const OtherExplainLayout: React.FC<OtherExplainLayoutProps> = (props: any) => {
...
@@ -18,7 +18,7 @@ const OtherExplainLayout: React.FC<OtherExplainLayoutProps> = (props: any) => {
const
[
telCode
,
setTelCode
]
=
useState
<
any
>
([]);
const
[
telCode
,
setTelCode
]
=
useState
<
any
>
([]);
const
handleFetchData
=
useCallback
((
params
:
any
)
=>
{
const
handleFetchData
=
useCallback
((
params
:
any
)
=>
{
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
PublicApi
.
getMemberManageUsersPage
({
...
params
}).
then
(
res
=>
{
getMemberManageUsersPage
({
...
params
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
if
(
res
.
code
!==
1000
)
{
return
return
}
}
...
@@ -30,7 +30,7 @@ const OtherExplainLayout: React.FC<OtherExplainLayoutProps> = (props: any) => {
...
@@ -30,7 +30,7 @@ const OtherExplainLayout: React.FC<OtherExplainLayoutProps> = (props: any) => {
},
[])
},
[])
const
fetchTelCode
=
async
()
=>
{
const
fetchTelCode
=
async
()
=>
{
const
{
data
,
code
}
=
await
PublicApi
.
getManageCountryAreaGetTelCode
();
const
{
data
,
code
}
=
await
getManageCountryAreaGetTelCode
();
if
(
code
!==
1000
)
{
if
(
code
!==
1000
)
{
return
;
return
;
}
}
...
@@ -65,7 +65,7 @@ const OtherExplainLayout: React.FC<OtherExplainLayoutProps> = (props: any) => {
...
@@ -65,7 +65,7 @@ const OtherExplainLayout: React.FC<OtherExplainLayoutProps> = (props: any) => {
]
]
useEffect
(()
=>
{
useEffect
(()
=>
{
PublicApi
.
getMemberManageUsersPage
({
current
:
'1'
,
pageSize
:
'10'
}).
then
(
res
=>
{
getMemberManageUsersPage
({
current
:
'1'
,
pageSize
:
'10'
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
if
(
res
.
code
!==
1000
)
{
return
return
}
}
...
@@ -245,3 +245,7 @@ const OtherExplainLayout: React.FC<OtherExplainLayoutProps> = (props: any) => {
...
@@ -245,3 +245,7 @@ const OtherExplainLayout: React.FC<OtherExplainLayoutProps> = (props: any) => {
}
}
export
default
OtherExplainLayout
;
export
default
OtherExplainLayout
;
function
getManageCountryAreaGetTelCode
():
{
data
:
any
;
code
:
any
;
}
|
PromiseLike
<
{
data
:
any
;
code
:
any
;
}
>
{
throw
new
Error
(
'Function not implemented.'
);
}
src/pages/transaction/dealAbility/inquiryOffer/waitAddOffer/components/productQuote.tsx
View file @
19f927c1
...
@@ -5,10 +5,10 @@ import Card from '@/pages/transaction/components/card';
...
@@ -5,10 +5,10 @@ import Card from '@/pages/transaction/components/card';
import
{
isEmpty
}
from
'@/components/NiceForm/components/AntUpload/shared'
;
import
{
isEmpty
}
from
'@/components/NiceForm/components/AntUpload/shared'
;
import
EyePreview
from
'@/components/EyePreview'
;
import
EyePreview
from
'@/components/EyePreview'
;
import
{
ENTERPRISE_CENTER_URL
}
from
'@/constants'
;
import
{
ENTERPRISE_CENTER_URL
}
from
'@/constants'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
StandardTable
}
from
'god'
;
import
{
StandardTable
}
from
'god'
;
import
moment
from
'moment'
;
import
moment
from
'moment'
;
import
{
getAuth
}
from
'@/utils/auth'
import
{
getAuth
}
from
'@/utils/auth'
import
{
getTransactionProductQuotationHistoryList
}
from
'@/services/TransactionV2Api'
;
interface
ProductQuoteLayoutProps
{
interface
ProductQuoteLayoutProps
{
/** 回显 */
/** 回显 */
...
@@ -211,7 +211,7 @@ const ProductQuoteLayout: React.FC<ProductQuoteLayoutProps> = (props: any) => {
...
@@ -211,7 +211,7 @@ const ProductQuoteLayout: React.FC<ProductQuoteLayoutProps> = (props: any) => {
const
fetchTableData
=
useCallback
((
params
:
any
)
=>
{
const
fetchTableData
=
useCallback
((
params
:
any
)
=>
{
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
PublicApi
.
getTransactionProductQuotationHistoryList
({
...
params
,
commoditySkuId
}).
then
(
res
=>
{
getTransactionProductQuotationHistoryList
({
...
params
,
commoditySkuId
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
if
(
res
.
code
!==
1000
)
{
return
return
}
}
...
...
src/pages/transaction/dealAbility/inquiryOffer/waitAddOffer/edit.tsx
View file @
19f927c1
import
React
from
'react'
;
import
React
from
'react'
;
import
AddQuoteForm
from
'./addForm'
;
import
AddQuoteForm
from
'./addForm'
;
import
{
history
}
from
'umi'
;
import
{
history
}
from
'umi'
;
import
{
PublicApi
}
from
'@/services/a
pi'
;
import
{
postTransactionProductQuotationUpdate
}
from
'@/services/TransactionV2A
pi'
;
const
EditQuote
=
(
props
:
any
)
=>
{
const
EditQuote
=
(
props
:
any
)
=>
{
const
{
id
}
=
history
.
location
.
query
;
const
{
id
}
=
history
.
location
.
query
;
return
(
return
(
...
@@ -9,7 +9,7 @@ const EditQuote = (props: any) => {
...
@@ -9,7 +9,7 @@ const EditQuote = (props: any) => {
id=
{
id
}
id=
{
id
}
isEdit
isEdit
title=
{
props
.
route
.
name
}
title=
{
props
.
route
.
name
}
fetchRequest=
{
PublicApi
.
postTransactionProductQuotationUpdate
}
fetchRequest=
{
postTransactionProductQuotationUpdate
}
/>
/>
)
)
}
}
...
...
src/pages/transaction/dealAbility/inquiryOffer/waitAddOffer/index.tsx
View file @
19f927c1
...
@@ -4,11 +4,11 @@ import { history } from 'umi';
...
@@ -4,11 +4,11 @@ import { history } from 'umi';
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'
import
{
PublicApi
}
from
'@/services/api'
;
import
{
Row
,
Col
,
Space
,
Button
,
Popconfirm
,
Tag
,
Badge
}
from
'antd'
;
import
{
Row
,
Col
,
Space
,
Button
,
Popconfirm
,
Tag
,
Badge
}
from
'antd'
;
import
{
DeleteOutlined
,
PlusOutlined
}
from
'@ant-design/icons'
;
import
{
DeleteOutlined
,
PlusOutlined
}
from
'@ant-design/icons'
;
import
{
WAITADDOFFERSCHEMA
}
from
'./schema'
;
import
{
WAITADDOFFERSCHEMA
}
from
'./schema'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
getTransactionProductInquiryExternalStateEnum
,
getTransactionProductInquiryInteriorStateEnum
,
getTransactionStayProductQuotationList
,
postTransactionProductQuotationDelete
,
postTransactionProductQuotationDeleteAll
,
postTransactionProductQuotationtAll
,
postTransactionProductQuotationtSubmit
}
from
'@/services/TransactionV2Api'
;
const
WaitAddOffer
=
()
=>
{
const
WaitAddOffer
=
()
=>
{
const
reload
=
useRef
<
any
>
({});
const
reload
=
useRef
<
any
>
({});
...
@@ -22,9 +22,9 @@ const WaitAddOffer = () => {
...
@@ -22,9 +22,9 @@ const WaitAddOffer = () => {
const
fetchSubmitBatch
=
async
(
id
?:
number
)
=>
{
const
fetchSubmitBatch
=
async
(
id
?:
number
)
=>
{
let
res
=
null
;
let
res
=
null
;
if
(
id
)
{
if
(
id
)
{
res
=
await
PublicApi
.
postTransactionProductQuotationtSubmit
({
id
:
Number
(
id
)
})
res
=
await
postTransactionProductQuotationtSubmit
({
id
:
Number
(
id
)
})
}
else
{
}
else
{
res
=
await
PublicApi
.
postTransactionProductQuotationtAll
({
ids
:
rowkeys
});
res
=
await
postTransactionProductQuotationtAll
({
ids
:
rowkeys
});
}
}
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
reload
.
current
.
reload
();
reload
.
current
.
reload
();
...
@@ -39,9 +39,9 @@ const WaitAddOffer = () => {
...
@@ -39,9 +39,9 @@ const WaitAddOffer = () => {
const
fetchDeleteBatch
=
async
(
id
?:
number
)
=>
{
const
fetchDeleteBatch
=
async
(
id
?:
number
)
=>
{
let
res
=
null
;
let
res
=
null
;
if
(
id
)
{
if
(
id
)
{
res
=
await
PublicApi
.
postTransactionProductQuotationDelete
({
id
});
res
=
await
postTransactionProductQuotationDelete
({
id
});
}
else
{
}
else
{
res
=
await
PublicApi
.
postTransactionProductQuotationDeleteAll
({
ids
:
rowkeys
});
res
=
await
postTransactionProductQuotationDeleteAll
({
ids
:
rowkeys
});
}
}
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
reload
.
current
.
reload
();
reload
.
current
.
reload
();
...
@@ -139,9 +139,9 @@ const WaitAddOffer = () => {
...
@@ -139,9 +139,9 @@ const WaitAddOffer = () => {
schema=
{
WAITADDOFFERSCHEMA
}
schema=
{
WAITADDOFFERSCHEMA
}
columns=
{
columns
}
columns=
{
columns
}
effects=
"quotationNo"
effects=
"quotationNo"
fetch=
{
PublicApi
.
getTransactionStayProductQuotationList
}
fetch=
{
getTransactionStayProductQuotationList
}
externalStatusFetch=
{
PublicApi
.
getTransactionProductInquiryExternalStateEnum
({
type
:
'2'
})
}
externalStatusFetch=
{
getTransactionProductInquiryExternalStateEnum
({
type
:
'2'
})
}
interiorStatusFetch=
{
PublicApi
.
getTransactionProductInquiryInteriorStateEnum
({
type
:
'2'
})
}
interiorStatusFetch=
{
getTransactionProductInquiryInteriorStateEnum
({
type
:
'2'
})
}
fetchRowkeys=
{
(
e
)
=>
setRowKeys
(
e
)
}
fetchRowkeys=
{
(
e
)
=>
setRowKeys
(
e
)
}
getCheckboxProps=
{
getCheckboxProps
}
getCheckboxProps=
{
getCheckboxProps
}
controllerBtns=
{
controllerBtns=
{
...
...
src/pages/transaction/dealAbility/inquiryOffer/waitAddOffer/quote.tsx
View file @
19f927c1
import
React
from
'react'
;
import
React
from
'react'
;
import
AddQuoteForm
from
'./addForm'
;
import
AddQuoteForm
from
'./addForm'
;
import
{
history
}
from
'umi'
;
import
{
history
}
from
'umi'
;
import
{
PublicApi
}
from
'@/services/a
pi'
;
import
{
postTransactionProductQuotationAdd
}
from
'@/services/TransactionV2A
pi'
;
const
Quote
=
(
props
:
any
)
=>
{
const
Quote
=
(
props
:
any
)
=>
{
const
{
id
}
=
history
.
location
.
query
;
const
{
id
}
=
history
.
location
.
query
;
return
(
return
(
<
AddQuoteForm
<
AddQuoteForm
id=
{
id
}
id=
{
id
}
title=
{
props
.
route
.
name
}
title=
{
props
.
route
.
name
}
fetchRequest=
{
PublicApi
.
postTransactionProductQuotationAdd
}
fetchRequest=
{
postTransactionProductQuotationAdd
}
spam
spam
/>
/>
)
)
...
...
src/pages/transaction/dealAbility/inquiryOffer/waitAuditOfferOne/index.tsx
View file @
19f927c1
...
@@ -4,10 +4,10 @@ import { history } from 'umi';
...
@@ -4,10 +4,10 @@ import { history } from 'umi';
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'
import
{
PublicApi
}
from
'@/services/api'
;
import
{
Row
,
Col
,
Button
,
Tag
,
Badge
}
from
'antd'
;
import
{
Row
,
Col
,
Button
,
Tag
,
Badge
}
from
'antd'
;
import
{
WAITAUDITOFFERONESCHEMA
}
from
'./schema'
;
import
{
WAITAUDITOFFERONESCHEMA
}
from
'./schema'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
getTransactionAuditProductQuotationList
,
getTransactionProductInquiryExternalStateEnum
,
getTransactionProductInquiryInteriorStateEnum
,
postTransactionProductQuotationtAuditAll
}
from
'@/services/TransactionV2Api'
;
const
WaitAuditOfferOne
=
()
=>
{
const
WaitAuditOfferOne
=
()
=>
{
const
ref
=
useRef
<
any
>
({});
const
ref
=
useRef
<
any
>
({});
...
@@ -17,7 +17,7 @@ const WaitAuditOfferOne = () => {
...
@@ -17,7 +17,7 @@ const WaitAuditOfferOne = () => {
const
[
rowkeys
,
setRowKeys
]
=
useState
<
Array
<
number
>>
([]);
const
[
rowkeys
,
setRowKeys
]
=
useState
<
Array
<
number
>>
([]);
/** 批量审核 */
/** 批量审核 */
const
fetchSubmitBatch
=
async
()
=>
{
const
fetchSubmitBatch
=
async
()
=>
{
const
res
=
await
PublicApi
.
postTransactionProductQuotationtAuditAll
({
ids
:
rowkeys
});
const
res
=
await
postTransactionProductQuotationtAuditAll
({
ids
:
rowkeys
});
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
ref
.
current
.
reload
();
ref
.
current
.
reload
();
setRowKeys
([])
setRowKeys
([])
...
@@ -86,9 +86,9 @@ const WaitAuditOfferOne = () => {
...
@@ -86,9 +86,9 @@ const WaitAuditOfferOne = () => {
schema=
{
WAITAUDITOFFERONESCHEMA
}
schema=
{
WAITAUDITOFFERONESCHEMA
}
columns=
{
columns
}
columns=
{
columns
}
effects=
"quotationNo"
effects=
"quotationNo"
fetch=
{
PublicApi
.
getTransactionAuditProductQuotationList
}
fetch=
{
getTransactionAuditProductQuotationList
}
externalStatusFetch=
{
PublicApi
.
getTransactionProductInquiryExternalStateEnum
({
type
:
'2'
})
}
externalStatusFetch=
{
getTransactionProductInquiryExternalStateEnum
({
type
:
'2'
})
}
interiorStatusFetch=
{
PublicApi
.
getTransactionProductInquiryInteriorStateEnum
({
type
:
'2'
})
}
interiorStatusFetch=
{
getTransactionProductInquiryInteriorStateEnum
({
type
:
'2'
})
}
fetchRowkeys=
{
(
e
)
=>
setRowKeys
(
e
)
}
fetchRowkeys=
{
(
e
)
=>
setRowKeys
(
e
)
}
controllerBtns=
{
controllerBtns=
{
<
Row
>
<
Row
>
...
...
src/pages/transaction/dealAbility/inquiryOffer/waitAuditOfferTwo/index.tsx
View file @
19f927c1
...
@@ -4,10 +4,10 @@ import { history } from 'umi';
...
@@ -4,10 +4,10 @@ import { history } from 'umi';
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'
import
{
PublicApi
}
from
'@/services/api'
;
import
{
Row
,
Col
,
Button
,
Tag
,
Badge
}
from
'antd'
;
import
{
Row
,
Col
,
Button
,
Tag
,
Badge
}
from
'antd'
;
import
{
WAITADUITOFFERTWOSCHEMA
}
from
'./schema'
;
import
{
WAITADUITOFFERTWOSCHEMA
}
from
'./schema'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
getTransactionAuditProductQuotationListTwo
,
getTransactionProductInquiryExternalStateEnum
,
getTransactionProductInquiryInteriorStateEnum
,
postTransactionProductQuotationtAuditAllTwo
}
from
'@/services/TransactionV2Api'
;
const
WaitAuditOfferTwo
=
()
=>
{
const
WaitAuditOfferTwo
=
()
=>
{
const
ref
=
useRef
<
any
>
({});
const
ref
=
useRef
<
any
>
({});
...
@@ -17,7 +17,7 @@ const WaitAuditOfferTwo = () => {
...
@@ -17,7 +17,7 @@ const WaitAuditOfferTwo = () => {
const
[
rowkeys
,
setRowKeys
]
=
useState
<
Array
<
number
>>
([]);
const
[
rowkeys
,
setRowKeys
]
=
useState
<
Array
<
number
>>
([]);
/** 批量审核 */
/** 批量审核 */
const
fetchSubmitBatch
=
async
()
=>
{
const
fetchSubmitBatch
=
async
()
=>
{
const
res
=
await
PublicApi
.
postTransactionProductQuotationtAuditAllTwo
({
ids
:
rowkeys
});
const
res
=
await
postTransactionProductQuotationtAuditAllTwo
({
ids
:
rowkeys
});
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
ref
.
current
.
reload
();
ref
.
current
.
reload
();
setRowKeys
([])
setRowKeys
([])
...
@@ -86,9 +86,9 @@ const WaitAuditOfferTwo = () => {
...
@@ -86,9 +86,9 @@ const WaitAuditOfferTwo = () => {
schema=
{
WAITADUITOFFERTWOSCHEMA
}
schema=
{
WAITADUITOFFERTWOSCHEMA
}
columns=
{
columns
}
columns=
{
columns
}
effects=
"quotationNo"
effects=
"quotationNo"
fetch=
{
PublicApi
.
getTransactionAuditProductQuotationListTwo
}
fetch=
{
getTransactionAuditProductQuotationListTwo
}
externalStatusFetch=
{
PublicApi
.
getTransactionProductInquiryExternalStateEnum
({
type
:
'2'
})
}
externalStatusFetch=
{
getTransactionProductInquiryExternalStateEnum
({
type
:
'2'
})
}
interiorStatusFetch=
{
PublicApi
.
getTransactionProductInquiryInteriorStateEnum
({
type
:
'2'
})
}
interiorStatusFetch=
{
getTransactionProductInquiryInteriorStateEnum
({
type
:
'2'
})
}
fetchRowkeys=
{
(
e
)
=>
setRowKeys
(
e
)
}
fetchRowkeys=
{
(
e
)
=>
setRowKeys
(
e
)
}
controllerBtns=
{
controllerBtns=
{
<
Row
>
<
Row
>
...
...
src/pages/transaction/dealAbility/inquiryOffer/waitSubmitOffer/index.tsx
View file @
19f927c1
...
@@ -3,10 +3,10 @@ import Table from '@/pages/transaction/components/tableLayout';
...
@@ -3,10 +3,10 @@ import Table from '@/pages/transaction/components/tableLayout';
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'
import
{
PublicApi
}
from
'@/services/api'
;
import
{
Row
,
Col
,
Button
,
Popconfirm
,
Tag
,
Badge
}
from
'antd'
;
import
{
Row
,
Col
,
Button
,
Popconfirm
,
Tag
,
Badge
}
from
'antd'
;
import
{
WAITSUBMITOFFERSCHEMA
}
from
'./schema'
;
import
{
WAITSUBMITOFFERSCHEMA
}
from
'./schema'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
getTransactionToSubmitProductQuotationList
,
postTransactionProductQuotationtToSubmit
,
postTransactionProductQuotationtToSubmitAll
}
from
'@/services/TransactionV2Api'
;
const
WaitSubmitOffer
=
()
=>
{
const
WaitSubmitOffer
=
()
=>
{
const
reload
=
useRef
<
any
>
({});
const
reload
=
useRef
<
any
>
({});
...
@@ -18,9 +18,9 @@ const WaitSubmitOffer = () => {
...
@@ -18,9 +18,9 @@ const WaitSubmitOffer = () => {
const
fetchSubmitBatch
=
async
(
id
?:
number
)
=>
{
const
fetchSubmitBatch
=
async
(
id
?:
number
)
=>
{
let
res
=
null
;
let
res
=
null
;
if
(
id
)
{
if
(
id
)
{
res
=
await
PublicApi
.
postTransactionProductQuotationtToSubmit
({
id
:
Number
(
id
)
})
res
=
await
postTransactionProductQuotationtToSubmit
({
id
:
Number
(
id
)
})
}
else
{
}
else
{
res
=
await
PublicApi
.
postTransactionProductQuotationtToSubmitAll
({
ids
:
rowkeys
});
res
=
await
postTransactionProductQuotationtToSubmitAll
({
ids
:
rowkeys
});
}
}
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
reload
.
current
.
reload
();
reload
.
current
.
reload
();
...
@@ -93,7 +93,7 @@ const WaitSubmitOffer = () => {
...
@@ -93,7 +93,7 @@ const WaitSubmitOffer = () => {
schema=
{
WAITSUBMITOFFERSCHEMA
}
schema=
{
WAITSUBMITOFFERSCHEMA
}
columns=
{
columns
}
columns=
{
columns
}
effects=
"quotationNo"
effects=
"quotationNo"
fetch=
{
PublicApi
.
getTransactionToSubmitProductQuotationList
}
fetch=
{
getTransactionToSubmitProductQuotationList
}
fetchRowkeys=
{
(
e
)
=>
setRowKeys
(
e
)
}
fetchRowkeys=
{
(
e
)
=>
setRowKeys
(
e
)
}
controllerBtns=
{
controllerBtns=
{
<
Row
>
<
Row
>
...
...
src/pages/transaction/dealAbility/productInquiry/detail/index.tsx
View file @
19f927c1
...
@@ -6,7 +6,6 @@ import { ColumnType } from 'antd/lib/table/interface';
...
@@ -6,7 +6,6 @@ import { ColumnType } from 'antd/lib/table/interface';
import
PeripheralLayout
from
'@/pages/transaction/components/detailLayout'
;
import
PeripheralLayout
from
'@/pages/transaction/components/detailLayout'
;
import
{
Context
}
from
'@/pages/transaction/components/detailLayout/components/context'
;
import
{
Context
}
from
'@/pages/transaction/components/detailLayout/components/context'
;
import
moment
from
'moment'
;
import
moment
from
'moment'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
CheckCircleOutlined
,
LinkOutlined
}
from
'@ant-design/icons'
;
import
{
CheckCircleOutlined
,
LinkOutlined
}
from
'@ant-design/icons'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
ProgressLayout
from
'@/pages/transaction/components/detailLayout/components/progressLayout'
;
import
ProgressLayout
from
'@/pages/transaction/components/detailLayout/components/progressLayout'
;
...
@@ -17,6 +16,7 @@ import RecordLyout from '@/pages/transaction/components/detailLayout/components/
...
@@ -17,6 +16,7 @@ import RecordLyout from '@/pages/transaction/components/detailLayout/components/
import
ModalOperate
from
'@/pages/transaction/components/modalOperate'
;
import
ModalOperate
from
'@/pages/transaction/components/modalOperate'
;
import
{
ENTERPRISE_CENTER_URL
}
from
'@/constants'
;
import
{
ENTERPRISE_CENTER_URL
}
from
'@/constants'
;
import
EyePreview
from
'@/components/EyePreview'
;
import
EyePreview
from
'@/components/EyePreview'
;
import
{
getTransactionInquiryListDetails
,
postTransactionInquiryDocumentsReview
,
postTransactionInquiryDocumentsReviewTwo
}
from
'@/services/TransactionV2Api'
;
const
TABLINK
=
[
const
TABLINK
=
[
{
id
:
'progressLayout'
,
title
:
'流转进度'
},
{
id
:
'progressLayout'
,
title
:
'流转进度'
},
...
@@ -127,7 +127,7 @@ const ProductInquiryDetail = () => {
...
@@ -127,7 +127,7 @@ const ProductInquiryDetail = () => {
}
}
const
fetchDataSource
=
async
()
=>
{
const
fetchDataSource
=
async
()
=>
{
await
PublicApi
.
getTransactionInquiryListDetails
({
id
}).
then
((
res
:
any
)
=>
{
await
getTransactionInquiryListDetails
({
id
}).
then
((
res
:
any
)
=>
{
if
(
res
.
code
!==
1000
)
{
if
(
res
.
code
!==
1000
)
{
history
.
goBack
();
history
.
goBack
();
return
;
return
;
...
@@ -192,10 +192,10 @@ const ProductInquiryDetail = () => {
...
@@ -192,10 +192,10 @@ const ProductInquiryDetail = () => {
let
fetchSoure
:
any
=
null
;
let
fetchSoure
:
any
=
null
;
switch
(
pathPci
)
{
switch
(
pathPci
)
{
case
'waitAuditInquiryOne'
:
case
'waitAuditInquiryOne'
:
fetchSoure
=
PublicApi
.
postTransactionInquiryDocumentsReview
fetchSoure
=
postTransactionInquiryDocumentsReview
break
;
break
;
case
'waitAuditInquiryTwo'
:
case
'waitAuditInquiryTwo'
:
fetchSoure
=
PublicApi
.
postTransactionInquiryDocumentsReviewTwo
fetchSoure
=
postTransactionInquiryDocumentsReviewTwo
break
;
break
;
}
}
return
fetchSoure
return
fetchSoure
...
@@ -232,7 +232,7 @@ const ProductInquiryDetail = () => {
...
@@ -232,7 +232,7 @@ const ProductInquiryDetail = () => {
columns=
{
columns
}
columns=
{
columns
}
done
done
data=
{
dataSource
.
inquiryListProductRequests
}
data=
{
dataSource
.
inquiryListProductRequests
}
// fetch=
{
PublicApi
.
getTransactionEnquiryProductList
}
// fetch=
{
getTransactionEnquiryProductList
}
/>
/>
<
GeneralLayout
<
GeneralLayout
anchor=
"conditionLayout"
anchor=
"conditionLayout"
...
...
src/pages/transaction/dealAbility/productInquiry/inquirySearch/index.tsx
View file @
19f927c1
...
@@ -4,9 +4,9 @@ import { Tag, Badge } from 'antd';
...
@@ -4,9 +4,9 @@ import { Tag, Badge } 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'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
INQUIRYSEARCHSCHEMA
}
from
'./schema'
;
import
{
INQUIRYSEARCHSCHEMA
}
from
'./schema'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
getTransactionInquiryAddList
,
getTransactionProductInquiryExternalStateEnum
,
getTransactionProductInquiryInteriorStateEnum
}
from
'@/services/TransactionV2Api'
;
const
InquirySearch
=
()
=>
{
const
InquirySearch
=
()
=>
{
...
@@ -71,10 +71,10 @@ const InquirySearch = () => {
...
@@ -71,10 +71,10 @@ const InquirySearch = () => {
schema=
{
INQUIRYSEARCHSCHEMA
}
schema=
{
INQUIRYSEARCHSCHEMA
}
columns=
{
columns
}
columns=
{
columns
}
effects=
"inquiryListNo"
effects=
"inquiryListNo"
fetch=
{
PublicApi
.
getTransactionInquiryAddList
}
fetch=
{
getTransactionInquiryAddList
}
reload=
{
reload
}
reload=
{
reload
}
externalStatusFetch=
{
PublicApi
.
getTransactionProductInquiryExternalStateEnum
({
type
:
'1'
})
}
externalStatusFetch=
{
getTransactionProductInquiryExternalStateEnum
({
type
:
'1'
})
}
interiorStatusFetch=
{
PublicApi
.
getTransactionProductInquiryInteriorStateEnum
({
type
:
'1'
})
}
interiorStatusFetch=
{
getTransactionProductInquiryInteriorStateEnum
({
type
:
'1'
})
}
/>
/>
)
)
}
}
...
...
src/pages/transaction/dealAbility/productInquiry/waitAddInquiry/add.tsx
View file @
19f927c1
import
React
from
'react'
;
import
React
from
'react'
;
import
AddForm
from
'./addForm'
;
import
AddForm
from
'./addForm'
;
import
{
history
}
from
'umi'
;
import
{
history
}
from
'umi'
;
import
{
PublicApi
}
from
'@/services/a
pi'
;
import
{
postTransactionInquiryListAdd
}
from
'@/services/TransactionV2A
pi'
;
const
AddEnquiryOrder
=
(
props
:
any
)
=>
{
const
AddEnquiryOrder
=
(
props
:
any
)
=>
{
const
{
id
}
=
history
.
location
.
query
;
const
{
id
}
=
history
.
location
.
query
;
return
(
return
(
...
@@ -9,7 +9,7 @@ const AddEnquiryOrder = (props: any) => {
...
@@ -9,7 +9,7 @@ const AddEnquiryOrder = (props: any) => {
id=
{
id
}
id=
{
id
}
isEdit=
{
id
&&
true
}
isEdit=
{
id
&&
true
}
title=
{
props
.
route
.
name
}
title=
{
props
.
route
.
name
}
fetchRequest=
{
PublicApi
.
postTransactionInquiryListAdd
}
fetchRequest=
{
postTransactionInquiryListAdd
}
/>
/>
)
)
}
}
...
...
src/pages/transaction/dealAbility/productInquiry/waitAddInquiry/addForm.tsx
View file @
19f927c1
...
@@ -9,7 +9,8 @@ import TradeTermsLayout from "./components/tradeTerms";
...
@@ -9,7 +9,8 @@ import TradeTermsLayout from "./components/tradeTerms";
import
{
SaveOutlined
}
from
"@ant-design/icons"
;
import
{
SaveOutlined
}
from
"@ant-design/icons"
;
import
AttachLayout
from
"./components/attach"
;
import
AttachLayout
from
"./components/attach"
;
import
{
getCookie
}
from
'@/utils/cookie'
import
{
getCookie
}
from
'@/utils/cookie'
import
{
PublicApi
}
from
"@/services/api"
;
import
{
getOrderCacheGet
}
from
"@/services/OrderNewV2Api"
;
import
{
getTransactionInquiryGetUpperMemberCommodity
,
getTransactionInquiryListDetails
}
from
"@/services/TransactionV2Api"
;
const
layout
:
any
=
{
const
layout
:
any
=
{
colon
:
false
,
colon
:
false
,
...
@@ -135,7 +136,7 @@ const AddedFormLayout: React.FC<AddedFormLayoutProps> = (props: any) => {
...
@@ -135,7 +136,7 @@ const AddedFormLayout: React.FC<AddedFormLayoutProps> = (props: any) => {
const
getCacheOrderInfoByKey
=
(
key
:
string
)
=>
{
const
getCacheOrderInfoByKey
=
(
key
:
string
)
=>
{
return
new
Promise
((
resolve
)
=>
{
return
new
Promise
((
resolve
)
=>
{
PublicApi
.
getOrderCacheGet
({
key
}).
then
((
res
)
=>
{
getOrderCacheGet
({
key
}).
then
((
res
)
=>
{
message
.
destroy
()
message
.
destroy
()
if
(
res
.
data
)
{
if
(
res
.
data
)
{
resolve
(
JSON
.
parse
(
res
.
data
))
resolve
(
JSON
.
parse
(
res
.
data
))
...
@@ -195,7 +196,7 @@ const AddedFormLayout: React.FC<AddedFormLayoutProps> = (props: any) => {
...
@@ -195,7 +196,7 @@ const AddedFormLayout: React.FC<AddedFormLayoutProps> = (props: any) => {
}
}
/** 二次询价 */
/** 二次询价 */
const
handleInquiry
=
async
()
=>
{
const
handleInquiry
=
async
()
=>
{
await
PublicApi
.
getTransactionInquiryListDetails
({
id
}).
then
(
res
=>
{
await
getTransactionInquiryListDetails
({
id
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
if
(
res
.
code
!==
1000
)
{
return
return
}
}
...
@@ -207,7 +208,7 @@ const AddedFormLayout: React.FC<AddedFormLayoutProps> = (props: any) => {
...
@@ -207,7 +208,7 @@ const AddedFormLayout: React.FC<AddedFormLayoutProps> = (props: any) => {
fullAddressId
:
data
.
fullAddressId
,
fullAddressId
:
data
.
fullAddressId
,
})
})
if
(
two
)
{
if
(
two
)
{
PublicApi
.
getTransactionInquiryGetUpperMemberCommodity
({
inquiryId
:
id
}).
then
(
res
=>
{
getTransactionInquiryGetUpperMemberCommodity
({
inquiryId
:
id
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
if
(
res
.
code
!==
1000
)
{
return
return
}
}
...
...
src/pages/transaction/dealAbility/productInquiry/waitAddInquiry/components/basicInfo.tsx
View file @
19f927c1
...
@@ -4,12 +4,13 @@ import { GlobalConfig } from '@/global/config'
...
@@ -4,12 +4,13 @@ import { GlobalConfig } from '@/global/config'
import
{
LinkOutlined
}
from
'@ant-design/icons'
;
import
{
LinkOutlined
}
from
'@ant-design/icons'
;
import
Card
from
'@/pages/transaction/components/card'
;
import
Card
from
'@/pages/transaction/components/card'
;
import
TableModal
from
'@/pages/transaction/components/tableModal'
;
import
TableModal
from
'@/pages/transaction/components/tableModal'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
style
from
'./index.less'
;
import
style
from
'./index.less'
;
import
{
isEmpty
}
from
'@formily/shared'
;
import
{
isEmpty
}
from
'@formily/shared'
;
import
{
ENTERPRISE_CENTER_URL
}
from
'@/constants'
import
{
ENTERPRISE_CENTER_URL
}
from
'@/constants'
import
{
useStateFilterSearchLinkageEffect
}
from
'@/formSchema/effects/useFilterSearch'
;
import
{
useStateFilterSearchLinkageEffect
}
from
'@/formSchema/effects/useFilterSearch'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
getMemberManagePlatformProviderPage
}
from
'@/services/MemberV2Api'
;
import
{
postManageWebShopWebAll
}
from
'@/services/ManageV2Api'
;
interface
BasicInfoLayoutProps
{
interface
BasicInfoLayoutProps
{
/** 获取询价会员 */
/** 获取询价会员 */
...
@@ -56,7 +57,7 @@ const BasicInfoLayout: React.FC<BasicInfoLayoutProps> = (props: any) => {
...
@@ -56,7 +57,7 @@ const BasicInfoLayout: React.FC<BasicInfoLayoutProps> = (props: any) => {
const
handleFetchData
=
useCallback
((
params
:
any
)
=>
{
const
handleFetchData
=
useCallback
((
params
:
any
)
=>
{
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
PublicApi
.
getMemberManagePlatformProviderPage
({
...
params
}).
then
(
res
=>
{
getMemberManagePlatformProviderPage
({
...
params
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
if
(
res
.
code
!==
1000
)
{
return
return
}
}
...
@@ -72,7 +73,7 @@ const BasicInfoLayout: React.FC<BasicInfoLayoutProps> = (props: any) => {
...
@@ -72,7 +73,7 @@ const BasicInfoLayout: React.FC<BasicInfoLayoutProps> = (props: any) => {
}
}
const
getShopListFn
=
(
memberId
:
number
,
roleId
:
number
)
=>
{
const
getShopListFn
=
(
memberId
:
number
,
roleId
:
number
)
=>
{
PublicApi
.
postManageWebShopWebAll
({
postManageWebShopWebAll
({
siteId
:
GlobalConfig
.
global
.
siteInfo
.
id
,
siteId
:
GlobalConfig
.
global
.
siteInfo
.
id
,
environment
:
1
,
environment
:
1
,
hasMemberType
:
1
,
hasMemberType
:
1
,
...
...
src/pages/transaction/dealAbility/productInquiry/waitAddInquiry/components/inquiryProduct.tsx
View file @
19f927c1
...
@@ -5,12 +5,12 @@ import Card from '@/pages/transaction/components/card';
...
@@ -5,12 +5,12 @@ import Card from '@/pages/transaction/components/card';
import
{
PlusOutlined
}
from
'@ant-design/icons'
;
import
{
PlusOutlined
}
from
'@ant-design/icons'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
TableModal
from
'@/pages/transaction/components/tableModal'
;
import
TableModal
from
'@/pages/transaction/components/tableModal'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
isEmpty
}
from
'lodash'
;
import
{
isEmpty
}
from
'lodash'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
useStateFilterSearchLinkageEffect
}
from
'@/formSchema/effects/useFilterSearch'
;
import
{
useStateFilterSearchLinkageEffect
}
from
'@/formSchema/effects/useFilterSearch'
;
import
{
useLinkageUtils
}
from
'@/utils/formEffectUtils'
;
import
{
useLinkageUtils
}
from
'@/utils/formEffectUtils'
;
import
{
FormEffectHooks
}
from
'@formily/antd'
;
import
{
FormEffectHooks
}
from
'@formily/antd'
;
import
{
getProductCommodityCommonGetCommodityListByBuyer
,
getProductSelectGetMemberBrand
,
getProductSelectGetMemberCategory
}
from
'@/services/ProductV2Api'
;
const
{
onFormMount$
}
=
FormEffectHooks
const
{
onFormMount$
}
=
FormEffectHooks
interface
InquiryProductLayoutProps
{
interface
InquiryProductLayoutProps
{
...
@@ -128,7 +128,7 @@ const InquiryProductLayout: React.FC<InquiryProductLayoutProps> = (props: any) =
...
@@ -128,7 +128,7 @@ const InquiryProductLayout: React.FC<InquiryProductLayoutProps> = (props: any) =
const
handleFetchData
=
useCallback
((
params
:
any
)
=>
{
const
handleFetchData
=
useCallback
((
params
:
any
)
=>
{
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
PublicApi
.
getProductCommodityCommonGetCommodityListByBuyer
({
...
params
,
priceTypeList
:
2
,
memberId
,
shopId
:
form
.
getFieldValue
(
'shopId'
)
}).
then
(
res
=>
{
getProductCommodityCommonGetCommodityListByBuyer
({
...
params
,
priceTypeList
:
2
,
memberId
,
shopId
:
form
.
getFieldValue
(
'shopId'
)
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
if
(
res
.
code
!==
1000
)
{
return
return
}
}
...
@@ -190,7 +190,7 @@ const InquiryProductLayout: React.FC<InquiryProductLayoutProps> = (props: any) =
...
@@ -190,7 +190,7 @@ const InquiryProductLayout: React.FC<InquiryProductLayoutProps> = (props: any) =
const
useBusinessEffects
=
()
=>
{
const
useBusinessEffects
=
()
=>
{
const
linkage
=
useLinkageUtils
();
const
linkage
=
useLinkageUtils
();
onFormMount$
().
subscribe
(()
=>
{
onFormMount$
().
subscribe
(()
=>
{
PublicApi
.
getProductSelectGetMemberCategory
({
memberId
:
member
.
memberId
,
memberRoleId
:
member
.
roleId
}).
then
(
res
=>
{
getProductSelectGetMemberCategory
({
memberId
:
member
.
memberId
,
memberRoleId
:
member
.
roleId
}).
then
(
res
=>
{
const
_enum
=
res
.
data
.
map
(
item
=>
{
const
_enum
=
res
.
data
.
map
(
item
=>
{
return
{
return
{
label
:
item
.
name
,
label
:
item
.
name
,
...
@@ -201,7 +201,7 @@ const InquiryProductLayout: React.FC<InquiryProductLayoutProps> = (props: any) =
...
@@ -201,7 +201,7 @@ const InquiryProductLayout: React.FC<InquiryProductLayoutProps> = (props: any) =
}).
catch
(
error
=>
{
}).
catch
(
error
=>
{
console
.
warn
(
error
)
console
.
warn
(
error
)
})
})
PublicApi
.
getProductSelectGetMemberBrand
({
memberId
:
member
.
memberId
,
memberRoleId
:
member
.
roleId
}).
then
(
res
=>
{
getProductSelectGetMemberBrand
({
memberId
:
member
.
memberId
,
memberRoleId
:
member
.
roleId
}).
then
(
res
=>
{
const
_enum
=
res
.
data
.
map
(
item
=>
{
const
_enum
=
res
.
data
.
map
(
item
=>
{
return
{
return
{
label
:
item
.
name
,
label
:
item
.
name
,
...
...
src/pages/transaction/dealAbility/productInquiry/waitAddInquiry/components/tradeTerms.tsx
View file @
19f927c1
...
@@ -2,7 +2,6 @@ import React, { useCallback, useState, useEffect } from 'react';
...
@@ -2,7 +2,6 @@ import React, { useCallback, useState, useEffect } from 'react';
import
{
Row
,
Col
,
Form
,
Input
,
DatePicker
,
Select
,
Button
}
from
'antd'
;
import
{
Row
,
Col
,
Form
,
Input
,
DatePicker
,
Select
,
Button
}
from
'antd'
;
import
Card
from
'@/pages/transaction/components/card'
;
import
Card
from
'@/pages/transaction/components/card'
;
import
moment
from
'moment'
;
import
moment
from
'moment'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
LinkOutlined
}
from
'@ant-design/icons'
;
import
{
LinkOutlined
}
from
'@ant-design/icons'
;
import
TableModal
from
'@/pages/transaction/components/tableModal'
;
import
TableModal
from
'@/pages/transaction/components/tableModal'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
...
@@ -10,6 +9,7 @@ import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilte
...
@@ -10,6 +9,7 @@ import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilte
import
AddressSelect
from
'@/components/AddressSelect'
;
import
AddressSelect
from
'@/components/AddressSelect'
;
import
style
from
'./index.less'
;
import
style
from
'./index.less'
;
import
{
isEmpty
}
from
'lodash'
;
import
{
isEmpty
}
from
'lodash'
;
import
{
getMemberManageUsersPage
}
from
'@/services/MemberV2Api'
;
const
disabledDate
=
(
current
)
=>
{
const
disabledDate
=
(
current
)
=>
{
return
current
&&
current
<
moment
().
startOf
(
'day'
);
return
current
&&
current
<
moment
().
startOf
(
'day'
);
...
@@ -33,7 +33,7 @@ const TradeTermsLayout: React.FC<TradeTermsLayoutProps> = (props: any) => {
...
@@ -33,7 +33,7 @@ const TradeTermsLayout: React.FC<TradeTermsLayoutProps> = (props: any) => {
const
[
telCode
,
setTelCode
]
=
useState
<
any
>
([]);
const
[
telCode
,
setTelCode
]
=
useState
<
any
>
([]);
const
handleFetchData
=
useCallback
((
params
:
any
)
=>
{
const
handleFetchData
=
useCallback
((
params
:
any
)
=>
{
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
PublicApi
.
getMemberManageUsersPage
({
...
params
}).
then
(
res
=>
{
getMemberManageUsersPage
({
...
params
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
if
(
res
.
code
!==
1000
)
{
return
return
}
}
...
@@ -50,7 +50,7 @@ const TradeTermsLayout: React.FC<TradeTermsLayoutProps> = (props: any) => {
...
@@ -50,7 +50,7 @@ const TradeTermsLayout: React.FC<TradeTermsLayoutProps> = (props: any) => {
// 获取手机code
// 获取手机code
const
fetchTelCode
=
async
()
=>
{
const
fetchTelCode
=
async
()
=>
{
const
{
data
,
code
}
=
await
PublicApi
.
getManageCountryAreaGetTelCode
();
const
{
data
,
code
}
=
await
getManageCountryAreaGetTelCode
();
if
(
code
!==
1000
)
{
if
(
code
!==
1000
)
{
return
;
return
;
}
}
...
@@ -87,7 +87,7 @@ const TradeTermsLayout: React.FC<TradeTermsLayoutProps> = (props: any) => {
...
@@ -87,7 +87,7 @@ const TradeTermsLayout: React.FC<TradeTermsLayoutProps> = (props: any) => {
}
}
useEffect
(()
=>
{
useEffect
(()
=>
{
PublicApi
.
getMemberManageUsersPage
({
current
:
'1'
,
pageSize
:
'10'
}).
then
(
res
=>
{
getMemberManageUsersPage
({
current
:
'1'
,
pageSize
:
'10'
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
if
(
res
.
code
!==
1000
)
{
return
return
}
}
...
@@ -287,3 +287,7 @@ const TradeTermsLayout: React.FC<TradeTermsLayoutProps> = (props: any) => {
...
@@ -287,3 +287,7 @@ const TradeTermsLayout: React.FC<TradeTermsLayoutProps> = (props: any) => {
}
}
export
default
TradeTermsLayout
;
export
default
TradeTermsLayout
;
function
getManageCountryAreaGetTelCode
():
{
data
:
any
;
code
:
any
;
}
|
PromiseLike
<
{
data
:
any
;
code
:
any
;
}
>
{
throw
new
Error
(
'Function not implemented.'
);
}
src/pages/transaction/dealAbility/productInquiry/waitAddInquiry/edit.tsx
View file @
19f927c1
import
React
from
'react'
;
import
React
from
'react'
;
import
AddForm
from
'./addForm'
;
import
AddForm
from
'./addForm'
;
import
{
history
}
from
'umi'
;
import
{
history
}
from
'umi'
;
import
{
PublicApi
}
from
'@/services/a
pi'
;
import
{
postTransactionInquiryListUpdate
}
from
'@/services/TransactionV2A
pi'
;
const
EditEnquiryOrder
:
React
.
FC
<
{}
>
=
(
props
:
any
)
=>
{
const
EditEnquiryOrder
:
React
.
FC
<
{}
>
=
(
props
:
any
)
=>
{
const
{
id
}
=
history
.
location
.
query
;
const
{
id
}
=
history
.
location
.
query
;
return
(
return
(
...
@@ -9,7 +9,7 @@ const EditEnquiryOrder:React.FC<{}> = (props: any) => {
...
@@ -9,7 +9,7 @@ const EditEnquiryOrder:React.FC<{}> = (props: any) => {
id=
{
id
}
id=
{
id
}
isEdit
isEdit
title=
{
props
.
route
.
name
}
title=
{
props
.
route
.
name
}
fetchRequest=
{
PublicApi
.
postTransactionInquiryListUpdate
}
fetchRequest=
{
postTransactionInquiryListUpdate
}
/>
/>
)
)
}
}
...
...
src/pages/transaction/dealAbility/productInquiry/waitAddInquiry/index.tsx
View file @
19f927c1
...
@@ -4,11 +4,11 @@ import { history } from 'umi';
...
@@ -4,11 +4,11 @@ import { history } from 'umi';
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'
import
{
PublicApi
}
from
'@/services/api'
;
import
{
Row
,
Col
,
Space
,
Button
,
Tag
,
Badge
,
Popconfirm
,
Typography
}
from
'antd'
;
import
{
Row
,
Col
,
Space
,
Button
,
Tag
,
Badge
,
Popconfirm
,
Typography
}
from
'antd'
;
import
{
DeleteOutlined
,
PlusOutlined
}
from
'@ant-design/icons'
;
import
{
DeleteOutlined
,
PlusOutlined
}
from
'@ant-design/icons'
;
import
{
WAITADDINQURYSCHEMA
}
from
'./schema'
;
import
{
WAITADDINQURYSCHEMA
}
from
'./schema'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
getTransactionInquiryList
,
postTransactionInquiryListDelete
,
postTransactionInquiryListDeleteAll
,
postTransactionInquiryListSubmit
,
postTransactionInquiryListSubmitAll
}
from
'@/services/TransactionV2Api'
;
const
{
Text
}
=
Typography
;
const
{
Text
}
=
Typography
;
const
WaitAddInquiry
=
()
=>
{
const
WaitAddInquiry
=
()
=>
{
...
@@ -24,9 +24,9 @@ const WaitAddInquiry = () => {
...
@@ -24,9 +24,9 @@ const WaitAddInquiry = () => {
setLoading
(
true
)
setLoading
(
true
)
let
res
=
null
;
let
res
=
null
;
if
(
id
)
{
if
(
id
)
{
res
=
await
PublicApi
.
postTransactionInquiryListSubmit
({
id
:
Number
(
id
)
})
res
=
await
postTransactionInquiryListSubmit
({
id
:
Number
(
id
)
})
}
else
{
}
else
{
res
=
await
PublicApi
.
postTransactionInquiryListSubmitAll
({
ids
:
rowkeys
});
res
=
await
postTransactionInquiryListSubmitAll
({
ids
:
rowkeys
});
}
}
if
(
res
.
code
!==
1000
)
{
if
(
res
.
code
!==
1000
)
{
setLoading
(
false
)
setLoading
(
false
)
...
@@ -44,9 +44,9 @@ const WaitAddInquiry = () => {
...
@@ -44,9 +44,9 @@ const WaitAddInquiry = () => {
const
fetchDeleteBatch
=
async
(
id
?:
number
)
=>
{
const
fetchDeleteBatch
=
async
(
id
?:
number
)
=>
{
let
res
=
null
;
let
res
=
null
;
if
(
id
)
{
if
(
id
)
{
res
=
await
PublicApi
.
postTransactionInquiryListDelete
({
id
});
res
=
await
postTransactionInquiryListDelete
({
id
});
}
else
{
}
else
{
res
=
await
PublicApi
.
postTransactionInquiryListDeleteAll
({
ids
:
rowkeys
});
res
=
await
postTransactionInquiryListDeleteAll
({
ids
:
rowkeys
});
}
}
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
reload
.
current
.
reload
();
reload
.
current
.
reload
();
...
@@ -154,7 +154,7 @@ const WaitAddInquiry = () => {
...
@@ -154,7 +154,7 @@ const WaitAddInquiry = () => {
schema=
{
WAITADDINQURYSCHEMA
}
schema=
{
WAITADDINQURYSCHEMA
}
columns=
{
columns
}
columns=
{
columns
}
effects=
"inquiryListNo"
effects=
"inquiryListNo"
fetch=
{
PublicApi
.
getTransactionInquiryList
}
fetch=
{
getTransactionInquiryList
}
fetchRowkeys=
{
(
e
)
=>
setRowKeys
(
e
)
}
fetchRowkeys=
{
(
e
)
=>
setRowKeys
(
e
)
}
controllerBtns=
{
controllerBtns=
{
<
Row
>
<
Row
>
...
...
src/pages/transaction/dealAbility/productInquiry/waitAddInquiry/rfq.tsx
View file @
19f927c1
import
React
from
'react'
;
import
React
from
'react'
;
import
AddForm
from
'./addForm'
;
import
AddForm
from
'./addForm'
;
import
{
history
}
from
'umi'
;
import
{
history
}
from
'umi'
;
import
{
PublicApi
}
from
'@/services/a
pi'
;
import
{
postTransactionInquiryListAdd
}
from
'@/services/TransactionV2A
pi'
;
const
RfqEnquiryOrder
=
(
props
:
any
)
=>
{
const
RfqEnquiryOrder
=
(
props
:
any
)
=>
{
const
{
id
,
spam_id
,
shopId
}
=
history
.
location
.
query
;
const
{
id
,
spam_id
,
shopId
}
=
history
.
location
.
query
;
return
(
return
(
...
@@ -10,7 +10,7 @@ const RfqEnquiryOrder = (props: any) => {
...
@@ -10,7 +10,7 @@ const RfqEnquiryOrder = (props: any) => {
isEdit
isEdit
shopId=
{
shopId
}
shopId=
{
shopId
}
title=
{
props
.
route
.
name
}
title=
{
props
.
route
.
name
}
fetchRequest=
{
PublicApi
.
postTransactionInquiryListAdd
}
fetchRequest=
{
postTransactionInquiryListAdd
}
spam=
{
spam_id
}
spam=
{
spam_id
}
/>
/>
)
)
...
...
src/pages/transaction/dealAbility/productInquiry/waitAddInquiry/two.tsx
View file @
19f927c1
import
React
from
'react'
;
import
React
from
'react'
;
import
AddForm
from
'./addForm'
;
import
AddForm
from
'./addForm'
;
import
{
history
}
from
'umi'
;
import
{
history
}
from
'umi'
;
import
{
PublicApi
}
from
'@/services/a
pi'
;
import
{
postTransactionInquiryListAdd
}
from
'@/services/TransactionV2A
pi'
;
const
RfqEnquiryOrder
=
(
props
:
any
)
=>
{
const
RfqEnquiryOrder
=
(
props
:
any
)
=>
{
const
{
id
}
=
history
.
location
.
query
;
const
{
id
}
=
history
.
location
.
query
;
...
@@ -11,7 +11,7 @@ const RfqEnquiryOrder = (props: any) => {
...
@@ -11,7 +11,7 @@ const RfqEnquiryOrder = (props: any) => {
id=
{
id
}
id=
{
id
}
isEdit
isEdit
title=
{
props
.
route
.
name
}
title=
{
props
.
route
.
name
}
fetchRequest=
{
PublicApi
.
postTransactionInquiryListAdd
}
fetchRequest=
{
postTransactionInquiryListAdd
}
two
two
/>
/>
)
)
...
...
src/pages/transaction/dealAbility/productInquiry/waitAuditInquiryOne/index.tsx
View file @
19f927c1
...
@@ -4,10 +4,10 @@ import { history } from 'umi';
...
@@ -4,10 +4,10 @@ import { history } from 'umi';
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'
import
{
PublicApi
}
from
'@/services/api'
;
import
{
Row
,
Col
,
Button
,
Tag
,
Badge
}
from
'antd'
;
import
{
Row
,
Col
,
Button
,
Tag
,
Badge
}
from
'antd'
;
import
{
WAITAUDITINQUIRYONESCHEMA
}
from
'./schema'
;
import
{
WAITAUDITINQUIRYONESCHEMA
}
from
'./schema'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
getTransactionInquiryToAuditList
,
postTransactionInquiryDocumentsReviewAll
}
from
'@/services/TransactionV2Api'
;
const
WaitAuditInquiryOne
=
()
=>
{
const
WaitAuditInquiryOne
=
()
=>
{
const
ref
=
useRef
<
any
>
({});
const
ref
=
useRef
<
any
>
({});
...
@@ -17,7 +17,7 @@ const WaitAuditInquiryOne = () => {
...
@@ -17,7 +17,7 @@ const WaitAuditInquiryOne = () => {
const
[
rowkeys
,
setRowKeys
]
=
useState
<
Array
<
number
>>
([]);
const
[
rowkeys
,
setRowKeys
]
=
useState
<
Array
<
number
>>
([]);
/** 批量审核 */
/** 批量审核 */
const
fetchSubmitBatch
=
async
()
=>
{
const
fetchSubmitBatch
=
async
()
=>
{
const
res
=
await
PublicApi
.
postTransactionInquiryDocumentsReviewAll
({
ids
:
rowkeys
});
const
res
=
await
postTransactionInquiryDocumentsReviewAll
({
ids
:
rowkeys
});
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
ref
.
current
.
reload
();
ref
.
current
.
reload
();
setRowKeys
([])
setRowKeys
([])
...
@@ -85,7 +85,7 @@ const WaitAuditInquiryOne = () => {
...
@@ -85,7 +85,7 @@ const WaitAuditInquiryOne = () => {
schema=
{
WAITAUDITINQUIRYONESCHEMA
}
schema=
{
WAITAUDITINQUIRYONESCHEMA
}
columns=
{
columns
}
columns=
{
columns
}
effects=
"inquiryListNo"
effects=
"inquiryListNo"
fetch=
{
PublicApi
.
getTransactionInquiryToAuditList
}
fetch=
{
getTransactionInquiryToAuditList
}
fetchRowkeys=
{
(
e
)
=>
setRowKeys
(
e
)
}
fetchRowkeys=
{
(
e
)
=>
setRowKeys
(
e
)
}
controllerBtns=
{
controllerBtns=
{
<
Row
>
<
Row
>
...
...
src/pages/transaction/dealAbility/productInquiry/waitAuditInquiryTwo/index.tsx
View file @
19f927c1
...
@@ -4,10 +4,10 @@ import { history } from 'umi';
...
@@ -4,10 +4,10 @@ import { history } from 'umi';
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'
import
{
PublicApi
}
from
'@/services/api'
;
import
{
Row
,
Col
,
Button
,
Tag
,
Badge
}
from
'antd'
;
import
{
Row
,
Col
,
Button
,
Tag
,
Badge
}
from
'antd'
;
import
{
WAITAUDITINQUIRYTWOSCHEMA
}
from
'./schema'
;
import
{
WAITAUDITINQUIRYTWOSCHEMA
}
from
'./schema'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
getTransactionInquiryToAuditListTwo
,
postTransactionInquiryDocumentsReviewAllTwo
}
from
'@/services/TransactionV2Api'
;
const
WaitAuditInquiryTwo
=
()
=>
{
const
WaitAuditInquiryTwo
=
()
=>
{
const
ref
=
useRef
<
any
>
({});
const
ref
=
useRef
<
any
>
({});
...
@@ -17,7 +17,7 @@ const WaitAuditInquiryTwo = () => {
...
@@ -17,7 +17,7 @@ const WaitAuditInquiryTwo = () => {
const
[
rowkeys
,
setRowKeys
]
=
useState
<
Array
<
number
>>
([]);
const
[
rowkeys
,
setRowKeys
]
=
useState
<
Array
<
number
>>
([]);
/** 批量审核 */
/** 批量审核 */
const
fetchSubmitBatch
=
async
()
=>
{
const
fetchSubmitBatch
=
async
()
=>
{
const
res
=
await
PublicApi
.
postTransactionInquiryDocumentsReviewAllTwo
({
ids
:
rowkeys
});
const
res
=
await
postTransactionInquiryDocumentsReviewAllTwo
({
ids
:
rowkeys
});
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
ref
.
current
.
reload
();
ref
.
current
.
reload
();
setRowKeys
([])
setRowKeys
([])
...
@@ -85,7 +85,7 @@ const WaitAuditInquiryTwo = () => {
...
@@ -85,7 +85,7 @@ const WaitAuditInquiryTwo = () => {
schema=
{
WAITAUDITINQUIRYTWOSCHEMA
}
schema=
{
WAITAUDITINQUIRYTWOSCHEMA
}
columns=
{
columns
}
columns=
{
columns
}
effects=
"inquiryListNo"
effects=
"inquiryListNo"
fetch=
{
PublicApi
.
getTransactionInquiryToAuditListTwo
}
fetch=
{
getTransactionInquiryToAuditListTwo
}
fetchRowkeys=
{
(
e
)
=>
setRowKeys
(
e
)
}
fetchRowkeys=
{
(
e
)
=>
setRowKeys
(
e
)
}
controllerBtns=
{
controllerBtns=
{
<
Row
>
<
Row
>
...
...
src/pages/transaction/dealAbility/productInquiry/waitSubmitInquiry/index.tsx
View file @
19f927c1
...
@@ -3,10 +3,10 @@ import Table from '@/pages/transaction/components/tableLayout';
...
@@ -3,10 +3,10 @@ import Table from '@/pages/transaction/components/tableLayout';
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'
import
{
PublicApi
}
from
'@/services/api'
;
import
{
Row
,
Col
,
Button
,
Popconfirm
,
Tag
,
Badge
}
from
'antd'
;
import
{
Row
,
Col
,
Button
,
Popconfirm
,
Tag
,
Badge
}
from
'antd'
;
import
{
WAITSUBMITINQUIRYSCHEMA
}
from
'./schema'
;
import
{
WAITSUBMITINQUIRYSCHEMA
}
from
'./schema'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
getTransactionSubmitInquirySheetList
,
postTransactionInquirySubmit
,
postTransactionInquirySubmitAll
}
from
'@/services/TransactionV2Api'
;
const
WaitSubmitInquiry
=
()
=>
{
const
WaitSubmitInquiry
=
()
=>
{
const
reload
=
useRef
<
any
>
({});
const
reload
=
useRef
<
any
>
({});
...
@@ -18,9 +18,9 @@ const WaitSubmitInquiry = () => {
...
@@ -18,9 +18,9 @@ const WaitSubmitInquiry = () => {
const
fetchSubmitBatch
=
async
(
id
?:
number
)
=>
{
const
fetchSubmitBatch
=
async
(
id
?:
number
)
=>
{
let
res
=
null
;
let
res
=
null
;
if
(
id
)
{
if
(
id
)
{
res
=
await
PublicApi
.
postTransactionInquirySubmit
({
id
:
Number
(
id
)
})
res
=
await
postTransactionInquirySubmit
({
id
:
Number
(
id
)
})
}
else
{
}
else
{
res
=
await
PublicApi
.
postTransactionInquirySubmitAll
({
ids
:
rowkeys
});
res
=
await
postTransactionInquirySubmitAll
({
ids
:
rowkeys
});
}
}
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
reload
.
current
.
reload
();
reload
.
current
.
reload
();
...
@@ -92,7 +92,7 @@ const WaitSubmitInquiry = () => {
...
@@ -92,7 +92,7 @@ const WaitSubmitInquiry = () => {
schema=
{
WAITSUBMITINQUIRYSCHEMA
}
schema=
{
WAITSUBMITINQUIRYSCHEMA
}
columns=
{
columns
}
columns=
{
columns
}
effects=
"inquiryListNo"
effects=
"inquiryListNo"
fetch=
{
PublicApi
.
getTransactionSubmitInquirySheetList
}
fetch=
{
getTransactionSubmitInquirySheetList
}
fetchRowkeys=
{
(
e
)
=>
setRowKeys
(
e
)
}
fetchRowkeys=
{
(
e
)
=>
setRowKeys
(
e
)
}
controllerBtns=
{
controllerBtns=
{
<
Row
>
<
Row
>
...
...
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