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