|
@@ -4,6 +4,7 @@ import ajax from 'jquery/src/ajax/xhr.js';
|
|
|
import $ from 'jquery/src/ajax';
|
|
|
import '../userMangagement.less';
|
|
|
import {getApprovedState,getPaymentState,getOrderState,getProjectState,getOrderChannel,getOrderType,getTransactionProject,getTransactionChannel} from '../../../../tools.js';
|
|
|
+import ProjectOperation from "../../../../common/projectOperation";
|
|
|
|
|
|
const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
loadData(record) {
|
|
@@ -128,7 +129,7 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
render:(text,record,index)=>{
|
|
|
return (
|
|
|
<Popconfirm title={'您确认指定【'+record.departmentName+'-'+record.name+'】为项目负责人?'} onConfirm={(e)=>{this.confirmSelect(record)}} okText="确认" cancelText="取消">
|
|
|
- <Button style={{marginRight:'5px'}} type="primary">选定</Button>
|
|
|
+ <Button style={{marginRight:'5px'}} type="primary">选定</Button>
|
|
|
</Popconfirm>
|
|
|
)
|
|
|
}
|
|
@@ -218,7 +219,7 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
dataIndex: 'qq',
|
|
|
key: 'qq'
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
],
|
|
|
};
|
|
|
},
|
|
@@ -244,7 +245,7 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
uid: this.state.buyerId
|
|
|
},
|
|
|
success: function (data) {
|
|
|
- let thisData = data.data;
|
|
|
+ let thisData = data.data;
|
|
|
if (!thisData) {
|
|
|
if (data.error && data.error.length) {
|
|
|
message.warning(data.error[0].message);
|
|
@@ -253,13 +254,13 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
};
|
|
|
this.setState({
|
|
|
contractArr:thisData,
|
|
|
- });
|
|
|
+ });
|
|
|
}.bind(this),
|
|
|
}).always(function () {
|
|
|
- this.setState({
|
|
|
+ this.setState({
|
|
|
loading: false
|
|
|
});
|
|
|
- }.bind(this));
|
|
|
+ }.bind(this));
|
|
|
},
|
|
|
//查看基本详情基本信息
|
|
|
loaduser(record){
|
|
@@ -274,7 +275,7 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
orderNo: record
|
|
|
},
|
|
|
success: function (data) {
|
|
|
- let thisData = data.data;
|
|
|
+ let thisData = data.data;
|
|
|
if (!thisData) {
|
|
|
if (data.error && data.error.length) {
|
|
|
message.warning(data.error[0].message);
|
|
@@ -298,10 +299,10 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
});
|
|
|
}.bind(this),
|
|
|
}).always(function () {
|
|
|
- this.setState({
|
|
|
+ this.setState({
|
|
|
loading: false
|
|
|
});
|
|
|
- }.bind(this));
|
|
|
+ }.bind(this));
|
|
|
}
|
|
|
},
|
|
|
handleOk(e) {
|
|
@@ -316,11 +317,6 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
});
|
|
|
this.props.closeDesc(false);
|
|
|
},
|
|
|
- nextCancel() {
|
|
|
- this.setState({
|
|
|
- addnextVisible: false
|
|
|
- })
|
|
|
- },
|
|
|
lookflow(){
|
|
|
this.setState({
|
|
|
loading: true,
|
|
@@ -348,8 +344,7 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
key: i,
|
|
|
billNo: thisdata.billNo,
|
|
|
transactionAmount:thisdata.transactionAmount,
|
|
|
- createTime:thisdata.createTime,
|
|
|
- transactionAmount:thisdata.transactionAmount,
|
|
|
+ createTime:thisdata.createTime,
|
|
|
payerName:thisdata.payerName,
|
|
|
payeeName:thisdata.payeeName,
|
|
|
transactionSubject:thisdata.transactionSubject,
|
|
@@ -384,7 +379,7 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
tableRowClick(record, index) {
|
|
|
this.setState({
|
|
|
editFw:record,
|
|
|
- addnextVisible:true,
|
|
|
+ projectOperationVisible:true,
|
|
|
});
|
|
|
},
|
|
|
/*
|
|
@@ -436,7 +431,7 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
mobile:thisdata.mobile,
|
|
|
});
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
};
|
|
|
this.setState({
|
|
|
distributionList: theArr,
|
|
@@ -487,7 +482,7 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
crossDomain: false,
|
|
|
url: globalConfig.context + "/api/admin/organization/selectSuperId",
|
|
|
data: {
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
success: function(data) {
|
|
|
let thedata = data.data;
|
|
@@ -527,7 +522,7 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
});
|
|
|
},
|
|
|
componentWillMount() {
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
componentWillReceiveProps(nextProps) { //props改变时触发
|
|
|
this.state.visible = nextProps.showDesc;
|
|
@@ -543,14 +538,13 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
labelCol: { span: 8 },
|
|
|
wrapperCol: { span: 14 },
|
|
|
};
|
|
|
- const editFws=this.state.editFw || [];
|
|
|
const orderDetaiel=this.state.orderList || [];
|
|
|
return(
|
|
|
<div>
|
|
|
<Modal maskClosable={false} visible={this.state.visible}
|
|
|
onOk={this.handleOk} onCancel={this.handleCancel}
|
|
|
width='1000px'
|
|
|
- title='订单详情'
|
|
|
+ title='订单详情'
|
|
|
footer=''
|
|
|
className="admin-desc-content">
|
|
|
<Form layout="horizontal" id="demand-form" style={{paddingBottom:'40px'}} >
|
|
@@ -564,59 +558,59 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="下单时间" >
|
|
|
+ label="下单时间" >
|
|
|
<span>{orderDetaiel.createTime}</span>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="客户名称" >
|
|
|
+ label="客户名称" >
|
|
|
<span>{orderDetaiel.buyerName}</span>
|
|
|
<Button onClick={this.seeContract} style={{float:'right',fontSize:'12px'}}>查看联系人</Button>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="订单类型" >
|
|
|
+ label="订单类型" >
|
|
|
<span>{getOrderType(orderDetaiel.orderType)}</span>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="订单渠道" >
|
|
|
+ label="订单渠道" >
|
|
|
<span>{getOrderChannel(orderDetaiel.orderChannel)}</span>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="订单状态" >
|
|
|
+ label="订单状态" >
|
|
|
<span>{getOrderState(orderDetaiel.orderStatus)}</span>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="已收款项" >
|
|
|
+ label="已收款项" >
|
|
|
<span>{orderDetaiel.actuallyTotalAmount+'万元'}</span>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="结算状态" >
|
|
|
+ label="结算状态" >
|
|
|
<span>{getPaymentState(orderDetaiel.liquidationStatus)}</span>
|
|
|
</FormItem>
|
|
|
<div className='clearfix'>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="实签订单金额" >
|
|
|
+ label="实签订单金额" >
|
|
|
<span>{orderDetaiel.signTotalAmount+'万元'}</span>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="实签首款金额" >
|
|
|
+ label="实签首款金额" >
|
|
|
<span>{orderDetaiel.signFirstPayment+'万元'}</span>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="特批立项" >
|
|
|
+ label="特批立项" >
|
|
|
<span>{getApprovedState(orderDetaiel.approval)}</span>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="合同编号" >
|
|
|
+ label="合同编号" >
|
|
|
<span>{orderDetaiel.contractNo}</span>
|
|
|
</FormItem>
|
|
|
<div className='clearfix'>
|
|
@@ -632,46 +626,46 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
<div className='clearfix'>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="订单负责人" >
|
|
|
+ label="订单负责人" >
|
|
|
<span>{orderDetaiel.salesmanName}</span>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="业务品类" >
|
|
|
+ label="业务品类" >
|
|
|
<span>{orderDetaiel.projectType}</span>
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className='clearfix'>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="意向时间" >
|
|
|
+ label="意向时间" >
|
|
|
<span>{orderDetaiel.createTime}</span>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="签单时间" >
|
|
|
+ label="签单时间" >
|
|
|
<span>{orderDetaiel.signTime}</span>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="财务负责人" >
|
|
|
+ label="财务负责人" >
|
|
|
<span>{orderDetaiel.financeName}</span>
|
|
|
<Button onClick={this.lookflow} style={{float:'right'}}>查看流水</Button>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="项目负责人" >
|
|
|
+ label="项目负责人" >
|
|
|
<span>{orderDetaiel.technicianName}</span>
|
|
|
{!orderDetaiel.technicianName?<Button onClick={this.confirmDelet} style={{float:'right'}}>选择负责人</Button>:''}
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="立项时间" >
|
|
|
+ label="立项时间" >
|
|
|
<span>{orderDetaiel.setUpTime}</span>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="项目状态" >
|
|
|
+ label="项目状态" >
|
|
|
<span>{getProjectState(orderDetaiel.projectStage)}</span>
|
|
|
</FormItem>
|
|
|
</div>
|
|
@@ -683,69 +677,30 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
<Table columns={this.state.columns}
|
|
|
dataSource={this.state.dataSource}
|
|
|
pagination={false}
|
|
|
- onRowClick={this.tableRowClick}
|
|
|
+ onRowClick={this.tableRowClick}
|
|
|
/>
|
|
|
</Spin>
|
|
|
</div>
|
|
|
</div>
|
|
|
</Spin>
|
|
|
</Form >
|
|
|
- </Modal>
|
|
|
- <Modal maskClosable={false} visible={this.state.addnextVisible}
|
|
|
- onOk={this.nextCancel} onCancel={this.nextCancel}
|
|
|
- width='550px'
|
|
|
- title='查看项目详细'
|
|
|
- footer=''
|
|
|
- className="admin-desc-content">
|
|
|
- <Form layout="horizontal" id="demand-form">
|
|
|
- <Spin spinning={this.state.loading}>
|
|
|
- <div className="clearfix">
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="业务项目名称" >
|
|
|
- <span>{editFws.commodityName}</span>
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="服务市价" >
|
|
|
- <span>{editFws.commodityPrice+'万元'}</span>
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="实签价格" >
|
|
|
- <span>{editFws.discountPrice+'万元'}</span>
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="服务数量" >
|
|
|
- <span>{editFws.commodityQuantity}</span>
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="市场首付金额" >
|
|
|
- <span>{editFws.commodityFirstPayment+'万元'}</span>
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="签单首付金额" >
|
|
|
- <span>{editFws.discountFirstPayment+'万元'}</span>
|
|
|
- </FormItem>
|
|
|
- <div className='clearfix'>
|
|
|
- <FormItem
|
|
|
- labelCol={{ span: 4 }}
|
|
|
- wrapperCol={{ span: 16 }}
|
|
|
- label="项目说明" >
|
|
|
- <span>{editFws.remarks}</span>
|
|
|
- </FormItem>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </Spin>
|
|
|
- </Form >
|
|
|
</Modal>
|
|
|
+ {this.state.projectOperationVisible ? <ProjectOperation
|
|
|
+ readOnly={true}
|
|
|
+ orderNo={this.state.orderNo}
|
|
|
+ visible={this.state.projectOperationVisible}
|
|
|
+ dataInfor={this.state.editFw}
|
|
|
+ onCancel={()=>{
|
|
|
+ this.setState({
|
|
|
+ projectOperationVisible: false,
|
|
|
+ editFw:{},
|
|
|
+ });
|
|
|
+ }}
|
|
|
+ /> : null}
|
|
|
<Modal maskClosable={false} visible={this.state.lookVisible}
|
|
|
onOk={this.lookCancel} onCancel={this.lookCancel}
|
|
|
width='1300px'
|
|
|
- title= '查看流水'
|
|
|
+ title= '查看流水'
|
|
|
footer=''
|
|
|
className="admin-desc-content">
|
|
|
<Form layout="horizontal" id="demand-form">
|
|
@@ -762,7 +717,7 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
<Modal maskClosable={false} visible={this.state.distributionVisible}
|
|
|
onOk={this.distributionCancel} onCancel={this.distributionCancel}
|
|
|
width='800px'
|
|
|
- title='请选择'
|
|
|
+ title='请选择'
|
|
|
footer=''
|
|
|
className="admin-desc-content">
|
|
|
<Form layout="horizontal" onSubmit={this.handleSubmit} id="demand-form" style={{paddingBottom:'40px'}} >
|
|
@@ -780,7 +735,7 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
</Select>
|
|
|
<Input placeholder="项目负责人" style={{width:'150px',marginLeft:'10px'}}
|
|
|
value={this.state.financeNameSearch}
|
|
|
- onChange={(e) => { this.setState({ financeNameSearch: e.target.value }); }} />
|
|
|
+ onChange={(e) => { this.setState({ financeNameSearch: e.target.value }); }} />
|
|
|
<Button type="primary" onClick={this.searchOrder} style={{marginLeft:'10px',marginRight:'10px'}}>搜索</Button>
|
|
|
<Button onClick={this.resetOrder}>重置</Button>
|
|
|
</div>
|
|
@@ -798,7 +753,7 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
<Modal maskClosable={false} visible={this.state.orderVisible}
|
|
|
onOk={this.orderCancel} onCancel={this.orderCancel}
|
|
|
width='800px'
|
|
|
- title='查看联系人'
|
|
|
+ title='查看联系人'
|
|
|
footer=''
|
|
|
className="admin-desc-content">
|
|
|
<Form layout="horizontal" id="demand-form" style={{paddingBottom:'40px'}} >
|
|
@@ -819,4 +774,4 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
}
|
|
|
}));
|
|
|
|
|
|
-export default MySettlementDetaile;
|
|
|
+export default MySettlementDetaile;
|