Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-platform
Commits
91aeb51e
Commit
91aeb51e
authored
Nov 18, 2020
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改商品询价, 确认询价报价,支付配置需求单审核等细节问题
parent
26c150fa
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
242 additions
and
272 deletions
+242
-272
index.ts
src/components/ModalTable/schema/index.ts
+1
-1
templateForm.tsx
src/pages/logistics/list/components/templateForm.tsx
+2
-1
index.tsx
src/pages/payandSettle/paySetting/index.tsx
+1
-1
tableStatusList.tsx
src/pages/transaction/common/tableStatusList.tsx
+23
-0
index.tsx
...s/transaction/confirmInquiryQuote/pendingSubmit/index.tsx
+1
-1
detail.tsx
src/pages/transaction/enquiryOffer/toAddSubmit/detail.tsx
+1
-1
index.tsx
src/pages/transaction/enquiryOffer/toAddSubmit/index.tsx
+17
-7
detail.tsx
src/pages/transaction/enquirySubmit/components/detail.tsx
+1
-1
index.tsx
src/pages/transaction/enquirySubmit/schema/index.tsx
+97
-103
index.tsx
src/pages/transaction/enquirySubmit/toAddSubmit/index.tsx
+17
-7
addForm.tsx
src/pages/transaction/goodsOffer/addEnquiryOrder/addForm.tsx
+38
-38
basicInfo.tsx
...ction/goodsOffer/addEnquiryOrder/components/basicInfo.tsx
+7
-2
enquiryGoods.tsx
...on/goodsOffer/addEnquiryOrder/components/enquiryGoods.tsx
+10
-92
flowRecord.tsx
...tion/goodsOffer/addEnquiryOrder/components/flowRecord.tsx
+4
-4
tradingConditions.tsx
...odsOffer/addEnquiryOrder/components/tradingConditions.tsx
+1
-1
index.tsx
src/pages/transaction/goodsOffer/pendingSubmit/index.tsx
+9
-4
addForm.tsx
...ages/transaction/inquiryQuote/addInquiryOrder/addForm.tsx
+7
-3
index.tsx
src/pages/transaction/inquiryQuote/addInquiryOrder/index.tsx
+1
-1
reviewList.tsx
src/pages/transaction/inquiryQuote/components/reviewList.tsx
+4
-4
No files found.
src/components/ModalTable/schema/index.ts
View file @
91aeb51e
...
@@ -28,7 +28,7 @@ export const productModalByMemberSchema: ISchema = {
...
@@ -28,7 +28,7 @@ export const productModalByMemberSchema: ISchema = {
},
},
},
},
properties
:
{
properties
:
{
categoryId
:
{
c
ustomerC
ategoryId
:
{
type
:
'string'
,
type
:
'string'
,
"x-component"
:
'SearchSelect'
,
"x-component"
:
'SearchSelect'
,
"x-component-props"
:
{
"x-component-props"
:
{
...
...
src/pages/logistics/list/components/templateForm.tsx
View file @
91aeb51e
...
@@ -21,7 +21,7 @@ import {
...
@@ -21,7 +21,7 @@ import {
FormEffectHooks
,
FormEffectHooks
,
useFormEffects
useFormEffects
}
from
'@formily/antd'
}
from
'@formily/antd'
import
{
history
}
from
'umi'
import
{
history
,
Prompt
}
from
'umi'
import
{
Row
,
Col
,
Card
,
Button
,
Popconfirm
,
Select
as
ISelect
}
from
'antd'
;
import
{
Row
,
Col
,
Card
,
Button
,
Popconfirm
,
Select
as
ISelect
}
from
'antd'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
import
{
import
{
...
@@ -443,6 +443,7 @@ const diaLogForm: React.FC<ListProps> = (props) => {
...
@@ -443,6 +443,7 @@ const diaLogForm: React.FC<ListProps> = (props) => {
</
Col
>
</
Col
>
</
Row
>
</
Row
>
</
Card
>
</
Card
>
<
Prompt
message=
"您还有未保存的内容,是否确定要离开"
/>
</
PageHeaderWrapper
>
</
PageHeaderWrapper
>
)
)
}
}
...
...
src/pages/payandSettle/paySetting/index.tsx
View file @
91aeb51e
...
@@ -252,7 +252,7 @@ const PaySetting: React.FC<{}> = () => {
...
@@ -252,7 +252,7 @@ const PaySetting: React.FC<{}> = () => {
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
history
.
push
(
'/memberCenter/
home
'
)
history
.
push
(
'/memberCenter/
payandSettle/paySetting/payParamsSetting
'
)
},
1500
)
},
1500
)
}
}
})
})
...
...
src/pages/transaction/common/tableStatusList.tsx
View file @
91aeb51e
import
React
,
{
Component
,
ReactNode
}
from
'react'
;
import
React
,
{
Component
,
ReactNode
}
from
'react'
;
import
{
Badge
,
Tag
}
from
'antd'
import
{
Badge
,
Tag
}
from
'antd'
import
statuStyle
from
'./colorTag'
import
statuStyle
from
'./colorTag'
import
{
PublicApi
}
from
'@/services/api'
;
/****** *********************** 需求单 ************************** */
/****** *********************** 需求单 ************************** */
/**
/**
* @description: 需求提交一级
* @description: 需求提交一级
...
@@ -259,3 +261,24 @@ export const demandQuoteInteriorState = (text:any) => {
...
@@ -259,3 +261,24 @@ export const demandQuoteInteriorState = (text:any) => {
}
}
/********************************需求发布******************************* */
/********************************需求发布******************************* */
// 询价查询, 询价报价, 确认询价报价单 通用外部状态
// export const generalExternalState = (status:any) => {
// let component: ReactNode = null;
// PublicApi.getOrderQuotationExternalStateEnum().then(res => {
// if(res.code === 1000) {
// }
// })
// }
// 询价查询, 询价报价, 确认询价报价单 通用内部状态
// export const generalInteriorState = (status:any) => {
// let component: ReactNode = null;
// PublicApi.getOrderProductInquiryInteriorStateEnum().then(res => {
// if(res.code === 1000) {
// }
// })
// }
src/pages/transaction/confirmInquiryQuote/pendingSubmit/index.tsx
View file @
91aeb51e
...
@@ -121,7 +121,7 @@ const PendingSubmit: React.FC<{}> = () => {
...
@@ -121,7 +121,7 @@ const PendingSubmit: React.FC<{}> = () => {
/**批量审核 */
/**批量审核 */
const
handleSubmitAll
=
(
ids
:
number
[])
=>
{
const
handleSubmitAll
=
(
ids
:
number
[])
=>
{
if
(
selectRow
.
length
>
0
)
{
if
(
selectRow
.
length
>
0
)
{
PublicApi
.
postOrder
ProductQuotationtToSubmit
All
({
ids
:
ids
}).
then
(
res
=>
{
PublicApi
.
postOrder
NotarizeEnquiryQuotedPriceAffirm
All
({
ids
:
ids
}).
then
(
res
=>
{
ref
.
current
.
reload
()
ref
.
current
.
reload
()
})
})
}
else
{
}
else
{
...
...
src/pages/transaction/enquiryOffer/toAddSubmit/detail.tsx
View file @
91aeb51e
...
@@ -981,7 +981,7 @@ const Detail: React.FC<{}> = () => {
...
@@ -981,7 +981,7 @@ const Detail: React.FC<{}> = () => {
backIcon=
{
<
ReutrnEle
description=
"返回"
/>
}
backIcon=
{
<
ReutrnEle
description=
"返回"
/>
}
// title={headerTitle}
// title={headerTitle}
extra=
{
extra=
{
<
Button
type=
"primary"
onClick=
{
handleSubmitTabForm
}
>
保存
</
Button
>
<
Button
type=
"primary"
onClick=
{
handleSubmitTabForm
}
>
保存
</
Button
>
}
}
>
>
<
Card
>
<
Card
>
...
...
src/pages/transaction/enquiryOffer/toAddSubmit/index.tsx
View file @
91aeb51e
...
@@ -15,7 +15,8 @@ import {
...
@@ -15,7 +15,8 @@ import {
Col
,
Col
,
Dropdown
,
Dropdown
,
Menu
,
Menu
,
Popconfirm
Popconfirm
,
message
}
from
'antd'
;
}
from
'antd'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
import
{
...
@@ -163,16 +164,25 @@ const List:React.FC<{}> = () => {
...
@@ -163,16 +164,25 @@ const List:React.FC<{}> = () => {
* @return {type}
* @return {type}
*/
*/
const
handleDelete
=
(
arr
:
number
[]
|
string
[])
=>
{
const
handleDelete
=
(
arr
:
number
[]
|
string
[])
=>
{
PublicApi
.
postOrderQuotationDelete
({
ids
:
arr
}).
then
(
res
=>
{
if
(
arr
.
length
>
0
)
{
ref
.
current
.
reload
()
PublicApi
.
postOrderQuotationDelete
({
ids
:
arr
}).
then
(
res
=>
{
})
ref
.
current
.
reload
()
})
}
else
{
message
.
error
(
'请选择要操作的需求报价单!'
)
}
}
}
//批量提交
//批量提交
const
handleSubmitAll
=
(
ids
:
number
[])
=>
{
const
handleSubmitAll
=
(
ids
:
number
[])
=>
{
PublicApi
.
postOrderQuotationSubmitAuditAll
({
ids
:
ids
}).
then
(
res
=>
{
if
(
ids
.
length
>
0
)
{
ref
.
current
.
reload
()
PublicApi
.
postOrderQuotationSubmitAuditAll
({
ids
:
ids
}).
then
(
res
=>
{
})
ref
.
current
.
reload
()
})
}
else
{
message
.
error
(
'请选择要操作的需求报价单!'
)
}
}
}
//提交审核
//提交审核
...
...
src/pages/transaction/enquirySubmit/components/detail.tsx
View file @
91aeb51e
...
@@ -483,7 +483,7 @@ const detailInfo: React.FC<parmas> = (props) => {
...
@@ -483,7 +483,7 @@ const detailInfo: React.FC<parmas> = (props) => {
<
div
className=
{
style
[
'headerTop'
]
}
>
<
div
className=
{
style
[
'headerTop'
]
}
>
<
div
className=
{
style
[
'headerTop-prefix'
]
}
>
单
</
div
>
<
div
className=
{
style
[
'headerTop-prefix'
]
}
>
单
</
div
>
<
div
className=
{
style
[
'headerTop-name'
]
}
>
<
div
className=
{
style
[
'headerTop-name'
]
}
>
需求单号:
{
dataInfo
.
logisticsOrder
No
}
需求单号:
{
dataInfo
.
requisitionForm
No
}
</
div
>
</
div
>
<
div
className=
{
style
[
`levelIcon${'1'}`
]
}
></
div
>
<
div
className=
{
style
[
`levelIcon${'1'}`
]
}
></
div
>
</
div
>
</
div
>
...
...
src/pages/transaction/enquirySubmit/schema/index.tsx
View file @
91aeb51e
import
{
ISchema
}
from
'@formily/antd'
import
{
ISchema
}
from
'@formily/antd'
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
import
{
TimeList
}
from
'../../common/statusList'
import
{
TimeList
}
from
'../../common/statusList'
import
TranactionRoute
from
'config/routes/tranactionRoute'
import
TranactionRoute
from
'config/routes/tranactionRoute'
import
{
PublicApi
}
from
'@/services/api'
/**
/**
* @description: 公用
* @description: 公用
...
@@ -9,98 +10,91 @@ import TranactionRoute from 'config/routes/tranactionRoute'
...
@@ -9,98 +10,91 @@ import TranactionRoute from 'config/routes/tranactionRoute'
* @return {type}
* @return {type}
*/
*/
export
const
enquierySchema
:
ISchema
=
{
export
const
enquierySchema
:
ISchema
=
{
type
:
'object'
,
type
:
'object'
,
properties
:{
properties
:
{
megalayout
:{
megalayout
:
{
type
:
'object'
,
type
:
'object'
,
"x-component"
:
'mega-layout'
,
"x-component"
:
'mega-layout'
,
"x-component-props"
:{
"x-component-props"
:
{
grid
:
true
grid
:
true
},
},
properties
:{
properties
:
{
ctl
:{
ctl
:
{
type
:
'object'
,
type
:
'object'
,
"x-component"
:
"Children"
,
"x-component"
:
"Children"
,
"x-component-props"
:{
"x-component-props"
:
{
children
:
"{{controllerBtns}}"
children
:
"{{controllerBtns}}"
}
}
},
},
requisitionFormNo
:{
requisitionFormNo
:
{
type
:
'string'
,
type
:
'string'
,
"x-component"
:
"Search"
,
"x-component"
:
"Search"
,
"x-mega-props"
:{
"x-mega-props"
:
{
},
},
"x-component-props"
:{
"x-component-props"
:
{
placeholder
:
'搜索'
placeholder
:
'搜索'
}
}
}
}
}
}
},
},
[
FORM_FILTER_PATH
]:{
[
FORM_FILTER_PATH
]:
{
type
:
'object'
,
type
:
'object'
,
"x-component"
:
"flex-layout"
,
"x-component"
:
"flex-layout"
,
"x-component-props"
:{
"x-component-props"
:
{
rowStyle
:{
rowStyle
:
{
flexWrap
:
'nowrap'
flexWrap
:
'nowrap'
},
},
colStyle
:{
colStyle
:
{
marginLeft
:
20
marginLeft
:
20
}
}
},
},
properties
:{
properties
:
{
PRO_LAYOUT
:{
PRO_LAYOUT
:
{
type
:
'object'
,
type
:
'object'
,
"x-component"
:
'mega-layout'
,
"x-component"
:
'mega-layout'
,
"x-mega-props"
:{
"x-mega-props"
:
{
span
:
5
span
:
5
},
},
"x-component-props"
:{
"x-component-props"
:
{
inline
:
true
inline
:
true
},
},
properties
:{
properties
:
{
details
:{
details
:
{
type
:
'string'
,
type
:
'string'
,
"x-component-props"
:{
"x-component-props"
:
{
placeholder
:
'需求摘要'
placeholder
:
'需求摘要'
}
}
},
},
category
:{
category
:
{
type
:
'string'
,
type
:
'string'
,
'x-component'
:
'CustomInputSearch'
,
"x-component"
:
'SearchSelect'
,
'x-component-props'
:
{
"x-component-props"
:
{
placeholder
:
'商品品类'
,
placeholder
:
'请选择品类'
,
showSearch
:
true
,
className
:
'fixed-ant-selected-down'
,
// 该类强制将显示的下拉框出现在select下, 只有这里出现问题, ??
showArrow
:
true
,
fetchSearch
:
PublicApi
.
getProductSelectGetSelectCustomerCategory
,
defaultActiveFirstOption
:
false
,
style
:
{
filterOption
:
false
,
width
:
160
notFoundContent
:
null
,
}
style
:
{
width
:
'174px'
,
lineHeight
:
'32px'
},
searchValue
:
null
,
dataoption
:
[]
}
}
// "x-component-props":{
// placeholder:'请选择品类'
// },
// enum:[]
},
},
voucherTime
:{
voucherTime
:
{
type
:
'string'
,
type
:
'string'
,
default
:
0
,
default
:
0
,
"x-component-props"
:{
"x-component-props"
:
{
placeholder
:
'请选择单据时间'
placeholder
:
'请选择单据时间'
},
},
enum
:
TimeList
enum
:
TimeList
},
},
}
}
},
},
sumbit
:{
sumbit
:
{
"x-component"
:
'Submit'
,
"x-component"
:
'Submit'
,
"x-mega-props"
:{
"x-mega-props"
:
{
span
:
1
span
:
1
},
},
"x-component-props"
:{
"x-component-props"
:
{
children
:
'查询'
children
:
'查询'
}
}
}
}
}
}
...
@@ -114,50 +108,50 @@ export const enquierySchema: ISchema = {
...
@@ -114,50 +108,50 @@ export const enquierySchema: ISchema = {
* @return {type}
* @return {type}
*/
*/
export
const
enquierySearchSchema
:
ISchema
=
{
export
const
enquierySearchSchema
:
ISchema
=
{
type
:
'object'
,
type
:
'object'
,
properties
:{
properties
:
{
megalayout
:{
megalayout
:
{
type
:
'object'
,
type
:
'object'
,
"x-component"
:
'mega-layout'
,
"x-component"
:
'mega-layout'
,
properties
:{
properties
:
{
requisitionFormNo
:{
requisitionFormNo
:
{
type
:
'string'
,
type
:
'string'
,
"x-component"
:
"Search"
,
"x-component"
:
"Search"
,
"x-mega-props"
:{
"x-mega-props"
:
{
},
},
"x-component-props"
:{
"x-component-props"
:
{
placeholder
:
'搜索'
,
placeholder
:
'搜索'
,
align
:
'flex-left'
,
align
:
'flex-left'
,
}
}
}
}
}
}
},
},
[
FORM_FILTER_PATH
]:{
[
FORM_FILTER_PATH
]:
{
type
:
'object'
,
type
:
'object'
,
"x-component"
:
"flex-layout"
,
"x-component"
:
"flex-layout"
,
"x-component-props"
:{
"x-component-props"
:
{
rowStyle
:{
rowStyle
:
{
justifyContent
:
'flex-start'
,
justifyContent
:
'flex-start'
,
flexWrap
:
'nowrap'
flexWrap
:
'nowrap'
},
},
colStyle
:{
//改变间隔
colStyle
:
{
//改变间隔
marginRight
:
20
marginRight
:
20
}
}
},
},
properties
:{
properties
:
{
PRO_LAYOUT
:{
PRO_LAYOUT
:
{
type
:
'object'
,
type
:
'object'
,
"x-component"
:
'mega-layout'
,
"x-component"
:
'mega-layout'
,
"x-mega-props"
:{
"x-mega-props"
:
{
span
:
5
span
:
5
},
},
"x-component-props"
:{
"x-component-props"
:
{
inline
:
true
inline
:
true
},
},
properties
:{
properties
:
{
category
:{
category
:
{
type
:
'string'
,
type
:
'string'
,
'x-component'
:
'CustomInputSearch'
,
'x-component'
:
'CustomInputSearch'
,
'x-component-props'
:
{
'x-component-props'
:
{
placeholder
:
'商品品类'
,
placeholder
:
'商品品类'
,
...
@@ -175,23 +169,23 @@ export const enquierySearchSchema: ISchema = {
...
@@ -175,23 +169,23 @@ export const enquierySearchSchema: ISchema = {
// },
// },
// enum:[]
// enum:[]
},
},
voucherTime
:{
voucherTime
:
{
type
:
'string'
,
type
:
'string'
,
// default: 0,
// default: 0,
"x-component-props"
:{
"x-component-props"
:
{
placeholder
:
'请选择单据时间'
placeholder
:
'请选择单据时间'
},
},
enum
:
TimeList
enum
:
TimeList
},
},
}
}
},
},
sumbit
:{
sumbit
:
{
"x-component"
:
'Submit'
,
"x-component"
:
'Submit'
,
"x-mega-props"
:{
"x-mega-props"
:
{
span
:
1
span
:
1
},
},
"x-component-props"
:{
"x-component-props"
:
{
children
:
'查询'
children
:
'查询'
}
}
}
}
}
}
...
...
src/pages/transaction/enquirySubmit/toAddSubmit/index.tsx
View file @
91aeb51e
...
@@ -15,7 +15,8 @@ import {
...
@@ -15,7 +15,8 @@ import {
Col
,
Col
,
Dropdown
,
Dropdown
,
Menu
,
Menu
,
Popconfirm
Popconfirm
,
message
}
from
'antd'
;
}
from
'antd'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
import
{
...
@@ -167,16 +168,25 @@ const List:React.FC<{}> = () => {
...
@@ -167,16 +168,25 @@ const List:React.FC<{}> = () => {
* @return {type}
* @return {type}
*/
*/
const
handleDelete
=
(
arr
:
number
[])
=>
{
const
handleDelete
=
(
arr
:
number
[])
=>
{
PublicApi
.
postOrderRequisitionFormDeleteAll
({
ids
:
arr
}).
then
(
res
=>
{
if
(
arr
.
length
>
0
)
{
ref
.
current
.
reload
()
PublicApi
.
postOrderRequisitionFormDeleteAll
({
ids
:
arr
}).
then
(
res
=>
{
})
ref
.
current
.
reload
()
})
}
else
{
message
.
error
(
'请选择要操作的需求单'
);
}
}
}
//批量提交
//批量提交
const
handleSubmitAll
=
(
ids
:
number
[])
=>
{
const
handleSubmitAll
=
(
ids
:
number
[])
=>
{
PublicApi
.
postOrderNewRequisitionFormAuditAll
({
ids
:
ids
}).
then
(
res
=>
{
if
(
ids
.
length
>
0
)
{
ref
.
current
.
reload
()
PublicApi
.
postOrderNewRequisitionFormAuditAll
({
ids
:
ids
}).
then
(
res
=>
{
})
ref
.
current
.
reload
()
})
}
else
{
message
.
error
(
'请选择要操作的需求单'
);
}
}
}
//提交审核
//提交审核
...
...
src/pages/transaction/goodsOffer/addEnquiryOrder/addForm.tsx
View file @
91aeb51e
...
@@ -17,7 +17,7 @@ export interface parmas {
...
@@ -17,7 +17,7 @@ export interface parmas {
spam_id
?:
any
spam_id
?:
any
}
}
const
AddQuotes
:
React
.
FC
<
parmas
>
=
(
props
)
=>
{
const
AddQuotes
:
React
.
FC
<
parmas
>
=
(
props
)
=>
{
const
{
id
,
type
,
spam_id
}
=
props
const
{
id
,
type
,
spam_id
}
=
props
const
[
count
,
setCount
]
=
useState
<
string
>
(
'1'
);
const
[
count
,
setCount
]
=
useState
<
string
>
(
'1'
);
const
[
member
,
setmember
]
=
useState
<
any
>
({});
//存放用户信息
const
[
member
,
setmember
]
=
useState
<
any
>
({});
//存放用户信息
const
[
goodsList
,
setgoodsList
]
=
useState
([]);
//存放商品
const
[
goodsList
,
setgoodsList
]
=
useState
([]);
//存放商品
...
@@ -26,6 +26,7 @@ const AddQuotes: React.FC<parmas> = (props) => {
...
@@ -26,6 +26,7 @@ const AddQuotes: React.FC<parmas> = (props) => {
const
[
editData
,
setEditData
]
=
useState
<
any
>
({});
const
[
editData
,
setEditData
]
=
useState
<
any
>
({});
const
[
address
,
setaddress
]
=
useState
<
any
>
({});
const
[
address
,
setaddress
]
=
useState
<
any
>
({});
const
[
enclosureUrls
,
setenclosureUrls
]
=
useState
<
any
>
([]);
const
[
enclosureUrls
,
setenclosureUrls
]
=
useState
<
any
>
([]);
const
[
loading
,
setloading
]
=
useState
<
boolean
>
(
false
);
const
handleGetDetails
=
async
()
=>
{
const
handleGetDetails
=
async
()
=>
{
await
PublicApi
.
getOrderInquiryListDetails
({
id
}).
then
(
res
=>
{
await
PublicApi
.
getOrderInquiryListDetails
({
id
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
...
@@ -42,7 +43,7 @@ const AddQuotes: React.FC<parmas> = (props) => {
...
@@ -42,7 +43,7 @@ const AddQuotes: React.FC<parmas> = (props) => {
if
(
id
&&
type
===
2
)
{
if
(
id
&&
type
===
2
)
{
handleGetDetails
();
handleGetDetails
();
setCount
(
'3'
);
setCount
(
'3'
);
}
else
if
(
id
&&
type
===
3
)
{
}
else
if
(
id
&&
type
===
3
)
{
const
data
=
JSON
.
parse
(
sessionStorage
.
getItem
(
spam_id
));
const
data
=
JSON
.
parse
(
sessionStorage
.
getItem
(
spam_id
));
const
inquiryGoods
:
any
[]
=
[];
const
inquiryGoods
:
any
[]
=
[];
inquiryGoods
.
push
({
inquiryGoods
.
push
({
...
@@ -72,42 +73,41 @@ const AddQuotes: React.FC<parmas> = (props) => {
...
@@ -72,42 +73,41 @@ const AddQuotes: React.FC<parmas> = (props) => {
},
[])
},
[])
//提交
//提交
const
onSumbit
=
async
(
params
:
any
)
=>
{
const
onSumbit
=
async
(
params
:
any
)
=>
{
setloading
(
true
);
const
basicInfo
=
await
basicInfoRef
.
current
.
validateFields
();
const
basicInfo
=
await
basicInfoRef
.
current
.
validateFields
();
if
(
count
===
'3'
)
{
const
tradingConditions
=
await
tradingConditionsRef
.
current
.
validateFields
();
const
tradingConditions
=
await
tradingConditionsRef
.
current
.
validateFields
();
const
basicInfoData
=
basicInfo
.
data
;
const
basicInfoData
=
basicInfo
.
data
;
const
tradingConditionsData
=
tradingConditions
.
data
;
const
tradingConditionsData
=
tradingConditions
.
data
;
console
.
log
(
basicInfo
,
tradingConditions
,
100086
)
if
(
basicInfo
.
state
&&
tradingConditions
.
state
)
{
if
(
basicInfo
.
state
&&
tradingConditions
.
state
)
{
const
parmas
=
{
const
parmas
=
{
inquiryListProductRequests
:
goodsList
,
// 商品列表 ,InquiryListProductRequest
inquiryListProductRequests
:
goodsList
,
// 商品列表 ,InquiryListProductRequest
...
basicInfoData
,
...
basicInfoData
,
...
tradingConditionsData
,
...
tradingConditionsData
,
...
address
,
...
address
,
enclosureUrls
,
enclosureUrls
,
memberName
:
member
.
name
,
memberName
:
member
.
name
,
memberId
:
member
.
memberId
memberId
:
member
.
memberId
}
}
if
(
id
&&
type
===
2
)
{
if
(
id
&&
type
===
2
)
{
parmas
.
id
=
editData
.
id
;
parmas
.
id
=
editData
.
id
;
parmas
.
interiorInquiryListLogResponses
=
editData
.
interiorInquiryListLogResponses
;
parmas
.
interiorInquiryListLogResponses
=
editData
.
interiorInquiryListLogResponses
;
parmas
.
externalInquiryListLogResponses
=
editData
.
externalInquiryListLogResponses
;
parmas
.
externalInquiryListLogResponses
=
editData
.
externalInquiryListLogResponses
;
await
PublicApi
.
postOrderInquiryListUpdate
(
parmas
).
then
(
res
=>
{
await
PublicApi
.
postOrderInquiryListUpdate
(
parmas
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
history
.
goBack
();
history
.
goBack
();
}
}
else
{
setloading
(
false
);
}
})
})
}
else
{
await
PublicApi
.
postOrderInquiryListAdd
(
parmas
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
history
.
goBack
();
}
})
}
}
else
{
}
else
{
message
.
error
(
'有必填字段没选择,请检查!'
);
await
PublicApi
.
postOrderInquiryListAdd
(
parmas
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
history
.
goBack
();
}
else
{
setloading
(
false
);
}
})
}
}
}
else
{
}
else
{
message
.
error
(
'有必填字段没选择,请检查!'
);
message
.
error
(
'有必填字段没选择,请检查!'
);
setloading
(
false
);
}
}
}
}
// 获取到会员信息
// 获取到会员信息
...
@@ -127,12 +127,12 @@ const AddQuotes: React.FC<parmas> = (props) => {
...
@@ -127,12 +127,12 @@ const AddQuotes: React.FC<parmas> = (props) => {
const
handleGetAddress
=
(
value
:
any
)
=>
{
const
handleGetAddress
=
(
value
:
any
)
=>
{
setaddress
({
setaddress
({
fullAddress
:
value
.
children
,
fullAddress
:
value
.
children
,
fullAddressId
:
value
.
value
fullAddressId
:
value
.
value
})
})
}
}
// 附件回调
// 附件回调
const
handleGetEnclosureUrls
=
(
data
:
any
)
=>
{
const
handleGetEnclosureUrls
=
(
data
:
any
)
=>
{
setenclosureUrls
([...
enclosureUrls
,...
data
]);
setenclosureUrls
([...
enclosureUrls
,
...
data
]);
}
}
return
(
return
(
...
@@ -140,7 +140,7 @@ const AddQuotes: React.FC<parmas> = (props) => {
...
@@ -140,7 +140,7 @@ const AddQuotes: React.FC<parmas> = (props) => {
onBack=
{
()
=>
history
.
goBack
()
}
onBack=
{
()
=>
history
.
goBack
()
}
backIcon=
{
<
ReutrnEle
description=
"返回"
/>
}
backIcon=
{
<
ReutrnEle
description=
"返回"
/>
}
extra=
{
extra=
{
<
Button
type=
"primary"
onClick=
{
onSumbit
}
>
保存
</
Button
>
<
Button
type=
"primary"
onClick=
{
onSumbit
}
loading=
{
loading
}
>
保存
</
Button
>
}
}
>
>
<
Card
>
<
Card
>
...
@@ -175,7 +175,7 @@ const AddQuotes: React.FC<parmas> = (props) => {
...
@@ -175,7 +175,7 @@ const AddQuotes: React.FC<parmas> = (props) => {
/>
/>
</
TabPane
>
</
TabPane
>
<
TabPane
tab=
"流转记录"
key=
"5"
forceRender
>
<
TabPane
tab=
"流转记录"
key=
"5"
forceRender
>
<
FlowRecord
<
FlowRecord
editData=
{
editData
}
editData=
{
editData
}
/>
/>
</
TabPane
>
</
TabPane
>
...
...
src/pages/transaction/goodsOffer/addEnquiryOrder/components/basicInfo.tsx
View file @
91aeb51e
...
@@ -8,6 +8,7 @@ import ModalTable from '@/components/ModalTable'
...
@@ -8,6 +8,7 @@ import ModalTable from '@/components/ModalTable'
import
{
PublicApi
}
from
'@/services/api'
import
{
PublicApi
}
from
'@/services/api'
import
{
history
}
from
'umi'
import
{
history
}
from
'umi'
import
{
quoteOrderInternalState
,
inquiryQuoteOuterState
}
from
'../../../common/tableStatusList'
;
import
{
quoteOrderInternalState
,
inquiryQuoteOuterState
}
from
'../../../common/tableStatusList'
;
import
moment
from
'moment'
;
const
layout
:
any
=
{
const
layout
:
any
=
{
colon
:
false
,
colon
:
false
,
...
@@ -24,6 +25,9 @@ interface queryProps {
...
@@ -24,6 +25,9 @@ interface queryProps {
}
}
const
BasicInfo
:
React
.
FC
<
queryProps
>
=
(
props
)
=>
{
const
BasicInfo
:
React
.
FC
<
queryProps
>
=
(
props
)
=>
{
const
format
=
(
text
)
=>
{
return
<>
{
moment
(
text
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
}
</>
}
const
[
basicform
]
=
Form
.
useForm
();
const
[
basicform
]
=
Form
.
useForm
();
const
{
getMemberList
,
currentRef
,
editData
,
type
}
=
props
;
const
{
getMemberList
,
currentRef
,
editData
,
type
}
=
props
;
// 会员添加弹窗控制
// 会员添加弹窗控制
...
@@ -112,7 +116,7 @@ const BasicInfo: React.FC<queryProps> = (props) => {
...
@@ -112,7 +116,7 @@ const BasicInfo: React.FC<queryProps> = (props) => {
}
}
})
})
}).
catch
(
errorInfo
=>
{
}).
catch
(
errorInfo
=>
{
console
.
log
(
errorInfo
)
resolve
({
state
:
false
}
)
})
})
})
})
}
}
...
@@ -159,7 +163,7 @@ const BasicInfo: React.FC<queryProps> = (props) => {
...
@@ -159,7 +163,7 @@ const BasicInfo: React.FC<queryProps> = (props) => {
<
span
>
{
(
Object
.
keys
(
editData
).
length
>
0
&&
editData
.
inquiryListNo
)
?
editData
.
inquiryListNo
:
'-'
}
</
span
>
<
span
>
{
(
Object
.
keys
(
editData
).
length
>
0
&&
editData
.
inquiryListNo
)
?
editData
.
inquiryListNo
:
'-'
}
</
span
>
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
label=
'单据时间'
name=
'time'
>
<
Form
.
Item
label=
'单据时间'
name=
'time'
>
<
span
>
{
(
Object
.
keys
(
editData
).
length
>
0
&&
editData
.
voucherTime
)
?
editData
.
voucherTime
:
'-'
}
</
span
>
<
span
>
{
(
Object
.
keys
(
editData
).
length
>
0
&&
editData
.
voucherTime
)
?
format
(
editData
.
voucherTime
)
:
'-'
}
</
span
>
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
label=
'外部状态'
name=
'external'
>
<
Form
.
Item
label=
'外部状态'
name=
'external'
>
<
span
>
{
(
Object
.
keys
(
editData
).
length
>
0
&&
editData
.
externalState
)
?
inquiryQuoteOuterState
(
editData
.
externalState
)
:
'-'
}
</
span
>
<
span
>
{
(
Object
.
keys
(
editData
).
length
>
0
&&
editData
.
externalState
)
?
inquiryQuoteOuterState
(
editData
.
externalState
)
:
'-'
}
</
span
>
...
@@ -174,6 +178,7 @@ const BasicInfo: React.FC<queryProps> = (props) => {
...
@@ -174,6 +178,7 @@ const BasicInfo: React.FC<queryProps> = (props) => {
confirm=
{
handleOkAddMember
}
confirm=
{
handleOkAddMember
}
cancel=
{
handleCancelAddMember
}
cancel=
{
handleCancelAddMember
}
visible=
{
visibleChannelMember
}
visible=
{
visibleChannelMember
}
forceRender=
{
visibleChannelMember
}
resetModal=
{
{
destroyOnClose
:
true
,
forceRender
:
true
}
}
resetModal=
{
{
destroyOnClose
:
true
,
forceRender
:
true
}
}
columns=
{
columnsSetMember
}
columns=
{
columnsSetMember
}
rowSelection=
{
memberRowSelection
}
rowSelection=
{
memberRowSelection
}
...
...
src/pages/transaction/goodsOffer/addEnquiryOrder/components/enquiryGoods.tsx
View file @
91aeb51e
...
@@ -35,7 +35,7 @@ const EnquiryGoods: React.FC<queryProps> = (props) => {
...
@@ -35,7 +35,7 @@ const EnquiryGoods: React.FC<queryProps> = (props) => {
const
[
memberRowSelection
,
memberRowCtl
]
=
useRowSelectionTable
({
customKey
:
'id'
});
const
[
memberRowSelection
,
memberRowCtl
]
=
useRowSelectionTable
({
customKey
:
'id'
});
const
[
customerCategory
,
setcustomerCategory
]
=
useState
<
any
>
([]);
const
[
customerCategory
,
setcustomerCategory
]
=
useState
<
any
>
([]);
const
[
brand
,
setbrand
]
=
useState
<
any
>
([]);
const
[
brand
,
setbrand
]
=
useState
<
any
>
([]);
const
[
form
]
=
Form
.
useForm
()
const
handleOkAddMember
=
()
=>
{
const
handleOkAddMember
=
()
=>
{
setVisibleChannelMember
(
false
);
setVisibleChannelMember
(
false
);
const
arr
:
any
[]
=
[];
const
arr
:
any
[]
=
[];
...
@@ -84,77 +84,6 @@ const EnquiryGoods: React.FC<queryProps> = (props) => {
...
@@ -84,77 +84,6 @@ const EnquiryGoods: React.FC<queryProps> = (props) => {
key
:
'brandName'
,
key
:
'brandName'
,
}
}
]
]
const
formSearch
:
ISchema
=
{
type
:
'object'
,
properties
:
{
name
:
{
type
:
'string'
,
'x-component'
:
'ModalSearch'
,
'x-component-props'
:
{
placeholder
:
'商品名称'
,
align
:
'flex-left'
,
},
},
[
FORM_FILTER_PATH
]:
{
type
:
'object'
,
'x-component'
:
'flex-layout'
,
'x-component-props'
:
{
rowStyle
:
{
flexWrap
:
'nowrap'
,
style
:
{
marginRight
:
0
}
},
colStyle
:
{
marginTop
:
20
,
},
},
properties
:
{
customerCategoryId
:
{
type
:
'string'
,
'x-component'
:
'CustomInputSearch'
,
'x-component-props'
:
{
placeholder
:
'请选择品类'
,
showSearch
:
true
,
showArrow
:
true
,
defaultActiveFirstOption
:
false
,
filterOption
:
false
,
notFoundContent
:
null
,
style
:
{
width
:
'174px'
,
lineHeight
:
'32px'
},
searchValue
:
null
,
dataoption
:
[]
},
enum
:
customerCategory
},
brandId
:
{
type
:
'string'
,
'x-component'
:
'CustomInputSearch'
,
'x-component-props'
:
{
placeholder
:
'请选择品牌'
,
showSearch
:
true
,
showArrow
:
true
,
defaultActiveFirstOption
:
false
,
filterOption
:
false
,
notFoundContent
:
null
,
style
:
{
width
:
'174px'
,
lineHeight
:
'32px'
},
searchValue
:
null
,
dataoption
:
[]
},
enum
:
brand
},
submit
:
{
"x-component"
:
'Submit'
,
"x-mega-props"
:
{
span
:
1
},
"x-component-props"
:
{
children
:
'查询'
}
}
}
}
}
}
/**输入框输入 */
/**输入框输入 */
const
inputOnchange
=
(
id
,
e
)
=>
{
const
inputOnchange
=
(
id
,
e
)
=>
{
const
{
value
}
=
e
.
target
const
{
value
}
=
e
.
target
...
@@ -186,7 +115,7 @@ const EnquiryGoods: React.FC<queryProps> = (props) => {
...
@@ -186,7 +115,7 @@ const EnquiryGoods: React.FC<queryProps> = (props) => {
title
:
'采购数量'
,
title
:
'采购数量'
,
dataIndex
:
'purchaseCount'
,
dataIndex
:
'purchaseCount'
,
render
:
(
text
:
any
,
record
:
any
)
=>
(
render
:
(
text
:
any
,
record
:
any
)
=>
(
<
Form
.
Item
name=
{
record
.
productId
}
noStyle
initialValue=
{
record
.
purchase
Quantity
}
>
<
Form
.
Item
name=
{
record
.
productId
}
noStyle
initialValue=
{
record
.
purchase
Count
}
>
<
InputNumber
<
InputNumber
onBlur=
{
(
e
)
=>
inputOnchange
(
record
.
productId
,
e
)
}
onBlur=
{
(
e
)
=>
inputOnchange
(
record
.
productId
,
e
)
}
min=
{
1
}
min=
{
1
}
...
@@ -226,6 +155,11 @@ const EnquiryGoods: React.FC<queryProps> = (props) => {
...
@@ -226,6 +155,11 @@ const EnquiryGoods: React.FC<queryProps> = (props) => {
message
.
error
(
'请选择被询价会员'
)
message
.
error
(
'请选择被询价会员'
)
}
}
}
}
useEffect
(()
=>
{
form
.
resetFields
();
},
[])
// 删除
// 删除
const
handleDelete
=
(
record
)
=>
{
const
handleDelete
=
(
record
)
=>
{
const
newData
=
[...
goodsList
];
const
newData
=
[...
goodsList
];
...
@@ -268,7 +202,7 @@ const EnquiryGoods: React.FC<queryProps> = (props) => {
...
@@ -268,7 +202,7 @@ const EnquiryGoods: React.FC<queryProps> = (props) => {
return
(
return
(
<
div
className=
{
styles
.
revise_style
}
>
<
div
className=
{
styles
.
revise_style
}
>
<
Button
disabled=
{
type
===
3
}
block
type=
'dashed'
onClick=
{
addGoods
}
><
PlusOutlined
/>
添加商品
</
Button
>
<
Button
disabled=
{
type
===
3
}
block
type=
'dashed'
onClick=
{
addGoods
}
><
PlusOutlined
/>
添加商品
</
Button
>
<
Form
>
<
Form
form=
{
form
}
>
<
Table
rowKey=
{
'productId'
}
style=
{
{
marginTop
:
'16px'
}
}
columns=
{
columns
}
dataSource=
{
goodsList
}
pagination=
{
false
}
/>
<
Table
rowKey=
{
'productId'
}
style=
{
{
marginTop
:
'16px'
}
}
columns=
{
columns
}
dataSource=
{
goodsList
}
pagination=
{
false
}
/>
</
Form
>
</
Form
>
{
/* 选择商品弹框 */
}
{
/* 选择商品弹框 */
}
...
@@ -279,27 +213,11 @@ const EnquiryGoods: React.FC<queryProps> = (props) => {
...
@@ -279,27 +213,11 @@ const EnquiryGoods: React.FC<queryProps> = (props) => {
cancel=
{
handleCancelAddMember
}
cancel=
{
handleCancelAddMember
}
visible=
{
visibleChannelMember
}
visible=
{
visibleChannelMember
}
forceRender=
{
visibleChannelMember
}
forceRender=
{
visibleChannelMember
}
resetModal=
{
{
destroyOnClose
:
true
}
}
resetModal=
{
{
destroyOnClose
:
true
,
forceRender
:
true
}
}
columns=
{
columnsSetMember
}
columns=
{
columnsSetMember
}
rowSelection=
{
memberRowSelection
}
rowSelection=
{
memberRowSelection
}
fetchTableData=
{
params
=>
fetchGoodsList
(
params
)
}
fetchTableData=
{
params
=>
fetchGoodsList
(
params
)
}
formilyProps=
{
modalType=
'productByMember'
{
ctx
:
{
schema
:
formSearch
,
actions
:
productFormActions
,
components
:
{
ModalSearch
:
Search
,
SearchSelect
,
Submit
},
effects
:
(
$
,
actions
)
=>
{
useStateFilterSearchLinkageEffect
(
$
,
actions
,
'name'
,
FORM_FILTER_PATH
,
);
}
}
}
}
tableProps=
{
{
tableProps=
{
{
rowKey
:
'id'
rowKey
:
'id'
}
}
}
}
...
...
src/pages/transaction/goodsOffer/addEnquiryOrder/components/flowRecord.tsx
View file @
91aeb51e
...
@@ -60,7 +60,7 @@ const FlowRecord: React.FC<parmas> = (props) => {
...
@@ -60,7 +60,7 @@ const FlowRecord: React.FC<parmas> = (props) => {
},
{
},
{
title
:
'操作时间'
,
title
:
'操作时间'
,
dataIndex
:
'operationTime'
,
dataIndex
:
'operationTime'
,
render
:
(
text
:
any
,
record
:
any
)
=>
interiorTextState
(
text
)
render
:
(
text
:
any
,
record
:
any
)
=>
format
(
text
)
},
{
},
{
title
:
'审核意见'
,
title
:
'审核意见'
,
dataIndex
:
'auditOpinion'
,
dataIndex
:
'auditOpinion'
,
...
@@ -80,7 +80,7 @@ const FlowRecord: React.FC<parmas> = (props) => {
...
@@ -80,7 +80,7 @@ const FlowRecord: React.FC<parmas> = (props) => {
},
{
},
{
title
:
'状态'
,
title
:
'状态'
,
dataIndex
:
'state'
,
dataIndex
:
'state'
,
render
:
(
text
:
any
,
record
:
any
)
=>
format
(
text
)
render
:
(
text
:
any
,
record
:
any
)
=>
interiorTextState
(
text
)
},
{
},
{
title
:
'操作'
,
title
:
'操作'
,
dataIndex
:
'operation'
,
dataIndex
:
'operation'
,
...
@@ -103,14 +103,14 @@ const FlowRecord: React.FC<parmas> = (props) => {
...
@@ -103,14 +103,14 @@ const FlowRecord: React.FC<parmas> = (props) => {
</
Radio
.
Group
>
</
Radio
.
Group
>
{
radio
===
'outer'
?
{
radio
===
'outer'
?
<
PolymericTable
<
PolymericTable
dataSource=
{
editData
.
interior
InquiryListLogResponses
}
dataSource=
{
editData
.
external
InquiryListLogResponses
}
columns=
{
outerColumns
}
columns=
{
outerColumns
}
loading=
{
false
}
loading=
{
false
}
pagination=
{
null
}
pagination=
{
null
}
/>
/>
:
:
<
PolymericTable
<
PolymericTable
dataSource=
{
editData
.
external
InquiryListLogResponses
}
dataSource=
{
editData
.
interior
InquiryListLogResponses
}
columns=
{
insideColumns
}
columns=
{
insideColumns
}
loading=
{
false
}
loading=
{
false
}
pagination=
{
null
}
pagination=
{
null
}
...
...
src/pages/transaction/goodsOffer/addEnquiryOrder/components/tradingConditions.tsx
View file @
91aeb51e
...
@@ -37,7 +37,7 @@ const TradingConditions: React.FC<queryProps> = (props) => {
...
@@ -37,7 +37,7 @@ const TradingConditions: React.FC<queryProps> = (props) => {
}
}
})
})
}).
catch
(
errorInfo
=>
{
}).
catch
(
errorInfo
=>
{
message
.
error
(
'有必填字段没选择,请检查!'
);
resolve
({
state
:
false
})
})
})
})
})
}
}
...
...
src/pages/transaction/goodsOffer/pendingSubmit/index.tsx
View file @
91aeb51e
import
React
,
{
useRef
,
useState
,
useEffect
}
from
'react'
;
import
React
,
{
useRef
,
useState
,
useEffect
}
from
'react'
;
import
{
Card
,
Button
,
Row
,
Col
,
Popconfirm
}
from
'antd'
;
import
{
Card
,
Button
,
Row
,
Col
,
Popconfirm
,
message
}
from
'antd'
;
import
{
history
}
from
'umi'
import
{
history
}
from
'umi'
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
StandardTable
}
from
'god'
;
import
{
StandardTable
}
from
'god'
;
...
@@ -139,9 +139,14 @@ const PendingSubmit: React.FC<{}> = () => {
...
@@ -139,9 +139,14 @@ const PendingSubmit: React.FC<{}> = () => {
}
}
/**批量审核 */
/**批量审核 */
const
handleSubmitAll
=
(
ids
:
number
[])
=>
{
const
handleSubmitAll
=
(
ids
:
number
[])
=>
{
PublicApi
.
postOrderInquirySubmitAll
({
ids
:
ids
}).
then
(
res
=>
{
if
(
ids
.
length
>
0
)
{
ref
.
current
.
reload
()
PublicApi
.
postOrderInquirySubmitAll
({
ids
:
ids
}).
then
(
res
=>
{
})
ref
.
current
.
reload
()
})
}
else
{
message
.
error
(
'请选择要操作的询价单!'
)
}
}
}
const
handleModalOK
=
()
=>
{
const
handleModalOK
=
()
=>
{
setvisible
(
false
)
setvisible
(
false
)
...
...
src/pages/transaction/inquiryQuote/addInquiryOrder/addForm.tsx
View file @
91aeb51e
...
@@ -24,6 +24,7 @@ const AddQuotes: React.FC<parmas> = (props) => {
...
@@ -24,6 +24,7 @@ const AddQuotes: React.FC<parmas> = (props) => {
const
basicInfoRef
=
useRef
<
any
>
({});
const
basicInfoRef
=
useRef
<
any
>
({});
const
tradingConditionsRef
=
useRef
<
any
>
({});
const
tradingConditionsRef
=
useRef
<
any
>
({});
const
[
editData
,
setEditData
]
=
useState
<
any
>
({});
const
[
editData
,
setEditData
]
=
useState
<
any
>
({});
const
[
loading
,
setloading
]
=
useState
<
boolean
>
(
false
);
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
id
&&
type
===
2
)
{
if
(
id
&&
type
===
2
)
{
...
@@ -54,6 +55,7 @@ const AddQuotes: React.FC<parmas> = (props) => {
...
@@ -54,6 +55,7 @@ const AddQuotes: React.FC<parmas> = (props) => {
/************* 页面的一些操作start *************/
/************* 页面的一些操作start *************/
const
onSumbit
=
async
(
params
:
any
)
=>
{
const
onSumbit
=
async
(
params
:
any
)
=>
{
setloading
(
true
);
const
basicInfo
=
await
basicInfoRef
.
current
.
validateFields
();
const
basicInfo
=
await
basicInfoRef
.
current
.
validateFields
();
if
(
count
===
'3'
)
{
if
(
count
===
'3'
)
{
const
tradingConditions
=
await
tradingConditionsRef
.
current
.
validateFields
();
const
tradingConditions
=
await
tradingConditionsRef
.
current
.
validateFields
();
...
@@ -73,20 +75,22 @@ const AddQuotes: React.FC<parmas> = (props) => {
...
@@ -73,20 +75,22 @@ const AddQuotes: React.FC<parmas> = (props) => {
await
PublicApi
.
postOrderProductQuotationUpdate
(
parmas
).
then
(
res
=>
{
await
PublicApi
.
postOrderProductQuotationUpdate
(
parmas
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
history
.
goBack
();
history
.
goBack
();
}
}
else
{
setloading
(
false
);}
})
})
}
else
{
}
else
{
await
PublicApi
.
postOrderProductQuotationAdd
(
parmas
).
then
(
res
=>
{
await
PublicApi
.
postOrderProductQuotationAdd
(
parmas
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
history
.
goBack
();
history
.
goBack
();
}
}
else
{
setloading
(
false
);}
})
})
}
}
}
else
{
}
else
{
message
.
error
(
'有必填字段没选择,请检查!'
);
message
.
error
(
'有必填字段没选择,请检查!'
);
setloading
(
false
);
}
}
}
else
{
}
else
{
message
.
error
(
'有必填字段没选择,请检查!'
);
message
.
error
(
'有必填字段没选择,请检查!'
);
setloading
(
false
);
}
}
}
}
// 获取到会员信息
// 获取到会员信息
...
@@ -113,7 +117,7 @@ const AddQuotes: React.FC<parmas> = (props) => {
...
@@ -113,7 +117,7 @@ const AddQuotes: React.FC<parmas> = (props) => {
onBack=
{
()
=>
history
.
goBack
()
}
onBack=
{
()
=>
history
.
goBack
()
}
backIcon=
{
<
ReutrnEle
description=
"返回"
/>
}
backIcon=
{
<
ReutrnEle
description=
"返回"
/>
}
extra=
{
extra=
{
<
Button
type=
"primary"
onClick=
{
onSumbit
}
>
保存
</
Button
>
<
Button
type=
"primary"
onClick=
{
onSumbit
}
loading=
{
loading
}
>
保存
</
Button
>
}
}
>
>
<
Card
>
<
Card
>
...
...
src/pages/transaction/inquiryQuote/addInquiryOrder/index.tsx
View file @
91aeb51e
...
@@ -38,7 +38,7 @@ const AddInquiryOrder: React.FC<{}> = () => {
...
@@ -38,7 +38,7 @@ const AddInquiryOrder: React.FC<{}> = () => {
render
:
(
text
:
any
,
record
:
any
)
=>
<
EyePreview
render
:
(
text
:
any
,
record
:
any
)
=>
<
EyePreview
url=
{
`/memberCenter/tranactionAbility/inquiryQuote/addInquiryOrder/rfq/preview?id=${record.inquiryListId}`
}
>
{
text
}
</
EyePreview
>
url=
{
`/memberCenter/tranactionAbility/inquiryQuote/addInquiryOrder/rfq/preview?id=${record.inquiryListId}`
}
>
{
text
}
</
EyePreview
>
},
{
},
{
title
:
'报价
价
单摘要'
,
title
:
'报价单摘要'
,
key
:
'details'
,
key
:
'details'
,
dataIndex
:
'details'
,
dataIndex
:
'details'
,
},
{
},
{
...
...
src/pages/transaction/inquiryQuote/components/reviewList.tsx
View file @
91aeb51e
...
@@ -67,7 +67,7 @@ const ReviewList: React.FC<parmas> = (props) => {
...
@@ -67,7 +67,7 @@ const ReviewList: React.FC<parmas> = (props) => {
render
:
(
text
:
any
,
record
:
any
)
=>
format
(
text
)
render
:
(
text
:
any
,
record
:
any
)
=>
format
(
text
)
},
},
{
{
title
:
'
询价
时间'
,
title
:
'
单据
时间'
,
key
:
'createTime'
,
key
:
'createTime'
,
dataIndex
:
'createTime'
,
dataIndex
:
'createTime'
,
render
:
(
text
:
any
,
record
:
any
)
=>
format
(
text
)
render
:
(
text
:
any
,
record
:
any
)
=>
format
(
text
)
...
@@ -94,7 +94,7 @@ const ReviewList: React.FC<parmas> = (props) => {
...
@@ -94,7 +94,7 @@ const ReviewList: React.FC<parmas> = (props) => {
title
:
'操作'
,
title
:
'操作'
,
key
:
'options'
,
key
:
'options'
,
dataIndex
:
'options'
,
dataIndex
:
'options'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
Button
type=
'link'
disabled=
{
record
.
interiorState
===
1
}
onClick=
{
()
=>
{
setId
(
record
.
id
);
setvisible
(
true
);
}
}
>
审核
</
Button
>
render
:
(
text
:
any
,
record
:
any
)
=>
<
Button
type=
'link'
disabled=
{
record
.
interiorState
===
1
}
onClick=
{
()
=>
{
setId
(
record
.
id
);
setvisible
(
true
);
}
}
>
审核
</
Button
>
},
},
]
]
const
format
=
(
text
)
=>
{
const
format
=
(
text
)
=>
{
...
@@ -160,12 +160,12 @@ const ReviewList: React.FC<parmas> = (props) => {
...
@@ -160,12 +160,12 @@ const ReviewList: React.FC<parmas> = (props) => {
</
StandardTable
>
</
StandardTable
>
</
Card
>
</
Card
>
<
AuditModal
<
AuditModal
id=
{
id
}
id=
{
id
}
type=
{
type
}
type=
{
type
}
dialogVisible=
{
visible
}
dialogVisible=
{
visible
}
onCancel=
{
()
=>
setvisible
(
false
)
}
onCancel=
{
()
=>
setvisible
(
false
)
}
onOK=
{
handleModalOK
}
onOK=
{
handleModalOK
}
/>
/>
</
PageHeaderWrapper
>
</
PageHeaderWrapper
>
)
)
...
...
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