<commit_before>// 客户管理 - 合同管理 - 欢乐颂合同 [详情]
import React from 'react'
import { Row, Button, Col, Table} from 'antd'
import '../../../style/test.less'
import { apiPost } from '../../../../../api'
import TerminationComponent from '../../../components/LeaseContract/Termination'

class App extends React.Component {
    constructor (props) {
        super(props)
        this.state = {
            TerminationComponentOpen: false,
            contract: {},
            dataSource: [],
            columns: [
                {
                    title: '租赁开始时间',
                    dataIndex: 'startDate'
                },
                {
                    title: '租赁结束时间',
                    dataIndex: 'endDate'
                },
                {
                    title: '交费期限',
                    dataIndex: 'payDeadline'
                },
                {
                    title: '金额',
                    dataIndex: 'currentPeriodMoney'
                },
                {
                    title: '优惠金额',
                    dataIndex: 'discountMoney'
                },
                {
                    title: '实际应收',
                    dataIndex: 'actualPaidMoney'
                },
                {
                    title: '未收租金',
                    dataIndex: 'unpaidMoney'
                }
            ]
        }
    }
    async initialRemarks () {
        let contract = await apiPost(
            '/contract/getcontract',
            {'id': this.props.match.params.id,
                type: 2}
        )
        this.setState({
            dataSource: contract.data.list,
            contract: contract.data.contract
        })
        console.log(contract.data.contract)
        console.log(contract.data.subletInfoList)
    }
    componentWillMount () {
        this.initialRemarks()
    }
    refresh = async () => {
        let contract = await apiPost(
            '/contract/getcontract',
            {'id': this.props.match.params.id,
                type: 2}
        )
        this.setState({
            contract: contract.data.contract,
            TerminationComponentOpen: false
        })
    }
    TerminationComponent = () => {
        this.setState({
            TerminationComponentOpen: true
        })
    }
    render () {
        return (
            <div className="contract">
                <div className="wrapbox">
                    <div className="title">房源信息</div>
                    <div className="main">
                        <Row>
                            <Col span={8}><b>所属楼宇：</b>{this.state.contract.buildName}</Col>
                            <Col span={8}><b>服务面积：</b>{this.state.contract.leaseArea} &nbsp;㎡</Col>
                            <Col span={8} />
                        </Row>
                        <Row>
                            <Col span={24}><b>房间编号：</b>{this.state.contract.leaseRooms} </Col>
                        </Row>
                    </div>
                </div>
                <div className="wrapbox">
                    <div className="title">
                        客户信息
                    </div>
                    <div className="main">
                        <Row>
                            <Col span={8}><b>租赁客户名称：</b>{this.state.contract.rentClientName}</Col>
                            <Col span={8}><b>联系人：</b>{this.state.contract.contactPerson}</Col>
                            <Col span={8}><b>经理电话：</b>{this.state.contract.phoneManager}</Col>
                        </Row>
                        <Row>
                            <Col span={8}><b>行政电话：</b>{this.state.contract.phoneAdmin} </Col>
                            <Col span={8}><b>财务电话：</b>{this.state.contract.phoneFinance}</Col>
                            <Col span={8}><b>E-mail：</b>{this.state.contract.email}</Col>
                        </Row>
                        <Row>
                            <Col span={8}><b>签约日期：</b>{this.state.contract.signDate}</Col>
                            <Col span={8}><b>公司编号：</b>{this.state.contract.clientNum} </Col>
                            <Col span={8} />
                        </Row>
                    </div>
                </div>
                <div className="wrapbox">
                    <div className="title">
                        日期信息
                    </div>
                    <div className="main">
                        <Row>
                            <Col span={8}><b>租赁周期：</b>{this.state.contract.startDate}  ~ {this.state.contract.endDate}</Col>
                            <Col span={16}><b>录入时间：</b>{this.state.contract.createName} ({this.state.contract.createDate})</Col>
                        </Row>
                        <Row>
                            <Col span={8}><b>合同编号：</b>{this.state.contract.contractCode} </Col>
                            <Col span={16}><b>最后修改：</b>{this.state.contract.updateName} ({this.state.contract.updateDate})</Col>
                        </Row>
                        {this.state.contract.contractStatus === 1 &&
                        <Row>
                            <Col span={8}><b>终止日期：</b>{this.state.contract.updateName} ({this.state.contract.updateDate})</Col>
                            <Col span={16}><b>终止原因：</b>{this.state.contract.remark}</Col>
                        </Row>
                        }
                    </div>
                </div>
                <div className="wrapbox">
                    <div className="title">
                        租赁费用
                    </div>
                    <div className="main">
                        <Row>
                            <Col span={8}><b>合同单价：</b><span className="color1">{this.state.contract.unitPrice}</span>  元/㎡/天</Col>
                            <Col span={8}><b>交费周期：</b>
                                <span className="color1"><commit_msg>乾坤大挪移<commit_after>// 客户管理 - 合同管理 - 欢乐颂合同 [详情]
import React from 'react'
import { Row, Button, Col, Table} from 'antd'
import '../../../style/test.less'
import { apiPost } from '../../../../../api'
import TerminationComponent from '../../../components/LeaseContract/Termination'

class App extends React.Component {
    constructor (props) {
        super(props)
        this.state = {
            TerminationComponentOpen: false,
            contract: {},
            dataSource: [],
            columns: [
                {
                    title: '租赁开始时间',
                    dataIndex: 'startDate'
                },
                {
                    title: '租赁结束时间',
                    dataIndex: 'endDate'
                },
                {
                    title: '交费期限',
                    dataIndex: 'payDeadline'
                },
                {
                    title: '金额',
                    dataIndex: 'currentPeriodMoney'
                },
                {
                    title: '优惠金额',
                    dataIndex: 'discountMoney'
                },
                {
                    title: '实际应收',
                    dataIndex: 'actualPaidMoney'
                },
                {
                    title: '未收租金',
                    dataIndex: 'unpaidMoney'
                }
            ]
        }
    }
    async initialRemarks () {
        let contract = await apiPost(
            '/contract/getcontract',
            {'id': this.props.match.params.id,
                type: 2}
        )
        this.setState({
            dataSource: contract.data.list,
            contract: contract.data.contract
        })
        console.log(contract.data.contract)
        console.log(contract.data.subletInfoList)
    }
    componentWillMount () {
        this.initialRemarks()
    }
    refresh = async () => {
        let contract = await apiPost(
            '/contract/getcontract',
            {'id': this.props.match.params.id,
                type: 2}
        )
        this.setState({
            contract: contract.data.contract,
            TerminationComponentOpen: false
        })
    }
    TerminationComponent = () => {
        this.setState({
            TerminationComponentOpen: true
        })
    }
    render () {
        return (
            <div className="contract">
                <div className="wrapbox">
                    <div className="title">房源信息</div>
                    <div className="main">
                        <Row>
                            <Col span={8}><b>所属楼宇：</b>{this.state.contract.buildName}</Col>
                            <Col span={8}><b>服务面积：</b>{this.state.contract.leaseArea} &nbsp;㎡</Col>
                            <Col span={8} />
                        </Row>
                        <Row>
                            <Col span={24}><b>房间编号：</b>{this.state.contract.leaseRooms} </Col>
                        </Row>
                    </div>
                </div>
                <div className="wrapbox">
                    <div className="title">
                        客户信息
                    </div>
                    <div className="main">
                        <Row>
                            <Col span={8}><b>租赁客户名称：</b>{this.state.contract.rentClientName}</Col>
                            <Col span={8}><b>联系人：</b>{this.state.contract.contactPerson}</Col>
                            <Col span={8}><b>经理电话：</b>{this.state.contract.phoneManager}</Col>
                        </Row>
                        <Row>
                            <Col span={8}><b>行政电话：</b>{this.state.contract.phoneAdmin} </Col>
                            <Col span={8}><b>财务电话：</b>{this.state.contract.phoneFinance}</Col>
                            <Col span={8}><b>E-mail：</b>{this.state.contract.email}</Col>
                        </Row>
                        <Row>
                            <Col span={8}><b>签约日期：</b>{this.state.contract.signDate}</Col>
                            <Col span={8}><b>公司编号：</b>{this.state.contract.clientNum} </Col>
                            <Col span={8} />
                        </Row>
                    </div>
                </div>
                <div className="wrapbox">
                    <div className="title">
                        日期信息
                    </div>
                    <div className="main">
                        <Row>
                            <Col span={8}><b>服务周期：</b>{this.state.contract.startDate}  ~ {this.state.contract.endDate}</Col>
                            <Col span={16}><b>录入时间：</b>{this.state.contract.createName} ({this.state.contract.createDate})</Col>
                        </Row>
                        <Row>
                            <Col span={8}><b>合同编号：</b>{this.state.contract.contractCode} </Col>
                            <Col span={16}><b>最后修改：</b>{this.state.contract.updateName} ({this.state.contract.updateDate})</Col>
                        </Row>
                        {this.state.contract.contractStatus === 1 &&
                        <Row>
                            <Col span={8}><b>终止日期：</b>{this.state.contract.updateName} ({this.state.contract.updateDate})</Col>
                            <Col span={16}><b>终止原因：</b>{this.state.contract.remark}</Col>
                        </Row>
                        }
                    </div>
                </div>
                <div className="wrapbox">
                    <div className="title">
                        租赁费用
                    </div>
                    <div className="main">
                        <Row>
                            <Col span={8}><b>合同单价：</b><span className="color1">{this.state.contract.unitPrice}</span>  元/㎡/天</Col>
                            <Col span={8}><b>交费周期：</b>
                                <span className="color1">
{'fraction_non_alphanumeric': 0.1396971243831887, 'fraction_numerical': 0.005104645227156712, 'mean_word_length': 1.0118090022248845, 'pattern_counts': {'":': 0, '<': 243, '<?xml version=': 0, '>': 247, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2370223', 'n_tokens_mistral': 3314, 'n_tokens_neox': 3229, 'n_words': 441}