Commit e9e0fb76 authored by agping's avatar agping

1

parent ef53c452
......@@ -129,14 +129,13 @@ require(['vue', 'vconsole', 'html2canvas', 'css!style/report_achieve.css', 'jque
_this.userId = localStorage.getItem('userid');
$.ajax({
type: 'POST',
url: ServerHostTempC + '/broker/dayStatement',
//url: '/broker/dayStatement',
url: ServerHostTempC + '/broker/dayOrWeekStatement',
data: {
'AuthToken': _this.token,
// 'agent_id': _this.userId,
'type': 0,
'agent_id': id,
'time_start': _this.dateNow,
'time_end': _this.dateNow
// 'time_start': _this.dateNow,
// 'time_end': _this.dateNow
},
timeout: 30000,
dataType: 'json',
......@@ -144,11 +143,11 @@ require(['vue', 'vconsole', 'html2canvas', 'css!style/report_achieve.css', 'jque
success: function(_data) {
if(typeof _data === 'object') {
if(_data['code'] == '200') {
_this.peopleNum = Number(_data.data.agent_total);
_this.peopleNum = Number(_data.data.district_team_num);
_this.yeji_yue_wancheng = _data.data.director_performance_month;
_this.chengjiao_yue_wancheng = _data.data.director_bargain_sum_store;
_this.shishou_yue_wancheng = _data.data.practical_money_for_month;
_this.yeji_yue_wancheng = _data.data.district_month_performance;
_this.chengjiao_yue_wancheng = _data.data.district_month_bargain_sum;
_this.shishou_yue_wancheng = _data.data.district_month_real_performance;
} else {
......@@ -178,13 +177,12 @@ require(['vue', 'vconsole', 'html2canvas', 'css!style/report_achieve.css', 'jque
$.ajax({
type: 'POST',
url: ServerHostTempC + '/broker/dayStatement',
//url: '/broker/dayStatement',
data: {
'AuthToken': _this.token,
// 'agent_id': _this.userId,
'type': 0,
'agent_id': id,
'time_start': _this.dateNow,
'time_end': _this.dateNow
// 'time_start': _this.dateNow,
// 'time_end': _this.dateNow
},
timeout: 30000,
dataType: 'json',
......@@ -192,11 +190,11 @@ require(['vue', 'vconsole', 'html2canvas', 'css!style/report_achieve.css', 'jque
success: function(_data) {
if(typeof _data === 'object') {
if(_data['code'] == '200') {
_this.peopleNumHZ = Number(_data.data.agent_total);
_this.peopleNumHZ = Number(_data.data.district_team_num);
_this.yeji_yue_wanchengHZ = _data.data.director_performance_month;
_this.chengjiao_yue_wanchengHZ = _data.data.director_bargain_sum_store;
_this.shishou_yue_wanchengHZ = _data.data.practical_money_for_month;
_this.yeji_yue_wanchengHZ = _data.data.district_month_performance;
_this.chengjiao_yue_wanchengHZ = _data.data.district_month_bargain_sum;
_this.shishou_yue_wanchengHZ = _data.data.district_month_real_performance;
} else {
layerTipsX(_data['msg']);
......@@ -225,13 +223,12 @@ require(['vue', 'vconsole', 'html2canvas', 'css!style/report_achieve.css', 'jque
$.ajax({
type: 'POST',
url: ServerHostTempC + '/broker/dayStatement',
//url: '/broker/dayStatement',
data: {
'AuthToken': _this.token,
// 'agent_id': _this.userId,
'type': 0,
'agent_id': id,
'time_start': _this.dateNow,
'time_end': _this.dateNow
// 'time_start': _this.dateNow,
// 'time_end': _this.dateNow
},
timeout: 30000,
dataType: 'json',
......@@ -239,11 +236,11 @@ require(['vue', 'vconsole', 'html2canvas', 'css!style/report_achieve.css', 'jque
success: function(_data) {
if(typeof _data === 'object') {
if(_data['code'] == '200') {
_this.peopleNumSZ = Number(_data.data.agent_total);
_this.peopleNumSZ = Number(_data.data.district_team_num);
_this.yeji_yue_wanchengSZ = _data.data.director_performance_month;
_this.chengjiao_yue_wanchengSZ = _data.data.director_bargain_sum_store;
_this.shishou_yue_wanchengSZ = _data.data.practical_money_for_month;
_this.yeji_yue_wanchengSZ = _data.data.district_month_performance;
_this.chengjiao_yue_wanchengSZ = _data.data.district_month_bargain_sum;
_this.shishou_yue_wanchengSZ = _data.data.district_month_real_performance;
} else {
layerTipsX(_data['msg']);
......@@ -272,13 +269,12 @@ require(['vue', 'vconsole', 'html2canvas', 'css!style/report_achieve.css', 'jque
$.ajax({
type: 'POST',
url: ServerHostTempC + '/broker/dayStatement',
//url: '/broker/dayStatement',
data: {
'AuthToken': _this.token,
// 'agent_id': _this.userId,
'type': 0,
'agent_id': id,
'time_start': _this.dateNow,
'time_end': _this.dateNow
// 'time_start': _this.dateNow,
// 'time_end': _this.dateNow
},
timeout: 30000,
dataType: 'json',
......@@ -286,11 +282,11 @@ require(['vue', 'vconsole', 'html2canvas', 'css!style/report_achieve.css', 'jque
success: function(_data) {
if(typeof _data === 'object') {
if(_data['code'] == '200') {
_this.peopleNumGZ = Number(_data.data.agent_total);
_this.peopleNumGZ = Number(_data.data.district_team_num);
_this.yeji_yue_wanchengGZ = _data.data.director_performance_month;
_this.chengjiao_yue_wanchengGZ = _data.data.director_bargain_sum_store;
_this.shishou_yue_wanchengGZ = _data.data.practical_money_for_month;
_this.yeji_yue_wanchengGZ = _data.data.district_month_performance;
_this.chengjiao_yue_wanchengGZ = _data.data.district_month_bargain_sum;
_this.shishou_yue_wanchengGZ = _data.data.district_month_real_performance;
} else {
layerTipsX(_data['msg']);
......@@ -319,13 +315,12 @@ require(['vue', 'vconsole', 'html2canvas', 'css!style/report_achieve.css', 'jque
$.ajax({
type: 'POST',
url: ServerHostTempC + '/broker/dayStatement',
//url: '/broker/dayStatement',
data: {
'AuthToken': _this.token,
// 'agent_id': _this.userId,
'type': 0,
'agent_id': id,
'time_start': _this.dateNow,
'time_end': _this.dateNow
// 'time_start': _this.dateNow,
// 'time_end': _this.dateNow
},
timeout: 30000,
dataType: 'json',
......@@ -333,11 +328,11 @@ require(['vue', 'vconsole', 'html2canvas', 'css!style/report_achieve.css', 'jque
success: function(_data) {
if(typeof _data === 'object') {
if(_data['code'] == '200') {
_this.peopleNumBJ = Number(_data.data.agent_total);
_this.peopleNumBJ = Number(_data.data.district_team_num);
_this.yeji_yue_wanchengBJ = _data.data.director_performance_month;
_this.chengjiao_yue_wanchengBJ = _data.data.director_bargain_sum_store;
_this.shishou_yue_wanchengBJ = _data.data.practical_money_for_month;
_this.yeji_yue_wanchengBJ = _data.data.district_month_performance;
_this.chengjiao_yue_wanchengBJ = _data.data.district_month_bargain_sum;
_this.shishou_yue_wanchengBJ = _data.data.district_month_real_performance;
} else {
layerTipsX(_data['msg']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment