Commit ab495bbc authored by Bill's avatar Bill

Merge branch 'dev-srm' of 10.0.0.22:lingxi/lingxi-business-paltform into dev-srm

parents 2aa29621 d7bc10f3
...@@ -125,23 +125,27 @@ const AddInfo = (props: any) => { ...@@ -125,23 +125,27 @@ const AddInfo = (props: any) => {
/* 查询银行卡新 */ /* 查询银行卡新 */
const getAmountOrder = (selectRow) => { const getAmountOrder = (selectRow) => {
PublicApi.getContractManageGetContractInfoByApplyAmountOrder({ contractId: selectRow.id }).then(res => { PublicApi.getContractManageGetContractInfoByApplyAmountOrder({ contractId: selectRow.id }).then(res => {
const basicsData = basics;
const info = Info;
if (res.code == 1000) { if (res.code == 1000) {
const expectPayTime = new Date(res.data.payPlanList[0].expectPayTime).getTime(); if (res.data.payPlanList.length != 0) {
const basicsData = basics; const expectPayTime = new Date(res.data.payPlanList[0].expectPayTime).getTime();
const info = Info; basicsData.payPlanId = res.data.payPlanList[0].id;
basicsData.payeeName = res.data.corporateAccountConfig.name; basicsData.payRatio = res.data.payPlanList[0].payRatio;
basicsData.bankAccount = res.data.corporateAccountConfig.bankAccount; basicsData.expectPayTime = moment(expectPayTime);
basicsData.bankDeposit = res.data.corporateAccountConfig.bankDeposit; basicsData.payWay = res.data.payPlanList[0].payWay;
basicsData.payPlanId = res.data.payPlanList[0].id; basicsData.payParam = res.data.payPlanList[0].payParam;
basicsData.payRatio = res.data.payPlanList[0].payRatio; basicsData.applyAmount = res.data.payPlanList[0].payAmount;
basicsData.expectPayTime = moment(expectPayTime), setapplyAmount(res.data.payPlanList[0].payAmount)
basicsData.payWay = res.data.payPlanList[0].payWay }
basicsData.contractNo = selectRow.contractNo; basicsData.contractNo = selectRow.contractNo;
basicsData.contractId = selectRow.id; basicsData.contractId = selectRow.id;
basicsData.payParam = res.data.payPlanList[0].payParam
info.startTime = selectRow.startTime; info.startTime = selectRow.startTime;
basicsData.applyAmount = res.data.payPlanList[0].payAmount; basicsData.payeeName = res.data.corporateAccountConfig.name;
setapplyAmount(res.data.payPlanList[0].payAmount) basicsData.bankAccount = res.data.corporateAccountConfig.bankAccount;
basicsData.bankDeposit = res.data.corporateAccountConfig.bankDeposit;
info.status = "同意签订合同"; info.status = "同意签订合同";
setpayPlanList(res.data.payPlanList) setpayPlanList(res.data.payPlanList)
setInfo(info) setInfo(info)
...@@ -447,10 +451,10 @@ const AddInfo = (props: any) => { ...@@ -447,10 +451,10 @@ const AddInfo = (props: any) => {
> >
<Button onClick={() => setvisible(!visible)} style={{ marginRight: 8 }}> <Button onClick={() => setvisible(!visible)} style={{ marginRight: 8 }}>
取消 取消
</Button> </Button>
<Button type="primary" onClick={() => Confirm()} > <Button type="primary" onClick={() => Confirm()} >
确定 确定
</Button> </Button>
</div> </div>
} }
destroyOnClose destroyOnClose
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: XieZhiXiong * @Author: XieZhiXiong
* @Date: 2021-05-25 18:02:45 * @Date: 2021-05-25 18:02:45
* @LastEditors: XieZhiXiong * @LastEditors: XieZhiXiong
* @LastEditTime: 2021-06-15 16:29:16 * @LastEditTime: 2021-06-18 09:50:34
* @Description: 待审核入库(一级)详情 * @Description: 待审核入库(一级)详情
*/ */
import React, { useState, useEffect } from 'react'; import React, { useState, useEffect } from 'react';
...@@ -108,8 +108,8 @@ const MemberPrVerifyComing1Detail: React.FC<{}> = () => { ...@@ -108,8 +108,8 @@ const MemberPrVerifyComing1Detail: React.FC<{}> = () => {
), ),
( (
memberInfo memberInfo
&& memberInfo.classfication && memberInfo.classification
&& memberInfo.classfication.code && memberInfo.classification.code
? { ? {
key: 'classifyInfo', key: 'classifyInfo',
name: '分类信息', name: '分类信息',
...@@ -238,10 +238,10 @@ const MemberPrVerifyComing1Detail: React.FC<{}> = () => { ...@@ -238,10 +238,10 @@ const MemberPrVerifyComing1Detail: React.FC<{}> = () => {
) : null} ) : null}
{/* 分类信息 */} {/* 分类信息 */}
{memberInfo && memberInfo.classfication && memberInfo.classfication.code ? ( {memberInfo && memberInfo.classification && memberInfo.classification.code ? (
<Col span={24}> <Col span={24}>
<MemberDocCategory <MemberDocCategory
dataSource={memberInfo?.classfication} dataSource={memberInfo?.classification}
id="classifyInfo" id="classifyInfo"
/> />
</Col> </Col>
......
...@@ -141,8 +141,8 @@ const MemberPrVerifyComing1Verify: React.FC<{}> = () => { ...@@ -141,8 +141,8 @@ const MemberPrVerifyComing1Verify: React.FC<{}> = () => {
), ),
( (
memberInfo memberInfo
&& memberInfo.classfication && memberInfo.classification
&& memberInfo.classfication.code && memberInfo.classification.code
? { ? {
key: 'classifyInfo', key: 'classifyInfo',
name: '分类信息', name: '分类信息',
...@@ -280,10 +280,10 @@ const MemberPrVerifyComing1Verify: React.FC<{}> = () => { ...@@ -280,10 +280,10 @@ const MemberPrVerifyComing1Verify: React.FC<{}> = () => {
) : null} ) : null}
{/* 分类信息 */} {/* 分类信息 */}
{memberInfo && memberInfo.classfication && memberInfo.classfication.code ? ( {memberInfo && memberInfo.classification && memberInfo.classification.code ? (
<Col span={24}> <Col span={24}>
<MemberDocCategory <MemberDocCategory
dataSource={memberInfo?.classfication} dataSource={memberInfo?.classification}
id="classifyInfo" id="classifyInfo"
/> />
</Col> </Col>
......
...@@ -108,8 +108,8 @@ const MemberPrVerifyComing2Detail: React.FC<{}> = () => { ...@@ -108,8 +108,8 @@ const MemberPrVerifyComing2Detail: React.FC<{}> = () => {
), ),
( (
memberInfo memberInfo
&& memberInfo.classfication && memberInfo.classification
&& memberInfo.classfication.code && memberInfo.classification.code
? { ? {
key: 'classifyInfo', key: 'classifyInfo',
name: '分类信息', name: '分类信息',
...@@ -238,10 +238,10 @@ const MemberPrVerifyComing2Detail: React.FC<{}> = () => { ...@@ -238,10 +238,10 @@ const MemberPrVerifyComing2Detail: React.FC<{}> = () => {
) : null} ) : null}
{/* 分类信息 */} {/* 分类信息 */}
{memberInfo && memberInfo.classfication && memberInfo.classfication.code ? ( {memberInfo && memberInfo.classification && memberInfo.classification.code ? (
<Col span={24}> <Col span={24}>
<MemberDocCategory <MemberDocCategory
dataSource={memberInfo?.classfication} dataSource={memberInfo?.classification}
id="classifyInfo" id="classifyInfo"
/> />
</Col> </Col>
......
...@@ -141,8 +141,8 @@ const MemberPrVerifyComing2Verify: React.FC<{}> = () => { ...@@ -141,8 +141,8 @@ const MemberPrVerifyComing2Verify: React.FC<{}> = () => {
), ),
( (
memberInfo memberInfo
&& memberInfo.classfication && memberInfo.classification
&& memberInfo.classfication.code && memberInfo.classification.code
? { ? {
key: 'classifyInfo', key: 'classifyInfo',
name: '分类信息', name: '分类信息',
...@@ -280,10 +280,10 @@ const MemberPrVerifyComing2Verify: React.FC<{}> = () => { ...@@ -280,10 +280,10 @@ const MemberPrVerifyComing2Verify: React.FC<{}> = () => {
) : null} ) : null}
{/* 分类信息 */} {/* 分类信息 */}
{memberInfo && memberInfo.classfication && memberInfo.classfication.code ? ( {memberInfo && memberInfo.classification && memberInfo.classification.code ? (
<Col span={24}> <Col span={24}>
<MemberDocCategory <MemberDocCategory
dataSource={memberInfo?.classfication} dataSource={memberInfo?.classification}
id="classifyInfo" id="classifyInfo"
/> />
</Col> </Col>
......
...@@ -108,8 +108,8 @@ const MemberPrVerifyComingConfirmDetail: React.FC<{}> = () => { ...@@ -108,8 +108,8 @@ const MemberPrVerifyComingConfirmDetail: React.FC<{}> = () => {
), ),
( (
memberInfo memberInfo
&& memberInfo.classfication && memberInfo.classification
&& memberInfo.classfication.code && memberInfo.classification.code
? { ? {
key: 'classifyInfo', key: 'classifyInfo',
name: '分类信息', name: '分类信息',
...@@ -238,10 +238,10 @@ const MemberPrVerifyComingConfirmDetail: React.FC<{}> = () => { ...@@ -238,10 +238,10 @@ const MemberPrVerifyComingConfirmDetail: React.FC<{}> = () => {
) : null} ) : null}
{/* 分类信息 */} {/* 分类信息 */}
{memberInfo && memberInfo.classfication && memberInfo.classfication.code ? ( {memberInfo && memberInfo.classification && memberInfo.classification.code ? (
<Col span={24}> <Col span={24}>
<MemberDocCategory <MemberDocCategory
dataSource={memberInfo?.classfication} dataSource={memberInfo?.classification}
id="classifyInfo" id="classifyInfo"
/> />
</Col> </Col>
......
...@@ -141,8 +141,8 @@ const MemberPrVerifyComingConfirmVerify: React.FC<{}> = () => { ...@@ -141,8 +141,8 @@ const MemberPrVerifyComingConfirmVerify: React.FC<{}> = () => {
), ),
( (
memberInfo memberInfo
&& memberInfo.classfication && memberInfo.classification
&& memberInfo.classfication.code && memberInfo.classification.code
? { ? {
key: 'classifyInfo', key: 'classifyInfo',
name: '分类信息', name: '分类信息',
...@@ -280,10 +280,10 @@ const MemberPrVerifyComingConfirmVerify: React.FC<{}> = () => { ...@@ -280,10 +280,10 @@ const MemberPrVerifyComingConfirmVerify: React.FC<{}> = () => {
) : null} ) : null}
{/* 分类信息 */} {/* 分类信息 */}
{memberInfo && memberInfo.classfication && memberInfo.classfication.code ? ( {memberInfo && memberInfo.classification && memberInfo.classification.code ? (
<Col span={24}> <Col span={24}>
<MemberDocCategory <MemberDocCategory
dataSource={memberInfo?.classfication} dataSource={memberInfo?.classification}
id="classifyInfo" id="classifyInfo"
/> />
</Col> </Col>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: XieZhiXiong * @Author: XieZhiXiong
* @Date: 2021-05-24 16:46:22 * @Date: 2021-05-24 16:46:22
* @LastEditors: XieZhiXiong * @LastEditors: XieZhiXiong
* @LastEditTime: 2021-05-24 17:09:06 * @LastEditTime: 2021-06-18 09:51:05
* @Description: 待审核入库资料详情 * @Description: 待审核入库资料详情
*/ */
import React, { useState, useEffect } from 'react'; import React, { useState, useEffect } from 'react';
......
...@@ -18,7 +18,6 @@ export interface BidTransformRecordProps { ...@@ -18,7 +18,6 @@ export interface BidTransformRecordProps {
const BidTransformRecord:React.FC<BidTransformRecordProps> = ({cardTitle}) => { const BidTransformRecord:React.FC<BidTransformRecordProps> = ({cardTitle}) => {
const { data, externalProcurementOrderLogResponses, interiorProcurementOrderLogResponses, apiType } = useContext(BidDetailContext) const { data, externalProcurementOrderLogResponses, interiorProcurementOrderLogResponses, apiType } = useContext(BidDetailContext)
// 根据模式选择对应的状态映射 // 根据模式选择对应的状态映射
const insideModel = apiType.indexOf('ender') !== -1 ? 'tenderInside' : 'inside'; const insideModel = apiType.indexOf('ender') !== -1 ? 'tenderInside' : 'inside';
...@@ -143,7 +142,7 @@ const BidTransformRecord:React.FC<BidTransformRecordProps> = ({cardTitle}) => { ...@@ -143,7 +142,7 @@ const BidTransformRecord:React.FC<BidTransformRecordProps> = ({cardTitle}) => {
extra={ extra={
<Radio.Group value={transferRadio} buttonStyle="solid" size="small" onChange={handleChangeType}> <Radio.Group value={transferRadio} buttonStyle="solid" size="small" onChange={handleChangeType}>
{externalProcurementOrderLogResponses?.length ? <Radio.Button value={TransferEnum.Outer}>外部流转</Radio.Button> : null} {externalProcurementOrderLogResponses?.length ? <Radio.Button value={TransferEnum.Outer}>外部流转</Radio.Button> : null}
{interiorProcurementOrderLogResponses?.length ? <Radio.Button value={TransferEnum.Interior}>内部流转</Radio.Button> : null} {interiorProcurementOrderLogResponses?.length && apiType!=='tenderInCallForBid' && apiType!=='callForBidInTender' ? <Radio.Button value={TransferEnum.Interior}>内部流转</Radio.Button> : null}
</Radio.Group> </Radio.Group>
} }
className={style.cardWrap} className={style.cardWrap}
......
...@@ -74,6 +74,10 @@ const OrderMergeInfo: React.FC<OrderMergeInfoProps> = (props) => { ...@@ -74,6 +74,10 @@ const OrderMergeInfo: React.FC<OrderMergeInfoProps> = (props) => {
{ title: '其他要求:', name: 'restsRequire' }, { title: '其他要求:', name: 'restsRequire' },
] ]
if(data.orderModel > 30) {
otherInfo.shift()
}
return ( return (
<> <>
<Row style={{ marginTop: 24 }} gutter={24}> <Row style={{ marginTop: 24 }} gutter={24}>
......
...@@ -258,7 +258,7 @@ const OrderPayModal: React.FC<OrderPayModalProps> = (props) => { ...@@ -258,7 +258,7 @@ const OrderPayModal: React.FC<OrderPayModalProps> = (props) => {
setPayStep(1) setPayStep(1)
} }
else { else {
message.error('暂只支持线下支付、授信额度支付、余额支付、货到付款、微信支付方式') message.error('暂只支持线下支付、授信额度支付、余额支付、货到付款、微信、账期月结支付方式')
} }
} else { } else {
message.error('请先选择支付方式') message.error('请先选择支付方式')
......
import React, { useContext, useRef } from 'react'; import React, { useContext, useRef } from 'react';
import { Row, Col, Image, Tag, Tooltip, Switch, Typography } from 'antd'; import { Row, Col, Image, Tag, Tooltip, Switch, Typography } from 'antd';
import { StandardTable } from 'god'; import { StandardTable } from 'god';
import { QuestionCircleOutlined } from '@ant-design/icons';
import StatusTag from '@/components/StatusTag';
import Card from '../../../card'; import Card from '../../../card';
import { Context } from '../context'; import { Context } from '../context';
import style from './index.less'; import style from './index.less';
import { QuestionCircleOutlined } from '@ant-design/icons';
const TYPE = { const TYPE = {
1: '发布至平台', 1: '发布至平台',
...@@ -70,7 +72,7 @@ const DemandLayout: React.FC<DemandLayoutIProps> = (props: any) => { ...@@ -70,7 +72,7 @@ const DemandLayout: React.FC<DemandLayoutIProps> = (props: any) => {
title: '是否归属会员', title: '是否归属会员',
key: 'membershipOrNot', key: 'membershipOrNot',
dataIndex: 'membershipOrNot', dataIndex: 'membershipOrNot',
render: (text: any) => (<Tag color={text ? 'success' : 'error'}>{text ? '是' : '否'}</Tag>) render: (text: any) => (<StatusTag type={text ? 'success' : 'danger'} title={text ? '是' : '否'} />)
}, },
{ {
title: ( title: (
......
/** 详情通用 - 流转进度 */ /** 详情通用 - 流转进度 */
import React, { useContext, useState, useMemo } from 'react'; import React, { useContext, useState, useMemo } from 'react';
import { Radio, Table, Typography, Tag } from 'antd'; import { Radio, Table, Typography } from 'antd';
const { Text } = Typography; const { Text } = Typography;
import StatusTag from '@/components/StatusTag';
import { formatTimeString } from '@/utils' import { formatTimeString } from '@/utils'
...@@ -44,7 +46,7 @@ const RecordLayout: React.FC<ProgressProps> = (props: any) => { ...@@ -44,7 +46,7 @@ const RecordLayout: React.FC<ProgressProps> = (props: any) => {
title: '状态', title: '状态',
key: 'state', key: 'state',
dataIndex: 'state', dataIndex: 'state',
render: (_text: any, _record: any) => <Tag color={externalColors(_text)}>{_record.stateName}</Tag> render: (_text: any, _record: any) => <StatusTag type={externalColors(_text)} title={_record.stateName} />
}, },
{ {
title: '操作', title: '操作',
...@@ -93,7 +95,7 @@ const RecordLayout: React.FC<ProgressProps> = (props: any) => { ...@@ -93,7 +95,7 @@ const RecordLayout: React.FC<ProgressProps> = (props: any) => {
title: '状态', title: '状态',
key: 'state', key: 'state',
dataIndex: 'state', dataIndex: 'state',
render: (_text: any, _record: any) => <Tag color={internalColors(_text)}>{_record.stateName}</Tag> render: (_text: any, _record: any) => <StatusTag type={internalColors(_text) === 'processing' ? 'primary' : (internalColors(_text) === 'error' ? 'danger' : internalColors(_text))} title={_record.stateName} />
}, },
{ {
title: '操作', title: '操作',
......
...@@ -4,13 +4,13 @@ export const BID_EXTERNALSTATE_COLOR = (text) => { ...@@ -4,13 +4,13 @@ export const BID_EXTERNALSTATE_COLOR = (text) => {
case -1: case -1:
case 7: case 7:
case 8: case 8:
return 'error'; return 'danger';
case 2: case 2:
case 3: case 3:
case 4: case 4:
return 'warning'; return 'warning';
case 6: case 6:
return 'processing'; return 'primary';
case 99: case 99:
return 'success'; return 'success';
default: default:
......
import React, { Fragment, useEffect, useState } from 'react'; import React, { Fragment, useEffect, useState } from 'react';
import { Tag, Badge, Button } from 'antd'; import { Badge, Button } from 'antd';
import { history } from 'umi'; import { history } from 'umi';
import { PublicApi } from '@/services/api'; import { PublicApi } from '@/services/api';
import { formatTimeString } from '@/utils' import { formatTimeString } from '@/utils'
import { priceFormat } from '@/utils/numberFomat'; import { priceFormat } from '@/utils/numberFomat';
import StatusTag from '@/components/StatusTag';
import { Context } from '../../components/detail/components/context'; import { Context } from '../../components/detail/components/context';
import PeripheralLayout from '../../components/detail'; import PeripheralLayout from '../../components/detail';
...@@ -89,7 +90,7 @@ const SearchDetail = () => { ...@@ -89,7 +90,7 @@ const SearchDetail = () => {
col: [ col: [
{ label: '竞价编号', extra: data.biddingNo, type: 'text' }, { label: '竞价编号', extra: data.biddingNo, type: 'text' },
{ label: '竞价摘要', extra: data.details, type: 'text' }, { label: '竞价摘要', extra: data.details, type: 'text' },
{ label: '外部状态', extra: <Tag color={BID_EXTERNALSTATE_COLOR(data.externalState)}>{data.externalStateName}</Tag>, type: 'text' }, { label: '外部状态', extra: <StatusTag type={BID_EXTERNALSTATE_COLOR(data.externalState)} title={data.externalStateName} />, type: 'text' },
{ label: '内部状态', extra: <Badge status={BID_INTERNALSTATE_COLOR(data.interiorState)} text={data.interiorStateName} />, type: 'text' }, { label: '内部状态', extra: <Badge status={BID_INTERNALSTATE_COLOR(data.interiorState)} text={data.interiorStateName} />, type: 'text' },
] ]
}, },
......
import React, { useRef, useState } from 'react'; import React, { useRef, useState } from 'react';
import { history } from 'umi'; import { history } from 'umi';
import { Button, Tag, Badge, Typography, Space } from 'antd'; import { Button, Badge, Typography, Space } from 'antd';
import { ColumnType } from 'antd/lib/table/interface'; import { ColumnType } from 'antd/lib/table/interface';
import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons' import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons';
import moment from 'moment';
import { formatTimeString } from '@/utils' import { formatTimeString } from '@/utils'
import EyePreview from '@/components/EyePreview'; import EyePreview from '@/components/EyePreview';
import StatusTag from '@/components/StatusTag';
import { PublicApi } from '@/services/api'; import { PublicApi } from '@/services/api';
import Table from '../../components/table' import Table from '../../components/table'
...@@ -69,7 +69,7 @@ const ReadyBid = () => { ...@@ -69,7 +69,7 @@ const ReadyBid = () => {
title: '外部状态', title: '外部状态',
key: 'externalState', key: 'externalState',
dataIndex: 'externalState', dataIndex: 'externalState',
render: (text: any, record: any) => <Tag color={BID_EXTERNALSTATE_COLOR(text)}>{record.externalStateName}</Tag> render: (text: any, record: any) => <StatusTag type={BID_EXTERNALSTATE_COLOR(text)} title={record.externalStateName} />
}, { }, {
title: '内部状态', title: '内部状态',
key: 'interiorState', key: 'interiorState',
......
import React, { useRef, useState } from 'react'; import React, { useRef, useState } from 'react';
import { history } from 'umi'; import { history } from 'umi';
import { Button, Tag, Badge, Typography, Space } from 'antd'; import { Button, Badge, Typography, Space } from 'antd';
import { ColumnType } from 'antd/lib/table/interface'; import { ColumnType } from 'antd/lib/table/interface';
import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons' import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons'
import moment from 'moment';
import { formatTimeString } from '@/utils' import { formatTimeString } from '@/utils'
import EyePreview from '@/components/EyePreview'; import EyePreview from '@/components/EyePreview';
import StatusTag from '@/components/StatusTag';
import { PublicApi } from '@/services/api'; import { PublicApi } from '@/services/api';
import Table from '../../components/table' import Table from '../../components/table'
...@@ -68,7 +68,7 @@ const ReadySignUp = () => { ...@@ -68,7 +68,7 @@ const ReadySignUp = () => {
title: '外部状态', title: '外部状态',
key: 'externalState', key: 'externalState',
dataIndex: 'externalState', dataIndex: 'externalState',
render: (text: any, record: any) => <Tag color={BID_EXTERNALSTATE_COLOR(text)}>{record.externalStateName}</Tag> render: (text: any, record: any) => <StatusTag type={BID_EXTERNALSTATE_COLOR(text)} title={record.externalStateName} />
}, { }, {
title: '内部状态', title: '内部状态',
key: 'interiorState', key: 'interiorState',
......
import React, { useRef } from 'react'; import React, { useRef } from 'react';
import { Tag, Badge, Typography, Space } from 'antd'; import { Badge, Typography, Space } from 'antd';
import { ColumnType } from 'antd/lib/table/interface'; import { ColumnType } from 'antd/lib/table/interface';
import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons' import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons'
import { formatTimeString } from '@/utils' import { formatTimeString } from '@/utils'
import EyePreview from '@/components/EyePreview'; import EyePreview from '@/components/EyePreview';
import StatusTag from '@/components/StatusTag';
import { PublicApi } from '@/services/api'; import { PublicApi } from '@/services/api';
import Table from '../../components/table' import Table from '../../components/table'
...@@ -63,14 +64,14 @@ const Search = () => { ...@@ -63,14 +64,14 @@ const Search = () => {
key: 'isPrize', key: 'isPrize',
dataIndex: 'isPrize', dataIndex: 'isPrize',
render: (text: any, record: any) => <> render: (text: any, record: any) => <>
{(text !== 1 && text !== 0) ? null : <Tag color={text ? 'success' : 'warning'}>{text ? '是' : '否'}</Tag> } {(text !== 1 && text !== 0) ? null : <StatusTag type={text ? 'success' : 'danger'} title={text ? '是' : '否'} />}
</>, </>,
width: 180 width: 180
}, { }, {
title: '外部状态', title: '外部状态',
key: 'externalState', key: 'externalState',
dataIndex: 'externalState', dataIndex: 'externalState',
render: (text: any, record: any) => <Tag color={BID_EXTERNALSTATE_COLOR(text)}>{record.externalStateName}</Tag> render: (text: any, record: any) => <StatusTag type={BID_EXTERNALSTATE_COLOR(text)} title={record.externalStateName} />
}, { }, {
title: '内部状态', title: '内部状态',
key: 'interiorState', key: 'interiorState',
......
import React, { Fragment, useEffect, useState, useMemo } from 'react'; import React, { Fragment, useEffect, useState, useMemo } from 'react';
import { Tag, Badge, Popconfirm, Button } from 'antd'; import { Badge, Popconfirm, Button } from 'antd';
import { history } from 'umi'; import { history } from 'umi';
import { CheckCircleOutlined } from '@ant-design/icons'; import { CheckCircleOutlined } from '@ant-design/icons';
...@@ -7,6 +7,7 @@ import { PublicApi } from '@/services/api'; ...@@ -7,6 +7,7 @@ import { PublicApi } from '@/services/api';
import { GlobalConfig } from '@/global/config' import { GlobalConfig } from '@/global/config'
import { formatTimeString } from '@/utils' import { formatTimeString } from '@/utils'
import { priceFormat } from '@/utils/numberFomat'; import { priceFormat } from '@/utils/numberFomat';
import StatusTag from '@/components/StatusTag';
import { Context } from '../../components/detail/components/context'; import { Context } from '../../components/detail/components/context';
import PeripheralLayout from '../../components/detail'; import PeripheralLayout from '../../components/detail';
...@@ -119,7 +120,7 @@ const SearchDetail = () => { ...@@ -119,7 +120,7 @@ const SearchDetail = () => {
col: [ col: [
{ label: '竞价编号', extra: data.biddingNo, type: 'text' }, { label: '竞价编号', extra: data.biddingNo, type: 'text' },
{ label: '竞价摘要', extra: data.details, type: 'text' }, { label: '竞价摘要', extra: data.details, type: 'text' },
{ label: '外部状态', extra: <Tag color={BID_EXTERNALSTATE_COLOR(data.externalState)}>{data.externalStateName}</Tag>, type: 'text' }, { label: '外部状态', extra: <StatusTag type={BID_EXTERNALSTATE_COLOR(data.externalState)} title={data.externalStateName} />, type: 'text' },
{ label: '内部状态', extra: <Badge status={BID_INTERNALSTATE_COLOR(data.interiorState)} text={data.interiorStateName} />, type: 'text' }, { label: '内部状态', extra: <Badge status={BID_INTERNALSTATE_COLOR(data.interiorState)} text={data.interiorStateName} />, type: 'text' },
] ]
}, },
......
import React, { useRef, useState } from 'react'; import React, { useRef, useState } from 'react';
import { history } from 'umi'; import { history } from 'umi';
import { ColumnType } from 'antd/lib/table/interface'; import { ColumnType } from 'antd/lib/table/interface';
import { Row, Col, Space, Button, Typography, Popconfirm, Badge, Tag, Menu, Dropdown } from 'antd'; import { Row, Col, Space, Button, Typography, Popconfirm, Badge, Menu, Dropdown } from 'antd';
import { PlusOutlined, PlayCircleOutlined, PoweroffOutlined, CaretDownOutlined } from '@ant-design/icons'; import { PlusOutlined, PlayCircleOutlined, PoweroffOutlined, CaretDownOutlined } from '@ant-design/icons';
import { formatTimeString } from '@/utils' import { formatTimeString } from '@/utils'
import EyePreview from '@/components/EyePreview'; import EyePreview from '@/components/EyePreview';
import StatusTag from '@/components/StatusTag';
import { PublicApi } from '@/services/api'; import { PublicApi } from '@/services/api';
import Table from '../../components/table' import Table from '../../components/table'
...@@ -51,7 +52,7 @@ const ReadyAdd = () => { ...@@ -51,7 +52,7 @@ const ReadyAdd = () => {
title: '外部状态', title: '外部状态',
key: 'externalState', key: 'externalState',
dataIndex: 'externalState', dataIndex: 'externalState',
render: (text: any, record: any) => <Tag color={BID_EXTERNALSTATE_COLOR(text)}>{record.externalStateName}</Tag> render: (text: any, record: any) => <StatusTag type={BID_EXTERNALSTATE_COLOR(text)} title={record.externalStateName} />
}, { }, {
title: '内部状态', title: '内部状态',
key: 'interiorState', key: 'interiorState',
......
import React, { useRef } from 'react'; import React, { useRef } from 'react';
import { history } from 'umi'; import { history } from 'umi';
import { ColumnType } from 'antd/lib/table/interface'; import { ColumnType } from 'antd/lib/table/interface';
import { Space, Button, Typography, Badge, Tag } from 'antd'; import { Space, Button, Typography, Badge } from 'antd';
import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons'; import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons';
import EyePreview from '@/components/EyePreview'; import EyePreview from '@/components/EyePreview';
import StatusTag from '@/components/StatusTag';
import { PublicApi } from '@/services/api'; import { PublicApi } from '@/services/api';
import { formatTimeString } from '@/utils' import { formatTimeString } from '@/utils'
...@@ -55,7 +56,7 @@ const ReadyBid = () => { ...@@ -55,7 +56,7 @@ const ReadyBid = () => {
title: '外部状态', title: '外部状态',
key: 'externalState', key: 'externalState',
dataIndex: 'externalState', dataIndex: 'externalState',
render: (text: any, record: any) => <Tag color={BID_EXTERNALSTATE_COLOR(text)}>{record.externalStateName}</Tag> render: (text: any, record: any) => <StatusTag type={BID_EXTERNALSTATE_COLOR(text)} title={record.externalStateName} />
}, { }, {
title: '内部状态', title: '内部状态',
key: 'interiorState', key: 'interiorState',
......
import React, { useRef, useState } from 'react'; import React, { useRef, useState } from 'react';
import { ColumnType } from 'antd/lib/table/interface'; import { ColumnType } from 'antd/lib/table/interface';
import { Space, Button, Typography, Badge, Tag } from 'antd'; import { Space, Button, Typography, Badge } from 'antd';
import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons'; import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons';
import EyePreview from '@/components/EyePreview'; import EyePreview from '@/components/EyePreview';
import StatusTag from '@/components/StatusTag';
import { PublicApi } from '@/services/api'; import { PublicApi } from '@/services/api';
import { formatTimeString } from '@/utils' import { formatTimeString } from '@/utils'
...@@ -65,7 +66,7 @@ const ReadyConfirm = () => { ...@@ -65,7 +66,7 @@ const ReadyConfirm = () => {
title: '外部状态', title: '外部状态',
key: 'externalState', key: 'externalState',
dataIndex: 'externalState', dataIndex: 'externalState',
render: (text: any, record: any) => <Tag color={BID_EXTERNALSTATE_COLOR(text)}>{record.externalStateName}</Tag> render: (text: any, record: any) => <StatusTag type={BID_EXTERNALSTATE_COLOR(text)} title={record.externalStateName} />
}, { }, {
title: '内部状态', title: '内部状态',
key: 'interiorState', key: 'interiorState',
......
import React, { useRef, useState } from 'react'; import React, { useRef, useState } from 'react';
import { ColumnType } from 'antd/lib/table/interface'; import { ColumnType } from 'antd/lib/table/interface';
import { Row, Col, Space, Button, Typography, Badge, Tag } from 'antd'; import { Row, Col, Space, Button, Typography, Badge } from 'antd';
import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons'; import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons';
import EyePreview from '@/components/EyePreview'; import EyePreview from '@/components/EyePreview';
import StatusTag from '@/components/StatusTag';
import { PublicApi } from '@/services/api'; import { PublicApi } from '@/services/api';
import { formatTimeString } from '@/utils' import { formatTimeString } from '@/utils'
...@@ -54,7 +55,7 @@ const ReadyExamineOne = () => { ...@@ -54,7 +55,7 @@ const ReadyExamineOne = () => {
title: '外部状态', title: '外部状态',
key: 'externalState', key: 'externalState',
dataIndex: 'externalState', dataIndex: 'externalState',
render: (text: any, record: any) => <Tag color={BID_EXTERNALSTATE_COLOR(text)}>{record.externalStateName}</Tag> render: (text: any, record: any) => <StatusTag type={BID_EXTERNALSTATE_COLOR(text)} title={record.externalStateName} />
}, { }, {
title: '内部状态', title: '内部状态',
key: 'interiorState', key: 'interiorState',
......
import React, { useRef, useState } from 'react'; import React, { useRef, useState } from 'react';
import { ColumnType } from 'antd/lib/table/interface'; import { ColumnType } from 'antd/lib/table/interface';
import { Row, Col, Space, Button, Typography, Badge, Tag } from 'antd'; import { Row, Col, Space, Button, Typography, Badge } from 'antd';
import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons'; import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons';
import EyePreview from '@/components/EyePreview'; import EyePreview from '@/components/EyePreview';
import StatusTag from '@/components/StatusTag';
import { PublicApi } from '@/services/api'; import { PublicApi } from '@/services/api';
import { formatTimeString } from '@/utils' import { formatTimeString } from '@/utils'
...@@ -59,7 +60,7 @@ const ReadyExamineResultOne = () => { ...@@ -59,7 +60,7 @@ const ReadyExamineResultOne = () => {
title: '外部状态', title: '外部状态',
key: 'externalState', key: 'externalState',
dataIndex: 'externalState', dataIndex: 'externalState',
render: (text: any, record: any) => <Tag color={BID_EXTERNALSTATE_COLOR(text)}>{record.externalStateName}</Tag> render: (text: any, record: any) => <StatusTag type={BID_EXTERNALSTATE_COLOR(text)} title={record.externalStateName} />
}, { }, {
title: '内部状态', title: '内部状态',
key: 'interiorState', key: 'interiorState',
......
import React, { useRef, useState } from 'react'; import React, { useRef, useState } from 'react';
import { ColumnType } from 'antd/lib/table/interface'; import { ColumnType } from 'antd/lib/table/interface';
import { Row, Col, Space, Button, Typography, Badge, Tag } from 'antd'; import { Row, Col, Space, Button, Typography, Badge } from 'antd';
import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons'; import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons';
import EyePreview from '@/components/EyePreview'; import EyePreview from '@/components/EyePreview';
import StatusTag from '@/components/StatusTag';
import { PublicApi } from '@/services/api'; import { PublicApi } from '@/services/api';
import { formatTimeString } from '@/utils' import { formatTimeString } from '@/utils'
...@@ -60,7 +61,7 @@ const ReadyExamineResultTwo = () => { ...@@ -60,7 +61,7 @@ const ReadyExamineResultTwo = () => {
title: '外部状态', title: '外部状态',
key: 'externalState', key: 'externalState',
dataIndex: 'externalState', dataIndex: 'externalState',
render: (text: any, record: any) => <Tag color={BID_EXTERNALSTATE_COLOR(text)}>{record.externalStateName}</Tag> render: (text: any, record: any) => <StatusTag type={BID_EXTERNALSTATE_COLOR(text)} title={record.externalStateName} />
}, { }, {
title: '内部状态', title: '内部状态',
key: 'interiorState', key: 'interiorState',
......
import React, { useRef, useState } from 'react'; import React, { useRef, useState } from 'react';
import { ColumnType } from 'antd/lib/table/interface'; import { ColumnType } from 'antd/lib/table/interface';
import { Space, Button, Typography, Badge, Tag } from 'antd'; import { Space, Button, Typography, Badge } from 'antd';
import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons'; import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons';
import EyePreview from '@/components/EyePreview'; import EyePreview from '@/components/EyePreview';
import StatusTag from '@/components/StatusTag';
import { PublicApi } from '@/services/api'; import { PublicApi } from '@/services/api';
import { formatTimeString } from '@/utils' import { formatTimeString } from '@/utils'
...@@ -67,7 +68,7 @@ const ReadyExamineSignUp = () => { ...@@ -67,7 +68,7 @@ const ReadyExamineSignUp = () => {
title: '外部状态', title: '外部状态',
key: 'externalState', key: 'externalState',
dataIndex: 'externalState', dataIndex: 'externalState',
render: (text: any, record: any) => <Tag color={BID_EXTERNALSTATE_COLOR(text)}>{record.externalStateName}</Tag> render: (text: any, record: any) => <StatusTag type={BID_EXTERNALSTATE_COLOR(text)} title={record.externalStateName} />
}, { }, {
title: '内部状态', title: '内部状态',
key: 'interiorState', key: 'interiorState',
......
import React, { useRef, useState } from 'react'; import React, { useRef, useState } from 'react';
import { ColumnType } from 'antd/lib/table/interface'; import { ColumnType } from 'antd/lib/table/interface';
import { Row, Col, Space, Button, Typography, Badge, Tag } from 'antd'; import { Row, Col, Space, Button, Typography, Badge } from 'antd';
import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons'; import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons';
import EyePreview from '@/components/EyePreview'; import EyePreview from '@/components/EyePreview';
import StatusTag from '@/components/StatusTag';
import { PublicApi } from '@/services/api'; import { PublicApi } from '@/services/api';
import { formatTimeString } from '@/utils' import { formatTimeString } from '@/utils'
...@@ -53,7 +54,7 @@ const ReadyExamineTwo = () => { ...@@ -53,7 +54,7 @@ const ReadyExamineTwo = () => {
title: '外部状态', title: '外部状态',
key: 'externalState', key: 'externalState',
dataIndex: 'externalState', dataIndex: 'externalState',
render: (text: any, record: any) => <Tag color={BID_EXTERNALSTATE_COLOR(text)}>{record.externalStateName}</Tag> render: (text: any, record: any) => <StatusTag type={BID_EXTERNALSTATE_COLOR(text)} title={record.externalStateName} />
}, { }, {
title: '内部状态', title: '内部状态',
key: 'interiorState', key: 'interiorState',
......
import React, { useRef, useState } from 'react'; import React, { useRef, useState } from 'react';
import { ColumnType } from 'antd/lib/table/interface'; import { ColumnType } from 'antd/lib/table/interface';
import { Row, Col, Space, Button, Typography, Badge, Tag } from 'antd'; import { Row, Col, Space, Button, Typography, Badge } from 'antd';
import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons'; import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons';
import EyePreview from '@/components/EyePreview'; import EyePreview from '@/components/EyePreview';
import StatusTag from '@/components/StatusTag';
import { PublicApi } from '@/services/api'; import { PublicApi } from '@/services/api';
import { formatTimeString } from '@/utils' import { formatTimeString } from '@/utils'
...@@ -53,7 +54,7 @@ const ReadySubmit = () => { ...@@ -53,7 +54,7 @@ const ReadySubmit = () => {
title: '外部状态', title: '外部状态',
key: 'externalState', key: 'externalState',
dataIndex: 'externalState', dataIndex: 'externalState',
render: (text: any, record: any) => <Tag color={BID_EXTERNALSTATE_COLOR(text)}>{record.externalStateName}</Tag> render: (text: any, record: any) => <StatusTag type={BID_EXTERNALSTATE_COLOR(text)} title={record.externalStateName} />
}, { }, {
title: '内部状态', title: '内部状态',
key: 'interiorState', key: 'interiorState',
......
import React, { useRef, useState } from 'react'; import React, { useRef, useState } from 'react';
import { ColumnType } from 'antd/lib/table/interface'; import { ColumnType } from 'antd/lib/table/interface';
import { Space, Button, Typography, Badge, Tag } from 'antd'; import { Space, Button, Typography, Badge } from 'antd';
import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons'; import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons';
import EyePreview from '@/components/EyePreview'; import EyePreview from '@/components/EyePreview';
import StatusTag from '@/components/StatusTag';
import { PublicApi } from '@/services/api'; import { PublicApi } from '@/services/api';
import { formatTimeString } from '@/utils' import { formatTimeString } from '@/utils'
...@@ -61,7 +62,7 @@ const ReadySubmitExamineResult = () => { ...@@ -61,7 +62,7 @@ const ReadySubmitExamineResult = () => {
title: '外部状态', title: '外部状态',
key: 'externalState', key: 'externalState',
dataIndex: 'externalState', dataIndex: 'externalState',
render: (text: any, record: any) => <Tag color={BID_EXTERNALSTATE_COLOR(text)}>{record.externalStateName}</Tag> render: (text: any, record: any) => <StatusTag type={BID_EXTERNALSTATE_COLOR(text)} title={record.externalStateName} />
}, { }, {
title: '内部状态', title: '内部状态',
key: 'interiorState', key: 'interiorState',
......
import React, { useRef, useState } from 'react'; import React, { useRef, useState } from 'react';
import { Button, Tag, Badge, Typography, Space } from 'antd'; import { Button, Badge, Typography, Space } from 'antd';
import { ColumnType } from 'antd/lib/table/interface'; import { ColumnType } from 'antd/lib/table/interface';
import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons' import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons'
import { formatTimeString } from '@/utils' import { formatTimeString } from '@/utils'
import EyePreview from '@/components/EyePreview'; import EyePreview from '@/components/EyePreview';
import StatusTag from '@/components/StatusTag';
import { PublicApi } from '@/services/api'; import { PublicApi } from '@/services/api';
import Table from '../../components/table' import Table from '../../components/table'
...@@ -57,7 +58,7 @@ const Search = () => { ...@@ -57,7 +58,7 @@ const Search = () => {
title: '外部状态', title: '外部状态',
key: 'externalState', key: 'externalState',
dataIndex: 'externalState', dataIndex: 'externalState',
render: (text: any, record: any) => <Tag color={BID_EXTERNALSTATE_COLOR(text)}>{record.externalStateName}</Tag> render: (text: any, record: any) => <StatusTag type={BID_EXTERNALSTATE_COLOR(text)} title={record.externalStateName} />
}, { }, {
title: '内部状态', title: '内部状态',
key: 'interiorState', key: 'interiorState',
......
...@@ -137,7 +137,8 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => { ...@@ -137,7 +137,8 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => {
const [formLoading, setFormLoading] = useState(false) const [formLoading, setFormLoading] = useState(false)
const [btnLoading, setBtnLoading] = useState(false) const [btnLoading, setBtnLoading] = useState(false)
const update = useUpdate() const update = useUpdate()
const [productSumPrice, setProductSumPrice] = useState<number>(0) // const [productSumPrice, setProductSumPrice] = useState<number>(0)
const productSumPriceRef = useRef<any>(0)
const { pageStatus, id, page_type = '0', modelType, spam_id, lastTypeParams } = usePageStatus() const { pageStatus, id, page_type = '0', modelType, spam_id, lastTypeParams } = usePageStatus()
const [initFormSchema, setInitFormSchema] = useState<any>(() => ({...mergeAllSchemas[page_type]})) const [initFormSchema, setInitFormSchema] = useState<any>(() => ({...mergeAllSchemas[page_type]}))
const [initFormValue, setInitFormValue] = useState<any>(() => { const [initFormValue, setInitFormValue] = useState<any>(() => {
...@@ -444,7 +445,7 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => { ...@@ -444,7 +445,7 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => {
forceEdit: col.forceEdit, forceEdit: col.forceEdit,
handleSave: paymentSave, handleSave: paymentSave,
handleChange: (record, value = 100) => { handleChange: (record, value = 100) => {
const payPrice = (value / 100 * productSumPrice).toFixed(2) const payPrice = (value / 100 * productSumPriceRef.current).toFixed(2)
const newData = [...addSchemaAction.getFieldValue('paymentInformationResponses')]; const newData = [...addSchemaAction.getFieldValue('paymentInformationResponses')];
const item = newData[index]; const item = newData[index];
newData.splice(index, 1, { newData.splice(index, 1, {
...@@ -460,8 +461,8 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => { ...@@ -460,8 +461,8 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => {
const providerValue = { const providerValue = {
detailData: initFormValue, detailData: initFormValue,
schemaActions: addSchemaAction, schemaActions: addSchemaAction,
productSumPrice, // productSumPrice,
setProductSumPrice // setProductSumPrice
} }
// 显示采购下单合同栏目 // 显示采购下单合同栏目
...@@ -559,7 +560,8 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => { ...@@ -559,7 +560,8 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => {
}) })
addSchemaAction.setFieldValue('paymentInformationResponses', newData) addSchemaAction.setFieldValue('paymentInformationResponses', newData)
} }
setProductSumPrice(payload) // setProductSumPrice(payload)
productSumPriceRef.current = payload
}) })
$('onFieldInputChange', 'orderModel').subscribe(state => { $('onFieldInputChange', 'orderModel').subscribe(state => {
const { editable, value } = state const { editable, value } = state
...@@ -590,6 +592,9 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => { ...@@ -590,6 +592,9 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => {
state.props.title = orderTypeLabelMap[value] state.props.title = orderTypeLabelMap[value]
state.visible = true state.visible = true
}) })
ctx.setFieldState('needTheInvoice', state => {
state.visible = false
})
showContractColumn() showContractColumn()
} else { } else {
ctx.setFieldState('quotationNo', state => { ctx.setFieldState('quotationNo', state => {
...@@ -654,24 +659,24 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => { ...@@ -654,24 +659,24 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => {
value === OrderModalType.PURCHASE_TENDER_CONTRACT_ORDER value === OrderModalType.PURCHASE_TENDER_CONTRACT_ORDER
) { ) {
// 判断合同下单 // 判断合同下单
setTimeout(() => { // setTimeout(() => {
addSchemaAction.setFieldState('orderProductRequests', productState => { addSchemaAction.setFieldState('orderProductRequests', productState => {
productState.props["x-component-props"] = { productState.props["x-component-props"] = {
...productState.props["x-component-props"], ...productState.props["x-component-props"],
prefix: editable ? materialAddButton : '', prefix: editable ? materialAddButton : '',
} }
}) })
}, 300) // }, 500)
showContractColumn() showContractColumn()
} else { } else {
setTimeout(() => { // setTimeout(() => {
addSchemaAction.setFieldState('orderProductRequests', productState => { addSchemaAction.setFieldState('orderProductRequests', productState => {
productState.props["x-component-props"] = { productState.props["x-component-props"] = {
...productState.props["x-component-props"], ...productState.props["x-component-props"],
prefix: '', prefix: '',
} }
}) })
}) // }, 500)
} }
// 选择某种类型时, 需显示对应的订单类型 // 选择某种类型时, 需显示对应的订单类型
ctx.setFieldValue('type', orderTypeLabelMap[value]) ctx.setFieldValue('type', orderTypeLabelMap[value])
......
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