|
@@ -3,7 +3,8 @@ import { Icon, Table, Modal, message, Spin, Input, Select, Button, Form ,Upload,
|
|
|
import ajax from 'jquery/src/ajax/xhr.js';
|
|
|
import $ from 'jquery/src/ajax';
|
|
|
import '../userMangagement.less';
|
|
|
-import {lvl} from '../../../../dataDic.js';
|
|
|
+import {orderType} from '../../../../dataDic.js';
|
|
|
+import {getOrderType} from '../../../../tools.js';
|
|
|
|
|
|
const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
loadData() {
|
|
@@ -34,7 +35,6 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
}
|
|
|
this.setState({
|
|
|
dataSource: theArr,
|
|
|
- pagination: false,
|
|
|
});
|
|
|
}.bind(this),
|
|
|
}).always(function () {
|
|
@@ -49,27 +49,62 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
visible: false,
|
|
|
contractState:false,
|
|
|
projectVisible:false,
|
|
|
+ selectedRowKey:[],
|
|
|
+ orderSelect:false,
|
|
|
orgCodeUrl:[],
|
|
|
checkedKeys: [],
|
|
|
+ pagination: {
|
|
|
+ defaultCurrent: 1,
|
|
|
+ defaultPageSize: 10,
|
|
|
+ showQuickJumper: true,
|
|
|
+ pageSize: 10,
|
|
|
+ onChange: function (page) {
|
|
|
+ this.loadData(page);
|
|
|
+ }.bind(this),
|
|
|
+ showTotal: function (total) {
|
|
|
+ return '共' + total + '条数据';
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //派单
|
|
|
+ distributionPagination: {
|
|
|
+ defaultCurrent: 1,
|
|
|
+ defaultPageSize: 10,
|
|
|
+ showQuickJumper: true,
|
|
|
+ pageSize: 10,
|
|
|
+ onChange: function (page) {
|
|
|
+ this.contactList(page);
|
|
|
+ }.bind(this),
|
|
|
+ showTotal: function (total) {
|
|
|
+ return '共' + total + '条数据';
|
|
|
+ }
|
|
|
+ },
|
|
|
columns: [
|
|
|
{
|
|
|
- title: '业务项目名称',
|
|
|
+ title: '任务名称',
|
|
|
dataIndex: 'roleName',
|
|
|
key: 'roleName'
|
|
|
}, {
|
|
|
- title: '项目类别',
|
|
|
+ title: '业务类别',
|
|
|
dataIndex: 'creater1',
|
|
|
key: 'creater1'
|
|
|
},{
|
|
|
- title: '项目数量',
|
|
|
+ title: '任务数量',
|
|
|
dataIndex: 'roleName2',
|
|
|
key: 'roleName2'
|
|
|
}, {
|
|
|
- title: '下单时间',
|
|
|
+ title: '任务负责人',
|
|
|
dataIndex: 'creater4',
|
|
|
key: 'creater4'
|
|
|
}, {
|
|
|
- title: '项目说明',
|
|
|
+ title: '任务状态',
|
|
|
+ dataIndex: 'roleName22',
|
|
|
+ key: 'roleName22'
|
|
|
+ }, {
|
|
|
+ title: '是否锁定',
|
|
|
+ dataIndex: 'creater41',
|
|
|
+ key: 'creater41'
|
|
|
+ },{
|
|
|
+ title: '任务说明',
|
|
|
dataIndex: 'roleName5',
|
|
|
key: 'roleName5',
|
|
|
render:(text) => {
|
|
@@ -77,10 +112,153 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
text?text.substr(0,6)+'...':''
|
|
|
)
|
|
|
}
|
|
|
+ },{
|
|
|
+ title: '操作',
|
|
|
+ dataIndex: 'rrtk',
|
|
|
+ key: 'rrtk',
|
|
|
+ render:(text,record,index)=>{
|
|
|
+ return (
|
|
|
+ <div>
|
|
|
+ <Popconfirm title={'您将作废项目任务 【'+record.name+'】,系统将自动同步作废项目资料单,请确认!'} onConfirm={(e)=>{this.voidOperation(record)}} okText="确认" cancelText="取消">
|
|
|
+ <Button style={{marginRight:'5px'}} onClick={(e) =>{ e.stopPropagation()}} type="danger">作废</Button>
|
|
|
+ </Popconfirm>
|
|
|
+ <Button style={{marginRight:'5px'}} onClick={(e) =>{ e.stopPropagation(),this.confirmDelet(record)}} type="primary">派单</Button>
|
|
|
+ <Popconfirm title={'您将锁定项目任务【'+record.name+'】,系统将自动同步锁定项目资料单,请确认!'} onConfirm={(e)=>{this.lockOperation(record)}} okText="确认" cancelText="取消">
|
|
|
+ <Button style={{marginRight:'5px'}} onClick={(e) =>{ e.stopPropagation()}} type="danger">锁定</Button>
|
|
|
+ </Popconfirm>
|
|
|
+ </div>
|
|
|
+ )
|
|
|
+ }
|
|
|
}
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ //选择订单
|
|
|
+ columnOrder: [
|
|
|
+ {
|
|
|
+ title: '订单编号',
|
|
|
+ dataIndex: 'roleName',
|
|
|
+ key: 'roleName'
|
|
|
+ }, {
|
|
|
+ title: '项目类别',
|
|
|
+ dataIndex: 'creater1',
|
|
|
+ key: 'creater1'
|
|
|
+ },{
|
|
|
+ title: '项目数量',
|
|
|
+ dataIndex: 'roleName2',
|
|
|
+ key: 'roleName2'
|
|
|
+ }, {
|
|
|
+ title: '下单时间',
|
|
|
+ dataIndex: 'creater4',
|
|
|
+ key: 'creater4'
|
|
|
+ },{
|
|
|
+ title: '操作',
|
|
|
+ dataIndex: 'rrt',
|
|
|
+ key: 'rrt',
|
|
|
+ render:(text,record,index)=>{
|
|
|
+ return (
|
|
|
+ <div>
|
|
|
+ <Popconfirm title={'是否选择订单 【'+record.name+'】'} onConfirm={(e)=>{this.listSelect(record)}} okText="确认" cancelText="取消">
|
|
|
+ <Button style={{marginRight:'5px'}} onClick={(e) =>{ e.stopPropagation()}} type="danger">选择</Button>
|
|
|
+ </Popconfirm>
|
|
|
+ </div>
|
|
|
+ )
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ userList:[
|
|
|
+ {
|
|
|
+ title: '用户编号',
|
|
|
+ dataIndex: 'roleName',
|
|
|
+ key: 'roleName'
|
|
|
+ }, {
|
|
|
+ title: '用户姓名',
|
|
|
+ dataIndex: 'creater',
|
|
|
+ key: 'creater'
|
|
|
+ },{
|
|
|
+ title: '部门机构',
|
|
|
+ dataIndex: 'roleName1',
|
|
|
+ key: 'roleName1'
|
|
|
+ }, {
|
|
|
+ title: '职务',
|
|
|
+ dataIndex: 'creater1',
|
|
|
+ key: 'creater1'
|
|
|
+ },{
|
|
|
+ title: '联系手机',
|
|
|
+ dataIndex: 'roleName2',
|
|
|
+ key: 'roleName2'
|
|
|
+ }, {
|
|
|
+ title: '操作',
|
|
|
+ dataIndex: 'abc',
|
|
|
+ key: 'abc',
|
|
|
+ render:(text,record,index)=>{
|
|
|
+ return (
|
|
|
+ <Popconfirm title={'您确认将此订单 【'+ record.roleName+'】 分配给【'+record.roleName+'-'+record.roleName+'】进行业务跟进?'} onConfirm={(e)=>{this.confirmSelect(record)}} okText="确认" cancelText="取消">
|
|
|
+ <Button style={{marginRight:'5px'}} type="primary">选定</Button>
|
|
|
+ </Popconfirm>
|
|
|
+ )
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ],
|
|
|
};
|
|
|
},
|
|
|
+ //选定订单
|
|
|
+ listSelect(record){
|
|
|
+ this.setState({
|
|
|
+ loading: true
|
|
|
+ });
|
|
|
+ $.ajax({
|
|
|
+ method: "POST",
|
|
|
+ dataType: "json",
|
|
|
+ crossDomain: false,
|
|
|
+ url: globalConfig.context +'/api/zuofei',
|
|
|
+ data: {
|
|
|
+ id:record.id,
|
|
|
+ }
|
|
|
+ }).done(function(data) {
|
|
|
+ this.setState({
|
|
|
+ loading: false
|
|
|
+ });
|
|
|
+ if(!data.error.length) {
|
|
|
+ message.success('操作成功!');
|
|
|
+ this.orderOk();
|
|
|
+ this.addOrderDetaiel(record)
|
|
|
+ } else {
|
|
|
+ message.warning(data.error[0].message);
|
|
|
+ }
|
|
|
+ }.bind(this));
|
|
|
+ },
|
|
|
+ addOrderDetaiel(record){
|
|
|
+ this.setState({
|
|
|
+ loading: true
|
|
|
+ });
|
|
|
+ $.ajax({
|
|
|
+ method: "post",
|
|
|
+ dataType: "json",
|
|
|
+ crossDomain: false,
|
|
|
+ url: globalConfig.context + '/api/admin/xiangqing',
|
|
|
+ data: {
|
|
|
+ id:record.id
|
|
|
+ },
|
|
|
+ success: function (data) {
|
|
|
+ let theArr =[];
|
|
|
+ if (!data.data) {
|
|
|
+ if (data.error && data.error.length) {
|
|
|
+ message.warning(data.error[0].message);
|
|
|
+ };
|
|
|
+ } else {
|
|
|
+ for (let i = 0; i < data.data.list.length; i++) {
|
|
|
+ let thisdata = data.data.list;
|
|
|
+ this.setState({
|
|
|
+ key: i,
|
|
|
+ });
|
|
|
+ };
|
|
|
+ }
|
|
|
+ }.bind(this),
|
|
|
+ }).always(function () {
|
|
|
+ this.setState({
|
|
|
+ loading: false
|
|
|
+ });
|
|
|
+ }.bind(this));
|
|
|
+ },
|
|
|
//查看基本详情基本信息
|
|
|
loaduser(record){
|
|
|
if(record){
|
|
@@ -112,6 +290,41 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
}.bind(this));
|
|
|
}
|
|
|
},
|
|
|
+ //作废
|
|
|
+ voidOperation(e){
|
|
|
+ this.unlock(e,true)
|
|
|
+ },
|
|
|
+ //锁定
|
|
|
+ lockOperation(e){
|
|
|
+ this.unlock(e,false)
|
|
|
+ },
|
|
|
+ unlock(record,state){
|
|
|
+ this.setState({
|
|
|
+ loading: true
|
|
|
+ });
|
|
|
+ let api=state?'/api/zuofei':'/api/suoding'
|
|
|
+ $.ajax({
|
|
|
+ method: "POST",
|
|
|
+ dataType: "json",
|
|
|
+ crossDomain: false,
|
|
|
+ url: globalConfig.context + api,
|
|
|
+ data: {
|
|
|
+ id:this.props.datauser.id,
|
|
|
+ uid:record.id
|
|
|
+ }
|
|
|
+ }).done(function (data) {
|
|
|
+ if (!data.error.length) {
|
|
|
+ message.success('操作成功');
|
|
|
+ this.setState({
|
|
|
+ loading: false,
|
|
|
+ });
|
|
|
+ this.loadData();
|
|
|
+ } else {
|
|
|
+ message.warning(data.error[0].message);
|
|
|
+ };
|
|
|
+ this.loadData();
|
|
|
+ }.bind(this));
|
|
|
+ },
|
|
|
//订单编辑保存
|
|
|
handleOk(e) {
|
|
|
this.setState({
|
|
@@ -138,6 +351,17 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
});
|
|
|
this.props.closeDesc(false);
|
|
|
},
|
|
|
+ //选定订单
|
|
|
+ orderOk() {
|
|
|
+ this.setState({
|
|
|
+ orderSelect: false,
|
|
|
+ });
|
|
|
+ },
|
|
|
+ SelectOrder(){
|
|
|
+ this.setState({
|
|
|
+ orderSelect: true,
|
|
|
+ });
|
|
|
+ },
|
|
|
componentWillMount() {
|
|
|
|
|
|
},
|
|
@@ -251,8 +475,200 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ //派单
|
|
|
+ //操作分配
|
|
|
+ confirmDelet(index){
|
|
|
+ this.setState({
|
|
|
+ userDetaile:false,
|
|
|
+ distributionVisible:true
|
|
|
+ });
|
|
|
+ this.contactList(1,index.id)
|
|
|
+ },
|
|
|
+ distributionCancel(){
|
|
|
+ this.setState({
|
|
|
+ distributionVisible:false
|
|
|
+ })
|
|
|
+ },
|
|
|
+ distributionOk(){
|
|
|
+ this.setState({
|
|
|
+ distributionVisible:false
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //分配对象列表
|
|
|
+ contactList(pageNo,orderId){
|
|
|
+ $.ajax({
|
|
|
+ method: "post",
|
|
|
+ dataType: "json",
|
|
|
+ crossDomain: false,
|
|
|
+ url: globalConfig.context + '/api/admin/roles',
|
|
|
+ data: {
|
|
|
+ pageNo: pageNo || 1,
|
|
|
+ pageSize: this.state.distributionPagination.pageSize,
|
|
|
+ },
|
|
|
+ success: function (data) {
|
|
|
+ let theArr = [];
|
|
|
+ if (!data.data) {
|
|
|
+ if (data.error && data.error.length) {
|
|
|
+ message.warning(data.error[0].message);
|
|
|
+ };
|
|
|
+ } else {
|
|
|
+ for (let i = 0; i < data.data.list.length; i++) {
|
|
|
+ let thisdata = data.data.list[i];
|
|
|
+ theArr.push({
|
|
|
+ key: i,
|
|
|
+ id: thisdata.id,
|
|
|
+ roleName: thisdata.roleName,
|
|
|
+ creater:thisdata.creater,
|
|
|
+ createTime:thisdata.createTimez,
|
|
|
+ uid:orderId,
|
|
|
+ });
|
|
|
+ };
|
|
|
+ this.state.distributionPagination.current = data.data.pageNo;
|
|
|
+ this.state.distributionPagination.total = data.data.totalCount;
|
|
|
+ };
|
|
|
+ if(!data.data.list.length){
|
|
|
+ this.state.distributionPagination.current=0
|
|
|
+ this.state.distributionPagination.total=0
|
|
|
+ }
|
|
|
+ this.setState({
|
|
|
+ distributionList: theArr,
|
|
|
+ pagination: this.state.distributionPagination,
|
|
|
+ });
|
|
|
+ }.bind(this),
|
|
|
+ }).always(function () {
|
|
|
+ this.setState({
|
|
|
+ loading: false
|
|
|
+ });
|
|
|
+ }.bind(this));
|
|
|
+ },
|
|
|
+ //选定对象
|
|
|
+ confirmSelect(record){
|
|
|
+ this.setState({
|
|
|
+ loading: true
|
|
|
+ });
|
|
|
+ $.ajax({
|
|
|
+ method: "POST",
|
|
|
+ dataType: "json",
|
|
|
+ crossDomain: false,
|
|
|
+ url: globalConfig.context + "/api/paidan",
|
|
|
+ data: {
|
|
|
+ id:this.props.datauser.id,
|
|
|
+ uid:record.id
|
|
|
+ }
|
|
|
+ }).done(function (data) {
|
|
|
+ if (!data.error.length) {
|
|
|
+ message.success('分派成功');
|
|
|
+ this.setState({
|
|
|
+ loading: false,
|
|
|
+ });
|
|
|
+ this.distributionOk();
|
|
|
+ } else {
|
|
|
+ message.warning(data.error[0].message);
|
|
|
+ };
|
|
|
+ this.loadData();
|
|
|
+ }.bind(this));
|
|
|
+ },
|
|
|
+ //添加任务
|
|
|
+ addTask(){
|
|
|
+ this.setState({
|
|
|
+ addTaskState:true,
|
|
|
+ addnextVisible:true,
|
|
|
+ });
|
|
|
+ },
|
|
|
+ //任务新建、编辑保存
|
|
|
+ taskSumbit(e) {
|
|
|
+ e.preventDefault();
|
|
|
+// if(!this.state.customerName&&!this.state.autoId){
|
|
|
+// message.warning('请输入客户名称');
|
|
|
+// return false;
|
|
|
+// };
|
|
|
+ this.props.form.validateFields((err, values) => {
|
|
|
+ if(!err) {
|
|
|
+ this.setState({
|
|
|
+ loading: true
|
|
|
+ });
|
|
|
+ let api=this.state.addTaskState?'/api/tianjia':'/api/admin/order/bianji';
|
|
|
+ $.ajax({
|
|
|
+ method: "POST",
|
|
|
+ dataType: "json",
|
|
|
+ crossDomain: false,
|
|
|
+ url: globalConfig.context + api,
|
|
|
+ data: this.state.addTaskState?{
|
|
|
+ id:'tianjia'
|
|
|
+ }:{
|
|
|
+ id:'bianji'
|
|
|
+ }
|
|
|
+ }).done(function(data) {
|
|
|
+ this.setState({
|
|
|
+ loading: false
|
|
|
+ });
|
|
|
+ if(!data.error.length) {
|
|
|
+ message.success('保存成功!');
|
|
|
+ this.nextCancel();
|
|
|
+ this.loadData();
|
|
|
+ } else {
|
|
|
+ message.warning(data.error[0].message);
|
|
|
+ }
|
|
|
+ }.bind(this));
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ //任务项目各种骚操作
|
|
|
+ unlock(){ //解锁
|
|
|
+ this.removeList('1')
|
|
|
+ },
|
|
|
+ lock(){ //锁定
|
|
|
+ this.removeList('2')
|
|
|
+ },
|
|
|
+ removeItem(){ //撤项
|
|
|
+ this.removeList('3')
|
|
|
+ },
|
|
|
+ Knot(){ //结项
|
|
|
+ this.removeList('4')
|
|
|
+ },
|
|
|
+ removeList(e){
|
|
|
+ if(!e) return false;
|
|
|
+ this.setState({
|
|
|
+ loading: true
|
|
|
+ });
|
|
|
+ let api='';
|
|
|
+ switch (e){
|
|
|
+ case '1': //解锁
|
|
|
+ api='/api/jiesuo'
|
|
|
+ break;
|
|
|
+ case '2': //锁定
|
|
|
+ api='/api/suoding'
|
|
|
+ break;
|
|
|
+ case '3': //撤项
|
|
|
+ api='/api/chexiang'
|
|
|
+ break;
|
|
|
+ case '4': //结项
|
|
|
+ api='/api/jiexiang'
|
|
|
+ break;
|
|
|
+ };
|
|
|
+ $.ajax({
|
|
|
+ method: "POST",
|
|
|
+ dataType: "json",
|
|
|
+ crossDomain: false,
|
|
|
+ url: globalConfig.context + api,
|
|
|
+ data: {
|
|
|
+ id:this.props.datauser.id
|
|
|
+ }
|
|
|
+ }).done(function(data) {
|
|
|
+ this.setState({
|
|
|
+ loading: false
|
|
|
+ });
|
|
|
+ if(!data.error.length) {
|
|
|
+ message.success('操作成功!');
|
|
|
+ this.handleOk()
|
|
|
+ } else {
|
|
|
+ message.warning(data.error[0].message);
|
|
|
+ }
|
|
|
+ }.bind(this));
|
|
|
+ },
|
|
|
tableRowClick(record, index) {
|
|
|
this.setState({
|
|
|
+ addTaskState:false,
|
|
|
addnextVisible:true,
|
|
|
});
|
|
|
this.orderDetails(record)
|
|
@@ -273,13 +689,28 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
labelCol: { span: 8 },
|
|
|
wrapperCol: { span: 14 },
|
|
|
};
|
|
|
+ const rowSelection = {
|
|
|
+ selectedRowKey: this.state.selectedRowKey,
|
|
|
+ onChange: (selectedRowKey, selectedRows) => {
|
|
|
+ this.setState({
|
|
|
+ selectedRows: selectedRows.slice(-1),
|
|
|
+ selectedRowKey: selectedRowKey.slice(-1)
|
|
|
+ });
|
|
|
+ },
|
|
|
+ onSelectAll: (selected, selectedRows, changeRows) => {
|
|
|
+ this.setState({
|
|
|
+ selectedRowKey:[]
|
|
|
+ })
|
|
|
+ },
|
|
|
+ };
|
|
|
+ const hasSelected = this.state.selectedRowKey.length > 0;
|
|
|
const orderDetaiel=this.state.orderList || [];
|
|
|
return(
|
|
|
<div>
|
|
|
<Modal maskClosable={false} visible={this.state.visible}
|
|
|
onOk={this.handleOk} onCancel={this.handleCancel}
|
|
|
width='1000px'
|
|
|
- title='编辑订单'
|
|
|
+ title={this.props.projectState?'项目管理':'编辑订单' }
|
|
|
footer=''
|
|
|
className="admin-desc-content">
|
|
|
<Form layout="horizontal" id="demand-form" style={{paddingBottom:'40px'}} onSubmit={this.handleSubmit}>
|
|
@@ -288,163 +719,232 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
<div className="clearfix">
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="订单编号" >
|
|
|
+ label="订单关联" >
|
|
|
<span>{orderDetaiel.roleName}</span>
|
|
|
+ <Button type='primary' onClick={this.seeOrder} style={{float:'right'}}>查看订单</Button>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="下单时间" >
|
|
|
+ label="项目编号" >
|
|
|
<span>{orderDetaiel.createTimez}</span>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="客户名称" >
|
|
|
<span>{orderDetaiel.roleName}</span>
|
|
|
+ <Button type='primary' onClick={this.seeOrder} style={{float:'right'}}>查看联系人</Button>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="订单类型" >
|
|
|
+ label="项目类型" >
|
|
|
<span>{orderDetaiel.roleName}</span>
|
|
|
</FormItem>
|
|
|
+ {!this.props.projectState?<FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="项目负责人" >
|
|
|
+ <Input value={this.state.ordesss} onChange={(e)=>{this.setState({ordesss:e.target.value})}} style={{width:'240px'}}/>
|
|
|
+ <span className="mandatory">*</span>
|
|
|
+ </FormItem>:
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="订单渠道" >
|
|
|
+ label="项目负责人" >
|
|
|
<span>{orderDetaiel.roleName}</span>
|
|
|
- </FormItem>
|
|
|
+ </FormItem>}
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="订单状态" >
|
|
|
+ label="项目状态" >
|
|
|
<span>{orderDetaiel.roleName}</span>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="已收款项" >
|
|
|
+ label="是否锁定" >
|
|
|
<span>{orderDetaiel.roleName}</span>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="结算状态" >
|
|
|
+ label="立项时间" >
|
|
|
<span>{orderDetaiel.roleName}</span>
|
|
|
</FormItem>
|
|
|
- <div className='clearfix'>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="特批立项" >
|
|
|
- <Select placeholder="选择特批立项类型"
|
|
|
- style={{ width:'240px'}}
|
|
|
- value={this.state.orderType}
|
|
|
- onChange={(e) => { this.setState({ orderType: e }) }}>
|
|
|
- <Select.Option value='0'>不特批</Select.Option>
|
|
|
- <Select.Option value='1'>申请特批</Select.Option>
|
|
|
- <Select.Option value='2'>特批通过</Select.Option>
|
|
|
- <Select.Option value='3'>特批驳回</Select.Option>
|
|
|
- </Select>
|
|
|
- <span className="mandatory">*</span>
|
|
|
- </FormItem>
|
|
|
- </div>
|
|
|
<div className='clearfix'>
|
|
|
<FormItem
|
|
|
labelCol={{ span: 4 }}
|
|
|
wrapperCol={{ span: 16 }}
|
|
|
- label="订单留言" >
|
|
|
- <Input type="textarea" placeholder="请输入订单留言" rows={4} value={this.state.introduction}
|
|
|
- onChange={(e)=>{this.setState({introduction:e.target.value})}}/>
|
|
|
+ label="立项说明" >
|
|
|
+ <span>{orderDetaiel.roleName}</span>
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div className='clearfix'>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="订单负责人" >
|
|
|
+ label="结项日期" >
|
|
|
<span>{orderDetaiel.roleName}</span>
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className='clearfix'>
|
|
|
+ <FormItem
|
|
|
+ labelCol={{ span: 4 }}
|
|
|
+ wrapperCol={{ span: 16 }}
|
|
|
+ label="结项说明" >
|
|
|
+ <span>{orderDetaiel.roleName}</span>
|
|
|
+ </FormItem>
|
|
|
+ </div>
|
|
|
+ <div className='clearfix'>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="意向时间" >
|
|
|
- <span>{orderDetaiel.createTimez}</span>
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="签单时间" >
|
|
|
- <span>{orderDetaiel.createTimez}</span>
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="财务负责人" >
|
|
|
- <span>{orderDetaiel.createTimez}</span>
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="首付时间" >
|
|
|
- <span>{orderDetaiel.createTimez}</span>
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="项目负责人" >
|
|
|
- <span>{orderDetaiel.roleName}</span>
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="立项时间" >
|
|
|
+ label="是否作废" >
|
|
|
<span>{orderDetaiel.createTimez}</span>
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <span style={{marginLeft:'50px',fontSize:'20px'}}>订单明细</span>
|
|
|
+ <span style={{marginLeft:'50px',fontSize:'20px'}}>项目任务</span>
|
|
|
+ {!this.props.projectState&&<Button type='primary' onClick={this.addTask} style={{float:'right',marginRight:'100px'}}>添加任务</Button>}
|
|
|
</div>
|
|
|
<div className="patent-table">
|
|
|
<Spin spinning={this.state.loading}>
|
|
|
<Table columns={this.state.columns}
|
|
|
dataSource={this.state.dataSource}
|
|
|
- pagination={this.state.pagination}
|
|
|
+ pagination={false}
|
|
|
onRowClick={this.tableRowClick}
|
|
|
/>
|
|
|
</Spin>
|
|
|
</div>
|
|
|
- <div style={{marginTop:'30px',paddingLeft:'100px'}}>
|
|
|
+ {!this.props.projectState?<div style={{marginTop:'30px',paddingLeft:'100px'}}>
|
|
|
<Button className="setSave" type="primary" htmlType="submit" style={{marginRight:'50px'}}>保存</Button>
|
|
|
<Button className="cancel" type="ghost" onClick={this.handleCancel}>返回</Button>
|
|
|
- </div>
|
|
|
+ </div>:
|
|
|
+ <div style={{marginTop:'30px',paddingLeft:'100px'}}>
|
|
|
+ <Button type="primary" onClick={this.removeItem}>撤项</Button>
|
|
|
+ <Button type="primary" onClick={this.Knot} style={{margin:'15px'}}>结项</Button>
|
|
|
+ <Button type="danger" onClick={this.lock}>锁定</Button>
|
|
|
+ <Button type="primary" onClick={this.unlock} style={{margin:'15px'}}>解锁</Button>
|
|
|
+ <Button type="ghost" onClick={this.handleCancel}>返回</Button>
|
|
|
+ </div>}
|
|
|
</div>
|
|
|
</Spin>
|
|
|
</Form >
|
|
|
</Modal>
|
|
|
<Modal maskClosable={false} visible={this.state.addnextVisible}
|
|
|
onOk={this.nextCancel} onCancel={this.nextCancel}
|
|
|
- width='550px'
|
|
|
- title='查看订单明细服务'
|
|
|
+ width='800px'
|
|
|
+ title={this.state.addTaskState?'添加任务':'编辑任务'}
|
|
|
footer=''
|
|
|
className="admin-desc-content">
|
|
|
- <Form layout="horizontal" id="demand-form">
|
|
|
+ <Form layout="horizontal" id="demand-form" onSubmit={this.taskSumbit}>
|
|
|
<Spin spinning={this.state.loading}>
|
|
|
+ {this.state.addTaskState?<div className="clearfix">
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="服务名称分类" >
|
|
|
+ <Select placeholder="选择服务项目分类"
|
|
|
+ style={{ width: 200 ,marginRight:'10px'}}
|
|
|
+ value={this.state.orderStatus}
|
|
|
+ onChange={(e) => { this.setState({ orderStatus: e }) }}>
|
|
|
+ {
|
|
|
+ orderType.map(function (item) {
|
|
|
+ return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
|
+ })
|
|
|
+ }
|
|
|
+ </Select>
|
|
|
+ <span className="mandatory">*</span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="服务项目名称" >
|
|
|
+ <Input value={this.state.leibie} style={{ width: 200 }} placeholder="输入服务项目名称"
|
|
|
+ onChange={(e)=>{this.setState({leibie:e.target.value})}}/>
|
|
|
+ <span className="mandatory">*</span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="数量" >
|
|
|
+ <Input value={this.state.leibie} style={{ width: 200 }} placeholder="输入数量"
|
|
|
+ onChange={(e)=>{this.setState({leibie:e.target.value})}}/>
|
|
|
+ <span className="mandatory">*</span>
|
|
|
+ </FormItem>
|
|
|
+ <div className='clearfix'>
|
|
|
+ <FormItem
|
|
|
+ labelCol={{ span: 4 }}
|
|
|
+ wrapperCol={{ span: 16 }}
|
|
|
+ label="任务说明" >
|
|
|
+ <Input type="textarea" placeholder="请输入订单留言" rows={4} value={this.state.introduction}
|
|
|
+ onChange={(e)=>{this.setState({introduction:e.target.value})}}/>
|
|
|
+ </FormItem>
|
|
|
+ </div>
|
|
|
+ </div>:
|
|
|
<div className="clearfix">
|
|
|
- <FormItem className="half-middle"
|
|
|
+ <FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="服务名称" >
|
|
|
- <span>{this.state.aaa}</span>
|
|
|
+ label="项目编号" >
|
|
|
+ <span>{this.state.bianhao}</span>
|
|
|
</FormItem>
|
|
|
- <FormItem className="half-middle"
|
|
|
+ <FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="项目类别" >
|
|
|
- <span>{this.state.aaa}</span>
|
|
|
+ label="任务编号" >
|
|
|
+ <span>{this.state.bianhao}</span>
|
|
|
</FormItem>
|
|
|
- <FormItem className="half-middle"
|
|
|
+ <FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="项目数量" >
|
|
|
- <span>{this.state.aaa}</span>
|
|
|
+ label="服务名称分类" >
|
|
|
+ <Select placeholder="选择服务项目分类"
|
|
|
+ style={{ width: 200 ,marginRight:'10px'}}
|
|
|
+ value={this.state.orderStatus}
|
|
|
+ onChange={(e) => { this.setState({ orderStatus: e }) }}>
|
|
|
+ {
|
|
|
+ orderType.map(function (item) {
|
|
|
+ return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
|
+ })
|
|
|
+ }
|
|
|
+ </Select>
|
|
|
+ <span className="mandatory">*</span>
|
|
|
</FormItem>
|
|
|
- <FormItem className="half-middle"
|
|
|
+ <FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="下单时间" >
|
|
|
- <span>{this.state.aaa}</span>
|
|
|
+ label="服务项目名称" >
|
|
|
+ <Input value={this.state.leibie} style={{ width: 200 }} placeholder="输入服务项目名称"
|
|
|
+ onChange={(e)=>{this.setState({leibie:e.target.value})}}/>
|
|
|
+ <span className="mandatory">*</span>
|
|
|
</FormItem>
|
|
|
- <FormItem className="half-middle"
|
|
|
+ <FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="服务说明" >
|
|
|
- <span>{this.state.aaa}</span>
|
|
|
+ label="任务状态" >
|
|
|
+ <span>{this.state.bianhao}</span>
|
|
|
</FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="是否锁定" >
|
|
|
+ <span>{this.state.bianhao}</span>
|
|
|
+ </FormItem>
|
|
|
+ <div className='clearfix'>
|
|
|
+ <FormItem
|
|
|
+ labelCol={{ span: 4 }}
|
|
|
+ wrapperCol={{ span: 16 }}
|
|
|
+ label="任务说明" >
|
|
|
+ <Input type="textarea" placeholder="请输入订单留言" rows={4} value={this.state.introduction}
|
|
|
+ onChange={(e)=>{this.setState({introduction:e.target.value})}}/>
|
|
|
+ </FormItem>
|
|
|
+ </div>
|
|
|
+ <div className='clearfix'>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="派单人" >
|
|
|
+ <span>{this.state.bianhao}</span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="派单时间" >
|
|
|
+ <span>{this.state.bianhao}</span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="资料负责人" >
|
|
|
+ <span>{this.state.bianhao}</span>
|
|
|
+ </FormItem>
|
|
|
+ </div>
|
|
|
+ </div>}
|
|
|
+ <div className="clearfix" style={{marginBottom:'20px'}}>
|
|
|
+ <Button className="setSave" type="primary" htmlType="submit">保存</Button>
|
|
|
+ <Button className="cancel" type="ghost" onClick={this.nextCancel}>返回</Button>
|
|
|
</div>
|
|
|
</Spin>
|
|
|
</Form >
|
|
@@ -455,7 +955,7 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
title='创建订单'
|
|
|
footer=''
|
|
|
className="admin-desc-content">
|
|
|
- <Form layout="horizontal" id="demand-form" style={{paddingBottom:'40px'}} onSubmit={this.addProjectSubmit}>
|
|
|
+ <Form layout="horizontal" id="demand-form" style={{paddingBottom:'40px'}} >
|
|
|
<Spin spinning={this.state.loading}>
|
|
|
<div className="clearfix">
|
|
|
<div>
|
|
@@ -464,37 +964,40 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
label="订单关联" >
|
|
|
<span>{this.state.roleName}</span>
|
|
|
</FormItem>
|
|
|
+ <Button type='primary' onClick={this.SelectOrder}>选定</Button>
|
|
|
</div>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="订单状态" >
|
|
|
- <span>{this.state.roleName}</span>
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="订单时间" >
|
|
|
- <span>{this.state.roleName}</span>
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="结算状态" >
|
|
|
- <span>{this.state.roleName}</span>
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="是否特批" >
|
|
|
- <span>{this.state.roleName}</span>
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="订单类型" >
|
|
|
- <span>{this.state.roleName}</span>
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="订单负责人" >
|
|
|
- <span>{this.state.roleName}</span>
|
|
|
- </FormItem>
|
|
|
+ <div className='clearfix'>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="订单状态" >
|
|
|
+ <span>{this.state.roleName}</span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="订单时间" >
|
|
|
+ <span>{this.state.roleName}</span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="结算状态" >
|
|
|
+ <span>{this.state.roleName}</span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="是否特批" >
|
|
|
+ <span>{this.state.roleName}</span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="订单类型" >
|
|
|
+ <span>{this.state.roleName}</span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="订单负责人" >
|
|
|
+ <span>{this.state.roleName}</span>
|
|
|
+ </FormItem>
|
|
|
+ </div>
|
|
|
<div className='clearfix'>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
@@ -511,7 +1014,7 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
value={this.state.projectType}
|
|
|
onChange={(e) => { this.setState({ projectType: e }) }}>
|
|
|
{
|
|
|
- lvl.map(function (item) {
|
|
|
+ orderType.map(function (item) {
|
|
|
return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
|
})
|
|
|
}
|
|
@@ -544,7 +1047,55 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
</FormItem>
|
|
|
</Spin>
|
|
|
</Form >
|
|
|
- </Modal>
|
|
|
+ </Modal>
|
|
|
+ <Modal maskClosable={false} visible={this.state.orderSelect}
|
|
|
+ onOk={this.orderOk} onCancel={this.orderOk}
|
|
|
+ width='800px'
|
|
|
+ title='选择关联订单'
|
|
|
+ footer=''
|
|
|
+ className="admin-desc-content">
|
|
|
+ <Form layout="horizontal" id="demand-form" style={{paddingBottom:'40px'}}>
|
|
|
+ <Spin spinning={this.state.loading}>
|
|
|
+ <div className="clearfix">
|
|
|
+ <div className="clearfix">
|
|
|
+ <Table columns={this.state.columnOrder}
|
|
|
+ dataSource={this.state.dataOrder}
|
|
|
+ pagination={this.state.pagination}
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </Spin>
|
|
|
+ </Form>
|
|
|
+ </Modal>
|
|
|
+ <Modal maskClosable={false} visible={this.state.distributionVisible}
|
|
|
+ onOk={this.distributionOk} onCancel={this.distributionCancel}
|
|
|
+ width='800px'
|
|
|
+ title='分派财务订单'
|
|
|
+ footer=''
|
|
|
+ className="admin-desc-content">
|
|
|
+ <Form layout="horizontal" id="demand-form" style={{paddingBottom:'40px'}} >
|
|
|
+ <Spin spinning={this.state.loading}>
|
|
|
+ <div>
|
|
|
+ <Input placeholder="部门名称" style={{width:'150px'}}
|
|
|
+ value={this.state.customerName}
|
|
|
+ onChange={(e) => { this.setState({ customerName: e.target.value }); }} />
|
|
|
+ <Input placeholder="财务负责人" style={{width:'150px',marginLeft:'10px'}}
|
|
|
+ value={this.state.customerName}
|
|
|
+ onChange={(e) => { this.setState({ customerName: e.target.value }); }} />
|
|
|
+ <Button type="primary" onClick={this.searchOrder} style={{marginLeft:'10px',marginRight:'10px'}}>搜索</Button>
|
|
|
+ <Button onClick={this.resetOrder}>重置</Button>
|
|
|
+ </div>
|
|
|
+ <div className="patent-table" style={{marginTop:'10px'}}>
|
|
|
+ <Spin spinning={this.state.loading}>
|
|
|
+ <Table columns={this.state.userList}
|
|
|
+ dataSource={this.state.distributionList}
|
|
|
+ pagination={this.state.distributionPagination}
|
|
|
+ />
|
|
|
+ </Spin>
|
|
|
+ </div>
|
|
|
+ </Spin>
|
|
|
+ </Form>
|
|
|
+ </Modal>
|
|
|
</div>
|
|
|
)
|
|
|
}
|