Commit f963c27a authored by agping's avatar agping

调整 办公楼

parent ab40634f
...@@ -201,7 +201,7 @@ define(['doT', 'text!temp/adjustment_office_template_tpl.html', 'css!style/home. ...@@ -201,7 +201,7 @@ define(['doT', 'text!temp/adjustment_office_template_tpl.html', 'css!style/home.
getAdjustmentDetail : function(id){ getAdjustmentDetail : function(id){
var that = adjustment ; var that = adjustment ;
$.get('/index/getAdjustmentDetail',{'id' : id},function(data){ $.get('/office_index/getAdjustmentDetail',{'id' : id},function(data){
if(data.code == 200) { if(data.code == 200) {
that.setValue(data.data); that.setValue(data.data);
} else { } else {
...@@ -240,7 +240,7 @@ define(['doT', 'text!temp/adjustment_office_template_tpl.html', 'css!style/home. ...@@ -240,7 +240,7 @@ define(['doT', 'text!temp/adjustment_office_template_tpl.html', 'css!style/home.
var params = that.buildSearchParams(); var params = that.buildSearchParams();
params.pageNo = that.pageNo; params.pageNo = that.pageNo;
params.pageSize = that.pageSize ; params.pageSize = that.pageSize ;
$.get('/index/adjustment',params,function(data){ $.get('/office_index/adjustment',params,function(data){
if(typeof data === 'object') { if(typeof data === 'object') {
if(data.code == 200) { if(data.code == 200) {
that.listData = data.data.list; that.listData = data.data.list;
...@@ -287,7 +287,7 @@ define(['doT', 'text!temp/adjustment_office_template_tpl.html', 'css!style/home. ...@@ -287,7 +287,7 @@ define(['doT', 'text!temp/adjustment_office_template_tpl.html', 'css!style/home.
*/ */
exportExcel : function(){ exportExcel : function(){
adjustment.buildSearchParams(); adjustment.buildSearchParams();
var _url = '/index/adjustment'; var _url = '/office_index/adjustment';
var excel_ = ''; var excel_ = '';
if(adjustment.buildSearchParamsLiu){ if(adjustment.buildSearchParamsLiu){
excel_ = '?excel=1&' excel_ = '?excel=1&'
...@@ -401,7 +401,7 @@ define(['doT', 'text!temp/adjustment_office_template_tpl.html', 'css!style/home. ...@@ -401,7 +401,7 @@ define(['doT', 'text!temp/adjustment_office_template_tpl.html', 'css!style/home.
var params = { var params = {
'id' : id 'id' : id
}; };
$.post('/index/delAdjustment',params , function(data){ $.post('/office_index/delAdjustment',params , function(data){
if(data.code == 200) { if(data.code == 200) {
that.getList(1); that.getList(1);
} else { } else {
......
...@@ -240,7 +240,7 @@ define(['doT', 'text!temp/office_receivables_template_tpl.html', 'css!style/home ...@@ -240,7 +240,7 @@ define(['doT', 'text!temp/office_receivables_template_tpl.html', 'css!style/home
}; };
$.ajax({ $.ajax({
type: 'GET', type: 'GET',
url: '/index/addReceiptImg', url: '/office_index/addReceiptImg',
data: _data, data: _data,
dataType: 'json', dataType: 'json',
beforeSend: function() {}, beforeSend: function() {},
...@@ -629,7 +629,7 @@ define(['doT', 'text!temp/office_receivables_template_tpl.html', 'css!style/home ...@@ -629,7 +629,7 @@ define(['doT', 'text!temp/office_receivables_template_tpl.html', 'css!style/home
getMaxBackPrice : function(id){ getMaxBackPrice : function(id){
var autgtoken = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))).AuthToken; var autgtoken = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))).AuthToken;
$.get('/broker/adjustment',{'pay_id':id,'AuthToken' : autgtoken},function(data){ $.get('/office/adjustment',{'pay_id':id,'AuthToken' : autgtoken},function(data){
if(data.code == 200) { if(data.code == 200) {
$('#could_price_back').text(data.data.residue_money); $('#could_price_back').text(data.data.residue_money);
} else { } else {
...@@ -690,7 +690,7 @@ define(['doT', 'text!temp/office_receivables_template_tpl.html', 'css!style/home ...@@ -690,7 +690,7 @@ define(['doT', 'text!temp/office_receivables_template_tpl.html', 'css!style/home
spandelList: function(n) { //删除已经保存的图片都调用 spandelList: function(n) { //删除已经保存的图片都调用
$.ajax({ $.ajax({
'type': 'POST', 'type': 'POST',
'url': '/index/deleteReceiptImg', 'url': '/office_index/deleteReceiptImg',
data: { data: {
id: n id: n
}, },
...@@ -712,7 +712,7 @@ define(['doT', 'text!temp/office_receivables_template_tpl.html', 'css!style/home ...@@ -712,7 +712,7 @@ define(['doT', 'text!temp/office_receivables_template_tpl.html', 'css!style/home
$('.result2,.result').remove(); //删除之前存在的图片 显示从接口获取的数据 用来区分新添加的 和 已经保存的 $('.result2,.result').remove(); //删除之前存在的图片 显示从接口获取的数据 用来区分新添加的 和 已经保存的
$.ajax({ $.ajax({
'type': 'GET', 'type': 'GET',
'url': '/index/receiptImgList', 'url': '/office_index/receiptImgList',
data: { data: {
"id": id_pic, "id": id_pic,
}, },
...@@ -789,7 +789,7 @@ define(['doT', 'text!temp/office_receivables_template_tpl.html', 'css!style/home ...@@ -789,7 +789,7 @@ define(['doT', 'text!temp/office_receivables_template_tpl.html', 'css!style/home
search_phone : function(){ search_phone : function(){
var that = receiv ; var that = receiv ;
$.ajax({ $.ajax({
url: '/index/bargainListSearchBargainId', url: '/office/bargainListSearchBargainId',
type: 'GET', type: 'GET',
async: true, async: true,
data: { data: {
...@@ -827,7 +827,7 @@ define(['doT', 'text!temp/office_receivables_template_tpl.html', 'css!style/home ...@@ -827,7 +827,7 @@ define(['doT', 'text!temp/office_receivables_template_tpl.html', 'css!style/home
search_phone_liu : function(){ search_phone_liu : function(){
var that = receiv ; var that = receiv ;
$.ajax({ $.ajax({
url: '/index/bargainListSearchBargainId', url: '/office/bargainListSearchBargainId',
type: 'GET', type: 'GET',
async: true, async: true,
data: { data: {
...@@ -1130,7 +1130,7 @@ define(['doT', 'text!temp/office_receivables_template_tpl.html', 'css!style/home ...@@ -1130,7 +1130,7 @@ define(['doT', 'text!temp/office_receivables_template_tpl.html', 'css!style/home
} }
//上传数据 //上传数据
$.post('/index/collectingBill',params,function( data ){ $.post('/office/collectingBill',params,function( data ){
if(data.code == 200) { if(data.code == 200) {
$('#modal-linetime').modal('hide'); $('#modal-linetime').modal('hide');
} else { } else {
...@@ -1140,7 +1140,7 @@ define(['doT', 'text!temp/office_receivables_template_tpl.html', 'css!style/home ...@@ -1140,7 +1140,7 @@ define(['doT', 'text!temp/office_receivables_template_tpl.html', 'css!style/home
}, },
getAllPrice : function(id){ getAllPrice : function(id){
$.get('/index/getAdjustment',{'pay_id':id},function(data){ $.get('/office_index/getAdjustment',{'pay_id':id},function(data){
if(data.code == 200) { if(data.code == 200) {
$('#could_price').text(data.data.residue_money); $('#could_price').text(data.data.residue_money);
} else { } else {
...@@ -1159,7 +1159,7 @@ define(['doT', 'text!temp/office_receivables_template_tpl.html', 'css!style/home ...@@ -1159,7 +1159,7 @@ define(['doT', 'text!temp/office_receivables_template_tpl.html', 'css!style/home
}; };
}; };
$.post('/index/getCollectionEdit',params,function(data){ $.post('/office_index/getCollectionEdit',params,function(data){
if(data.code == 200) { if(data.code == 200) {
$('#modal-addPic').modal('hide');//操作成功后 在隐藏弹窗 $('#modal-addPic').modal('hide');//操作成功后 在隐藏弹窗
if(receiv.is_baocun_bargainID*1 == 0){//判断点击的是哪个 保存详情的按钮 if(receiv.is_baocun_bargainID*1 == 0){//判断点击的是哪个 保存详情的按钮
...@@ -1449,7 +1449,7 @@ define(['doT', 'text!temp/office_receivables_template_tpl.html', 'css!style/home ...@@ -1449,7 +1449,7 @@ define(['doT', 'text!temp/office_receivables_template_tpl.html', 'css!style/home
var params = { var params = {
'pay_id' : id 'pay_id' : id
}; };
$.post('/index/getCollectionDetail',params , function(data){ $.post('/office_index/getCollectionDetail',params , function(data){
if(data.code == 200) { if(data.code == 200) {
that.getValueFunction(data.data); that.getValueFunction(data.data);
} else { } else {
...@@ -1666,7 +1666,7 @@ define(['doT', 'text!temp/office_receivables_template_tpl.html', 'css!style/home ...@@ -1666,7 +1666,7 @@ define(['doT', 'text!temp/office_receivables_template_tpl.html', 'css!style/home
var params = { var params = {
'pay_id' : id 'pay_id' : id
}; };
$.post('/index/delPayLog',params , function(data){ $.post('/office_index/delPayLog',params , function(data){
if(data.code == 200) { if(data.code == 200) {
that.getList(1); that.getList(1);
} else { } else {
...@@ -1903,7 +1903,7 @@ define(['doT', 'text!temp/office_receivables_template_tpl.html', 'css!style/home ...@@ -1903,7 +1903,7 @@ define(['doT', 'text!temp/office_receivables_template_tpl.html', 'css!style/home
$.ajax({ $.ajax({
type: 'GET', type: 'GET',
url: '/index/getPayLogData', url: '/office_index/getPayLogData',
data: params, data: params,
timeout: 30000, timeout: 30000,
dataType: 'json', dataType: 'json',
......
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