Commit 63b04789 authored by duxinyuan's avatar duxinyuan

duxinyuan

parent 66537a1b
...@@ -13,7 +13,7 @@ module.exports = { ...@@ -13,7 +13,7 @@ module.exports = {
proxyTable: {}, proxyTable: {},
// Various Dev Server settings // Various Dev Server settings
host: '192.168.0.91', // can be overwritten by process.env.HOST host: 'localhost', // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: true, autoOpenBrowser: true,
errorOverlay: true, errorOverlay: true,
......
<template>
<div>
<header-pulic :data="headerData"></header-pulic>
<div class="center m-t-3">财务日报日期:2019.1.12</div>
<div class="center">
<div class="tabs">
<div class="tab4" :class="status==0?'active':''" data-value="0">
<span @click="changeTabs" >中介费入账</span>
</div>
<div class="tab4" :class="status==1?'active':''" data-value="1">
<span @click="changeTabs">案场费入账</span>
</div>
<div class="tab4" :class="status==2?'active':''" data-value="2">
<span @click="changeTabs">意向金入账</span>
</div>
<div class="tab4" :class="status==3?'active':''" data-value="3" >
<span @click="changeTabs">保管金入账</span>
</div>
</div>
<table-show :data="dataList"></table-show>
</div>
<div class="center">
<div class="title">
<span>调整出账</span>
</div>
<table-change :data="dataChageList"></table-change>
</div>
<div class="center">
<div class="title">
<span>总计<span style="font-size:.3rem;font-weight: 600;">(元)</span></span>
</div>
<table-total :data="dataTotalList"></table-total>
</div>
<div class="center" v-if="commited == 0">
<div class="commite" @click="commit">
<span>提交</span>
</div>
</div>
</div>
</template>
<script>
// import '@/assets/js/layer041002.js';
import priceTable from '@/components/priceReport/priceTable';
import priceTableChange from '@/components/priceReport/priceTableChange';
import priceTableTotal from '@/components/priceReport/priceTableTotal';
export default {
name: '',
props: {
data: {
type: Object,
default: () => ({
message: 'hello'
})
},
dataindex: {
type: [Number, String],
default: 0
},
},
components: {
'table-show': priceTable,
'table-change': priceTableChange,
'table-total': priceTableTotal
},
data() {
let _this = this;
let _token = _this.$route.query.token;
if(!_token) {
layer.tipsX('token获取出错');
return false;
};
return {
headerData: {
'title': '财务日报',
'noborder': false,
'isBack': false
},
token: _token,
seatH: 1.58*4,//占位高度
pageSize: 10,
initTabNumMain: 0,
isLoading: false,//是否正在加载
show : true ,
heightBefor : 0 ,
mainData: [{
'dataList': [],
'page': 1,//页码
'isLoadOnce': false,//是否请求过一次数据
'isStop': false,//是否所有页的数据加载完毕
'noDataFlag': false,//是否是无数据
'label': {
'icon': 'icon_all@2x.png',
'id': 0,
'label_name': '全部'
}
}],
dataChageList : [],
dataTotalList : [],
status : 0 ,
urlParams : "",
dataList : [],
custodyMoneyList:[],
earnestMoneyList:[],
caseFeeList:[] ,
agencyList:[],
commited : 0 //未提交
}
},
created() {
let _this = this;
_this.urlParams = _this.$route.query;
_this.initData();
},
mounted () {
window.addEventListener('scroll', this.handleScroll, true);
// 监听(绑定)滚轮 滚动事件
},
methods: {
//切换tab标签
changeTabs : function(e){
let that = this ;
var status = e.path[1].dataset.value;
that.status = status;
if ( status == 0 ){
that.dataList = that.agencyList ;
} else if ( status == 1 ){
that.dataList = that.caseFeeList ;
} else if ( status == 2 ){
that.dataList = that.earnestMoneyList ;
} else if ( status == 3 ){
that.dataList = that.custodyMoneyList ;
} else {
that.dataList = [] ;
}
},
commit : function(){
let that = this ;
console.log(that.urlParams);
var params = {
'AuthToken': that.urlParams.token,
'agent_id': that.urlParams.agent_id,
"agent_name": that.urlParams.agent_name,
'daily_date': that.dataTotalList.daily_date,
"alipay": that.dataTotalList.alipay,
'tenpay': that.dataTotalList.tenpay,
"realty_pay": that.dataTotalList.realty_pay,
'family_pay': that.dataTotalList.family_pay,
"private_bank": that.dataTotalList.private_bank,
"cash": that.dataTotalList.cash,
"pos": that.dataTotalList.pos,
"other_bank": that.dataTotalList.other_bank,
}; var params =
that.axios({
method: 'get',
url: '/broker/addDaily',
responseType: 'json',
data: params
}).then(function(res){
layer.tipsX(res.data.msg);
}).catch(function(error){
layer.tipsX(error);
});
},
initData : function(){
let that = this ;
var params = {
'AuthToken': that.urlParams.token,
'store_id': that.urlParams.store_id,
'is_store': that.urlParams.is_store,
'daily_data': '2019-01-14'
};
that.axios({
method: 'get',
url: '/broker/dailyDetail',
responseType: 'json',
data: params
})
.then(function(res) {
if(res.data.code == 200) {
var data = res.data.data ;
var list = data.list ;
var check_list = data.check_list;
var commit_info = data.commit_info;
that.commited = data.is_commit
that.initAgencyList(list);
that.initCaseFeeList(list.case_fee);
that.initCustodyMoneyList(list.custody_money);
that.initEarnestMoneyList(list.earnest_money);
that.dataChageList = list.adjustment ;
var obj = data.total_info ;
obj.upint = data.recorded_money ;
obj.upoutt = data.adjustment_money ;
obj.souldt = data.remittance_money ;
obj.realin = data.remittance_money ;
that.dataTotalList = data.total_info
} else {
layer.tipsX(res.data.msg);
}
})
.catch(function(error) {
layer.tipsX(error);
});
},
//生成中介费数组数据
initAgencyList : function(list){
let that = this ;
var listArray = [{
"msg" : "成交报告ID" ,
"str1" : list.agency_fee.length > 0 ? (list.agency_fee[0].id ? list.agency_fee[0].id : "-") :"-",
"str2" : list.agency_fee.length > 1 ? (list.agency_fee[1].id ? list.agency_fee[1].id : "-") :"-",
"str3" : list.agency_fee.length > 2 ? (list.agency_fee[2].id ? list.agency_fee[2].id : "-") :"-",
},
{
"msg" : "商铺地址" ,
"str1" : list.agency_fee.length > 0 ? (list.agency_fee[0].house_address ? list.agency_fee[0].house_address : "-") :"-",
"str2" : list.agency_fee.length > 1 ? (list.agency_fee[1].house_address ? list.agency_fee[1].house_address : "-") :"-",
"str3" : list.agency_fee.length > 2 ? (list.agency_fee[2].house_address ? list.agency_fee[2].house_address : "-") :"-",
},
{
"msg" : "成交价" ,
"str1" : list.agency_fee.length > 0 ? (list.agency_fee[0].price ? list.agency_fee[0].price : "-") :"-",
"str2" : list.agency_fee.length > 1 ? (list.agency_fee[1].price ? list.agency_fee[1].price : "-") :"-",
"str3" : list.agency_fee.length > 2 ? (list.agency_fee[2].price ? list.agency_fee[2].price : "-") :"-",
},
{
"msg" : "应收金额" ,
"str1" : list.agency_fee.length > 0 ? (list.agency_fee[0].price * 0.7 ? (list.agency_fee[0].price * 0.7).toFixed(2) : "-") :"-",
"str2" : list.agency_fee.length > 1 ? (list.agency_fee[1].price * 0.7 ? (list.agency_fee[1].price * 0.7).toFixed(2) : "-") :"-",
"str3" : list.agency_fee.length > 2 ? (list.agency_fee[2].price * 0.7 ? (list.agency_fee[2].price * 0.7).toFixed(2) : "-") :"-",
},
{
"msg" : "本次收佣" ,
"str1" : list.agency_fee.length > 0 ? (list.agency_fee[0].money ? list.agency_fee[0].money : "-") :"-",
"str2" : list.agency_fee.length > 1 ? (list.agency_fee[1].money ? list.agency_fee[1].money : "-") :"-",
"str3" : list.agency_fee.length > 2 ? (list.agency_fee[2].money ? list.agency_fee[2].money : "-") :"-",
},
{
"msg" : "多收金额" ,
"str1" : list.agency_fee.length > 0 ? (list.agency_fee[0].price - list.agency_fee[0].price * 0.7 ? (list.agency_fee[0].price - list.agency_fee[0].price * 0.7).toFixed(2) : "-") :"-",
"str2" : list.agency_fee.length > 1 ? (list.agency_fee[1].price - list.agency_fee[1].price * 0.7 ? (list.agency_fee[1].price - list.agency_fee[1].price * 0.7).toFixed(2) : "-") :"-",
"str3" : list.agency_fee.length > 2 ? (list.agency_fee[2].price - list.agency_fee[2].price * 0.7 ? (list.agency_fee[2].price - list.agency_fee[2].price * 0.7).toFixed(2) : "-") :"-",
},
{
"msg" : "支付方式" ,
"str1" : list.agency_fee.length > 0 ? (list.agency_fee[0].pay_type ? list.agency_fee[0].pay_type : "-") :"-",
"str2" : list.agency_fee.length > 1 ? (list.agency_fee[1].pay_type ? list.agency_fee[1].pay_type : "-") :"-",
"str3" : list.agency_fee.length > 2 ? (list.agency_fee[2].pay_type ? list.agency_fee[2].pay_type : "-") :"-",
},
{
"msg" : "转账户名" ,
"str1" : list.agency_fee.length > 0 ? (list.agency_fee[0].transfer_name ? list.agency_fee[0].transfer_name : "-") :"-",
"str2" : list.agency_fee.length > 1 ? (list.agency_fee[1].transfer_name ? list.agency_fee[1].transfer_name : "-") :"-",
"str3" : list.agency_fee.length > 2 ? (list.agency_fee[2].transfer_name ? list.agency_fee[2].transfer_name : "-") :"-",
},
{
"msg" : "业务员" ,
"str1" : list.agency_fee.length > 0 ? (list.agency_fee[0].agent_name ? list.agency_fee[0].agent_name : "-") :"-",
"str2" : list.agency_fee.length > 1 ? (list.agency_fee[1].agent_name ? list.agency_fee[1].agent_name : "-") :"-",
"str3" : list.agency_fee.length > 2 ? (list.agency_fee[2].agent_name ? list.agency_fee[2].agent_name : "-") :"-",
},
{
"msg" : "所属门店" ,
"str1" : list.agency_fee.length > 0 ? (list.agency_fee[0].store_name ? list.agency_fee[0].store_name : "-") :"-",
"str2" : list.agency_fee.length > 1 ? (list.agency_fee[1].store_name ? list.agency_fee[0].store_name : "-") :"-",
"str3" : list.agency_fee.length > 2 ? (list.agency_fee[2].store_name ? list.agency_fee[0].store_name : "-") :"-",
},
{
"msg" : "是否开业" ,
"str1" : list.agency_fee.length > 0 ? (list.agency_fee[0].is_open == 1 ? "开业":"未开业") :"-",
"str2" : list.agency_fee.length > 1 ? (list.agency_fee[1].is_open == 1 ? "开业":"未开业") :"-",
"str3" : list.agency_fee.length > 2 ? (list.agency_fee[2].is_open == 1 ? "开业":"未开业") :"-",
},
{
"msg" : "是否分红" ,
"str1" : list.agency_fee.length > 0 ? (list.agency_fee[0].is_dividend == 1 ? "否" : "是") :"-",
"str2" : list.agency_fee.length > 1 ? (list.agency_fee[1].is_dividend == 1 ? "否" : "是") :"-",
"str3" : list.agency_fee.length > 2 ? (list.agency_fee[2].is_dividend == 1 ? "否" : "是") :"-",
}
]
that.agencyList = listArray;
that.dataList = listArray ;
},
initCaseFeeList : function(list){
var that = this ;
var caseFeeList = [
{
"msg" : "收款ID" ,
"str1" : list.length > 0 ? (list[0].id ? list[0].id : "-") :"-",
"str2" : list.length > 1 ? (list[1].id ? list[1].id : "-") :"-",
"str3" : list.length > 2 ? (list[2].id ? list[2].id : "-") :"-",
},
{
"msg" : "成交商铺地址" ,
"str1" : list.length > 0 ? (list[0].house_address ? list[0].house_address : "-") :"-",
"str2" : list.length > 1 ? (list[1].house_address ? list[1].house_address : "-") :"-",
"str3" : list.length > 2 ? (list[2].house_address ? list[2].house_address : "-") :"-",
},
{
"msg" : "应收案场费" ,
"str1" : list.length > 0 ? (list[0].price ? list[0].price : "-") :"-",
"str2" : list.length > 1 ? (list[1].price ? list[1].price : "-") :"-",
"str3" : list.length > 2 ? (list[2].price ? list[2].price : "-") :"-",
},
{
"msg" : "本次收佣" ,
"str1" : list.length > 0 ? (list[0].money ? list[0].money : "-") :"-",
"str2" : list.length > 1 ? (list[1].money ? list[1].money : "-") :"-",
"str3" : list.length > 2 ? (list[2].money ? list[2].money : "-") :"-",
},
{
"msg" : "支付方式" ,
"str1" : list.length > 0 ? (list[0].pay_type ? list[0].pay_type : "-") :"-",
"str2" : list.length > 1 ? (list[1].pay_type ? list[1].pay_type : "-") :"-",
"str3" : list.length > 2 ? (list[2].pay_type ? list[2].pay_type : "-") :"-",
},
{
"msg" : "转账户名" ,
"str1" : list.length > 0 ? (list[0].transfer_name ? list[0].transfer_name : "-") :"-",
"str2" : list.length > 1 ? (list[1].transfer_name ? list[1].transfer_name : "-") :"-",
"str3" : list.length > 2 ? (list[2].transfer_name ? list[2].transfer_name : "-") :"-",
},
{
"msg" : "业务员" ,
"str1" : list.length > 0 ? (list[0].agent_name ? list[0].agent_name : "-") :"-",
"str2" : list.length > 1 ? (list[1].agent_name ? list[1].agent_name : "-") :"-",
"str3" : list.length > 2 ? (list[2].agent_name ? list[2].agent_name : "-") :"-",
},
{
"msg" : "所属门店" ,
"str1" : list.length > 0 ? (list[0].store_name ? list[0].store_name : "-") :"-",
"str2" : list.length > 1 ? (list[1].store_name ? list[1].store_name : "-") :"-",
"str3" : list.length > 2 ? (list[2].store_name ? list[2].store_name : "-") :"-",
},
{
"msg" : "是否开业" ,
"str1" : list.length > 0 ? (list[0].is_open == 1 ? "开业":"未开业") :"-",
"str2" : list.length > 1 ? (list[1].is_open == 1 ? "开业":"未开业") :"-",
"str3" : list.length > 2 ? (list[2].is_open == 1 ? "开业":"未开业") :"-",
},
{
"msg" : "是否分红" ,
"str1" : list.length > 0 ? (list[0].is_dividend == 1 ? "否" : "是") :"-",
"str2" : list.length > 1 ? (list[1].is_dividend == 1 ? "否" : "是") :"-",
"str3" : list.length > 2 ? (list[2].is_dividend == 1 ? "否" : "是") :"-",
},
{
"msg" : "备注" ,
"str1" : list.length > 0 ? (list[0].remark ? list[0].remark : "-") :"-",
"str2" : list.length > 1 ? (list[1].remark ? list[1].remark : "-") :"-",
"str3" : list.length > 2 ? (list[2].remark ? list[2].remark : "-") :"-",
}
]
that.caseFeeList = caseFeeList ;
// that.dataList = caseFeeList ;
},
initEarnestMoneyList : function(list){
var that = this ;
var earnestMoneyList = [
{
"msg" : "收款ID" ,
"str1" : list.length > 0 ? (list[0].id ? list[0].id : "-") :"-",
"str2" : list.length > 1 ? (list[1].id ? list[1].id : "-") :"-",
"str3" : list.length > 2 ? (list[2].id ? list[2].id : "-") :"-",
},
{
"msg" : "订单ID" ,
"str1" : list.length > 0 ? (list[0].order_id ? list[0].order_id : "-") :"-",
"str2" : list.length > 1 ? (list[1].order_id ? list[1].order_id : "-") :"-",
"str3" : list.length > 2 ? (list[2].order_id ? list[2].order_id : "-") :"-",
},
{
"msg" : "房源ID" ,
"str1" : list.length > 0 ? (list[0].house_id ? list[0].house_id : "-") :"-",
"str2" : list.length > 1 ? (list[1].house_id ? list[1].house_id : "-") :"-",
"str3" : list.length > 2 ? (list[2].house_id ? list[2].house_id : "-") :"-",
},
{
"msg" : "成交商铺地址" ,
"str1" : list.length > 0 ? (list[0].house_address ? list[0].house_address : "-") :"-",
"str2" : list.length > 1 ? (list[1].house_address ? list[1].house_address : "-") :"-",
"str3" : list.length > 2 ? (list[2].house_address ? list[2].house_address : "-") :"-",
},
{
"msg" : "意向金金额" ,
"str1" : list.length > 0 ? (list[0].money ? list[0].money : "-") :"-",
"str2" : list.length > 1 ? (list[1].money ? list[1].money : "-") :"-",
"str3" : list.length > 2 ? (list[2].money ? list[2].money : "-") :"-",
},
{
"msg" : "支付方式" ,
"str1" : list.length > 0 ? (list[0].pay_type ? list[0].pay_type : "-") :"-",
"str2" : list.length > 1 ? (list[1].pay_type ? list[1].pay_type : "-") :"-",
"str3" : list.length > 2 ? (list[2].pay_type ? list[2].pay_type : "-") :"-",
},
{
"msg" : "转账户名" ,
"str1" : list.length > 0 ? (list[0].transfer_name ? list[0].transfer_name : "-") :"-",
"str2" : list.length > 1 ? (list[1].transfer_name ? list[1].transfer_name : "-") :"-",
"str3" : list.length > 2 ? (list[2].transfer_name ? list[2].transfer_name : "-") :"-",
},
{
"msg" : "业务员" ,
"str1" : list.length > 0 ? (list[0].agent_name ? list[0].agent_name : "-") :"-",
"str2" : list.length > 1 ? (list[1].agent_name ? list[1].agent_name : "-") :"-",
"str3" : list.length > 2 ? (list[2].agent_name ? list[2].agent_name : "-") :"-",
},
{
"msg" : "所属门店" ,
"str1" : list.length > 0 ? (list[0].store_name ? list[0].store_name : "-") :"-",
"str2" : list.length > 1 ? (list[1].store_name ? list[1].store_name : "-") :"-",
"str3" : list.length > 2 ? (list[2].store_name ? list[2].store_name : "-") :"-",
},
{
"msg" : "意向金收条编号" ,
"str1" : list.length > 0 ? (list[0].receipt_number ? list[0].receipt_number : "-") :"-",
"str2" : list.length > 1 ? (list[1].receipt_number ? list[1].receipt_number : "-") :"-",
"str3" : list.length > 2 ? (list[2].receipt_number ? list[2].receipt_number : "-") :"-",
}
]
that.earnestMoneyList = earnestMoneyList
that.dataList = earnestMoneyList ;
},
initCustodyMoneyList : function(list){
var that = this ;
var custodyMoneyList = [
{
"msg" : "收款ID" ,
"str1" : list.length > 0 ? (list[0].id ? list[0].id : "-") :"-",
"str2" : list.length > 1 ? (list[1].id ? list[1].id : "-") :"-",
"str3" : list.length > 2 ? (list[2].id ? list[2].id : "-") :"-",
},
{
"msg" : "房源ID" ,
"str1" : list.length > 0 ? (list[0].house_id ? list[0].house_id : "-") :"-",
"str2" : list.length > 1 ? (list[1].house_id ? list[1].house_id : "-") :"-",
"str3" : list.length > 2 ? (list[2].house_id ? list[2].house_id : "-") :"-",
},
{
"msg" : "成交商铺地址" ,
"str1" : list.length > 0 ? (list[0].house_address ? list[0].house_address : "-") :"-",
"str2" : list.length > 1 ? (list[1].house_address ? list[1].house_address : "-") :"-",
"str3" : list.length > 2 ? (list[2].house_address ? list[2].house_address : "-") :"-",
},
{
"msg" : "保管金金额" ,
"str1" : list.length > 0 ? (list[0].money ? list[0].money : "-") :"-",
"str2" : list.length > 1 ? (list[1].money ? list[1].money : "-") :"-",
"str3" : list.length > 2 ? (list[2].money ? list[2].money : "-") :"-",
},
{
"msg" : "支付方式" ,
"str1" : list.length > 0 ? (list[0].pay_type ? list[0].pay_type : "-") :"-",
"str2" : list.length > 1 ? (list[1].pay_type ? list[1].pay_type : "-") :"-",
"str3" : list.length > 2 ? (list[2].pay_type ? list[2].pay_type : "-") :"-",
},
{
"msg" : "转账户名" ,
"str1" : list.length > 0 ? (list[0].transfer_name ? list[0].transfer_name : "-") :"-",
"str2" : list.length > 1 ? (list[1].transfer_name ? list[1].transfer_name : "-") :"-",
"str3" : list.length > 2 ? (list[2].transfer_name ? list[2].transfer_name : "-") :"-",
},
{
"msg" : "业务员" ,
"str1" : list.length > 0 ? (list[0].agent_name ? list[0].agent_name : "-") :"-",
"str2" : list.length > 1 ? (list[1].agent_name ? list[1].agent_name : "-") :"-",
"str3" : list.length > 2 ? (list[2].agent_name ? list[2].agent_name : "-") :"-",
},
{
"msg" : "所属门店" ,
"str1" : list.length > 0 ? (list[0].store_name ? list[0].store_name : "-") :"-",
"str2" : list.length > 1 ? (list[1].store_name ? list[1].store_name : "-") :"-",
"str3" : list.length > 2 ? (list[2].store_name ? list[2].store_name : "-") :"-",
},
{
"msg" : "保管金收条编号" ,
"str1" : list.length > 0 ? (list[0].receipt_number ? list[0].receipt_number : "-") :"-",
"str2" : list.length > 1 ? (list[1].receipt_number ? list[1].receipt_number : "-") :"-",
"str3" : list.length > 2 ? (list[2].receipt_number ? list[2].receipt_number : "-") :"-",
}
]
that.custodyMoneyList = custodyMoneyList
},
},
computed: {
}
}
</script>
<style scoped>
.center {
width : 100%;
text-align:center ;
}
.m-t-3{
margin-top:.3rem;
}
.tab4{
width : 25%;
float:left;
padding:.22rem 0rem ;
}
.tabs{
border-bottom:1px solid #eeeeee;
overflow:hidden ;
}
.tabs>.active {
color:#FF9318 ;
}
.title{
font-size:0.5rem;
padding:.3rem 0rem ;
border-bottom:1px solid #eeeeee;
font-weight: 700;
}
.commite{
width: 6.86rem;
background-color : #fe9417;
padding : 0.24rem 0rem ;
text-align:center;
margin-left : .32rem;
border-radius: .05rem;
margin-bottom:.3rem;
color : #ffffff;
font-size : .44rem;
}
</style>
<!--//
http://localhost:8080/#/priceReport?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJkYXRhIjp7ImlkIjo1NzM5LCJuYW1lIjoiXHU2MDNiXHU2ZDRiXHU4YmQ1MSIsInBob25lIjoiMTU2MDE2NTIzNTMiLCJsZXZlbCI6MzB9LCJ0aW1lU3RhbXBfIjoxNTMwNjA2ODU4fQ.8jL49CjtBMV6BqmaKdJfd4pkGBazrAgQQrutb53Z3mY-->
\ No newline at end of file
<template>
<div>
<div class="table-build">
<div class="table_tr" v-for="(item,index) in data ">
<div class="table_head">
<div class="head_text_div" >
<span>{{ item.msg }}</span>
</div>
</div>
<div class="table_text">
<div class="table_text_div">
<span>{{ item.str1 }}</span>
</div>
</div>
<div class="table_text">
<div class="table_text_div" >
<span>{{ item.str2 }}</span>
</div>
</div>
<div class="table_text3">
<div class="table_text_div" >
<span>{{ item.str3 }}</span>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
import '@/assets/js/layer041002.js';
export default {
name: '',
props: {
data: {
type: Object,
default : {
msg : '数据为空'
}
},
dataindex: {
type: [Number, String],
default: 0
}
},
data(){
return {
}
},
created() {
let _this = this;
},
mounted () {
window.addEventListener('scroll', this.handleScroll, true);
// 监听(绑定)滚轮 滚动事件
},
methods: {
},
computed: {
}
}
</script>
<style scoped>
.center {
width : 100%;
text-align:center ;
}
.m-t-3{
margin-top:.3rem;
}
.table-build{
width : 7.5rem;
text-align:center ;
}
.table_head{
width : 1.67rem;
text-align:center;
border-right:1px solid #eeeeee;
padding-left:.36rem;
float:left;
}
.head_text_div{
width :100%;
padding:.24rem 0rem .24rem 0rem ;
text-align:left;
}
.table_text {
width : 1.6rem ;
text-align:center;
border-right:1px solid #eeeeee;
float:left;
}
.table_text3 {
width : 1.6rem ;
text-align:center;
float:left;
}
.table_text_div{
width :100%;
padding:.24rem 0rem .24rem 0rem ;
text-align:center;
}
.table_tr{
width : 100%;
overflow:hidden ;
border-bottom:1px solid #eeeeee;
}
</style>
<!--//http://localhost:8080/#/priceReport?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJkYXRhIjp7ImlkIjo1NzM5LCJuYW1lIjoiXHU2MDNiXHU2ZDRiXHU4YmQ1MSIsInBob25lIjoiMTU2MDE2NTIzNTMiLCJsZXZlbCI6MzB9LCJ0aW1lU3RhbXBfIjoxNTMwNjA2ODU4fQ.8jL49CjtBMV6BqmaKdJfd4pkGBazrAgQQrutb53Z3mY-->
\ No newline at end of file
<template>
<div>
<div class="table-build">
<div class="table_tr" v-for="(item,index) in listArray ">
<div class="table_head">
<div class="head_text_div" >
<span>{{ item.msg }}</span>
</div>
</div>
<div class="table_text">
<div class="table_text_div">
<span>{{ item.str1 }}</span>
</div>
</div>
<div class="table_text">
<div class="table_text_div" >
<span>{{ item.str2 }}</span>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
import '@/assets/js/layer041002.js';
export default {
name: '',
props: {
data: {
type: Object,
default : {
msg : '数据为空'
}
},
dataindex: {
type: [Number, String],
default: 0
}
},
data(){
return {
listArray : []
}
},
created() {
let that = this;
console.log(that.data);
that.initData(that.data);
},
mounted () {
let that = this ;
window.addEventListener('scroll', this.handleScroll, true);
},
methods: {
initData : function(list){
let that = this ;
console.log(list)
var listArray = [
{
"msg" : "调整ID" ,
"str1" : list.length > 0 ? (list[0].id ? list[0].id : "-") :"-",
"str2" : list.length > 1 ? (list[1].id ? list[1].id : "-") :"-",
},
{
"msg" : "调整前房源ID" ,
"str1" : list.length > 0 ? (list[0].house_id ? list[0].house_id : "-") :"-",
"str2" : list.length > 1 ? (list[1].house_id ? list[1].house_id: "-") :"-",
},
{
"msg" : "调整前房源地址" ,
"str1" : list.length > 0 ? (list[0].house_address ? list[0].house_address : "-") :"-",
"str2" : list.length > 1 ? (list[1].house_address ? list[1].house_address : "-") :"-",
},
{
"msg" : "调整类型" ,
"str1" : list.length > 0 ? (list[0].type * 0.7 ? (list[0].type).toFixed(2) : "-") :"-",
"str2" : list.length > 1 ? (list[1].type * 0.7 ? (list[1].type).toFixed(2) : "-") :"-",
},
{
"msg" : "入账日期" ,
"str1" : list.length > 0 ? (list[0].create_time ? list[0].create_time : "-") :"-",
"str2" : list.length > 1 ? (list[1].create_time ? list[1].create_time : "-") :"-",
},
{
"msg" : "收据编号" ,
"str1" : list.length > 0 ? (list[0].receipt_number ? list[0].receipt_number: "-") :"-",
"str2" : list.length > 1 ? (list[1].receipt_number ? list[1].receipt_number : "-") :"-",
},
{
"msg" : "调整金额" ,
"str1" : list.length > 0 ? (list[0].money ? list[0].money : "-") :"-",
"str2" : list.length > 1 ? (list[1].money ? list[1].money : "-") :"-",
},
{
"msg" : "附件" ,
"str1" : list.length > 0 ? (list[0].pay_log_id ? list[0].pay_log_id : "-") :"-",
"str2" : list.length > 1 ? (list[1].pay_log_id ? list[1].pay_log_id : "-") :"-",
}
]
console.log(listArray)
that.listArray = listArray ;
}
},
computed: {
}
}
</script>
<style scoped>
.center {
width : 100%;
text-align:center ;
}
.m-t-3{
margin-top:.3rem;
}
.table-build{
width : 7.5rem;
text-align:center ;
}
.table_head{
width : 1.67rem;
text-align:center;
border-right:1px solid #eeeeee;
padding-left:.36rem;
float:left;
}
.head_text_div{
width :100%;
padding:.24rem 0rem .24rem 0rem ;
text-align:left;
}
.table_text {
width : 2.70rem ;
text-align:center;
border-right:1px solid #eeeeee;
float:left;
}
.table_text3 {
width : 1.6rem ;
text-align:center;
float:left;
}
.table_text_div{
width :100%;
padding:.24rem 0rem .24rem 0rem ;
text-align:center;
}
.table_tr{
width : 100%;
overflow:hidden ;
border-bottom:1px solid #eeeeee;
}
</style>
<!--//http://localhost:8080/#/priceReport?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJkYXRhIjp7ImlkIjo1NzM5LCJuYW1lIjoiXHU2MDNiXHU2ZDRiXHU4YmQ1MSIsInBob25lIjoiMTU2MDE2NTIzNTMiLCJsZXZlbCI6MzB9LCJ0aW1lU3RhbXBfIjoxNTMwNjA2ODU4fQ.8jL49CjtBMV6BqmaKdJfd4pkGBazrAgQQrutb53Z3mY-->
\ No newline at end of file
<template>
<div>
<div class="table-build" v-if="data.commited == 1">
<div class="DivBox" >
<div class="halfDiv" v-if="data.upint!=0">
以上入账金额:{{ data.upint }}
</div>
<div class="halfDiv" v-if="data.upoutt!=0">
以上出账金额:{{ data.upoutt }}
</div>
<div class="halfDiv" v-if="data.souldt!=0">
入账应汇款:{{ data.souldt }}
</div>
<div class="halfDiv" v-if="data.realin!=0">
实际入账:{{ data.realin }}
</div>
</div>
<div class="DivBox">
<div class="halfDiv" v-if="data.alipay!=0">
施总支付宝:{{ data.alipay }}
</div>
<div class="halfDiv" v-if="data.tenpay!=0">
施总微信:{{ data.tenpay }}
</div>
<div class="halfDiv" v-if="data.realty_pay!=0">
地产转账:{{ data.realty_pay }}
</div>
<div class="halfDiv" v-if="data.family_pay!=0">
世家转账:{{ data.family_pay }}
</div>
<div class="halfDiv" v-if="data.private_bank!=0">
3000账号:{{ data.private_bank }}
</div>
<div class="halfDiv" v-if="data.cash!=0">
现金:{{ data.cash }}
</div>
<div class="halfDiv" v-if="data.pos!=0">
POS机:{{ data.pos }}
</div>
<div class="halfDiv" v-if="data.other_bank!=0">
其他:{{ data.other_bank }}
</div>
</div>
</div>
</div>
</template>
<script>
import '@/assets/js/layer041002.js';
export default {
name: '',
props: {
data: {
type: Object,
default : {
msg : '数据为空'
}
},
dataindex: {
type: [Number, String],
default: 0
}
},
data(){
return {
dataTotalList : ""
}
},
created() {
let _this = this;
},
mounted () {
window.addEventListener('scroll', this.handleScroll, true);
// 监听(绑定)滚轮 滚动事件
},
methods: {
},
computed: {
}
}
</script>
<style scoped>
.center {
width : 100%;
text-align:center ;
}
.m-t-3{
margin-top:.3rem;
}
.table-build{
width : 7.5rem;
text-align:center ;
}
.table_head{
width : 1.67rem;
text-align:center;
border-right:1px solid #eeeeee;
padding-left:.36rem;
float:left;
}
.head_text_div{
width :100%;
padding:.24rem 0rem .24rem 0rem ;
text-align:left;
}
.table_text {
width : 1.6rem ;
text-align:center;
border-right:1px solid #eeeeee;
float:left;
}
.table_text3 {
width : 1.6rem ;
text-align:center;
float:left;
}
.table_text_div{
width :100%;
padding:.24rem 0rem .24rem 0rem ;
text-align:center;
}
.table_tr{
width : 100%;
overflow:hidden ;
border-bottom:1px solid #eeeeee;
}
.DivBox{
width : 100% ;
padding :0.18rem 0rem 0.5rem 0rem ;
overflow:hidden ;
border-bottom:1px solid #eeeeee;
}
.halfDiv{
width: 3.03rem;
padding : 0rem .36rem ;
float:left;
margin-top:0.12rem;
text-align:left;
}
</style>
<!--//http://localhost:8080/#/priceReport?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJkYXRhIjp7ImlkIjo1NzM5LCJuYW1lIjoiXHU2MDNiXHU2ZDRiXHU4YmQ1MSIsInBob25lIjoiMTU2MDE2NTIzNTMiLCJsZXZlbCI6MzB9LCJ0aW1lU3RhbXBfIjoxNTMwNjA2ODU4fQ.8jL49CjtBMV6BqmaKdJfd4pkGBazrAgQQrutb53Z3mY-->
\ No newline at end of file
...@@ -92,6 +92,12 @@ ...@@ -92,6 +92,12 @@
'nameCustom': '同联下载页', 'nameCustom': '同联下载页',
'query': { 'query': {
} }
},
{
'path': '/priceReport',
'nameCustom': '财务日报提交/查看',
'query': {
}
} }
] ]
} }
......
...@@ -18,6 +18,7 @@ import shopList from '@/components/shop/shopList' ...@@ -18,6 +18,7 @@ import shopList from '@/components/shop/shopList'
import shopSearchList from '@/components/shopSearch/shopSearchList' import shopSearchList from '@/components/shopSearch/shopSearchList'
import advertisingPage from '@/components/advertisingPage/advertisingPage' import advertisingPage from '@/components/advertisingPage/advertisingPage'
import download from '@/components/download/download' import download from '@/components/download/download'
import priceReport from '@/components/priceReport/priceReport'
Vue.use(VueRouter) Vue.use(VueRouter)
export default new VueRouter({ export default new VueRouter({
...@@ -126,5 +127,11 @@ export default new VueRouter({ ...@@ -126,5 +127,11 @@ export default new VueRouter({
name: 'v-download', name: 'v-download',
component: download component: download
} }
,
{
path: '/priceReport',
name: 'v-priceReport',
component: priceReport
}
] ]
}) })
\ No newline at end of file
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