|
@@ -7,7 +7,7 @@ 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 { Form, Radio, Icon, Button, Input, Select, Spin, Table, Switch, message, DatePicker, Modal, Upload, Popconfirm, AutoComplete, Tabs, Tag } from 'antd';
|
|
|
import { patternOrganization, conditionOrganization } from '../../../dataDic.js';
|
|
|
import { getPattern, getCondition } from '../../../tools.js';
|
|
|
import { ChooseList } from "../../order/orderNew/chooseList";
|
|
@@ -275,6 +275,11 @@ const Organization = Form.create()(React.createClass({
|
|
|
hideSign: _this.state.hideSign,//显示标识
|
|
|
depNo: _this.state.depNo,//组织编号
|
|
|
approval: _this.state.approval, //是否需要特批审核
|
|
|
+ expenseRetrialFinanceExamine: _this.state.expenseRetrialFinanceExamine, // 财务复审
|
|
|
+ ceoExamine: _this.state.ceoExamine, // 董事长审核
|
|
|
+ cfoExamine: _this.state.cfoExamine, // 财务总监审核
|
|
|
+ viceCeoExamine: _this.state.viceCeoExamine, // 集团副总审核
|
|
|
+ cashierExamine: _this.state.cashierExamine, // 出纳审核
|
|
|
}
|
|
|
}).done(
|
|
|
function (data) {
|
|
@@ -328,6 +333,11 @@ const Organization = Form.create()(React.createClass({
|
|
|
hideSign: _this.state.hideSign,//显示标识
|
|
|
depNo: _this.state.depNo,//组织编号
|
|
|
approval: _this.state.approval, //是否需要特批审核
|
|
|
+ expenseRetrialFinanceExamine: _this.state.expenseRetrialFinanceExamine, // 财务复审
|
|
|
+ ceoExamine: _this.state.ceoExamine, // 董事长审核
|
|
|
+ cfoExamine: _this.state.cfoExamine, // 财务总监审核
|
|
|
+ viceCeoExamine: _this.state.viceCeoExamine, // 集团副总审核
|
|
|
+ cashierExamine: _this.state.cashierExamine, // 出纳审核
|
|
|
}
|
|
|
}).done(
|
|
|
function (data) {
|
|
@@ -386,6 +396,11 @@ const Organization = Form.create()(React.createClass({
|
|
|
hideSign: _this.state.hideSign,//显示标识
|
|
|
depNo: _this.state.depNo,//组织编号
|
|
|
approval: _this.state.approval, //是否需要特批审核
|
|
|
+ expenseRetrialFinanceExamine: _this.state.expenseRetrialFinanceExamine, // 财务复审
|
|
|
+ ceoExamine: _this.state.ceoExamine, // 董事长审核
|
|
|
+ cfoExamine: _this.state.cfoExamine, // 财务总监审核
|
|
|
+ viceCeoExamine: _this.state.viceCeoExamine, // 集团副总审核
|
|
|
+ cashierExamine: _this.state.cashierExamine, // 出纳审核
|
|
|
}
|
|
|
}).done(
|
|
|
function (data) {
|
|
@@ -439,7 +454,12 @@ const Organization = Form.create()(React.createClass({
|
|
|
workingHoursType: _this.state.workingHoursType,
|
|
|
hideSign: _this.state.hideSign,//显示标识
|
|
|
depNo: _this.state.depNo,//组织编号
|
|
|
- approval: _this.state.approval,
|
|
|
+ approval: _this.state.approval, // 是否需要特批
|
|
|
+ expenseRetrialFinanceExamine: _this.state.expenseRetrialFinanceExamine, // 财务复审
|
|
|
+ ceoExamine: _this.state.ceoExamine, // 董事长审核
|
|
|
+ cfoExamine: _this.state.cfoExamine, // 财务总监审核
|
|
|
+ viceCeoExamine: _this.state.viceCeoExamine, // 集团副总审核
|
|
|
+ cashierExamine: _this.state.cashierExamine, // 出纳审核
|
|
|
}
|
|
|
}).done(
|
|
|
function (data) {
|
|
@@ -500,6 +520,16 @@ const Organization = Form.create()(React.createClass({
|
|
|
accountrName: thisdata.expenseFinanceName,
|
|
|
hideSign: thisdata.hideSign,//显示标识
|
|
|
approval: thisdata.approval, // 特批审核
|
|
|
+ expenseRetrialFinanceExamine: thisdata.expenseRetrialFinanceExamine, //财务复审
|
|
|
+ expenseRetrialFinanceExamineList: thisdata.expenseRetrialFinanceExamineList,
|
|
|
+ ceoExamine: thisdata.ceoExamine, //董事长审核
|
|
|
+ ceoExamineList: thisdata.ceoExamineList,
|
|
|
+ cfoExamine: thisdata.cfoExamine, //财务总监审核
|
|
|
+ cfoExamineList: thisdata.cfoExamineList,
|
|
|
+ viceCeoExamine: thisdata.viceCeoExamine, //集团副总审核
|
|
|
+ viceCeoExamineList: thisdata.viceCeoExamineList,
|
|
|
+ cashierExamine: thisdata.cashierExamine, //出纳审核
|
|
|
+ cashierExamineList: thisdata.cashierExamineList,
|
|
|
});
|
|
|
this.setState({
|
|
|
editId: thisdata.id, //每一条记录的ID
|
|
@@ -527,6 +557,16 @@ const Organization = Form.create()(React.createClass({
|
|
|
abbreviation: thisdata.abbreviation,
|
|
|
hideSign: thisdata.hideSign,//显示标识
|
|
|
approval: thisdata.approval, // 特批审核
|
|
|
+ expenseRetrialFinanceExamine: thisdata.expenseRetrialFinanceExamine, //财务复审
|
|
|
+ expenseRetrialFinanceExamineList: thisdata.expenseRetrialFinanceExamineList,
|
|
|
+ ceoExamine: thisdata.ceoExamine, //董事长审核
|
|
|
+ ceoExamineList: thisdata.ceoExamineList,
|
|
|
+ cfoExamine: thisdata.cfoExamine, //财务总监审核
|
|
|
+ cfoExamineList: thisdata.cfoExamineList,
|
|
|
+ viceCeoExamine: thisdata.viceCeoExamine, //集团副总审核
|
|
|
+ viceCeoExamineList: thisdata.viceCeoExamineList,
|
|
|
+ cashierExamine: thisdata.cashierExamine, //出纳审核
|
|
|
+ cashierExamineList: thisdata.cashierExamineList,
|
|
|
});
|
|
|
} else {
|
|
|
message.warning(data.error[0].message);
|
|
@@ -625,7 +665,6 @@ const Organization = Form.create()(React.createClass({
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
-
|
|
|
//主管初始加载(自动补全)
|
|
|
supervisor(e) {
|
|
|
$.ajax({
|
|
@@ -654,6 +693,23 @@ const Organization = Form.create()(React.createClass({
|
|
|
});
|
|
|
}.bind(this));
|
|
|
},
|
|
|
+ selectAutosel(value) {
|
|
|
+ this.setState({
|
|
|
+ adminName: value
|
|
|
+ })
|
|
|
+ let theType = '';
|
|
|
+ let contactLists = this.state.customerArr || [];
|
|
|
+ if (value) {
|
|
|
+ contactLists.map(function (item) {
|
|
|
+ if (item.name == value.toString()) {
|
|
|
+ theType = item.id;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ this.setState({
|
|
|
+ aid: theType
|
|
|
+ })
|
|
|
+ },
|
|
|
//上级主管输入框失去焦点是判断客户是否存在
|
|
|
selectAuto(value, options) {
|
|
|
this.setState({
|
|
@@ -759,6 +815,14 @@ const Organization = Form.create()(React.createClass({
|
|
|
theTypes3: theType,
|
|
|
})
|
|
|
},
|
|
|
+ httpChangesel(e) {
|
|
|
+ if (e.length >= 1) {
|
|
|
+ this.supervisor(e);
|
|
|
+ }
|
|
|
+ this.setState({
|
|
|
+ adminName: e
|
|
|
+ })
|
|
|
+ },
|
|
|
//值改变时请求客户名称
|
|
|
httpChange(e) {
|
|
|
if (e.length >= 1) {
|
|
@@ -869,6 +933,114 @@ const Organization = Form.create()(React.createClass({
|
|
|
changeList: newArr
|
|
|
});
|
|
|
},
|
|
|
+
|
|
|
+
|
|
|
+ handleOk() {
|
|
|
+ $.ajax({
|
|
|
+ method: "post",
|
|
|
+ dataType: "json",
|
|
|
+ crossDomain: false,
|
|
|
+ url: globalConfig.context + '/api/admin/expenseConfig/addDeTails',
|
|
|
+ data: {
|
|
|
+ type: this.state.addtype, // 类型
|
|
|
+ aid: this.state.aid, // 管理员编号
|
|
|
+ adminName: this.state.adminName, // 管理员名称
|
|
|
+ depId: this.state.editId, // 部门编号
|
|
|
+ }
|
|
|
+ }).done(function (data) {
|
|
|
+ this.setState({
|
|
|
+ loading: false
|
|
|
+ });
|
|
|
+ if (!data.error.length) {
|
|
|
+ message.success('添加成功!');
|
|
|
+ let list = this.state.addtype == 1
|
|
|
+ ? this.state.expenseRetrialFinanceExamineList : this.state.addtype == 2
|
|
|
+ ? this.state.ceoExamineList : this.state.addtype == 3
|
|
|
+ ? this.state.cfoExamineList : this.state.addtype == 4
|
|
|
+ ? this.state.viceCeoExamineList : this.state.addtype == 5
|
|
|
+ ? this.state.cashierExamineList : []
|
|
|
+ list.push(data.data)
|
|
|
+ if (this.state.addtype == 1) {
|
|
|
+ this.setState({
|
|
|
+ expenseRetrialFinanceExamineList: list
|
|
|
+ })
|
|
|
+ } else if (this.state.addtype == 2) {
|
|
|
+ this.setState({
|
|
|
+ ceoExamineList: list
|
|
|
+ })
|
|
|
+ } if (this.state.addtype == 3) {
|
|
|
+ this.setState({
|
|
|
+ cfoExamineList: list
|
|
|
+ })
|
|
|
+ } if (this.state.addtype == 4) {
|
|
|
+ this.setState({
|
|
|
+ viceCeoExamineList: list
|
|
|
+ })
|
|
|
+ } if (this.state.addtype == 5) {
|
|
|
+ this.setState({
|
|
|
+ cashierExamineList: list
|
|
|
+ })
|
|
|
+ }
|
|
|
+ this.handleNo()
|
|
|
+ } else {
|
|
|
+ message.warning(data.error[0].message);
|
|
|
+ }
|
|
|
+ }.bind(this));
|
|
|
+ },
|
|
|
+
|
|
|
+ handleNo() {
|
|
|
+ this.setState({
|
|
|
+ addtype: -1,
|
|
|
+ aid: "",
|
|
|
+ adminName: "",
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+ deleteDeTails(type, dataList, id) {
|
|
|
+ $.ajax({
|
|
|
+ method: "post",
|
|
|
+ dataType: "json",
|
|
|
+ crossDomain: false,
|
|
|
+ url: globalConfig.context + '/api/admin/expenseConfig/deleteDeTails',
|
|
|
+ data: {
|
|
|
+ id, //
|
|
|
+ }
|
|
|
+ }).done(function (data) {
|
|
|
+ this.setState({
|
|
|
+ loading: false
|
|
|
+ });
|
|
|
+ if (!data.error.length) {
|
|
|
+ message.success('移除成功!');
|
|
|
+ let lx = dataList.findIndex(item => item.id === id)
|
|
|
+ dataList.splice(lx, 1)
|
|
|
+ if (type == 1) {
|
|
|
+ this.setState({
|
|
|
+ expenseRetrialFinanceExamineList: dataList
|
|
|
+ })
|
|
|
+ } else if (type == 2) {
|
|
|
+ this.setState({
|
|
|
+ ceoExamineList: dataList
|
|
|
+ })
|
|
|
+ } if (type == 3) {
|
|
|
+ this.setState({
|
|
|
+ cfoExamineList: dataList
|
|
|
+ })
|
|
|
+ } if (type == 4) {
|
|
|
+ this.setState({
|
|
|
+ viceCeoExamineList: dataList
|
|
|
+ })
|
|
|
+ } if (type == 5) {
|
|
|
+ this.setState({
|
|
|
+ cashierExamineList: dataList
|
|
|
+ })
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ message.warning(data.error[0].message);
|
|
|
+ }
|
|
|
+ }.bind(this));
|
|
|
+ },
|
|
|
+
|
|
|
+
|
|
|
render() {
|
|
|
const FormItem = Form.Item
|
|
|
const rowSelection = {
|
|
@@ -886,8 +1058,8 @@ const Organization = Form.create()(React.createClass({
|
|
|
},
|
|
|
};
|
|
|
const formItemLayout = {
|
|
|
- labelCol: { span: 8 },
|
|
|
- wrapperCol: { span: 14 },
|
|
|
+ labelCol: { span: 6 },
|
|
|
+ wrapperCol: { span: 18 },
|
|
|
};
|
|
|
const { getFieldDecorator } = this.props.form;
|
|
|
const hasSelected = this.state.selectedRowKeys.length > 0;
|
|
@@ -1125,11 +1297,10 @@ const Organization = Form.create()(React.createClass({
|
|
|
</Modal>
|
|
|
</div>
|
|
|
|
|
|
-
|
|
|
<div className="patent-desc">
|
|
|
<Modal maskClosable={false} visible={this.state.editvisible}
|
|
|
onOk={this.checkPatentProcess} onCancel={this.edithandleCancel}
|
|
|
- width='600px'
|
|
|
+ width='1000px'
|
|
|
title='编辑组织'
|
|
|
footer=''
|
|
|
className="admin-desc-content">
|
|
@@ -1137,17 +1308,34 @@ const Organization = Form.create()(React.createClass({
|
|
|
<Spin spinning={this.state.loading}>
|
|
|
<div className="clearfix">
|
|
|
<FormItem
|
|
|
- labelCol={{ span: 7 }}
|
|
|
- wrapperCol={{ span: 12 }}
|
|
|
+ className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
label="组织名称" >
|
|
|
<Input placeholder="组织名称" value={this.state.editName}
|
|
|
+ style={{ width: '70%' }}
|
|
|
onChange={(e) => { this.setState({ editName: e.target.value }) }} />
|
|
|
</FormItem>
|
|
|
+ <FormItem
|
|
|
+ className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="特批审核"
|
|
|
+ >
|
|
|
+ <Select placeholder="特批审核"
|
|
|
+ value={this.state.approval}
|
|
|
+ style={{ width: '70%' }}
|
|
|
+ onChange={(e) => { this.setState({ approval: e }) }}
|
|
|
+ required="required"
|
|
|
+ >
|
|
|
+ <Option value={0}>不需要</Option>
|
|
|
+ <Option value={1}>需要</Option>
|
|
|
+ </Select>
|
|
|
+ <span style={{ color: "red" }}> 订单/合同特批</span>
|
|
|
+ </FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
<FormItem
|
|
|
- labelCol={{ span: 7 }}
|
|
|
- wrapperCol={{ span: 12 }}
|
|
|
+ className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
label="负责人"
|
|
|
>
|
|
|
<AutoComplete
|
|
@@ -1161,35 +1349,16 @@ const Organization = Form.create()(React.createClass({
|
|
|
filterOption={true}
|
|
|
// onBlur={this.blurChange}
|
|
|
onSelect={this.selectAuto}
|
|
|
- // style={{ width: '95%' }}
|
|
|
+ style={{ width: '70%' }}
|
|
|
>
|
|
|
<Input />
|
|
|
</AutoComplete>
|
|
|
{/* <span className="mandatory" style={{color:'red',marginLeft:'5px'}}>*</span> */}
|
|
|
</FormItem>
|
|
|
- </div>
|
|
|
|
|
|
- <div className="clearfix">
|
|
|
<FormItem
|
|
|
- labelCol={{ span: 7 }}
|
|
|
- wrapperCol={{ span: 12 }}
|
|
|
- label="特批审核"
|
|
|
- >
|
|
|
- <Select placeholder="特批审核"
|
|
|
- value={this.state.approval}
|
|
|
- onChange={(e) => { this.setState({ approval: e }) }}
|
|
|
- required="required"
|
|
|
- >
|
|
|
- <Option value={0}>不需要</Option>
|
|
|
- <Option value={1}>需要</Option>
|
|
|
- </Select>
|
|
|
- </FormItem>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div className="clearfix">
|
|
|
- <FormItem
|
|
|
- labelCol={{ span: 7 }}
|
|
|
- wrapperCol={{ span: 12 }}
|
|
|
+ className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
label="审核人"
|
|
|
>
|
|
|
<AutoComplete
|
|
@@ -1204,6 +1373,7 @@ const Organization = Form.create()(React.createClass({
|
|
|
filterOption={true}
|
|
|
// onBlur={this.blurChange}
|
|
|
onSelect={this.selectAuto1}
|
|
|
+ style={{ width: '70%' }}
|
|
|
>
|
|
|
<Input />
|
|
|
</AutoComplete>
|
|
@@ -1213,11 +1383,14 @@ const Organization = Form.create()(React.createClass({
|
|
|
|
|
|
<div className="clearfix">
|
|
|
<FormItem
|
|
|
- labelCol={{ span: 7 }}
|
|
|
- wrapperCol={{ span: 12 }}
|
|
|
+ className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
label="组织类型"
|
|
|
>
|
|
|
- <Select placeholder="组织类型" value={this.state.editType}
|
|
|
+ <Select
|
|
|
+ placeholder="组织类型"
|
|
|
+ value={this.state.editType}
|
|
|
+ style={{ width: '70%' }}
|
|
|
onChange={(e) => { this.setState({ editType: e }) }}>
|
|
|
{
|
|
|
patternOrganization.map(function (item) {
|
|
@@ -1226,71 +1399,10 @@ const Organization = Form.create()(React.createClass({
|
|
|
}
|
|
|
</Select>
|
|
|
</FormItem>
|
|
|
- </div>
|
|
|
- <div className="clearfix">
|
|
|
- <FormItem
|
|
|
- labelCol={{ span: 7 }}
|
|
|
- wrapperCol={{ span: 12 }}
|
|
|
- label="组织状态"
|
|
|
- >
|
|
|
- <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>
|
|
|
- })
|
|
|
- }
|
|
|
- </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
|
|
|
- labelCol={{ span: 7 }}
|
|
|
- wrapperCol={{ span: 12 }}
|
|
|
- label="上级组织"
|
|
|
- >
|
|
|
- <Select placeholder="请选择上级组织"
|
|
|
- value={this.state.editSuperId}
|
|
|
- onChange={(e) => { this.setState({ editSuperId: e }) }}
|
|
|
- notFoundContent="未获取到上级组织列表">
|
|
|
- {this.state.contactsOption}
|
|
|
- </Select>
|
|
|
- </FormItem>
|
|
|
- </div>
|
|
|
- <div className="clearfix">
|
|
|
- <FormItem
|
|
|
- labelCol={{ span: 7 }}
|
|
|
- wrapperCol={{ span: 12 }}
|
|
|
- label="缩写" >
|
|
|
- <Input placeholder="缩写" value={this.state.abbreviation}
|
|
|
- onChange={(e) => { this.setState({ abbreviation: e.target.value }) }} />
|
|
|
- </FormItem>
|
|
|
- </div>
|
|
|
- <div className="clearfix">
|
|
|
+
|
|
|
<FormItem
|
|
|
- labelCol={{ span: 7 }}
|
|
|
- wrapperCol={{ span: 12 }}
|
|
|
+ className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
label="财务负责人"
|
|
|
>
|
|
|
<AutoComplete
|
|
@@ -1304,18 +1416,35 @@ const Organization = Form.create()(React.createClass({
|
|
|
filterOption={true}
|
|
|
// onBlur={this.blurChange}
|
|
|
onSelect={this.selectAuto2}
|
|
|
- // style={{ width: '95%' }}
|
|
|
+ style={{ width: '70%' }}
|
|
|
>
|
|
|
<Input />
|
|
|
</AutoComplete>
|
|
|
{/* <span className="mandatory" style={{color:'red',marginLeft:'5px'}}>*</span> */}
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
-
|
|
|
<div className="clearfix">
|
|
|
<FormItem
|
|
|
- labelCol={{ span: 7 }}
|
|
|
- wrapperCol={{ span: 12 }}
|
|
|
+ className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="组织状态"
|
|
|
+ >
|
|
|
+ <Select
|
|
|
+ placeholder="组织状态"
|
|
|
+ value={this.state.editStatus}
|
|
|
+ style={{ width: '70%' }}
|
|
|
+ onChange={(e) => { this.setState({ editStatus: e }) }}>
|
|
|
+ {
|
|
|
+ conditionOrganization.map(function (item) {
|
|
|
+ return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
|
+ })
|
|
|
+ }
|
|
|
+ </Select>
|
|
|
+ </FormItem>
|
|
|
+
|
|
|
+ <FormItem
|
|
|
+ className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
label="财务复审"
|
|
|
>
|
|
|
<AutoComplete
|
|
@@ -1329,18 +1458,38 @@ const Organization = Form.create()(React.createClass({
|
|
|
filterOption={true}
|
|
|
onBlur={this.blurChange}
|
|
|
onSelect={this.selectAuto3}
|
|
|
- // style={{ width: '95%' }}
|
|
|
+ style={{ width: '70%' }}
|
|
|
>
|
|
|
<Input />
|
|
|
</AutoComplete>
|
|
|
- {/* <span className="mandatory" style={{color:'red',marginLeft:'5px'}}>*</span> */}
|
|
|
+ <span style={{ color: 'red' }}> 订单/合同复审</span>
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
-
|
|
|
<div className="clearfix">
|
|
|
<FormItem
|
|
|
- labelCol={{ span: 7 }}
|
|
|
- wrapperCol={{ span: 12 }}
|
|
|
+ className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="省份"
|
|
|
+ >
|
|
|
+ <Select
|
|
|
+ placeholder="请选择省份"
|
|
|
+ value={getNewDiccityArr(this.state.province)}
|
|
|
+ style={{ width: '70%' }}
|
|
|
+ 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>
|
|
|
+
|
|
|
+ <FormItem
|
|
|
+ className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
label="报销审核人"
|
|
|
>
|
|
|
<AutoComplete
|
|
@@ -1354,22 +1503,142 @@ const Organization = Form.create()(React.createClass({
|
|
|
filterOption={true}
|
|
|
// onBlur={this.blurChange}
|
|
|
onSelect={this.selectAuto4}
|
|
|
- // style={{ width: '95%' }}
|
|
|
+ style={{ width: '70%' }}
|
|
|
>
|
|
|
<Input />
|
|
|
</AutoComplete>
|
|
|
{/* <span className="mandatory" style={{color:'red',marginLeft:'5px'}}>*</span> */}
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
+ <div className="clearfix">
|
|
|
+ <FormItem
|
|
|
+ className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="上级组织"
|
|
|
+ >
|
|
|
+ <Select placeholder="请选择上级组织"
|
|
|
+ value={this.state.editSuperId}
|
|
|
+ style={{ width: '70%' }}
|
|
|
+ onChange={(e) => { this.setState({ editSuperId: e }) }}
|
|
|
+ notFoundContent="未获取到上级组织列表">
|
|
|
+ {this.state.contactsOption}
|
|
|
+ </Select>
|
|
|
+ </FormItem>
|
|
|
|
|
|
+ <FormItem
|
|
|
+ className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="报销财务复审"
|
|
|
+ >
|
|
|
+ <Select placeholder="请选择"
|
|
|
+ value={this.state.expenseRetrialFinanceExamine}
|
|
|
+ style={{ width: '70%' }}
|
|
|
+ onChange={(e) => { this.setState({ expenseRetrialFinanceExamine: e }) }}
|
|
|
+ >
|
|
|
+ <Option value={0}>不需要</Option>
|
|
|
+ <Option value={1}>需要</Option>
|
|
|
+ </Select>
|
|
|
+ <div>
|
|
|
+ {
|
|
|
+ this.state.expenseRetrialFinanceExamine == 1 &&
|
|
|
+ !!this.state.expenseRetrialFinanceExamineList &&
|
|
|
+ this.state.expenseRetrialFinanceExamineList.map(item =>
|
|
|
+ <Popconfirm
|
|
|
+ title="是否确认删除?"
|
|
|
+ okText="确定"
|
|
|
+ onConfirm={() => {
|
|
|
+ this.deleteDeTails(1, this.state.expenseRetrialFinanceExamineList, item.id);
|
|
|
+ }}
|
|
|
+ cancelText="取消"
|
|
|
+ >
|
|
|
+ <Tag key={item.id}>
|
|
|
+ {item.adminName + " "}<Icon type="close" />
|
|
|
+ </Tag>
|
|
|
+ </Popconfirm>
|
|
|
+ )
|
|
|
+ }
|
|
|
+ {
|
|
|
+ this.state.expenseRetrialFinanceExamine == 1 &&
|
|
|
+ <Button
|
|
|
+ type="primary"
|
|
|
+ style={{ marginTop: 10 }}
|
|
|
+ onClick={() => {
|
|
|
+ this.setState({
|
|
|
+ addtype: 1
|
|
|
+ })
|
|
|
+ }}>添加</Button>
|
|
|
+ }
|
|
|
+ </div>
|
|
|
+ </FormItem>
|
|
|
+ </div>
|
|
|
<div className="clearfix">
|
|
|
<FormItem
|
|
|
- labelCol={{ span: 7 }}
|
|
|
- wrapperCol={{ span: 12 }}
|
|
|
+ className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="缩写" >
|
|
|
+ <Input placeholder="缩写"
|
|
|
+ value={this.state.abbreviation}
|
|
|
+ style={{ width: '70%' }}
|
|
|
+ onChange={(e) => { this.setState({ abbreviation: e.target.value }) }} />
|
|
|
+ </FormItem>
|
|
|
+
|
|
|
+ <FormItem
|
|
|
+ className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="董事长特批"
|
|
|
+ >
|
|
|
+ <Select placeholder="请选择"
|
|
|
+ value={this.state.ceoExamine}
|
|
|
+ style={{ width: '70%' }}
|
|
|
+ onChange={(e) => { this.setState({ ceoExamine: e }) }}
|
|
|
+ >
|
|
|
+ <Option value={0}>不需要</Option>
|
|
|
+ <Option value={1}>需要</Option>
|
|
|
+ </Select>
|
|
|
+ <div>
|
|
|
+ {
|
|
|
+ this.state.ceoExamine == 1 &&
|
|
|
+ !!this.state.ceoExamineList &&
|
|
|
+ this.state.ceoExamineList.map(item =>
|
|
|
+ <Popconfirm
|
|
|
+ title="是否确认删除?"
|
|
|
+ okText="确定"
|
|
|
+ onConfirm={() => {
|
|
|
+ this.deleteDeTails(2, this.state.ceoExamineList, item.id);
|
|
|
+ }}
|
|
|
+ cancelText="取消"
|
|
|
+ >
|
|
|
+ <Tag key={item.id}>
|
|
|
+ {item.adminName + " "}<Icon type="close" />
|
|
|
+ </Tag>
|
|
|
+ </Popconfirm>
|
|
|
+ )
|
|
|
+ }
|
|
|
+ {
|
|
|
+ this.state.ceoExamine == 1 &&
|
|
|
+ <Button
|
|
|
+ type="primary"
|
|
|
+ style={{ marginTop: 10 }}
|
|
|
+ onClick={() => {
|
|
|
+ this.setState({
|
|
|
+ addtype: 2
|
|
|
+ })
|
|
|
+ }}>添加</Button>
|
|
|
+ }
|
|
|
+ </div>
|
|
|
+ <div style={{ color: "red" }}>注:启用董事长审核后,还需要财务指向,是否需要董事长特批</div>
|
|
|
+ </FormItem>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div className="clearfix">
|
|
|
+ <FormItem
|
|
|
+ className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
label="选择作息时间类型"
|
|
|
>
|
|
|
<Select placeholder="请选择作息时间类型"
|
|
|
value={this.state.workingHoursType}
|
|
|
+ style={{ width: '70%' }}
|
|
|
onChange={(e) => { this.setState({ workingHoursType: e }) }}
|
|
|
notFoundContent="未获取到作息时间类型">
|
|
|
{this.state.workTimeList.map((v, k) => (
|
|
@@ -1377,16 +1646,63 @@ const Organization = Form.create()(React.createClass({
|
|
|
))}
|
|
|
</Select>
|
|
|
</FormItem>
|
|
|
+
|
|
|
+ <FormItem
|
|
|
+ className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="财务总监审核"
|
|
|
+ >
|
|
|
+ <Select placeholder="请选择"
|
|
|
+ value={this.state.cfoExamine}
|
|
|
+ style={{ width: '70%' }}
|
|
|
+ onChange={(e) => { this.setState({ cfoExamine: e }) }}
|
|
|
+ >
|
|
|
+ <Option value={0}>不需要</Option>
|
|
|
+ <Option value={1}>需要</Option>
|
|
|
+ </Select>
|
|
|
+ <div>
|
|
|
+ {
|
|
|
+ this.state.cfoExamine == 1 &&
|
|
|
+ !!this.state.cfoExamineList &&
|
|
|
+ this.state.cfoExamineList.map(item =>
|
|
|
+ <Popconfirm
|
|
|
+ title="是否确认删除?"
|
|
|
+ okText="确定"
|
|
|
+ onConfirm={() => {
|
|
|
+ this.deleteDeTails(3, this.state.cfoExamineList, item.id);
|
|
|
+ }}
|
|
|
+ cancelText="取消"
|
|
|
+ >
|
|
|
+ <Tag key={item.id}>
|
|
|
+ {item.adminName + " "}<Icon type="close" />
|
|
|
+ </Tag>
|
|
|
+ </Popconfirm>
|
|
|
+ )
|
|
|
+ }
|
|
|
+ {
|
|
|
+ this.state.cfoExamine == 1 &&
|
|
|
+ <Button
|
|
|
+ type="primary"
|
|
|
+ style={{ marginTop: 10 }}
|
|
|
+ onClick={() => {
|
|
|
+ this.setState({
|
|
|
+ addtype: 3
|
|
|
+ })
|
|
|
+ }}>添加</Button>
|
|
|
+ }
|
|
|
+ </div>
|
|
|
+ </FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
<FormItem
|
|
|
- labelCol={{ span: 7 }}
|
|
|
- wrapperCol={{ span: 12 }}
|
|
|
+ className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
label="组织编号"
|
|
|
>
|
|
|
<Input
|
|
|
placeholder='组织编号'
|
|
|
value={this.state.depNo}
|
|
|
+ style={{ width: '70%' }}
|
|
|
onChange={(e) => {
|
|
|
this.setState({
|
|
|
depNo: e.target.value
|
|
@@ -1394,20 +1710,112 @@ const Organization = Form.create()(React.createClass({
|
|
|
}}
|
|
|
/>
|
|
|
</FormItem>
|
|
|
+
|
|
|
+ <FormItem
|
|
|
+ className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="集团副总复审"
|
|
|
+ >
|
|
|
+ <Select placeholder="请选择"
|
|
|
+ value={this.state.viceCeoExamine}
|
|
|
+ style={{ width: '70%' }}
|
|
|
+ onChange={(e) => { this.setState({ viceCeoExamine: e }) }}
|
|
|
+ >
|
|
|
+ <Option value={0}>不需要</Option>
|
|
|
+ <Option value={1}>需要</Option>
|
|
|
+ </Select>
|
|
|
+ <div>
|
|
|
+ {
|
|
|
+ this.state.viceCeoExamine == 1 &&
|
|
|
+ !!this.state.viceCeoExamineList &&
|
|
|
+ this.state.viceCeoExamineList.map(item =>
|
|
|
+ <Popconfirm
|
|
|
+ title="是否确认删除?"
|
|
|
+ okText="确定"
|
|
|
+ onConfirm={() => {
|
|
|
+ this.deleteDeTails(3, this.state.viceCeoExamineList, item.id);
|
|
|
+ }}
|
|
|
+ cancelText="取消"
|
|
|
+ >
|
|
|
+ <Tag key={item.id}>
|
|
|
+ {item.adminName + " "}<Icon type="close" />
|
|
|
+ </Tag>
|
|
|
+ </Popconfirm>
|
|
|
+ )
|
|
|
+ }
|
|
|
+ {
|
|
|
+ this.state.viceCeoExamine == 1 &&
|
|
|
+ <Button
|
|
|
+ type="primary"
|
|
|
+ style={{ marginTop: 10 }}
|
|
|
+ onClick={() => {
|
|
|
+ this.setState({
|
|
|
+ addtype: 4
|
|
|
+ })
|
|
|
+ }}>添加</Button>
|
|
|
+ }
|
|
|
+ </div>
|
|
|
+ </FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix" >
|
|
|
<FormItem
|
|
|
- labelCol={{ span: 7 }}
|
|
|
- wrapperCol={{ span: 12 }}
|
|
|
+ className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
label="创建人"
|
|
|
>
|
|
|
<span>{this.state.editCreateId}</span>
|
|
|
</FormItem>
|
|
|
+
|
|
|
+ <FormItem
|
|
|
+ className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="报销出纳"
|
|
|
+ >
|
|
|
+ <Select placeholder="请选择"
|
|
|
+ value={this.state.cashierExamine}
|
|
|
+ style={{ width: '70%' }}
|
|
|
+ onChange={(e) => { this.setState({ cashierExamine: e }) }}
|
|
|
+ >
|
|
|
+ <Option value={0}>不需要</Option>
|
|
|
+ <Option value={1}>需要</Option>
|
|
|
+ </Select>
|
|
|
+ <div>
|
|
|
+ {
|
|
|
+ this.state.cashierExamine == 1 &&
|
|
|
+ !!this.state.cashierExamineList &&
|
|
|
+ this.state.cashierExamineList.map(item =>
|
|
|
+ <Popconfirm
|
|
|
+ title="是否确认删除?"
|
|
|
+ okText="确定"
|
|
|
+ onConfirm={() => {
|
|
|
+ this.deleteDeTails(3, this.state.cashierExamineList, item.id);
|
|
|
+ }}
|
|
|
+ cancelText="取消"
|
|
|
+ >
|
|
|
+ <Tag key={item.id}>
|
|
|
+ {item.adminName + " "}<Icon type="close" />
|
|
|
+ </Tag>
|
|
|
+ </Popconfirm>
|
|
|
+ )
|
|
|
+ }
|
|
|
+ {
|
|
|
+ this.state.cashierExamine == 1 &&
|
|
|
+ <Button
|
|
|
+ type="primary"
|
|
|
+ style={{ marginTop: 10 }}
|
|
|
+ onClick={() => {
|
|
|
+ this.setState({
|
|
|
+ addtype: 5
|
|
|
+ })
|
|
|
+ }}>添加</Button>
|
|
|
+ }
|
|
|
+ </div>
|
|
|
+ </FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
<FormItem
|
|
|
- labelCol={{ span: 7 }}
|
|
|
- wrapperCol={{ span: 12 }}
|
|
|
+ className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
label="创建时间"
|
|
|
>
|
|
|
<span>{this.state.editTime}</span>
|
|
@@ -1415,23 +1823,27 @@ const Organization = Form.create()(React.createClass({
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
<FormItem
|
|
|
- labelCol={{ span: 7 }}
|
|
|
- wrapperCol={{ span: 12 }}
|
|
|
+ className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
label="组织职能说明" >
|
|
|
- <Input type="textarea" rows={4} placeholder="组织职能说明" value={this.state.editRemarks}
|
|
|
+ <Input type="textarea"
|
|
|
+ rows={4}
|
|
|
+ placeholder="组织职能说明"
|
|
|
+ value={this.state.editRemarks}
|
|
|
+ style={{ width: '70%' }}
|
|
|
onChange={(e) => { this.setState({ editRemarks: e.target.value }) }} />
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
<FormItem
|
|
|
- labelCol={{ span: 7 }}
|
|
|
- wrapperCol={{ span: 12 }}
|
|
|
+ className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
label="显示标识"
|
|
|
>
|
|
|
<Select placeholder="显示标识"
|
|
|
value={this.state.hideSign}
|
|
|
+ style={{ width: '70%' }}
|
|
|
onChange={(e) => { this.setState({ hideSign: e }) }}
|
|
|
- style={{ width: '95%' }}
|
|
|
required="required"
|
|
|
>
|
|
|
<Option value={0}>不显示</Option>
|
|
@@ -1447,6 +1859,32 @@ const Organization = Form.create()(React.createClass({
|
|
|
</Form >
|
|
|
</Modal>
|
|
|
</div>
|
|
|
+
|
|
|
+ <Modal
|
|
|
+ title="设置审核名单"
|
|
|
+ width='300px'
|
|
|
+ visible={this.state.addtype > 0}
|
|
|
+ onOk={this.handleOk}
|
|
|
+ onCancel={this.handleNo}
|
|
|
+ okText="确认"
|
|
|
+ cancelText="取消"
|
|
|
+ >
|
|
|
+ <AutoComplete
|
|
|
+ className="certain-category-search"
|
|
|
+ dropdownClassName="certain-category-search-dropdown"
|
|
|
+ style={{ width: 250 }}
|
|
|
+ dropdownMatchSelectWidth={false}
|
|
|
+ dataSource={options}
|
|
|
+ placeholder="输入名称"
|
|
|
+ value={this.state.adminName}
|
|
|
+ onChange={this.httpChangesel}
|
|
|
+ filterOption={true}
|
|
|
+ onSelect={this.selectAutosel}
|
|
|
+ >
|
|
|
+ <Input />
|
|
|
+ </AutoComplete>
|
|
|
+ </Modal>
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
);
|