|
@@ -20,6 +20,7 @@ import $ from "jquery/src/ajax";
|
|
|
import "./index.less";
|
|
|
import moment from "moment";
|
|
|
import ImgList from "../../../common/imgList";
|
|
|
+import Cascaders from "../../../common/cascaders";
|
|
|
|
|
|
const { TabPane } = Tabs;
|
|
|
const { RangePicker } = DatePicker;
|
|
@@ -322,7 +323,7 @@ class PublicSummary extends Component {
|
|
|
releaseDate: [],
|
|
|
status: undefined,
|
|
|
clockIn: undefined,
|
|
|
- depId: undefined,
|
|
|
+ deps: undefined,
|
|
|
theTypes: undefined,
|
|
|
theTypes1: undefined,
|
|
|
theCustomerTypes: undefined,
|
|
@@ -421,7 +422,7 @@ class PublicSummary extends Component {
|
|
|
uid: this.state.theCustomerTypes,
|
|
|
status: this.state.status,
|
|
|
clockIn: this.state.clockIn,
|
|
|
- depId: this.state.depId || undefined,
|
|
|
+ deps: this.state.deps || undefined,
|
|
|
publicType: this.state.type,
|
|
|
},
|
|
|
success: function (data) {
|
|
@@ -467,7 +468,7 @@ class PublicSummary extends Component {
|
|
|
theCustomerTypes: undefined,
|
|
|
status: undefined,
|
|
|
clockIn: undefined,
|
|
|
- depId: undefined,
|
|
|
+ deps: undefined,
|
|
|
auto: "",
|
|
|
auto1: "",
|
|
|
customer: "",
|
|
@@ -476,6 +477,7 @@ class PublicSummary extends Component {
|
|
|
type: undefined,
|
|
|
},
|
|
|
() => {
|
|
|
+ this.Cascaders.empty();
|
|
|
this.loadData();
|
|
|
}
|
|
|
);
|
|
@@ -658,7 +660,8 @@ class PublicSummary extends Component {
|
|
|
uid: this.state.theCustomerTypes,
|
|
|
status: this.state.status,
|
|
|
clockIn: this.state.clockIn,
|
|
|
- depId: this.state.depId,
|
|
|
+ // depId: this.state.depId,
|
|
|
+ deps: this.state.deps,
|
|
|
publicType: this.state.type,
|
|
|
};
|
|
|
for (let i of Object.keys(data)) {
|
|
@@ -862,7 +865,20 @@ class PublicSummary extends Component {
|
|
|
<Input />
|
|
|
</AutoComplete>
|
|
|
</span>
|
|
|
- <span style={{ marginRight: "10px" }}>
|
|
|
+ <Cascaders
|
|
|
+ ref={node => this.Cascaders = node}
|
|
|
+ placeholder="请选择公出部门"
|
|
|
+ id="id"
|
|
|
+ name="name"
|
|
|
+ children="list"
|
|
|
+ height={28}
|
|
|
+ onSel={(e) => {
|
|
|
+ this.setState({
|
|
|
+ deps: JSON.stringify(e),
|
|
|
+ });
|
|
|
+ }}
|
|
|
+ />
|
|
|
+ {/* <span style={{ marginRight: "10px" }}>
|
|
|
<Select
|
|
|
placeholder="请选择公出部门"
|
|
|
style={{ width: 200 }}
|
|
@@ -874,7 +890,7 @@ class PublicSummary extends Component {
|
|
|
>
|
|
|
{this.state.contactsOption}
|
|
|
</Select>
|
|
|
- </span>
|
|
|
+ </span> */}
|
|
|
<span style={{ marginRight: "10px" }}>
|
|
|
<span style={{ marginRight: "5px", marginBottom: "10px" }}>
|
|
|
公出时间 :
|