Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄庭坚
jinfa-platform
Commits
9953b0cc
Commit
9953b0cc
authored
Oct 30, 2021
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 对接新增请购单/请购单列表查询
parent
2355c86a
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
138 additions
and
212 deletions
+138
-212
context.ts
src/pages/procurement/_public/bid/context.ts
+10
-10
useBillDetail.tsx
src/pages/transaction/_public/bill/effects/useBillDetail.tsx
+8
-77
index.tsx
...nsaction/purchaseOrder/readyAddRequisitionOrder/index.tsx
+2
-2
useReadyAddOrder.tsx
...Order/readyAddRequisitionOrder/model/useReadyAddOrder.tsx
+1
-1
index.tsx
...ges/transaction/purchaseRequisition/billPreview/index.tsx
+2
-2
index.tsx
...purchaseRequisition/components/billDetailHeader/index.tsx
+1
-1
index.tsx
...urchaseRequisition/components/billDetailSection/index.tsx
+17
-17
index.less
...on/purchaseRequisition/components/billMaterial/index.less
+0
-9
index.tsx
...ion/purchaseRequisition/components/billMaterial/index.tsx
+41
-45
index.tsx
...purchaseRequisition/components/descriptionsInfo/index.tsx
+11
-11
index.tsx
...n/purchaseRequisition/components/transferRecord/index.tsx
+28
-19
index.tsx
src/pages/transaction/purchaseRequisition/constant/index.tsx
+17
-18
No files found.
src/pages/procurement/_public/bid/context.ts
View file @
9953b0cc
...
...
@@ -3,17 +3,17 @@ import { createContext } from 'react';
// 招标详情 Context
export
const
BidDetailContext
=
createContext
<
any
>
({})
// 待新增招标 详情
export
const
ReadyAddBidDetailContext
=
createContext
<
any
>
({})
//
//
待新增招标 详情
//
export const ReadyAddBidDetailContext = createContext<any>({})
// 专家评标详情
export
const
RemarkDetailContext
=
createContext
<
any
>
({})
//
//
专家评标详情
//
export const RemarkDetailContext = createContext<any>({})
// 待提交评标报告详情
export
const
ReportDetailContext
=
createContext
<
any
>
({})
//
//
待提交评标报告详情
//
export const ReportDetailContext = createContext<any>({})
// 待定标(审核定标、确认定标)详情
export
const
ReadyConfirmBidContext
=
createContext
<
any
>
({})
//
//
待定标(审核定标、确认定标)详情
//
export const ReadyConfirmBidContext = createContext<any>({})
// 待发中标公示
export
const
ReadySendBidNoticeContext
=
createContext
<
any
>
({})
//
//
待发中标公示
//
export const ReadySendBidNoticeContext = createContext<any>({})
src/pages/transaction/_public/bill/effects/useBillDetail.tsx
View file @
9953b0cc
import
React
,
{
useRef
}
from
'react'
import
{
useCallback
,
useState
,
useEffect
}
from
'react'
import
{
usePageStatus
}
from
'@/hooks/usePageStatus'
import
{
PublicApi
}
from
'@/services/api'
import
{
Link
}
from
'umi'
import
{
formatTimeString
}
from
'@/utils'
import
StatusColors
from
'../../../components/statusColors'
import
{
message
}
from
'antd'
import
{
history
}
from
'umi'
...
...
@@ -20,45 +16,12 @@ interface BillDetailHookProps {
// 请购单详情
export
const
useBillDetail
=
(
options
:
BillDetailHookProps
)
=>
{
//
订单详情内容
//
详情数据
const
[
formData
,
setFormData
]
=
useState
<
any
>
(
null
)
// 当前的支付信息id 默认第一个
const
[
currentPayInfoId
,
setCurrentPayInfoId
]
=
useState
<
any
>
(
null
)
// 支付信息列表
const
[
payList
,
setPaylist
]
=
useState
<
any
[]
>
([])
const
{
id
}
=
usePageStatus
()
const
{
order
No
}
=
history
.
location
.
query
const
{
requisition
No
}
=
history
.
location
.
query
const
{
type
=
'requestBill'
}
=
options
const
dataRef
=
useRef
<
any
>
([
{
label
:
'对应报价单号'
,
name
:
'quoteNo'
,
span
:
8
,
render
:
(
text
,
record
)
=>
<
Link
to=
{
type
[
0
]
===
's'
?
`/memberCenter/tranactionAbility/inquiryOffer/offerSearch/offer/preview?id=${record?.quoteId}`
:
`/memberCenter/tranactionAbility/confirmOffer/offerSearch/offer/preview?id=${record?.quoteId}`
}
>
{
text
}
</
Link
>
},
{
label
:
'订单摘要'
,
name
:
'digest'
,
span
:
8
},
{
label
:
type
[
0
]
===
's'
?
'采购会员'
:
'供应会员'
,
name
:
type
[
0
]
===
's'
?
'buyerMemberName'
:
'vendorMemberName'
,
span
:
8
},
{
label
:
'下单模式'
,
name
:
'orderModeName'
,
span
:
8
},
{
label
:
'订单类型'
,
name
:
'orderTypeName'
,
span
:
8
},
{
label
:
'下单时间'
,
name
:
'createTime'
,
span
:
8
,
render
:
text
=>
formatTimeString
(
text
)
},
{
label
:
'外部状态'
,
name
:
'outerStatusName'
,
span
:
8
,
render
:
(
text
,
record
)
=>
<
StatusColors
type=
'out'
status=
{
text
}
text=
{
record
.
outerStatusName
}
/>
},
{
label
:
'内部状态'
,
name
:
'innerStatusName'
,
span
:
8
,
// render: (text, record) => <StatusColors type={type} status={text} text={record.innerStatusName} />
},
{
label
:
'来源商城'
,
name
:
'shopName'
,
span
:
8
,
},
])
useEffect
(()
=>
{
reloadFormData
()
...
...
@@ -67,42 +30,24 @@ export const useBillDetail = (options: BillDetailHookProps) => {
// 根据type类型 调用不同的详情接口
const
getDetailsApi
=
(
type
)
=>
{
let
api
=
null
;
console
.
log
(
type
,
'type'
)
switch
(
type
)
{
case
'purchaseOrder'
:
api
=
PublicApi
.
getOrderBuyerDetail
;
break
;
case
'saleOrder'
:
api
=
PublicApi
.
getOrderVendorDetail
;
break
;
case
'p_readyReceiveOrder'
:
api
=
PublicApi
.
getOrderBuyerValidateReceiveDetail
;
break
;
case
's_readyConfirmDelevedOrder'
:
api
=
PublicApi
.
getOrderVendorValidateDeliveryDetail
;
break
;
case
'p_readyPayOrder'
:
api
=
PublicApi
.
getOrderBuyerValidatePayDetail
;
break
;
case
's_readyPayResult'
:
api
=
PublicApi
.
getOrderVendorValidatePayConfirmDetail
;
case
'requestBill'
:
api
=
PublicApi
.
getPurchaseRequisitionDetail
;
default
:
api
=
PublicApi
.
get
OrderBuyer
Detail
;
api
=
PublicApi
.
get
PurchaseRequisition
Detail
;
}
return
api
;
}
const
reloadFormData
=
useCallback
(()
=>
{
if
(
id
||
order
No
)
{
if
(
id
||
requisition
No
)
{
const
fn
=
getDetailsApi
(
type
)
// @ts-ignore
fn
(
id
?
{
orderId
:
id
}
:
{
order
No
},
{
ctlType
:
"none"
}).
then
(
res
=>
{
fn
(
id
?
{
id
}
:
{
requisition
No
},
{
ctlType
:
"none"
}).
then
(
res
=>
{
const
{
code
,
data
,
message
:
msg
}
=
res
if
(
code
===
1000
)
{
setFormData
(
data
)
// // 待支付订单获取所有支付方式
// if(type === 'p_readyPayOrder') {
// reloadPayList(id)
// }
if
(
data
.
payments
.
length
>
0
){
// 过滤出未支付的 第一个
const
payObj
=
data
.
payments
.
filter
(
item
=>
item
.
showPayment
)[
0
]
setCurrentPayInfoId
(
payObj
?.
paymentId
?
payObj
.
paymentId
:
data
.
payments
[
0
].
paymentId
)
}
}
else
{
message
.
error
(
msg
)
}
...
...
@@ -110,31 +55,17 @@ export const useBillDetail = (options: BillDetailHookProps) => {
}
},
[
id
])
const
reloadPayList
=
(
orderId
)
=>
{
PublicApi
.
getOrderBuyerValidatePayType
({
orderId
}).
then
(
res
=>
{
const
{
code
,
data
}
=
res
if
(
code
===
1000
)
{
setPaylist
(
data
)
}
})
}
// 需共享的状态
const
formContext
=
{
data
:
formData
,
currentPayInfoId
,
payList
,
ctl
:
{
setData
:
setFormData
,
setPayId
:
setCurrentPayInfoId
,
},
reloadFormData
}
return
{
formContext
,
id
,
detailList
:
dataRef
.
current
}
}
src/pages/transaction/purchaseOrder/readyAddRequisitionOrder/index.tsx
View file @
9953b0cc
...
...
@@ -63,8 +63,8 @@ const ReadyAddRequisitionOrder:React.FC<ReadyAddRequisitionOrderProps> = () => {
}
const
clickAdd
=
()
=>
{
//
srm 采购合同
下单
history
.
push
(
`/memberCenter/tranactionAbility/purchaseOrder/readyAdd
Srm
Order/add`
)
//
采购请购
下单
history
.
push
(
`/memberCenter/tranactionAbility/purchaseOrder/readyAdd
Requisition
Order/add`
)
}
return
<
PageHeaderWrapper
>
...
...
src/pages/transaction/purchaseOrder/readyAddRequisitionOrder/model/useReadyAddOrder.tsx
View file @
9953b0cc
...
...
@@ -21,7 +21,7 @@ export const useSelfTable = () => {
}
const
handleEdit
=
(
record
:
any
)
=>
{
history
.
push
(
`/memberCenter/tranactionAbility/purchaseOrder/readyAdd
Srm
Order/edit?id=
${
record
.
orderId
}
`
)
history
.
push
(
`/memberCenter/tranactionAbility/purchaseOrder/readyAdd
Requisition
Order/edit?id=
${
record
.
orderId
}
`
)
}
/** 参照后台数据生成 */
...
...
src/pages/transaction/purchaseRequisition/billPreview/index.tsx
View file @
9953b0cc
...
...
@@ -7,12 +7,12 @@ import BillDetailHeader from '../components/billDetailHeader';
import
BillDetailSection
from
'../components/billDetailSection'
;
const
OrderPreview
:
React
.
FC
=
()
=>
{
const
{
formContext
,
detailList
}
=
useBillDetail
({
type
:
'requestBill'
})
const
{
formContext
}
=
useBillDetail
({
type
:
'requestBill'
})
const
anchorTitleList
=
[
{
title
:
'流转进度'
,
id
:
'transferProcess'
,
componentName
:
"TransferProcess"
},
{
title
:
'基本信息'
,
id
:
'baseicInfo'
,
type
:
"basicInfo"
},
{
title
:
'
招标
物料'
,
id
:
'billMaterial'
,
componentName
:
"BillMaterial"
},
{
title
:
'
请购
物料'
,
id
:
'billMaterial'
,
componentName
:
"BillMaterial"
},
{
title
:
'流转记录'
,
id
:
'transferRecord'
,
componentName
:
"TransformRecord"
},
]
...
...
src/pages/transaction/purchaseRequisition/components/billDetailHeader/index.tsx
View file @
9953b0cc
...
...
@@ -79,7 +79,7 @@ const BillDetailHeader: React.FC<BillDetailHeaderProps> = ({
<
ArrowLeftOutlined
onClick=
{
()
=>
backLink
?
history
.
push
(
backLink
)
:
history
.
goBack
()
}
/>
</
Col
>
<
Col
>
<
div
className=
{
style
.
titleAvatorText
}
>
{
formContext
.
data
.
order
No
}
</
div
>
<
div
className=
{
style
.
titleAvatorText
}
>
{
formContext
.
data
.
requisition
No
}
</
div
>
</
Col
>
</
Row
>
<
Row
>
...
...
src/pages/transaction/purchaseRequisition/components/billDetailSection/index.tsx
View file @
9953b0cc
...
...
@@ -5,6 +5,7 @@ import DescriptionsInfo from '../descriptionsInfo'
import
BillMaterial
from
'../billMaterial'
import
TransferProcess
from
'../transferProcess'
import
TransformRecord
from
'../transferRecord'
import
AuditProcess
from
'@/components/AuditProcess'
export
interface
BillDetailSectionProps
{
formContext
:
any
,
type
:
'requestBill'
...
...
@@ -41,33 +42,32 @@ const BillDetailSection:React.FC<BillDetailSectionProps> = ({
const
RenderCertainContent
=
({
title
,
type
=
null
,
componentName
=
null
})
=>
{
let
RcDom
:
any
=
null
;
switch
(
componentName
)
{
//@todo 需另外调用接口获取数据
case
'TransferProcess'
:
RcDom
=
(<
Transfer
Process
c
ardTitle=
{
title
}
custom
TitleKey=
'name
'
customKey=
'id
'
outerVerifyCurrent=
{
f
indLastIndexFlowState
(
formContext
.
externalWorkflowFlowRecordLogResponses
)
}
innerVerifyCurrent=
{
f
indLastIndexFlowState
(
formContext
.
interiorWorkflowFlowRecordLogResponses
)
}
RcDom
=
(<
Audit
Process
c
ustomTitleKey=
'stepName'
custom
Key=
'step
'
initRadioValue=
'inner
'
outerVerifyCurrent=
{
f
ormContext
.
data
.
currentOuterStep
}
innerVerifyCurrent=
{
f
ormContext
.
data
.
currentInnerStep
}
outerVerifySteps=
{
formContext
.
externalWorkflowFlowRecordLogResponse
s
?
formContext
.
externalWorkflowFlowRecordLogResponse
s
.
map
(
item
=>
({
formContext
.
data
.
outerStep
s
?
formContext
.
data
.
outerStep
s
.
map
(
item
=>
({
...
item
,
status
:
item
.
isActive
?
'finish'
:
'wait'
,
status
:
(
item
.
step
<=
formContext
.
data
.
currentOuterStep
)
?
'finish'
:
'wait'
,
}))
:
[]
null
}
innerVerifySteps=
{
formContext
.
interiorWorkflowFlowRecordLogResponse
s
?
formContext
.
interiorWorkflowFlowRecordLogResponse
s
.
map
(
item
=>
({
formContext
.
data
.
innerStep
s
?
formContext
.
data
.
innerStep
s
.
map
(
item
=>
({
...
item
,
status
:
item
.
isActive
?
'finish'
:
'wait'
,
status
:
(
item
.
step
<=
formContext
.
data
.
currentInnerStep
)
?
'finish'
:
'wait'
,
}))
:
[]
null
}
></
Transfer
Process
>)
></
Audit
Process
>)
break
;
case
"Bi
i
llMaterial"
:
case
"BillMaterial"
:
RcDom
=
(<
BillMaterial
cardTitle=
{
title
}
/>)
break
;
case
"TransformRecord"
:
...
...
src/pages/transaction/purchaseRequisition/components/billMaterial/index.less
View file @
9953b0cc
.card-list {
font-size: 12px;
line-height: 20px;
margin-top: 24px;
}
.card-list_title {
font-size: 12px;
color: #909399;
}
src/pages/transaction/purchaseRequisition/components/billMaterial/index.tsx
View file @
9953b0cc
import
React
,
{
useContext
}
from
'react'
import
{
Table
,
Button
,
Switch
,
Tooltip
,
Row
,
Col
}
from
'antd'
import
{
Table
}
from
'antd'
import
MellowCard
from
'@/components/MellowCard'
import
{
BidDetailContext
}
from
'@/pages/procurement/_public/bid/context'
;
import
{
QuestionCircleOutlined
}
from
'@ant-design/icons'
;
import
style
from
'./index.less'
import
{
CALLFORBID_TYPE
}
from
'@/constants/procurement'
;
import
{
ENTERPRISE_CENTER_URL
}
from
'@/constants'
import
{
BillDetailContext
}
from
'@/pages/transaction/_public/bill/effects/context'
;
/**
* 请购单 请购物料
...
...
@@ -16,58 +12,64 @@ export interface BidMethodProps {
}
const
BidMethod
:
React
.
FC
<
BidMethodProps
>
=
({
cardTitle
})
=>
{
const
bidDetailContext
=
useContext
(
BidDetailContext
)
const
{
data
:
_data
,
ctl
,
apiType
}
=
bidDetailContext
// 处理和投标有关的数据格式
const
data
=
apiType
===
'callForBid'
?
_data
:
_data
.
inviteTender
const
bidDetailContext
=
useContext
(
BillDetailContext
)
const
{
data
}
=
bidDetailContext
const
columns
=
[
{
title
:
'序号'
,
dataIndex
:
'id'
,
key
:
'id'
,
render
:
(
t
,
r
,
i
)
=>
++
i
title
:
'物料编号'
,
dataIndex
:
'productNo'
,
key
:
'productNo'
,
},
{
title
:
'物料名称'
,
dataIndex
:
'name'
,
key
:
'name'
,
},
{
title
:
'规格型号'
,
dataIndex
:
'spec'
,
key
:
'spec'
,
},
{
title
:
'
会员名称
'
,
dataIndex
:
'
memberName
'
,
key
:
'
memberName
'
,
title
:
'
品类
'
,
dataIndex
:
'
category
'
,
key
:
'
category
'
,
},
{
title
:
'
会员类型
'
,
dataIndex
:
'
memberTypeName
'
,
key
:
'
memberTypeName
'
,
title
:
'
品牌
'
,
dataIndex
:
'
brand
'
,
key
:
'
brand
'
,
},
{
title
:
'
会员角色
'
,
title
:
'
单位
'
,
dataIndex
:
'memberRoleName'
,
key
:
'memberRoleName'
,
},
{
title
:
'是否归属会员'
,
dataIndex
:
'isSubMember'
,
key
:
'isSubMember'
,
render
:
(
t
,
r
)
=>
t
?
'是'
:
'否'
,
title
:
'预估单价'
,
dataIndex
:
'price'
,
key
:
'price'
,
render
:
t
=>
t
?
`¥
${
t
}
`
:
null
},
{
title
:
'数量'
,
dataIndex
:
'quantity'
,
key
:
'quantity'
,
},
{
title
:
<>
状态
<
Tooltip
title=
"打开开关,审核通过后,将招标发至对应的会员"
><
span
>
<
QuestionCircleOutlined
/></
span
></
Tooltip
></>
,
dataIndex
:
'
isSend
'
,
key
:
'
isSend
'
,
render
:
(
text
,
record
)
=>
<
Switch
disabled
defaultChecked=
{
text
}
onChange=
{
()
=>
onChange
(
record
)
}
/>
title
:
'预估金额'
,
dataIndex
:
'
amount
'
,
key
:
'
amount
'
,
render
:
t
=>
t
?
`¥
${
t
}
`
:
null
},
{
title
:
'操作'
,
dataIndex
:
'ctl'
,
key
:
'ctl'
,
render
:
(
text
,
record
)
=>
<
Button
type=
"link"
target=
"blank"
href=
{
`${ENTERPRISE_CENTER_URL}/shop/${record.memberId}_${record.roleId}`
}
>
进入店铺
</
Button
>
title
:
'已转订单数量'
,
dataIndex
:
'transferQuantity'
,
key
:
'transferQuantity'
,
}
];
const
onChange
=
(
record
)
=>
{
console
.
log
(
record
)
}
return
(
<
MellowCard
title=
{
cardTitle
}
...
...
@@ -75,13 +77,7 @@ const BidMethod: React.FC<BidMethodProps> = ({cardTitle}) => {
bordered=
{
false
}
fullHeight
>
<
div
className=
{
style
[
'card-list'
]
}
>
<
Row
>
<
Col
span=
{
2
}
><
p
className=
{
style
[
'card-list_title'
]
}
>
招标方式
</
p
></
Col
>
<
Col
><
p
>
{
CALLFORBID_TYPE
[
data
.
inviteTenderType
]
}
</
p
></
Col
>
</
Row
>
</
div
>
<
Table
dataSource=
{
data
.
memberList
}
columns=
{
columns
}
pagination=
{
{
size
:
"small"
}
}
/>
<
Table
dataSource=
{
data
.
product
.
products
}
columns=
{
columns
}
pagination=
{
{
size
:
"small"
}
}
/>
</
MellowCard
>)
}
...
...
src/pages/transaction/purchaseRequisition/components/descriptionsInfo/index.tsx
View file @
9953b0cc
import
React
,
{
useContext
}
from
'react'
import
{
Row
,
Col
}
from
'antd'
import
MellowCard
from
'@/components/MellowCard'
import
{
BidDetailContext
}
from
'@/pages/procurement/_public/bid/context'
;
import
{
formatTimeString
}
from
'@/utils'
import
style
from
'./index.less'
import
{
BillDetailContext
}
from
'@/pages/transaction/_public/bill/effects/context'
;
/**
* 描述信息列表
...
...
@@ -19,8 +19,8 @@ export interface BasicInfoProps {
}
const
DescriptionsInfo
:
React
.
FC
<
BasicInfoProps
>
=
({
cardTitle
,
type
})
=>
{
const
bidDetailContext
=
useContext
(
Bi
d
DetailContext
)
const
{
data
:
_data
,
address
,
ctl
,
apiType
}
=
bidDetailContext
const
bidDetailContext
=
useContext
(
Bi
ll
DetailContext
)
const
{
data
:
_data
}
=
bidDetailContext
// 基本信息——请购单
...
...
@@ -28,19 +28,19 @@ const DescriptionsInfo: React.FC<BasicInfoProps> = ({cardTitle, type}) => {
{
span
:
8
,
fieldList
:
[
{
title
:
'
招标编号:'
,
name
:
'code
'
},
{
title
:
'
外部状态:'
,
name
:
'inviteTenderOutStatusValue'
,
render
:
()
=>
_data
[
'submitTenderOutStatusValue'
]
},
{
title
:
'
内部状态:'
,
name
:
'inviteTenderInStatusValue'
,
render
:
()
=>
_data
[
'submitTenderInStatusValue'
]
},
{
title
:
'
发布时间:'
,
name
:
'createTime'
,
render
:
(
text
)
=>
formatTimeString
(
text
)
},
{
title
:
'
请款单号:'
,
name
:
'requisitionNo
'
},
{
title
:
'
请购单摘要:'
,
name
:
'digest'
},
{
title
:
'
创建人:'
,
name
:
'creator'
},
{
title
:
'
单据时间:'
,
name
:
'createTime'
},
]
},
{
span
:
8
,
fieldList
:
[
{
title
:
'适用地址:'
,
name
:
'inviteTenderAreaList'
,
},
{
title
:
'预交日期:'
,
name
:
'deliverTime'
},
{
title
:
'请购部门:'
,
name
:
'department'
}
,
{
title
:
'请购用途:'
,
name
:
'purpose'
}
,
{
title
:
'供应会员:'
,
name
:
'vendorMemberName'
},
]
}
]
...
...
src/pages/transaction/purchaseRequisition/components/transferRecord/index.tsx
View file @
9953b0cc
import
React
,
{
useContext
,
useEffect
,
useState
}
from
'react'
import
{
Table
,
Radio
}
from
'antd'
import
{
formatTimeString
}
from
'@/utils'
import
{
BidDetailContext
}
from
'@/pages/procurement/_public/bid/context'
;
import
MellowCard
from
'@/components/MellowCard'
import
{
TransferEnum
}
from
'../transferProcess'
;
import
style
from
'./index.less'
import
{
BillDetailContext
}
from
'@/pages/transaction/_public/bill/effects/context'
;
/**
* 请购订单流转记录
...
...
@@ -15,18 +15,27 @@ export interface BidTransformRecordProps {
}
const
BidTransformRecord
:
React
.
FC
<
BidTransformRecordProps
>
=
({
cardTitle
})
=>
{
const
{
data
,
externalProcurementOrderLogResponses
,
interiorProcurementOrderLogResponses
,
apiType
}
=
useContext
(
Bid
DetailContext
)
// 根据模式选择对应的状态映射
const
insideModel
=
apiType
.
indexOf
(
'ender'
)
!==
-
1
?
'tenderInside'
:
'inside'
;
const
{
data
}
=
useContext
(
Bill
DetailContext
)
const
{
innerHistories
:
interiorProcurementOrderLogResponses
,
externalProcurementOrderLogResponses
=
[]}
=
data
const
[
transferRadio
,
setTransferRadio
]
=
useState
<
TransferEnum
>
(
TransferEnum
.
Outer
)
// createTime: "2021-10-30 16:38:35"
// department: ""
// id: 6
// jobTitle: "超级管理员"
// operation: "新增订单"
// operator: "133"
// remark: ""
// statusName: "待提交审核"
const
outReocrdCols
:
any
[]
=
[
{
title
:
'流转顺序号'
,
dataIndex
:
'
no
'
,
dataIndex
:
'
id
'
,
align
:
'center'
,
key
:
'
no
'
,
key
:
'
id
'
,
render
:
(
_
,
__
,
index
:
number
)
=>
index
+
1
},
{
...
...
@@ -64,34 +73,34 @@ const BidTransformRecord:React.FC<BidTransformRecordProps> = ({cardTitle}) => {
const
insideRecordCols
:
any
[]
=
[
{
title
:
'流转记录'
,
dataIndex
:
'
no
'
,
dataIndex
:
'
id
'
,
align
:
'center'
,
key
:
'
no
'
,
key
:
'
id
'
,
render
:
(
_
,
__
,
index
:
number
)
=>
index
+
1
},
{
title
:
'操作人'
,
dataIndex
:
'
userName
'
,
dataIndex
:
'
operator
'
,
align
:
'center'
,
key
:
'
userName
'
,
key
:
'
operator
'
,
},
{
title
:
'部门'
,
dataIndex
:
'
userOrgName
'
,
dataIndex
:
'
department
'
,
align
:
'center'
,
key
:
'
userOrgName
'
,
key
:
'
department
'
,
},
{
title
:
'职位'
,
dataIndex
:
'
userJ
obTitle'
,
dataIndex
:
'
j
obTitle'
,
align
:
'center'
,
key
:
'
userJ
obTitle'
,
key
:
'
j
obTitle'
,
},
{
title
:
'状态'
,
dataIndex
:
'status
Valu
e'
,
dataIndex
:
'status
Nam
e'
,
align
:
'center'
,
key
:
'status
Valu
e'
,
key
:
'status
Nam
e'
,
},
{
title
:
'操作'
,
...
...
@@ -108,9 +117,9 @@ const BidTransformRecord:React.FC<BidTransformRecordProps> = ({cardTitle}) => {
},
{
title
:
'审核意见'
,
dataIndex
:
'
checkR
emark'
,
dataIndex
:
'
r
emark'
,
align
:
'center'
,
key
:
'
checkR
emark'
,
key
:
'
r
emark'
,
},
]
...
...
@@ -136,7 +145,7 @@ const BidTransformRecord:React.FC<BidTransformRecordProps> = ({cardTitle}) => {
extra=
{
<
Radio
.
Group
value=
{
transferRadio
}
buttonStyle=
"solid"
size=
"small"
onChange=
{
handleChangeType
}
>
{
externalProcurementOrderLogResponses
?.
length
?
<
Radio
.
Button
value=
{
TransferEnum
.
Outer
}
>
外部流转
</
Radio
.
Button
>
:
null
}
{
interiorProcurementOrderLogResponses
?.
length
&&
apiType
!==
'tenderInCallForBid'
&&
apiType
!==
'callForBidInTender'
?
<
Radio
.
Button
value=
{
TransferEnum
.
Interior
}
>
内部流转
</
Radio
.
Button
>
:
null
}
{
interiorProcurementOrderLogResponses
?.
length
?
<
Radio
.
Button
value=
{
TransferEnum
.
Interior
}
>
内部流转
</
Radio
.
Button
>
:
null
}
</
Radio
.
Group
>
}
className=
{
style
.
cardWrap
}
...
...
src/pages/transaction/purchaseRequisition/constant/index.tsx
View file @
9953b0cc
...
...
@@ -165,11 +165,11 @@ export const baseOrderListColumns: any = () => {
{
title
:
'请购单号'
,
align
:
'center'
,
dataIndex
:
'
order
No'
,
key
:
'
order
No'
,
dataIndex
:
'
requisition
No'
,
key
:
'
requisition
No'
,
render
:
(
text
,
record
)
=>
{
return
(
<
EyePreview
url=
{
`${history.location.pathname}/preview?id=${record.
orderI
d}`
}
>
<
EyePreview
url=
{
`${history.location.pathname}/preview?id=${record.
i
d}`
}
>
{
text
}
</
EyePreview
>
)
...
...
@@ -184,46 +184,45 @@ export const baseOrderListColumns: any = () => {
{
title
:
'供应会员'
,
align
:
'center'
,
dataIndex
:
'memberName'
,
key
:
'memberName'
,
render
:
(
t
,
r
)
=>
r
.
memberName
?
t
:
r
.
buyerMemberName
dataIndex
:
'vendorMemberName'
,
key
:
'vendorMemberName'
,
},
{
title
:
'交付日期'
,
align
:
'center'
,
dataIndex
:
'
create
Time'
,
key
:
'
create
Time'
,
dataIndex
:
'
deliver
Time'
,
key
:
'
deliver
Time'
,
render
:
(
text
)
=>
formatTimeString
(
text
)
},
{
title
:
'请购部门'
,
align
:
'center'
,
dataIndex
:
'd
iges
t'
,
key
:
'd
iges
t'
,
dataIndex
:
'd
epartmen
t'
,
key
:
'd
epartmen
t'
,
},
{
title
:
'请购用途'
,
align
:
'center'
,
dataIndex
:
'
digest
'
,
key
:
'
digest
'
,
dataIndex
:
'
purpose
'
,
key
:
'
purpose
'
,
},
{
title
:
'请购数量'
,
align
:
'center'
,
dataIndex
:
'
amount
'
,
key
:
'
amount
'
,
dataIndex
:
'
quantity
'
,
key
:
'
quantity
'
,
},
{
title
:
'已转订单数量'
,
align
:
'center'
,
dataIndex
:
'
amount
'
,
key
:
'
amount
'
,
dataIndex
:
'
transferQuantity
'
,
key
:
'
transferQuantity
'
,
},
{
title
:
'单据时间'
,
align
:
'center'
,
dataIndex
:
'
orderTypeNa
me'
,
key
:
'
orderTypeNa
me'
,
dataIndex
:
'
createTi
me'
,
key
:
'
createTi
me'
,
},
{
title
:
'内部状态'
,
...
...
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