Commit 6cc8dfe3 authored by agping's avatar agping

办公楼成交报告

parent 75828316
...@@ -453,7 +453,7 @@ define(['doT', 'text!temp/reportList_office_template_tpl.html', 'css!style/home. ...@@ -453,7 +453,7 @@ define(['doT', 'text!temp/reportList_office_template_tpl.html', 'css!style/home.
var _id = _$this.closest('tr').attr('data-id'); var _id = _$this.closest('tr').attr('data-id');
$.ajax({ $.ajax({
type: 'GET', type: 'GET',
url: '/index/getRealIncome', url: '/office_index/getRealIncome',
data: { data: {
'bargain_id': _id 'bargain_id': _id
}, },
...@@ -1256,7 +1256,7 @@ define(['doT', 'text!temp/reportList_office_template_tpl.html', 'css!style/home. ...@@ -1256,7 +1256,7 @@ define(['doT', 'text!temp/reportList_office_template_tpl.html', 'css!style/home.
bargaininfoShowRed: function() { bargaininfoShowRed: function() {
$.ajax({ $.ajax({
'type': 'GET', 'type': 'GET',
'url': '/index/checkReferrer', 'url': '/office_index/checkReferrer',
data: { data: {
"report_id": bargain.report_id_liu "report_id": bargain.report_id_liu
}, },
...@@ -1302,7 +1302,7 @@ define(['doT', 'text!temp/reportList_office_template_tpl.html', 'css!style/home. ...@@ -1302,7 +1302,7 @@ define(['doT', 'text!temp/reportList_office_template_tpl.html', 'css!style/home.
}); });
$.ajax({ $.ajax({
'type': 'POST', 'type': 'POST',
'url': '/index/editBargainInfo', 'url': '/office_index/editBargainInfo',
data: _data, data: _data,
dataType: "json", dataType: "json",
success: function(data) { success: function(data) {
...@@ -1411,7 +1411,7 @@ define(['doT', 'text!temp/reportList_office_template_tpl.html', 'css!style/home. ...@@ -1411,7 +1411,7 @@ define(['doT', 'text!temp/reportList_office_template_tpl.html', 'css!style/home.
passBack: function() { //点击通过 passBack: function() { //点击通过
$.ajax({ $.ajax({
'type': 'POST', 'type': 'POST',
'url': '/index/backOutToOne', 'url': '/office_index/backOutToOne',
data: { data: {
"bargain_id": bargain.bargain_id, "bargain_id": bargain.bargain_id,
"content": $.trim($("#pass_cexiao").val()) "content": $.trim($("#pass_cexiao").val())
...@@ -1503,7 +1503,7 @@ define(['doT', 'text!temp/reportList_office_template_tpl.html', 'css!style/home. ...@@ -1503,7 +1503,7 @@ define(['doT', 'text!temp/reportList_office_template_tpl.html', 'css!style/home.
newAddMaid: function(fn){ newAddMaid: function(fn){
$.ajax({ $.ajax({
type: 'GET', type: 'GET',
url: '/index/searchOrderAgents', url: '/office_index/searchOrderAgents',
data: { data: {
'order_id': bargain.order_id 'order_id': bargain.order_id
}, },
...@@ -1548,7 +1548,7 @@ define(['doT', 'text!temp/reportList_office_template_tpl.html', 'css!style/home. ...@@ -1548,7 +1548,7 @@ define(['doT', 'text!temp/reportList_office_template_tpl.html', 'css!style/home.
}; };
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
url: '/index/addBargain', url: '/office_index/addBargain',
data: { data: {
'id': bargain.bargain_id, 'id': bargain.bargain_id,
'agent_id': _ywyId, 'agent_id': _ywyId,
...@@ -1588,7 +1588,7 @@ define(['doT', 'text!temp/reportList_office_template_tpl.html', 'css!style/home. ...@@ -1588,7 +1588,7 @@ define(['doT', 'text!temp/reportList_office_template_tpl.html', 'css!style/home.
editMaidOk: function(){ editMaidOk: function(){
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
url: '/index/getBargainCommission', url: '/office_index/getBargainCommission',
data: { data: {
'bargain_id': $('#modal_new_maid').attr('data-id'), 'bargain_id': $('#modal_new_maid').attr('data-id'),
'agent_id': $('#addmaid_input_ywy').attr('data-id'), 'agent_id': $('#addmaid_input_ywy').attr('data-id'),
...@@ -1800,7 +1800,7 @@ define(['doT', 'text!temp/reportList_office_template_tpl.html', 'css!style/home. ...@@ -1800,7 +1800,7 @@ define(['doT', 'text!temp/reportList_office_template_tpl.html', 'css!style/home.
} else { } else {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
url: '/index/addRealIncome', url: '/office_index/addRealIncome',
data: _back.list[count], data: _back.list[count],
timeout: 30000, timeout: 30000,
dataType: 'json', dataType: 'json',
...@@ -1848,12 +1848,12 @@ define(['doT', 'text!temp/reportList_office_template_tpl.html', 'css!style/home. ...@@ -1848,12 +1848,12 @@ define(['doT', 'text!temp/reportList_office_template_tpl.html', 'css!style/home.
$('#addtax_date').val('');//开票日期置空 $('#addtax_date').val('');//开票日期置空
if(obj['type'] === 'new'){ if(obj['type'] === 'new'){
$('#modal_new_tax .modal-title').html('新增开票'); $('#modal_new_tax .modal-title').html('新增开票');
_url = '/index/searchBargainAgents'; _url = '/office_index/searchBargainAgents';
_data['bargain_id'] = bargain.bargain_id; _data['bargain_id'] = bargain.bargain_id;
}else{ }else{
$('#modal_new_tax .modal-title').html('编辑开票'); $('#modal_new_tax .modal-title').html('编辑开票');
_tempTableObj.attr('data-recordid',obj['id']); _tempTableObj.attr('data-recordid',obj['id']);
_url = '/index/getTaxesById'; _url = '/office_index/getTaxesById';
_data['taxes_id'] = obj['id']; _data['taxes_id'] = obj['id'];
}; };
$.ajax({ $.ajax({
...@@ -1927,7 +1927,7 @@ define(['doT', 'text!temp/reportList_office_template_tpl.html', 'css!style/home. ...@@ -1927,7 +1927,7 @@ define(['doT', 'text!temp/reportList_office_template_tpl.html', 'css!style/home.
}); });
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
url: '/index/addTallAge', url: '/office_index/addTallAge',
data: _data, data: _data,
timeout: 30000, timeout: 30000,
dataType: 'json', dataType: 'json',
...@@ -1964,7 +1964,7 @@ define(['doT', 'text!temp/reportList_office_template_tpl.html', 'css!style/home. ...@@ -1964,7 +1964,7 @@ define(['doT', 'text!temp/reportList_office_template_tpl.html', 'css!style/home.
delTaxOk: function(id) { delTaxOk: function(id) {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
url: '/index/delTaxes', url: '/office_index/delTaxes',
data: { data: {
'taxes_id': id 'taxes_id': id
}, },
...@@ -1998,7 +1998,7 @@ define(['doT', 'text!temp/reportList_office_template_tpl.html', 'css!style/home. ...@@ -1998,7 +1998,7 @@ define(['doT', 'text!temp/reportList_office_template_tpl.html', 'css!style/home.
deletMaid: function(id){ deletMaid: function(id){
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
url: '/index/delPartialCommission', url: '/office_index/delPartialCommission',
data: { data: {
'partial_id': id 'partial_id': id
}, },
...@@ -2100,15 +2100,15 @@ define(['doT', 'text!temp/reportList_office_template_tpl.html', 'css!style/home. ...@@ -2100,15 +2100,15 @@ define(['doT', 'text!temp/reportList_office_template_tpl.html', 'css!style/home.
switchUrl: function(){ switchUrl: function(){
switch (Number(this.mainTabIndex)){ switch (Number(this.mainTabIndex)){
case 0: case 0:
return '/index/reportListAll/10'; return '/office_index/reportListAll/10';
case 1: case 1:
return '/index/reportListOne/1'; return '/office_index/reportListOne/1';
case 2: case 2:
return '/index/reportListTwo/2'; return '/office_index/reportListTwo/2';
case 3: case 3:
return '/index/reportListThree/3'; return '/office_index/reportListThree/3';
case 4: case 4:
return '/index/reportListStatement/4'; return '/office_index/reportListStatement/4';
default: default:
return ''; return '';
} }
......
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