|  | @@ -6,6 +6,7 @@ import consts from '@/utils/consts'
 | 
	
		
			
				|  |  |  import { dayjsFormat } from '@/utils/util'
 | 
	
		
			
				|  |  |  import { Button, Form, Input, Modal, Select } from 'antd'
 | 
	
		
			
				|  |  |  import locale from 'antd/es/date-picker/locale/zh_CN'
 | 
	
		
			
				|  |  | +import dayjs from 'dayjs'
 | 
	
		
			
				|  |  |  import React, { useEffect, useState } from 'react'
 | 
	
		
			
				|  |  |  import { apiGetReturnWay } from '../Tabs/Receivable/api'
 | 
	
		
			
				|  |  |  import styles from './index.module.scss'
 | 
	
	
		
			
				|  | @@ -51,8 +52,8 @@ const ContractModal: React.FC<iModalCommonProps> = ({ modalObj: { type, visible,
 | 
	
		
			
				|  |  |      if (visible) {
 | 
	
		
			
				|  |  |        form.setFieldsValue({ treeId: row.id, bidsectionId: row.bidsectionId })
 | 
	
		
			
				|  |  |        if (type === "update") {
 | 
	
		
			
				|  |  | -        const { content="", name="", price="", partyA="", partyB="", partyASigner="",partyBSigner="" } = contractStore.contract
 | 
	
		
			
				|  |  | -        form.setFieldsValue({ content, name, price, partyA, partyB, partyASigner, partyBSigner })
 | 
	
		
			
				|  |  | +        const { content="", name="", price="", partyA="", partyB="", partyASigner="",partyBSigner="", signerTime = '', remarks = '' } = contractStore.contract
 | 
	
		
			
				|  |  | +        form.setFieldsValue({ content, name, price, partyA, partyB, partyASigner, partyBSigner, signerTime: dayjs(signerTime), remarks })
 | 
	
		
			
				|  |  |        } else if (type === 'return') {
 | 
	
		
			
				|  |  |          apiGetReturnWay().then(({ code = -1, data = [] }) => {
 | 
	
		
			
				|  |  |            if (code === consts.RET_CODE.SUCCESS) {
 | 
	
	
		
			
				|  | @@ -88,7 +89,7 @@ const ContractModal: React.FC<iModalCommonProps> = ({ modalObj: { type, visible,
 | 
	
		
			
				|  |  |      <Modal
 | 
	
		
			
				|  |  |        getContainer={false}
 | 
	
		
			
				|  |  |        visible={visible}
 | 
	
		
			
				|  |  | -      title={modalObj[type].title}
 | 
	
		
			
				|  |  | +      title={modalObj[type]?.title}
 | 
	
		
			
				|  |  |        onCancel={onCancel}
 | 
	
		
			
				|  |  |        footer={<div className="pi-justify-end">
 | 
	
		
			
				|  |  |          {type === 'update' ? <Button type="primary" key="delete" size="small" danger onClick={() => reload('del')}>删除合同</Button> : ''}
 |