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