|
@@ -3,6 +3,10 @@ import ReactDom from 'react-dom';
|
|
|
import ajax from 'jquery/src/ajax/xhr.js';
|
|
|
import $ from 'jquery/src/ajax';
|
|
|
import '../content.less';
|
|
|
+import { citySelect } from '../../../NewDicProvinceList';
|
|
|
+import {
|
|
|
+ getNewDiccityArr,
|
|
|
+} from "@/tools.js";
|
|
|
import { Form,Radio, Icon, Button, Input, Select, Spin, Table, Switch, message, DatePicker, Modal, Upload,Popconfirm,AutoComplete,Tabs } from 'antd';
|
|
|
import {patternOrganization,conditionOrganization} from '../../../dataDic.js';
|
|
|
import {getPattern,getCondition} from '../../../tools.js';
|
|
@@ -62,7 +66,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
loading: false
|
|
|
});
|
|
|
}.bind(this));
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
getInitialState() {
|
|
|
return {
|
|
@@ -109,7 +113,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
dataIndex: 'status',
|
|
|
key: 'status',
|
|
|
render: text => { return getCondition(text) }
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
],
|
|
|
dataSource: [],
|
|
@@ -120,7 +124,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
this.selectSuperId();
|
|
|
},
|
|
|
//获取上级组织
|
|
|
- selectSuperId() {
|
|
|
+ selectSuperId() {
|
|
|
this.state.data = []
|
|
|
$.ajax({
|
|
|
method: "get",
|
|
@@ -128,18 +132,18 @@ const Organization=Form.create()(React.createClass({
|
|
|
crossDomain: false,
|
|
|
url: globalConfig.context + "/api/admin/organization/selectSuperId",
|
|
|
data:{
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
+ success: function (data) {
|
|
|
let theArr = [];
|
|
|
let theId=[];//用于保存上级组织的ID和名称
|
|
|
let thedata=data.data;
|
|
|
if (!thedata) {
|
|
|
if (data.error && data.error.length) {
|
|
|
message.warning(data.error[0].message);
|
|
|
- };
|
|
|
- thedata = {};
|
|
|
- };
|
|
|
+ };
|
|
|
+ thedata = {};
|
|
|
+ };
|
|
|
var contactIds=[];
|
|
|
for(var i=0;i<data.data.length;i++){
|
|
|
let theData = data.data[i];
|
|
@@ -150,13 +154,13 @@ const Organization=Form.create()(React.createClass({
|
|
|
[theData.id,theData.name]
|
|
|
);
|
|
|
};
|
|
|
- this.setState({
|
|
|
+ this.setState({
|
|
|
SuperArr:thedata,
|
|
|
- contactsOption: theArr,
|
|
|
- theId: theId,
|
|
|
+ contactsOption: theArr,
|
|
|
+ theId: theId,
|
|
|
orderStatusOptions:data.data,
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
}.bind(this),
|
|
|
}).always(function () {
|
|
|
this.loadData();
|
|
@@ -167,7 +171,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
},
|
|
|
//编辑部门,保存
|
|
|
edithandleSubmit(e){
|
|
|
- e.preventDefault();
|
|
|
+ e.preventDefault();
|
|
|
//上级组织字典
|
|
|
let nameText=this.state.SuperArr
|
|
|
let superText=this.state.editSuperId;
|
|
@@ -208,7 +212,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
remarks: remarksText, //组织职能说明
|
|
|
id: this.state.editId, //组织ID
|
|
|
updateOrganization: this.state.updateOrganization,
|
|
|
- abbreviation: this.state.abbreviation
|
|
|
+ abbreviation: this.state.abbreviation,
|
|
|
}
|
|
|
}).done(
|
|
|
function(data) {
|
|
@@ -263,7 +267,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
}
|
|
|
}.bind(this)
|
|
|
);
|
|
|
- }
|
|
|
+ }
|
|
|
}
|
|
|
}else{
|
|
|
if(!(superOne==superText)){
|
|
@@ -287,6 +291,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
: this.state.financeId, //负责人ID
|
|
|
superId: this.state.editSuperId, //上级组织
|
|
|
status: this.state.editStatus, //组织状态
|
|
|
+ province: thisdata.province,//省份
|
|
|
remarks: remarksText, //组织职能说明
|
|
|
id: this.state.editId, //组织ID
|
|
|
abbreviation: this.state.abbreviation
|
|
@@ -329,7 +334,8 @@ const Organization=Form.create()(React.createClass({
|
|
|
status: this.state.editStatus, //组织状态
|
|
|
remarks: remarksText, //组织职能说明
|
|
|
id: this.state.editId, //组织ID
|
|
|
- abbreviation: this.state.abbreviation
|
|
|
+ abbreviation: this.state.abbreviation,
|
|
|
+ province: this.state.province,
|
|
|
}
|
|
|
}).done(
|
|
|
function(data) {
|
|
@@ -345,18 +351,18 @@ const Organization=Form.create()(React.createClass({
|
|
|
}
|
|
|
}.bind(this)
|
|
|
);
|
|
|
- }
|
|
|
+ }
|
|
|
}
|
|
|
- },
|
|
|
+ },
|
|
|
//整行点击
|
|
|
tableRowClick(record, index) {
|
|
|
this.selectSuperId();
|
|
|
- this.state.RowData = record;
|
|
|
+ this.state.RowData = record;
|
|
|
this.setState({
|
|
|
editvisible: true,
|
|
|
selectedRowKeys:[],
|
|
|
rowId:record.businessId,
|
|
|
- })
|
|
|
+ })
|
|
|
$.ajax({
|
|
|
method: "post",
|
|
|
dataType: "json",
|
|
@@ -379,6 +385,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
editManagerId: thisdata.managerId, //负责人
|
|
|
editType: thisdata.type, //组织类型
|
|
|
editStatus: thisdata.status, //组织状态
|
|
|
+ province: thisdata.province,//省份
|
|
|
editSuperId: thisdata.superId, //上级组织
|
|
|
editDepNo: thisdata.depNo, //组织编号
|
|
|
editCreateId: thisdata.createId, //创建人
|
|
@@ -386,7 +393,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
editRemarks: thisdata.remarks, //组织职能说明
|
|
|
financeId: thisdata.financeId
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
};
|
|
|
this.setState({
|
|
|
editId: thisdata.id, //每一条记录的ID
|
|
@@ -397,6 +404,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
managerIdOrganizationId: thisdata.managerId, //负责人idmanagerName
|
|
|
editType: thisdata.type, //组织类型
|
|
|
editStatus: thisdata.status, //组织状态
|
|
|
+ province: thisdata.province, //省份
|
|
|
editSuperId: thisdata.superId, //上级组织
|
|
|
editDepNo: thisdata.depNo, //组织编号
|
|
|
editCreateId: thisdata.createId, //创建人
|
|
@@ -450,7 +458,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
},
|
|
|
//新增一个部门,保存
|
|
|
addhandleSubmit(e){
|
|
|
- e.preventDefault();
|
|
|
+ e.preventDefault();
|
|
|
// if(!this.state.theTypes){
|
|
|
// message.warning('请输入负责人姓名');
|
|
|
// return false;
|
|
@@ -460,14 +468,14 @@ const Organization=Form.create()(React.createClass({
|
|
|
return false;
|
|
|
}
|
|
|
if(!this.state.upOrganization){
|
|
|
- message.warning('请选择上级组织');
|
|
|
+ message.warning('请选择上级组织');
|
|
|
return false;
|
|
|
}
|
|
|
- this.props.form.validateFields((err, values) => {
|
|
|
+ this.props.form.validateFields((err, values) => {
|
|
|
if (!err) {
|
|
|
this.setState({
|
|
|
loading: true
|
|
|
- });
|
|
|
+ });
|
|
|
$.ajax({
|
|
|
method: "post",
|
|
|
dataType: "json",
|
|
@@ -480,12 +488,12 @@ const Organization=Form.create()(React.createClass({
|
|
|
superId:this.state.upOrganization,//上级组织
|
|
|
remarks:this.state.remarksOrganization,//组织职能说明
|
|
|
}
|
|
|
- }).done(function (data) {
|
|
|
+ }).done(function (data) {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
|
if (!data.error.length) {
|
|
|
- message.success('保存成功!');
|
|
|
+ message.success('保存成功!');
|
|
|
this.handleCancel();
|
|
|
this.selectSuperId();
|
|
|
} else {
|
|
@@ -495,9 +503,9 @@ const Organization=Form.create()(React.createClass({
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
//主管初始加载(自动补全)
|
|
|
- supervisor(e){
|
|
|
+ supervisor(e){
|
|
|
$.ajax({
|
|
|
method: "post",
|
|
|
dataType: "json",
|
|
@@ -506,23 +514,23 @@ const Organization=Form.create()(React.createClass({
|
|
|
data:{
|
|
|
name:e
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
+ success: function (data) {
|
|
|
let thedata=data.data;
|
|
|
if (!thedata) {
|
|
|
if (data.error && data.error.length) {
|
|
|
message.warning(data.error[0].message);
|
|
|
- };
|
|
|
- thedata = {};
|
|
|
- };
|
|
|
+ };
|
|
|
+ thedata = {};
|
|
|
+ };
|
|
|
this.setState({
|
|
|
- customerArr:thedata,
|
|
|
+ customerArr:thedata,
|
|
|
});
|
|
|
}.bind(this),
|
|
|
}).always(function () {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
|
- }.bind(this));
|
|
|
+ }.bind(this));
|
|
|
},
|
|
|
//上级主管输入框失去焦点是判断客户是否存在
|
|
|
selectAuto(value,options){
|
|
@@ -536,7 +544,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
if (item.name == value.toString()) {
|
|
|
theType = item.id;
|
|
|
}
|
|
|
- });
|
|
|
+ });
|
|
|
}
|
|
|
this.setState({
|
|
|
theTypes:theType
|
|
@@ -553,7 +561,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
if (item.name == value.toString()) {
|
|
|
theType = item.id;
|
|
|
}
|
|
|
- });
|
|
|
+ });
|
|
|
}
|
|
|
this.setState({
|
|
|
theTypes2:theType
|
|
@@ -566,16 +574,16 @@ const Organization=Form.create()(React.createClass({
|
|
|
//值改变时请求客户名称
|
|
|
httpChange(e){
|
|
|
if(e.length>=1){
|
|
|
- this.supervisor(e);
|
|
|
- }
|
|
|
+ this.supervisor(e);
|
|
|
+ }
|
|
|
this.setState({
|
|
|
managerIdOrganization:e
|
|
|
})
|
|
|
},
|
|
|
httpChange2(e){
|
|
|
if(e.length>=1){
|
|
|
- this.supervisor(e);
|
|
|
- }
|
|
|
+ this.supervisor(e);
|
|
|
+ }
|
|
|
this.setState({
|
|
|
financeName:e
|
|
|
})
|
|
@@ -594,7 +602,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
visible: true
|
|
|
});
|
|
|
this.selectSuperId();
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
editClick() {
|
|
|
this.state.RowData = {};
|
|
@@ -618,7 +626,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
this.state.name = '';//组织名称清零
|
|
|
this.state.type = undefined;//组织类型清零
|
|
|
this.state.depNo = '';//组织编号清零
|
|
|
- this.loadData();
|
|
|
+ this.loadData();
|
|
|
},
|
|
|
searchSwitch() {
|
|
|
this.setState({
|
|
@@ -648,7 +656,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
selectedRowKeys: selectedRowKeys.slice(-1)
|
|
|
});
|
|
|
},
|
|
|
- onSelect: (recordt, selected, selectedRows) => {
|
|
|
+ onSelect: (recordt, selected, selectedRows) => {
|
|
|
this.setState({
|
|
|
recordt:recordt.id
|
|
|
})
|
|
@@ -690,7 +698,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
<Button onClick={this.reset} style={{marginRight:'10px'}}>重置</Button>
|
|
|
<Popconfirm title="是否删除?" onConfirm={this.delectRow} okText="是" cancelText="否">
|
|
|
<Button style={{ background: "#ea0862", border: "none", color: "#fff",marginRight:'10px' ,marginLeft:'10px'}}
|
|
|
- disabled={!hasSelected}
|
|
|
+ disabled={!hasSelected}
|
|
|
>删除<Icon type="minus" />
|
|
|
</Button>
|
|
|
</Popconfirm>
|
|
@@ -738,18 +746,18 @@ const Organization=Form.create()(React.createClass({
|
|
|
onRowClick={this.tableRowClick} />
|
|
|
</Spin>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<div className="patent-desc">
|
|
|
<Modal maskClosable={false} visible={this.state.visible}
|
|
|
onOk={this.checkPatentProcess} onCancel={this.handleCancel}
|
|
|
width='600px'
|
|
|
- title='新增组织'
|
|
|
+ title='新增组织'
|
|
|
footer=''
|
|
|
className="admin-desc-content">
|
|
|
<Form horizontal onSubmit={this.addhandleSubmit} id="add-form">
|
|
|
<Spin spinning={this.state.loading}>
|
|
|
<div className="clearfix">
|
|
|
- <FormItem
|
|
|
+ <FormItem
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="组织名称" >
|
|
@@ -759,7 +767,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
- <FormItem
|
|
|
+ <FormItem
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12}}
|
|
|
label="负责人"
|
|
@@ -775,44 +783,44 @@ const Organization=Form.create()(React.createClass({
|
|
|
filterOption={true}
|
|
|
onBlur={this.blurChange}
|
|
|
onSelect={this.selectAuto}
|
|
|
- style={{width:'95%'}}
|
|
|
+ style={{width:'95%'}}
|
|
|
>
|
|
|
<Input />
|
|
|
- </AutoComplete>
|
|
|
+ </AutoComplete>
|
|
|
{/*<span className="mandatory" style={{color:'red',marginLeft:'5px'}}>*</span>*/}
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<div className="clearfix">
|
|
|
- <FormItem
|
|
|
+ <FormItem
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="组织类型"
|
|
|
- >
|
|
|
- <Select placeholder="组织类型" value={this.state.typeOrganization}
|
|
|
- onChange={(e)=>{this.setState({typeOrganization:e})}} style={{width:'95%'}} required="required">
|
|
|
+ >
|
|
|
+ <Select placeholder="组织类型" value={this.state.typeOrganization}
|
|
|
+ onChange={(e)=>{this.setState({typeOrganization:e})}} style={{width:'95%'}} required="required">
|
|
|
{
|
|
|
patternOrganization.map(function (item) {
|
|
|
return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
|
})
|
|
|
}
|
|
|
- </Select>
|
|
|
+ </Select>
|
|
|
<span className="mandatory" style={{color:'red',marginLeft:'5px'}}>*</span>
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
- <FormItem
|
|
|
+ <FormItem
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="上级组织"
|
|
|
- >
|
|
|
- <Select placeholder="请选择上级组织"
|
|
|
- value={this.state.upOrganization}
|
|
|
+ >
|
|
|
+ <Select placeholder="请选择上级组织"
|
|
|
+ value={this.state.upOrganization}
|
|
|
onChange={(e)=>{this.setState({upOrganization:e})}}
|
|
|
- notFoundContent="未获取到上级组织列表"
|
|
|
+ notFoundContent="未获取到上级组织列表"
|
|
|
style={{width:'95%'}} required="required">
|
|
|
{this.state.contactsOption}
|
|
|
- </Select>
|
|
|
+ </Select>
|
|
|
<span className="mandatory" style={{color:'red',marginLeft:'5px'}}>*</span>
|
|
|
</FormItem>
|
|
|
</div>
|
|
@@ -820,41 +828,41 @@ const Organization=Form.create()(React.createClass({
|
|
|
<FormItem
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
- label="组织职能说明" >
|
|
|
+ label="组织职能说明" >
|
|
|
<Input type="textarea" rows={4} placeholder="组织职能说明" value={this.state.remarksOrganization}
|
|
|
- onChange={(e) => { this.setState({ remarksOrganization: e.target.value }) }} style={{width:'95%'}}/>
|
|
|
+ onChange={(e) => { this.setState({ remarksOrganization: e.target.value }) }} style={{width:'95%'}}/>
|
|
|
</FormItem>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
<FormItem wrapperCol={{ span: 12, offset: 7 }}>
|
|
|
- <Button className="set-submit" type="primary" htmlType="submit">保存</Button>
|
|
|
+ <Button className="set-submit" type="primary" htmlType="submit">保存</Button>
|
|
|
<Button className="set-submit" type="ghost" onClick={this.handleCancel} style={{marginLeft:'100px'}}>取消</Button>
|
|
|
- </FormItem>
|
|
|
+ </FormItem>
|
|
|
</Spin>
|
|
|
</Form >
|
|
|
</Modal>
|
|
|
</div>
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
<div className="patent-desc">
|
|
|
<Modal maskClosable={false} visible={this.state.editvisible}
|
|
|
onOk={this.checkPatentProcess} onCancel={this.edithandleCancel}
|
|
|
width='600px'
|
|
|
- title='编辑组织'
|
|
|
+ title='编辑组织'
|
|
|
footer=''
|
|
|
className="admin-desc-content">
|
|
|
<Form horizontal onSubmit={this.edithandleSubmit} id="edit-form">
|
|
|
<Spin spinning={this.state.loading}>
|
|
|
<div className="clearfix">
|
|
|
- <FormItem
|
|
|
+ <FormItem
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="组织名称" >
|
|
|
- <Input placeholder="组织名称" value={this.state.editName}
|
|
|
+ <Input placeholder="组织名称" value={this.state.editName}
|
|
|
onChange={(e)=>{this.setState({editName:e.target.value})}}/>
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
- <FormItem
|
|
|
+ <FormItem
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12}}
|
|
|
label="负责人"
|
|
@@ -870,21 +878,21 @@ const Organization=Form.create()(React.createClass({
|
|
|
filterOption={true}
|
|
|
onBlur={this.blurChange}
|
|
|
onSelect={this.selectAuto}
|
|
|
- style={{width:'95%'}}
|
|
|
+ style={{width:'95%'}}
|
|
|
>
|
|
|
<Input />
|
|
|
- </AutoComplete>
|
|
|
+ </AutoComplete>
|
|
|
{/* <span className="mandatory" style={{color:'red',marginLeft:'5px'}}>*</span> */}
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
- <FormItem
|
|
|
+ <FormItem
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="组织类型"
|
|
|
- >
|
|
|
- <Select placeholder="组织类型" value={this.state.editType}
|
|
|
- onChange={(e)=>{this.setState({editType:e})}}>
|
|
|
+ >
|
|
|
+ <Select placeholder="组织类型" value={this.state.editType}
|
|
|
+ onChange={(e)=>{this.setState({editType:e})}}>
|
|
|
{
|
|
|
patternOrganization.map(function (item) {
|
|
|
return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
@@ -894,13 +902,13 @@ const Organization=Form.create()(React.createClass({
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
- <FormItem
|
|
|
+ <FormItem
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="组织状态"
|
|
|
- >
|
|
|
- <Select placeholder="组织状态" value={this.state.editStatus}
|
|
|
- onChange={(e)=>{this.setState({editStatus:e})}}>
|
|
|
+ >
|
|
|
+ <Select placeholder="组织状态" value={this.state.editStatus}
|
|
|
+ onChange={(e)=>{this.setState({editStatus:e})}}>
|
|
|
{
|
|
|
conditionOrganization.map(function (item) {
|
|
|
return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
@@ -909,32 +917,53 @@ const Organization=Form.create()(React.createClass({
|
|
|
</Select>
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
+ <div className="clearfix">
|
|
|
+ <FormItem
|
|
|
+ labelCol={{ span: 7 }}
|
|
|
+ wrapperCol={{ span: 12 }}
|
|
|
+ label="省份"
|
|
|
+ >
|
|
|
+ <Select
|
|
|
+ placeholder="请选择省份"
|
|
|
+ value={getNewDiccityArr(this.state.province)}
|
|
|
+ onChange={e => {
|
|
|
+ this.setState({ province: e });
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ {citySelect().map(function(item) {
|
|
|
+ return (
|
|
|
+ <Select.Option key={item.value} value={item.value}>{item.label}</Select.Option>
|
|
|
+ );
|
|
|
+ })}
|
|
|
+ </Select>
|
|
|
+ </FormItem>
|
|
|
+ </div>
|
|
|
<div className="clearfix">
|
|
|
- <FormItem
|
|
|
+ <FormItem
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="上级组织"
|
|
|
- >
|
|
|
- <Select placeholder="请选择上级组织"
|
|
|
- value={this.state.editSuperId}
|
|
|
+ >
|
|
|
+ <Select placeholder="请选择上级组织"
|
|
|
+ value={this.state.editSuperId}
|
|
|
onChange={(e)=>{this.setState({editSuperId:e})}}
|
|
|
notFoundContent="未获取到上级组织列表">
|
|
|
{this.state.contactsOption}
|
|
|
- </Select>
|
|
|
-
|
|
|
+ </Select>
|
|
|
+
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
- <FormItem
|
|
|
+ <FormItem
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="缩写" >
|
|
|
- <Input placeholder="缩写" value={this.state.abbreviation}
|
|
|
+ <Input placeholder="缩写" value={this.state.abbreviation}
|
|
|
onChange={(e)=>{this.setState({abbreviation:e.target.value})}}/>
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
- <FormItem
|
|
|
+ <FormItem
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12}}
|
|
|
label="财务负责人"
|
|
@@ -950,15 +979,15 @@ const Organization=Form.create()(React.createClass({
|
|
|
filterOption={true}
|
|
|
onBlur={this.blurChange}
|
|
|
onSelect={this.selectAuto2}
|
|
|
- style={{width:'95%'}}
|
|
|
+ style={{width:'95%'}}
|
|
|
>
|
|
|
<Input />
|
|
|
- </AutoComplete>
|
|
|
+ </AutoComplete>
|
|
|
{/* <span className="mandatory" style={{color:'red',marginLeft:'5px'}}>*</span> */}
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
- <FormItem
|
|
|
+ <FormItem
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="组织编号"
|
|
@@ -967,7 +996,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix" >
|
|
|
- <FormItem
|
|
|
+ <FormItem
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="创建人"
|
|
@@ -976,7 +1005,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
- <FormItem
|
|
|
+ <FormItem
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="创建时间"
|
|
@@ -988,20 +1017,20 @@ const Organization=Form.create()(React.createClass({
|
|
|
<FormItem
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
- label="组织职能说明" >
|
|
|
+ label="组织职能说明" >
|
|
|
<Input type="textarea" rows={4} placeholder="组织职能说明" value={this.state.editRemarks}
|
|
|
- onChange={(e) => { this.setState({ editRemarks: e.target.value }) }}/>
|
|
|
+ onChange={(e) => { this.setState({ editRemarks: e.target.value }) }}/>
|
|
|
</FormItem>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
<FormItem wrapperCol={{ span: 12, offset: 7 }}>
|
|
|
- <Button className="set-submit" type="primary" htmlType="submit">保存</Button>
|
|
|
+ <Button className="set-submit" type="primary" htmlType="submit">保存</Button>
|
|
|
<Button className="set-submit" type="ghost" onClick={this.edithandleCancel} style={{marginLeft:'100px'}}>取消</Button>
|
|
|
- </FormItem>
|
|
|
+ </FormItem>
|
|
|
</Spin>
|
|
|
</Form >
|
|
|
</Modal>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
);
|