Commit 46df50eb authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix: 对接新交易/采购流程配置

parent c8d80a89
...@@ -44,7 +44,7 @@ const RemarkBidReport: React.FC<RemarkBidReportProps> = ({cardTitle}) => { ...@@ -44,7 +44,7 @@ const RemarkBidReport: React.FC<RemarkBidReportProps> = ({cardTitle}) => {
tempObject.memberName = item.memberName tempObject.memberName = item.memberName
for(let j = 0; j < item.evaluationTenderList.length; j++) { for(let j = 0; j < item.evaluationTenderList.length; j++) {
let _item = item['evaluationTenderList'][j] let _item = item['evaluationTenderList'][j]
tempObject.expertExtractRecordId = _item['expertExtractRecord']['id'] tempObject.expertExtractRecordId = _item.expertExtractRecord?.id || _item['sort']
tempObject.score = _item['score'] tempObject.score = _item['score']
tempObject.sort = _item['sort'] tempObject.sort = _item['sort']
tempObject.standard = _item['standard'] tempObject.standard = _item['standard']
......
...@@ -44,7 +44,7 @@ const RemarkBidReport: React.FC<RemarkBidReportProps> = ({cardTitle}) => { ...@@ -44,7 +44,7 @@ const RemarkBidReport: React.FC<RemarkBidReportProps> = ({cardTitle}) => {
tempObject.memberName = item.memberName tempObject.memberName = item.memberName
for(let j = 0; j < item.evaluationTenderList.length; j++) { for(let j = 0; j < item.evaluationTenderList.length; j++) {
let _item = item['evaluationTenderList'][j] let _item = item['evaluationTenderList'][j]
tempObject.expertExtractRecordId = _item['expertExtractRecord']['id'] tempObject.expertExtractRecordId = _item.expertExtractRecord?.id || _item['sort']
tempObject.score = _item['score'] tempObject.score = _item['score']
tempObject.sort = _item['sort'] tempObject.sort = _item['sort']
tempObject.standard = _item['standard'] tempObject.standard = _item['standard']
......
...@@ -44,7 +44,7 @@ const RemarkBidReport: React.FC<RemarkBidReportProps> = ({cardTitle}) => { ...@@ -44,7 +44,7 @@ const RemarkBidReport: React.FC<RemarkBidReportProps> = ({cardTitle}) => {
tempObject.memberName = item.memberName tempObject.memberName = item.memberName
for(let j = 0; j < item.evaluationTenderList.length; j++) { for(let j = 0; j < item.evaluationTenderList.length; j++) {
let _item = item['evaluationTenderList'][j] let _item = item['evaluationTenderList'][j]
tempObject.expertExtractRecordId = _item['expertExtractRecord']['id'] tempObject.expertExtractRecordId = _item.expertExtractRecord?.id || _item['sort']
tempObject.score = _item['score'] tempObject.score = _item['score']
tempObject.sort = _item['sort'] tempObject.sort = _item['sort']
tempObject.standard = _item['standard'] tempObject.standard = _item['standard']
......
...@@ -44,7 +44,7 @@ const RemarkBidReport: React.FC<RemarkBidReportProps> = ({cardTitle}) => { ...@@ -44,7 +44,7 @@ const RemarkBidReport: React.FC<RemarkBidReportProps> = ({cardTitle}) => {
tempObject.memberName = item.memberName tempObject.memberName = item.memberName
for(let j = 0; j < item.evaluationTenderList.length; j++) { for(let j = 0; j < item.evaluationTenderList.length; j++) {
let _item = item['evaluationTenderList'][j] let _item = item['evaluationTenderList'][j]
tempObject.expertExtractRecordId = _item['expertExtractRecord']['id'] tempObject.expertExtractRecordId = _item.expertExtractRecord?.id || _item['sort']
tempObject.score = _item['score'] tempObject.score = _item['score']
tempObject.sort = _item['sort'] tempObject.sort = _item['sort']
tempObject.standard = _item['standard'] tempObject.standard = _item['standard']
......
...@@ -46,7 +46,7 @@ const RemarkBidReport: React.FC<RemarkBidReportProps> = ({cardTitle}) => { ...@@ -46,7 +46,7 @@ const RemarkBidReport: React.FC<RemarkBidReportProps> = ({cardTitle}) => {
if(item.evaluationTenderList) if(item.evaluationTenderList)
for(let j = 0; j < item.evaluationTenderList.length; j++) { for(let j = 0; j < item.evaluationTenderList.length; j++) {
let _item = item['evaluationTenderList'][j] let _item = item['evaluationTenderList'][j]
tempObject.expertExtractRecordId = _item['expertExtractRecord']['id'] tempObject.expertExtractRecordId = _item.expertExtractRecord?.id || _item['sort']
tempObject.score = _item['score'] tempObject.score = _item['score']
tempObject.sort = _item['sort'] tempObject.sort = _item['sort']
tempObject.standard = _item['standard'] tempObject.standard = _item['standard']
......
...@@ -186,6 +186,7 @@ const OrderDeleveRecord:React.FC<OrderDeleveRecordProps> = (props) => { ...@@ -186,6 +186,7 @@ const OrderDeleveRecord:React.FC<OrderDeleveRecordProps> = (props) => {
dataIndex: 'createTime', dataIndex: 'createTime',
align: 'center', align: 'center',
key: 'createTime', key: 'createTime',
render: text => formatTimeString(text, 'YYYY-MM-DD')
}, },
{ {
title: '物流单号', title: '物流单号',
......
...@@ -191,7 +191,7 @@ const OrderSaleRecord:React.FC<OrderSaleRecordProps> = (props) => { ...@@ -191,7 +191,7 @@ const OrderSaleRecord:React.FC<OrderSaleRecordProps> = (props) => {
dataIndex: 'createTime', dataIndex: 'createTime',
align: 'center', align: 'center',
key: 'createTime', key: 'createTime',
// render: text => formatTimeString(text) render: text => formatTimeString(text, 'YYYY-MM-DD')
}, },
{ {
title: '物流单号', title: '物流单号',
......
...@@ -286,7 +286,7 @@ const RuleSetting:React.FC<RuleSettingProps> = (props) => { ...@@ -286,7 +286,7 @@ const RuleSetting:React.FC<RuleSettingProps> = (props) => {
if(!data.allContracts) { if(!data.allContracts) {
const res = await getBindingContracts({id: id.toString(), current: '1', pageSize: '1000', digest: ''}) const res = await getBindingContracts({id: id.toString(), current: '1', pageSize: '1000', digest: ''})
addSchemaAction.setFieldState('contracts', state => { addSchemaAction.setFieldState('contracts', state => {
state.value = processFields(res.data, false) state.value = res.data
}) })
setProductsLength(res.totalCount) setProductsLength(res.totalCount)
} }
......
import React, { useState, useRef, useEffect } from 'react' import React, { useState, useRef, useEffect } from 'react'
import styled from 'styled-components' import styled from 'styled-components'
import { ISchemaFormProps, ISchemaFieldProps, ISchemaFieldComponentProps, createFormActions, useFieldState } from '@formily/antd' import { ISchemaFieldComponentProps, useFieldState } from '@formily/antd'
import { Button, Space, Row, Col, Tag } from 'antd' import { Row, Col, Tag } from 'antd'
import { PlusOutlined, DeleteColumnOutlined, EditOutlined, DeleteOutlined, CaretUpOutlined, CaretDownOutlined, EyeOutlined } from '@ant-design/icons' import { CaretUpOutlined, CaretDownOutlined } from '@ant-design/icons'
import cx from 'classnames' import cx from 'classnames'
import { PublicApi } from '@/services/api' import { PublicApi } from '@/services/api'
...@@ -62,7 +62,7 @@ const SelectProcesss = (props: ISchemaFieldComponentProps) => { ...@@ -62,7 +62,7 @@ const SelectProcesss = (props: ISchemaFieldComponentProps) => {
const { value, mutators, editable } = props const { value, mutators, editable } = props
useEffect(() => { useEffect(() => {
PublicApi.getOrderTradeProcessBaseList().then(res => { PublicApi.getOrderPurchaseProcessBaseList().then(res => {
setFieldState({ setFieldState({
dataSource: res.data, dataSource: res.data,
showMore showMore
......
...@@ -69,7 +69,7 @@ const PurchaseRules: React.FC<{}> = () => { ...@@ -69,7 +69,7 @@ const PurchaseRules: React.FC<{}> = () => {
> >
<Button <Button
type="link" type="link"
style={record.status ? { color: '#00B37A' } : { color: 'red' }}>{record.state ? <>有效 <PlayCircleOutlined /></> : <>无效 <PauseCircleOutlined /></>}</Button> style={record.status ? { color: '#00B37A' } : { color: 'red' }}>{record.status ? <>有效 <PlayCircleOutlined /></> : <>无效 <PauseCircleOutlined /></>}</Button>
</Popconfirm> </Popconfirm>
) )
return component return component
......
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