Commit cd9030e2 authored by agping's avatar agping

全部约带看

parent 4e0f596d
...@@ -5,6 +5,8 @@ require(['vue', 'css!style/submit_report_pc.css', 'jquery0325', 'common'], funct ...@@ -5,6 +5,8 @@ require(['vue', 'css!style/submit_report_pc.css', 'jquery0325', 'common'], funct
var _doc = $(document); var _doc = $(document);
console.log(user_info_obj); console.log(user_info_obj);
console.log(order_info_obj); console.log(order_info_obj);
var isOffice = getUrlParam('type');
var urlOffice = '';
var vm = new Vue({ var vm = new Vue({
el: '#app', el: '#app',
data: { data: {
...@@ -286,10 +288,14 @@ require(['vue', 'css!style/submit_report_pc.css', 'jquery0325', 'common'], funct ...@@ -286,10 +288,14 @@ require(['vue', 'css!style/submit_report_pc.css', 'jquery0325', 'common'], funct
return false; return false;
}; };
_data['commission_arr'] = JSON.stringify(_dataArr); _data['commission_arr'] = JSON.stringify(_dataArr);
if(isOffice == 2){//type=2 办公楼
urlOffice ="/office/bargain";
}else{
urlOffice ="/broker/bargain";
}
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
url: '/broker/bargain', //约带看记录 对接接口 url: urlOffice, //约带看记录 对接接口
data: _data, data: _data,
timeout: 30000, timeout: 30000,
dataType: 'json', dataType: 'json',
......
...@@ -90,7 +90,7 @@ define(['doT', 'text!temp/inspectionRecordAllOffice_list_template_tpl.html', 'cs ...@@ -90,7 +90,7 @@ define(['doT', 'text!temp/inspectionRecordAllOffice_list_template_tpl.html', 'cs
var _packdata = $(this).closest('tr').attr('data-data'); var _packdata = $(this).closest('tr').attr('data-data');
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
$('.iframe-submit-report').attr('src', '/app_broker/submit_report_pc?packdata=' + _packdata); $('.iframe-submit-report').attr('src', '/app_broker/submit_report_pc?packdata=' + _packdata+'&type=2');
}); });
$("#search").click(function() { //搜索 $("#search").click(function() { //搜索
record.getList(1); record.getList(1);
...@@ -386,7 +386,7 @@ define(['doT', 'text!temp/inspectionRecordAllOffice_list_template_tpl.html', 'cs ...@@ -386,7 +386,7 @@ define(['doT', 'text!temp/inspectionRecordAllOffice_list_template_tpl.html', 'cs
} }
$.ajax({ $.ajax({
'type': 'POST', 'type': 'POST',
'url': '/broker/collectingBill', 'url': '/office_index/collectingBill',
data: params, data: params,
dataType: "json", dataType: "json",
success: function(data) { success: function(data) {
...@@ -404,7 +404,7 @@ define(['doT', 'text!temp/inspectionRecordAllOffice_list_template_tpl.html', 'cs ...@@ -404,7 +404,7 @@ define(['doT', 'text!temp/inspectionRecordAllOffice_list_template_tpl.html', 'cs
getNum: function(fn) { getNum: function(fn) {
var userObj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); var userObj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo')));
$.ajax({ $.ajax({
url: '/broker/getBeForNum', url: '/office_index/getBeForNum',
type: 'GET', type: 'GET',
async: true, async: true,
data: { data: {
......
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