|  | @@ -12,7 +12,6 @@ import dayjs from 'dayjs'
 | 
	
		
			
				|  |  |  import React, { ChangeEvent, useEffect, useState } from 'react'
 | 
	
		
			
				|  |  |  import { apiGetReturnWay } from '../Tabs/Receivable/api'
 | 
	
		
			
				|  |  |  import styles from './index.module.scss'
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  interface ContractSection {
 | 
	
		
			
				|  |  |    id: string;
 | 
	
		
			
				|  |  |    treeType: number;
 | 
	
	
		
			
				|  | @@ -90,9 +89,12 @@ const ContractModal: React.FC<iModalCommonProps> = ({ modalObj: { type, visible,
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |    useEffect(() => {
 | 
	
		
			
				|  |  |      if (visible) {
 | 
	
		
			
				|  |  | -      initTreeSection()
 | 
	
		
			
				|  |  | -      form.setFieldsValue({ treeId: row.contractId !== contractTreeBaseId ? row.id : '', bidsectionId: row.bidsectionId })
 | 
	
		
			
				|  |  | +      form.setFieldsValue({ treeId: row.id, bidsectionId: row.bidsectionId })
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +      if (type === 'create') {
 | 
	
		
			
				|  |  | +        initTreeSection()
 | 
	
		
			
				|  |  | +        form.setFieldsValue({ treeId: row.contractId === contractTreeBaseId ? row.id : row.parentId })
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  |        if (type === 'update') {
 | 
	
		
			
				|  |  |          const { content = '', name = '', price = '', partyA = '', partyB = '', partyASigner = '', partyBSigner = '', signerTime = '', remarks = '' } = contractReturnStore.contract
 | 
	
		
			
				|  |  |          form.setFieldsValue({ content, name, price, partyA, partyB, partyASigner, partyBSigner, signerTime: signerTime ? dayjs(signerTime) : '', remarks })
 | 
	
	
		
			
				|  | @@ -177,7 +179,7 @@ const ContractModal: React.FC<iModalCommonProps> = ({ modalObj: { type, visible,
 | 
	
		
			
				|  |  |          <Form.Item name="bidsectionId" hidden>
 | 
	
		
			
				|  |  |            <Input />
 | 
	
		
			
				|  |  |          </Form.Item>
 | 
	
		
			
				|  |  | -        <Form.Item name="treeId" label="合同劳务">
 | 
	
		
			
				|  |  | +        <Form.Item name="treeId" label="合同劳务" hidden={type === 'create' ? false : true}>
 | 
	
		
			
				|  |  |            <TreeSelect treeData={contractSection} />
 | 
	
		
			
				|  |  |          </Form.Item>
 | 
	
		
			
				|  |  |          {/* <Form.Item name="treeId" label="合同劳务" hidden>
 |