Commit 53b5851b authored by agping's avatar agping

时间轴 成交报告

parent 815f4672
...@@ -21,10 +21,14 @@ ...@@ -21,10 +21,14 @@
<section v-show="mainInit == 0"> <section v-show="mainInit == 0">
<div class="sec1-area1 oh"> <div class="sec1-area1 oh">
<ul> <ul>
<li> <li v-if='is_office != 2'>
<div>商铺类型:</div> <div>房源类型:</div>
<div>{{detailData.shop_type=='1'?'街铺':'商场'}}</div> <div>{{detailData.shop_type=='1'?'街铺':'商场'}}</div>
</li> </li>
<li v-if='is_office == 2'>
<div>房源类型:</div>
<div>{{detailData.type}}</div>
</li>
<li> <li>
<div>商铺地址:</div> <div>商铺地址:</div>
<div>{{detailData.internal_address}}<button v-if="otherBtn!='no'" class="btn-pc btn-info-pc btn-show-shop-detail" @click.stop.prevent="showShopDetail">商铺</button></div> <div>{{detailData.internal_address}}<button v-if="otherBtn!='no'" class="btn-pc btn-info-pc btn-show-shop-detail" @click.stop.prevent="showShopDetail">商铺</button></div>
......
...@@ -1081,7 +1081,7 @@ ...@@ -1081,7 +1081,7 @@
<div class="col-xs-3"> <div class="col-xs-3">
<div class="form-group"> <div class="form-group">
<strong><span>成交报告ID:</span></strong> <strong><span>成交报告ID:</span></strong>
<span id="chengjiaobaogaoId">45122</span> <span id="chengjiaobaogaoId"></span>
</div> </div>
</div> </div>
<div class="col-xs-3"> <div class="col-xs-3">
...@@ -1101,7 +1101,7 @@ ...@@ -1101,7 +1101,7 @@
<div class="col-xs-6"> <div class="col-xs-6">
<div class="form-group"> <div class="form-group">
<strong><span class="col-xs-3 ld-Marheight">房源地址:</span></strong> <strong><span class="col-xs-3 ld-Marheight">房源地址:</span></strong>
<span id="address" class="col-xs-6 ld-Marheight">上海市南京东路123号</span> <span id="address" class="col-xs-6 ld-Marheight"></span>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -202,7 +202,7 @@ ...@@ -202,7 +202,7 @@
</div> </div>
<div class="col-xs-4 p-t-10"> <div class="col-xs-4 p-t-10">
<label class="">房号: </label> <label class="">房号: </label>
<input type="number" class="form-control input-100-width" id="room_number" placeholder="请输入" data-alert="请输入房号!">&nbsp;&nbsp; <input type="text" class="form-control input-100-width" id="room_number" placeholder="请输入" data-alert="请输入房号!">&nbsp;&nbsp;
</div> </div>
<div class="col-xs-4 p-t-10"> <div class="col-xs-4 p-t-10">
......
...@@ -3,6 +3,9 @@ require(['vue', 'css!style/bargaininfo_detail_static_pc.css', 'jquery0325', 'com ...@@ -3,6 +3,9 @@ require(['vue', 'css!style/bargaininfo_detail_static_pc.css', 'jquery0325', 'com
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存 var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
var order_id = getUrlParam('orderid'); //获取订单id var order_id = getUrlParam('orderid'); //获取订单id
var other_btn = getUrlParam('otherbtn');//是否显示其他按钮,如商铺详情等 var other_btn = getUrlParam('otherbtn');//是否显示其他按钮,如商铺详情等
var isOffice = getUrlParam('type'); //获取办公楼 商铺
var isOfficeUrl = ''; //获取办公楼 商铺接口
console.log(other_btn); console.log(other_btn);
var _doc = $(document); var _doc = $(document);
console.log(user_info_obj); console.log(user_info_obj);
...@@ -15,7 +18,8 @@ require(['vue', 'css!style/bargaininfo_detail_static_pc.css', 'jquery0325', 'com ...@@ -15,7 +18,8 @@ require(['vue', 'css!style/bargaininfo_detail_static_pc.css', 'jquery0325', 'com
otherBtn: other_btn, otherBtn: other_btn,
detailData: {}, detailData: {},
fenyongData: [], fenyongData: [],
shuifeiData: [] shuifeiData: [],
is_office:isOffice
}, },
created: function() { created: function() {
var _thisV = this; var _thisV = this;
...@@ -47,11 +51,18 @@ require(['vue', 'css!style/bargaininfo_detail_static_pc.css', 'jquery0325', 'com ...@@ -47,11 +51,18 @@ require(['vue', 'css!style/bargaininfo_detail_static_pc.css', 'jquery0325', 'com
}; };
}, },
getFenyong() { getFenyong() {
//获取分佣提成
let _thisV = this; let _thisV = this;
//获取分佣提成
if(isOffice == 2){
isOfficeUrl = '/office_index/commissionList';
_thisV.otherBtn = 'no';
}else{
isOfficeUrl = '/index/commissionList';
}
$.ajax({ $.ajax({
'type': 'GET', 'type': 'GET',
'url': '/index/commissionList', 'url': isOfficeUrl,
data: { data: {
'id': order_id 'id': order_id
}, },
...@@ -103,9 +114,17 @@ require(['vue', 'css!style/bargaininfo_detail_static_pc.css', 'jquery0325', 'com ...@@ -103,9 +114,17 @@ require(['vue', 'css!style/bargaininfo_detail_static_pc.css', 'jquery0325', 'com
getShuifei() { getShuifei() {
//获取开票税费 //获取开票税费
let _thisV = this; let _thisV = this;
if(isOffice == 2){
isOfficeUrl = '/office_index/getTallAge';
_thisV.otherBtn = 'no';
}else{
isOfficeUrl = '/index/getTallAge';
}
$.ajax({ $.ajax({
'type': 'GET', 'type': 'GET',
'url': '/index/getTallAge', 'url': isOfficeUrl,
data: { data: {
'bargain_id': order_id 'bargain_id': order_id
}, },
...@@ -124,9 +143,17 @@ require(['vue', 'css!style/bargaininfo_detail_static_pc.css', 'jquery0325', 'com ...@@ -124,9 +143,17 @@ require(['vue', 'css!style/bargaininfo_detail_static_pc.css', 'jquery0325', 'com
getDeatil() { getDeatil() {
//获取成交信息 //获取成交信息
let _thisV = this; let _thisV = this;
if(isOffice == 2){
isOfficeUrl = '/office_index/bargainInfo';
_thisV.otherBtn = 'no';
}else{
isOfficeUrl = '/index/bargainInfo';
}
$.ajax({ $.ajax({
'type': 'GET', 'type': 'GET',
'url': '/index/bargainInfo', 'url': isOfficeUrl,
data: { data: {
'id': order_id 'id': order_id
}, },
...@@ -163,6 +190,31 @@ require(['vue', 'css!style/bargaininfo_detail_static_pc.css', 'jquery0325', 'com ...@@ -163,6 +190,31 @@ require(['vue', 'css!style/bargaininfo_detail_static_pc.css', 'jquery0325', 'com
break; break;
} }
}, },
dealfangyuanType(n) {
switch(String(n)) {
case '1':
return '写字楼';
break;
case '2':
return '商住两用';
break;
case '3':
return '园区';
break;
case '4':
return '洋房';
break;
case '5':
return '联合办公';
break;
case '6':
return '厂房';
break;
default:
return '';
break;
}
},
getInfoType(r) { getInfoType(r) {
switch(Number(r)) { switch(Number(r)) {
case 1: case 1:
......
'use strict'; 'use strict';
require(['vue', 'css!style/timeline_pc.css', 'jquery0325', 'common'],function(Vue, VConsole){ require(['vue', 'css!style/timeline_pc.css', 'jquery0325', 'common'],function(Vue, VConsole){
var order_id = getUrlParam('order_id'); var order_id = getUrlParam('order_id');
var isOffice = getUrlParam('type');
var urlOffice = '';
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
var vm = new Vue({ var vm = new Vue({
el: '#app', el: '#app',
data: { data: {
...@@ -9,12 +12,17 @@ require(['vue', 'css!style/timeline_pc.css', 'jquery0325', 'common'],function(Vu ...@@ -9,12 +12,17 @@ require(['vue', 'css!style/timeline_pc.css', 'jquery0325', 'common'],function(Vu
created: function() { created: function() {
var _this = this; var _this = this;
document.body.style.display = 'block'; document.body.style.display = 'block';
if(isOffice == 2){
urlOffice ="/office/selectReportAll";
}else{
urlOffice ="/index/selectReportAll";
}
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
// url: ServerHostTempC + '/index/selectReportAll', url: urlOffice,
url: '/index/selectReportAll',
data: { data: {
'order_id': order_id 'order_id': order_id,
'AuthToken': user_info_obj.AuthToken,
}, },
timeout: 30000, timeout: 30000,
dataType: 'json', dataType: 'json',
......
...@@ -528,14 +528,16 @@ define(['doT','html2canvas','text!temp/financial_manager_daily_list_template_tpl ...@@ -528,14 +528,16 @@ define(['doT','html2canvas','text!temp/financial_manager_daily_list_template_tpl
//点击成交报告ID,获取报告详情 //点击成交报告ID,获取报告详情
_doc.on('click', '.details-btn-liu', function() { _doc.on('click', '.details-btn-liu', function() {
var _id = $(this).attr("data-id"); var _id = $(this).attr("data-id");
$('.iframe-bargaininfo-static').attr('src', '/app_broker/bargaininfo_detail_static_pc?orderid='+_id).load; var _type = $(this).attr("data-typeC");
$('.iframe-bargaininfo-static').attr('src', '/app_broker/bargaininfo_detail_static_pc?orderid='+_id+'&type='+ _type).load;
}); });
//时间轴点击事件 //时间轴点击事件
_doc.on('click', 'a[href="#modal-time-liu"]', function(e){ _doc.on('click', 'a[href="#modal-time-liu"]', function(e){
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
var _id = $(this).attr("data-id"); var _id = $(this).attr("data-id");
$('.iframe-time-line').attr('src', '/app_broker/timeline_pc?order_id='+_id); var _type = $(this).attr("data-typeC");
$('.iframe-time-line').attr('src', '/app_broker/timeline_pc?order_id='+_id+'&type='+ _type);
}); });
//获取调整详情 //获取调整详情
$(document).on('click','.add-pic-liu',function(e){ $(document).on('click','.add-pic-liu',function(e){
......
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