|
@@ -1,5 +1,5 @@
|
|
|
-import React,{Component} from "react";
|
|
|
-import {Button, Col, Form, message, Modal, Spin, Table, Tabs, Tag} from "antd";
|
|
|
+import React, { Component } from "react";
|
|
|
+import { Button, Col, Form, message, Modal, Spin, Table, Tabs, Tag } from "antd";
|
|
|
import {
|
|
|
getApprovedState,
|
|
|
getCuikuan,
|
|
@@ -24,11 +24,11 @@ const formItemLayout = {
|
|
|
wrapperCol: { span: 14 },
|
|
|
};
|
|
|
|
|
|
-class FollowUpDetails extends Component{
|
|
|
+class FollowUpDetails extends Component {
|
|
|
constructor(props) {
|
|
|
super(props);
|
|
|
- this.state={
|
|
|
- loading:false,
|
|
|
+ this.state = {
|
|
|
+ loading: false,
|
|
|
columnsX: [
|
|
|
{
|
|
|
title: "业务项目名称",
|
|
@@ -36,7 +36,7 @@ class FollowUpDetails extends Component{
|
|
|
key: "commodityName",
|
|
|
render: (text, record) => {
|
|
|
return <span>{text}<span style={{ color: "red" }}>{record.patentTypeName}</span>{"-" + record.id}</span>
|
|
|
- }
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
title: "项目类别",
|
|
@@ -51,7 +51,7 @@ class FollowUpDetails extends Component{
|
|
|
if (record.splitStatus == 1) {
|
|
|
return (
|
|
|
<span>
|
|
|
- {text}{" "}
|
|
|
+ {text}{" "}
|
|
|
<Tag
|
|
|
color="#108ee9"
|
|
|
onClick={(e) => {
|
|
@@ -59,9 +59,9 @@ class FollowUpDetails extends Component{
|
|
|
this.showRes(record);
|
|
|
}}
|
|
|
>
|
|
|
- 已拆
|
|
|
- </Tag>
|
|
|
- </span>
|
|
|
+ 已拆
|
|
|
+ </Tag>
|
|
|
+ </span>
|
|
|
);
|
|
|
} else {
|
|
|
return text;
|
|
@@ -100,8 +100,8 @@ class FollowUpDetails extends Component{
|
|
|
},
|
|
|
},
|
|
|
],
|
|
|
- dataSourceX:[],
|
|
|
- contactList:[],
|
|
|
+ dataSourceX: [],
|
|
|
+ contactList: [],
|
|
|
ContactsListsNew: [
|
|
|
{
|
|
|
title: "项目名称",
|
|
@@ -157,7 +157,9 @@ class FollowUpDetails extends Component{
|
|
|
render: (text, record) => {
|
|
|
if (record.dunTypeName) {
|
|
|
if (record.appropriationRatio) {
|
|
|
- return <span>{record.appropriationRatio}(拨款比例)</span>;
|
|
|
+ let percent = Number(record.appropriationRatio * 100);
|
|
|
+ percent += "%";
|
|
|
+ return <span>{percent}(拨款比例)</span>;
|
|
|
} else {
|
|
|
return <span>{text}</span>;
|
|
|
}
|
|
@@ -206,19 +208,19 @@ class FollowUpDetails extends Component{
|
|
|
},
|
|
|
},
|
|
|
],
|
|
|
- tabsKey:'1',
|
|
|
- dataSourcerizhi:[],
|
|
|
+ tabsKey: '1',
|
|
|
+ dataSourcerizhi: [],
|
|
|
}
|
|
|
- this.jiedian =this.jiedian.bind(this);
|
|
|
- this.jiedianNew =this.jiedianNew.bind(this);
|
|
|
- this.xiangqing =this.xiangqing.bind(this);
|
|
|
- this.rizhi =this.rizhi.bind(this);
|
|
|
- this.closeOrderLog =this.closeOrderLog.bind(this);
|
|
|
- this.tableRowClickX =this.tableRowClickX.bind(this);
|
|
|
- this.nextCancel =this.nextCancel.bind(this);
|
|
|
- this.rizhi =this.rizhi.bind(this);
|
|
|
- this.getOrderLog =this.getOrderLog.bind(this);
|
|
|
- this.xiangmu =this.xiangmu.bind(this);
|
|
|
+ this.jiedian = this.jiedian.bind(this);
|
|
|
+ this.jiedianNew = this.jiedianNew.bind(this);
|
|
|
+ this.xiangqing = this.xiangqing.bind(this);
|
|
|
+ this.rizhi = this.rizhi.bind(this);
|
|
|
+ this.closeOrderLog = this.closeOrderLog.bind(this);
|
|
|
+ this.tableRowClickX = this.tableRowClickX.bind(this);
|
|
|
+ this.nextCancel = this.nextCancel.bind(this);
|
|
|
+ this.rizhi = this.rizhi.bind(this);
|
|
|
+ this.getOrderLog = this.getOrderLog.bind(this);
|
|
|
+ this.xiangmu = this.xiangmu.bind(this);
|
|
|
}
|
|
|
|
|
|
componentDidMount() {
|
|
@@ -238,21 +240,21 @@ class FollowUpDetails extends Component{
|
|
|
closeOrderLog() {
|
|
|
this.setState({
|
|
|
rizhivisible: false,
|
|
|
- dataSourcerizhi:[],
|
|
|
+ dataSourcerizhi: [],
|
|
|
});
|
|
|
}
|
|
|
|
|
|
tableRowClickX(record) {
|
|
|
this.setState({
|
|
|
addnextVisible: true,
|
|
|
- dataInfor:record,
|
|
|
+ dataInfor: record,
|
|
|
});
|
|
|
}
|
|
|
|
|
|
nextCancel() {
|
|
|
this.setState({
|
|
|
addnextVisible: false,
|
|
|
- dataInfor:{}
|
|
|
+ dataInfor: {}
|
|
|
});
|
|
|
}
|
|
|
|
|
@@ -455,12 +457,12 @@ class FollowUpDetails extends Component{
|
|
|
globalConfig.avatarHost + "/upload"
|
|
|
)
|
|
|
: [], //图片地址
|
|
|
- contentUrl:thisdata.serviceContent
|
|
|
+ contentUrl: thisdata.serviceContent
|
|
|
? splitUrl(
|
|
|
thisdata.serviceContent,
|
|
|
",",
|
|
|
globalConfig.avatarHost + "/upload"
|
|
|
- )
|
|
|
+ )
|
|
|
: [], //图片地址
|
|
|
salesmanName: thisdata.salesmanName, //营销员名称
|
|
|
salesmanMobile: thisdata.salesmanMobile, //营销员电话
|
|
@@ -472,7 +474,7 @@ class FollowUpDetails extends Component{
|
|
|
nowFinanceMobile: thisdata.nowFinanceMobile, //财务电话
|
|
|
depName: thisdata.depName,
|
|
|
outsource: thisdata.outsource == 0 ? "否" : "是",
|
|
|
- deleteSign:thisdata.deleteSign,
|
|
|
+ deleteSign: thisdata.deleteSign,
|
|
|
});
|
|
|
}
|
|
|
}.bind(this),
|
|
@@ -487,7 +489,7 @@ class FollowUpDetails extends Component{
|
|
|
|
|
|
xiangmu() {
|
|
|
this.setState({
|
|
|
- orderTaskLoading:true
|
|
|
+ orderTaskLoading: true
|
|
|
})
|
|
|
$.ajax({
|
|
|
method: "get",
|
|
@@ -541,10 +543,10 @@ class FollowUpDetails extends Component{
|
|
|
defaultActiveKey="1"
|
|
|
className="test"
|
|
|
activeKey={this.state.tabsKey}
|
|
|
- onChange={(e)=>{this.setState({tabsKey:e})}}
|
|
|
+ onChange={(e) => { this.setState({ tabsKey: e }) }}
|
|
|
tabBarExtraContent={
|
|
|
- <div style={{fontWeight:'bold',paddingRight:'15px'}}>
|
|
|
- <OrderItemStatus deleteSign={this.state.deleteSign}/>
|
|
|
+ <div style={{ fontWeight: 'bold', paddingRight: '15px' }}>
|
|
|
+ <OrderItemStatus deleteSign={this.state.deleteSign} />
|
|
|
</div>
|
|
|
}
|
|
|
>
|
|
@@ -579,7 +581,7 @@ class FollowUpDetails extends Component{
|
|
|
<EnterpriseNameChange
|
|
|
type='journal'
|
|
|
style={{ marginLeft: 10 }}
|
|
|
- enterpriseId={this.state.orderUid}/>
|
|
|
+ enterpriseId={this.state.orderUid} />
|
|
|
</FormItem>
|
|
|
<FormItem
|
|
|
className="half-item"
|
|
@@ -600,9 +602,9 @@ class FollowUpDetails extends Component{
|
|
|
{...formItemLayout}
|
|
|
label="结算状态"
|
|
|
>
|
|
|
- <span>
|
|
|
- {getLiquidationStatus(this.state.liquidationStatus)}
|
|
|
- </span>
|
|
|
+ <span>
|
|
|
+ {getLiquidationStatus(this.state.liquidationStatus)}
|
|
|
+ </span>
|
|
|
</FormItem>
|
|
|
<FormItem
|
|
|
className="half-item"
|
|
@@ -689,8 +691,8 @@ class FollowUpDetails extends Component{
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
label={"合同扫描件"}
|
|
|
>
|
|
|
- <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
|
|
|
- {this.props.visible && this.state.orgCodeUrl ? <ImgList fileList={this.state.orgCodeUrl} ItemWidth={'96px'}/> : <div/>}
|
|
|
+ <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
|
|
|
+ {this.props.visible && this.state.orgCodeUrl ? <ImgList fileList={this.state.orgCodeUrl} ItemWidth={'96px'} /> : <div />}
|
|
|
</div>
|
|
|
<Button
|
|
|
style={{
|
|
@@ -708,16 +710,16 @@ class FollowUpDetails extends Component{
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
label="补充协议"
|
|
|
>
|
|
|
- <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
|
|
|
- {this.props.visible && this.state.replenishUrl ? <ImgList domId={'inquiry1'} fileList={this.state.replenishUrl} ItemWidth={'96px'}/> : <div/>}
|
|
|
+ <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
|
|
|
+ {this.props.visible && this.state.replenishUrl ? <ImgList domId={'inquiry1'} fileList={this.state.replenishUrl} ItemWidth={'96px'} /> : <div />}
|
|
|
</div>
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<ContentUrl
|
|
|
- processStatus={1}
|
|
|
- domId = {"followContent"}
|
|
|
- contentUrl = {this.state.contentUrl}
|
|
|
- imgId = {"followContentImg"}
|
|
|
+ processStatus={1}
|
|
|
+ domId={"followContent"}
|
|
|
+ contentUrl={this.state.contentUrl}
|
|
|
+ imgId={"followContentImg"}
|
|
|
/>
|
|
|
<div className="clearfix">
|
|
|
<FormItem
|
|
@@ -788,11 +790,11 @@ class FollowUpDetails extends Component{
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
{/* 协作人员 */}
|
|
|
- <OrderCoor orderNo={this.props.orderNo}/>
|
|
|
+ <OrderCoor orderNo={this.props.orderNo} />
|
|
|
<div>
|
|
|
- <span style={{ marginLeft: "50px", fontSize: "20px" }}>
|
|
|
- 项目业务
|
|
|
- </span>
|
|
|
+ <span style={{ marginLeft: "50px", fontSize: "20px" }}>
|
|
|
+ 项目业务
|
|
|
+ </span>
|
|
|
</div>
|
|
|
<div className="patent-table">
|
|
|
<Spin spinning={this.state.orderTaskLoading}>
|
|
@@ -807,18 +809,18 @@ class FollowUpDetails extends Component{
|
|
|
</Spin>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <span style={{ marginLeft: "50px", fontSize: "20px" }}>
|
|
|
- 催款节点
|
|
|
- </span>
|
|
|
- <span
|
|
|
- style={{
|
|
|
- display: this.state.contactList.length ? "none" : "inline-block",
|
|
|
- marginLeft: 10,
|
|
|
- color: "red",
|
|
|
- }}
|
|
|
- >
|
|
|
- 金额总计(万元): {this.state.totalCui}
|
|
|
- </span>
|
|
|
+ <span style={{ marginLeft: "50px", fontSize: "20px" }}>
|
|
|
+ 催款节点
|
|
|
+ </span>
|
|
|
+ <span
|
|
|
+ style={{
|
|
|
+ display: this.state.contactList.length ? "none" : "inline-block",
|
|
|
+ marginLeft: 10,
|
|
|
+ color: "red",
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ 金额总计(万元): {this.state.totalCui}
|
|
|
+ </span>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
<Spin spinning={this.state.newOrderDunLoading}>
|