dengzhiguo 6 years ago
parent
commit
6548c74f6f

+ 8 - 8
js/component/dataDic.js

@@ -2329,28 +2329,28 @@ module.exports = {
     ],
     xiangmoState:[
     	{
-	        value: "0",
+	        value: "1",
 	        key: "申报中"
 	    },{
-	        value: "1",
+	        value: "2",
 	        key: "已交材料"
 	    },{
-	        value: "2",
+	        value: "3",
 	        key: "已立项"
 	    },{
-	        value: "3",
+	        value: "4",
 	        key: "未立项"
 	    },{
-	        value: "4",
+	        value: "5",
 	        key: "监理中"
 	    },{
-	        value: "5",
+	        value: "6",
 	        key: "验收中"
 	    },{
-	        value: "6",
+	        value: "7",
 	        key: "验收合格"
 	    },{
-	        value: "7",
+	        value: "8",
 	        key: "验收不合格"
 	    }
     ],

+ 4 - 0
js/component/manageCenter/customer/NEW/crm/crm.jsx

@@ -807,6 +807,7 @@ const IntentionCustomer = Form.create()(React.createClass({
 				message.success('保存成功!');
 				this.visitCancelc();
 				this.loadDatac();
+				this.loadData();
 			} else {
 				message.warning(data.error[0].message);
 			}
@@ -843,6 +844,7 @@ const IntentionCustomer = Form.create()(React.createClass({
 				message.success('保存成功!');
 				this.visitCancelc();
 				this.loadDatax();
+				this.loadData();
 			} else {
 				message.warning(data.error[0].message);
 			}
@@ -1240,6 +1242,7 @@ const IntentionCustomer = Form.create()(React.createClass({
                     loading: false,
                 });
                 this.loadDatac();
+                this.loadData();
             } else {
                 message.warning(data.error[0].message);
             };
@@ -1266,6 +1269,7 @@ const IntentionCustomer = Form.create()(React.createClass({
                     loading: false,
                 });
                 this.loadDatax();
+                this.loadData();
             } else {
                 message.warning(data.error[0].message);
             };

+ 4 - 2
js/component/manageCenter/customer/customerMarketing/timeStatistics.jsx

@@ -12,7 +12,8 @@ const DiurnalStatistics = React.createClass({
 	loadData(timeTypes,totalArr) {
 		let total=totalArr;
 		this.setState({
-			loading: true
+			loading: true,
+			timeTypes:timeTypes
 		});
 		$.ajax({
 			method: "get",
@@ -268,6 +269,7 @@ const DiurnalStatistics = React.createClass({
 			quarterColor:false,
 			yearColor:false,
 			Dtime:undefined,
+			timeTypes:0,
 			selTime:'',
 			columns: [
 			{
@@ -419,7 +421,7 @@ const DiurnalStatistics = React.createClass({
 		};
 	},
 	search() {
-		this.totalData(0)
+		this.totalData(this.state.timeTypes);
 	},
 	reset() {
 		this.state.superId = undefined;//部门机构清零

+ 4 - 2
js/component/manageCenter/customer/customerMarketing/timeStatisticsOne.jsx

@@ -10,7 +10,8 @@ const DiurnalStatisticsOne = React.createClass({
 	loadData(timeTypes,totalArr) {
 		let total=totalArr;
 		this.setState({
-			loading: true
+			loading: true,
+			timeTypes:timeTypes
 		});
 		$.ajax({
 			method: "get",
@@ -266,6 +267,7 @@ const DiurnalStatisticsOne = React.createClass({
 			quarterColor:false,
 			yearColor:false,
 			Dtime:undefined,
+			timeTypes:0,
 			selTime:'',
 			columns: [
 			{
@@ -437,7 +439,7 @@ const DiurnalStatisticsOne = React.createClass({
 		};
 	},
 	search() {
-		this.totalData(0)
+		this.totalData(this.state.timeTypes);
 	},
 	reset() {
 		this.state.superId = undefined;//部门机构清零

+ 4 - 2
js/component/manageCenter/order/orderStatistics/orderStatistics.jsx

@@ -10,7 +10,8 @@ const TabPane = Tabs.TabPane;
 const DiurnalStatistics = React.createClass({
 	loadData(timeTypes) {
 		this.setState({
-			loading: true
+			loading: true,
+			timeTypes:timeTypes
 		});
 		$.ajax({
 			method: "get",
@@ -266,6 +267,7 @@ const DiurnalStatistics = React.createClass({
 			quarterColor:false,
 			yearColor:false,
 			Dtime:undefined,
+			timeTypes:0,
 			selTime:'',
 			columns: [
 			{
@@ -662,7 +664,7 @@ const DiurnalStatistics = React.createClass({
 		};
 	},
 	search() {
-		this.loadData(0)
+		this.loadData(this.state.timeTypes);
 	},
 	reset() {
 		this.state.superId = undefined;//部门机构清零