Commit d396db34 authored by shenshaokai's avatar shenshaokai

Merge branch 'jinfa-20221102' into 'jinfa-20221102'

fix: bugId=37048 兼容生产环境目的港数据问题 See merge request project/jinfa-platform!495
parents 80b6914f bd59e71f
import { useState, useEffect, forwardRef } from 'react';
import { Input, Select, DatePicker, Form } from 'antd'
import { Input, Select, DatePicker, Form, message } from 'antd'
import style from '../../../constants/styles.less'
import { getContractSelectArrivalAreaList, getContractManageGetContractNo, getContractSelectArrivalPortTransitList } from '@/services/ContractV2Api'
import { getIntl } from 'umi';
......@@ -97,6 +97,7 @@ const FreightInfo = (props: any) => {
attrValueForm.validateFields().then(res => {
const arrivalArea = res.arrivalArea.split('_+_')
const arrivalPort = res.arrivalPort.split('_+_')
const destinationName = res.destination ? ((portList || []).find(item => item.code == res.destination)?.message || '') : ''
resolve({
state: true,
name: 'freight',
......@@ -105,6 +106,7 @@ const FreightInfo = (props: any) => {
arrivalAreaName: arrivalArea[1],
arrivalPort: arrivalPort[0],
arrivalPortName: arrivalPort[1],
destinationName: destinationName
}),
})
}).catch(error => {
......@@ -116,8 +118,6 @@ const FreightInfo = (props: any) => {
}
})
console.log("contractFreightInformationVO--->", contractFreightInformationVO)
return (
<div className={style.revise_info}>
<Form
......
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