Commit 1464df26 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix: 处理定标相关页面状态显示异常,采购合同下单获取完成合同添加shopId字段

parent 2430c80c
......@@ -135,7 +135,7 @@ export const formSchema: ISchema = {
{ label: '其他类专家', value: 4 },
],
"x-component-props": {
placeholder: '请输入所属行业'
placeholder: '请输入专家类型'
},
required: true,
},
......
......@@ -30,8 +30,8 @@ const BasicInfo: React.FC<IBasicInfo> = ({ title }) => {
span: 8,
fieldList: [
{ title: '招标编号:', name: 'code' },
{ title: '外部状态:', name: 'inviteTenderOutStatus', render: (text) => BidOutStateTexts[text]},
{ title: '内部状态:', name: 'inviteTenderInStatus', render: (text) => BidInStateTexts[text] },
{ title: '外部状态:', name: 'inviteTenderOutStatusValue'},
{ title: '内部状态:', name: 'inviteTenderInStatusValue'},
{ title: '发布时间:', name: 'createTime', render: (text) => formatTimeString(text) },
]
},
......
......@@ -30,8 +30,8 @@ const BasicInfo: React.FC<IBasicInfo> = ({ title }) => {
span: 8,
fieldList: [
{ title: '招标编号:', name: 'code' },
{ title: '外部状态:', name: 'inviteTenderOutStatus', render: (text) => BidOutStateTexts[text]},
{ title: '内部状态:', name: 'inviteTenderInStatus', render: (text) => BidInStateTexts[text] },
{ title: '外部状态:', name: 'inviteTenderOutStatusValue'},
{ title: '内部状态:', name: 'inviteTenderInStatusValue'},
{ title: '发布时间:', name: 'createTime', render: (text) => formatTimeString(text) },
]
},
......
......@@ -80,7 +80,7 @@ export const useSelfTable = () => {
const ref = useRef<any>({})
const handleSubmit = async (record) => {
history.push(`/memberCenter/procurementAbility/callForBids/readyCheckedConfirmFirst/detail?id=${record.id}`)
history.push(`/memberCenter/procurementAbility/callForBids/readyCheckedConfirmSecond/detail?id=${record.id}`)
}
const secondColumns: any[] = baseBidListColumns.concat([
{
......
......@@ -30,8 +30,8 @@ const BasicInfo: React.FC<IBasicInfo> = ({ title }) => {
span: 8,
fieldList: [
{ title: '招标编号:', name: 'code' },
{ title: '外部状态:', name: 'inviteTenderOutStatus', render: (text) => BidOutStateTexts[text]},
{ title: '内部状态:', name: 'inviteTenderInStatus', render: (text) => BidInStateTexts[text] },
{ title: '外部状态:', name: 'inviteTenderOutStatusValue'},
{ title: '内部状态:', name: 'inviteTenderInStatusValue'},
{ title: '发布时间:', name: 'createTime', render: (text) => formatTimeString(text) },
]
},
......
......@@ -30,8 +30,8 @@ const BasicInfo: React.FC<IBasicInfo> = ({ title }) => {
span: 8,
fieldList: [
{ title: '招标编号:', name: 'code' },
{ title: '外部状态:', name: 'inviteTenderOutStatus', render: (text) => BidOutStateTexts[text]},
{ title: '内部状态:', name: 'inviteTenderInStatus', render: (text) => BidInStateTexts[text] },
{ title: '外部状态:', name: 'inviteTenderOutStatusValue'},
{ title: '内部状态:', name: 'inviteTenderInStatusValue'},
{ title: '发布时间:', name: 'createTime', render: (text) => formatTimeString(text) },
]
},
......
......@@ -60,7 +60,7 @@ export const useSelfTable = () => {
align: 'left',
dataIndex: 'isWin',
key: 'isWin',
render: (text) => text ? '是' : '否'
render: (t, r) => (t === true) ? '是' : (t===false?'否': t)
},
{
title: '外部状态',
......
......@@ -25,10 +25,10 @@ const TenderSearchDetail: React.FC = () => {
{ title: '流转记录', id: 'transferRecord', componentName: "BidTransformRecord" },
]
// // 没有完成的标 隐藏中标结果、中标明细
// if(data?.inviteTender?.inviteTenderOutStatus !== BidOuterWorkState.Finish_Invite_Tender) {
// anchorTitleList.splice(1, 2)
// }
// 没有完成的标 隐藏中标结果、中标明细
if(data?.isWin === null) {
anchorTitleList.splice(1, 2)
}
return (
<div>
......
......@@ -72,7 +72,7 @@ export const useSelfTable = () => {
align: 'left',
dataIndex: 'isWin',
key: 'isWin',
render: (t, r) => t ? '是' : '否'
render: (t, r) => (t === true) ? '是' : (t===false?'否': t)
},
{
title: '外部状态',
......
......@@ -58,6 +58,7 @@ const ContractModalTable:React.FC<ContractModalTableProps> = (props) => {
schemaAction.setFieldValue('sourceType', item.sourceType)
schemaAction.setFieldValue('purchaseType', 1)
const { data } = await fetchOrderApi.getContractPurchaseMaterielList({
shopId: schemaAction.getFieldValue('shopId'),
contractId: item.id,
current: 1,
pageSize: 999,
......
......@@ -417,6 +417,9 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => {
// 选择合同
const handleOrderContract = () => {
if(!addSchemaAction.getFieldValue('shopId')) {
return message.error('请先选择适应商城')
}
contractOrderRef.current.setVisible(true)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment