Commit 4dbfef1e authored by 罗超's avatar 罗超

no message

parent ac3e742b
...@@ -35,6 +35,12 @@ ...@@ -35,6 +35,12 @@
.ToBeReceived.blue{ .ToBeReceived.blue{
color: #409eff; color: #409eff;
} }
.income_1{
color: #2961FE;
}
.income_2{
color: #3FC4FF;
}
</style> </style>
<template> <template>
<div class="Business"> <div class="Business">
...@@ -114,7 +120,6 @@ ...@@ -114,7 +120,6 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="BackMoney"
label="退款" label="退款"
show-overflow-tooltip> show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -126,6 +131,7 @@ ...@@ -126,6 +131,7 @@
label="成本" label="成本"
show-overflow-tooltip> show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<!-- v-if="scope.row.OrderStatus!=1" -->
{{scope.row.PayMoney}}<i @click="makeAdocument(scope.row,3)" class="iconfont iconjia- numIcon"></i> {{scope.row.PayMoney}}<i @click="makeAdocument(scope.row,3)" class="iconfont iconjia- numIcon"></i>
</template> </template>
</el-table-column> </el-table-column>
...@@ -170,19 +176,32 @@ ...@@ -170,19 +176,32 @@
show-overflow-tooltip> show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="PayFinance" label="成本单据"
label="付款单据"
show-overflow-tooltip> show-overflow-tooltip>
<template slot-scope="scope">
<p v-for="(item,index) in scope.row.PayFinance" :key="index">
{{item?item:''}}
</p>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="IncomeFinance"
label="收入单据" label="收入单据"
show-overflow-tooltip> show-overflow-tooltip>
<template slot-scope="scope">
<p v-for="(item,index) in scope.row.IncomeFinance" :key="index"
:class="item.Status==1?'income_1':'income_2'">
{{item.FrID}}
</p>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="BackFinance"
label="退款单据" label="退款单据"
show-overflow-tooltip> show-overflow-tooltip>
<template slot-scope="scope">
<p v-for="(item,index) in scope.row.BackFinance" :key="index">
{{item?item:''}}
</p>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="CreateByName" prop="CreateByName"
...@@ -265,15 +284,25 @@ export default { ...@@ -265,15 +284,25 @@ export default {
// 制作单据 // 制作单据
makeAdocument(row,num){ makeAdocument(row,num){
let type let type
type = num==1? 1:2 type = num==1? 1:2 // 1收款 2退款 3成本
let href let href
let url let url
if(this.isOnline()){ if(this.isOnline()){
url = 'http://yx.oytour.com/#/' url = 'http://yx.oytour.com/#/'
}else{ }else{
url = 'http://www.test.com:8081/#/' url = 'http://www.test.com:8080/#/'
} }
href = url+'automaticLogin?token='+this.getLocalStorage().token+'&type='+type+'&OtherType=55'+'&ReFinanceId='+row.OrderId+'&ReFinanceId2='+num+'&GuestId=' +row.GuestId let data = [
{
path:'ChoiceAddFinancialDocuments',
type: type,
OtherType: 55,
ReFinanceId: row.OrderId,
ReFinanceId2: num,
GuestId: row.GuestId
}
]
href = url+'automaticLogin?token='+this.getLocalStorage().token+'&data=' + JSON.stringify(data)
window.open(href); window.open(href);
}, },
// 操作日志 // 操作日志
......
...@@ -124,6 +124,9 @@ ...@@ -124,6 +124,9 @@
<el-tab-pane label="订单" name="6"> <el-tab-pane label="订单" name="6">
<Agreement v-if="activeName === '6'" :ID="CustomerId" /> <Agreement v-if="activeName === '6'" :ID="CustomerId" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="财务单据" name="11">
<finance v-if="activeName === '11'" :ID="CustomerId" />
</el-tab-pane>
<el-tab-pane label="回款" name="7" v-if="false"> <el-tab-pane label="回款" name="7" v-if="false">
<!-- <MoneyBack /> --> <!-- <MoneyBack /> -->
</el-tab-pane> </el-tab-pane>
...@@ -143,6 +146,7 @@ ...@@ -143,6 +146,7 @@
import Details from "./Details"; import Details from "./Details";
import Business from "./Business"; import Business from "./Business";
import Agreement from "./Agreement"; import Agreement from "./Agreement";
import finance from "./finance"
import MoneyBack from "./MoneyBack"; import MoneyBack from "./MoneyBack";
import guestTeam from "./guestTeam"; import guestTeam from "./guestTeam";
import Enclosure from "../clueManagement/Enclosure"; import Enclosure from "../clueManagement/Enclosure";
...@@ -153,6 +157,7 @@ ...@@ -153,6 +157,7 @@
Details, Details,
Business, Business,
Agreement, Agreement,
finance,
MoneyBack, MoneyBack,
Enclosure, Enclosure,
Record, Record,
......
<style scoped>
.add-Enclosure{
display: flex;
justify-content: space-between;
}
.add-Enclosure-left{
display: flex;
}
.item-but-box{
display: flex;
}
.item-but{
margin-right: 10px;
}
.numIcon{
font-size: 12px;
padding: 5px;
color: #409eff;
}
.tatusText.grey{
color: grey;
}
.tatusText.success{
color: #21BA45;
}
.tatusText.error{
color: #F2C037;
}
.tatusText.Black{
color: Black;
}
.ToBeReceived.red{
color: #fd397a;
}
.ToBeReceived.blue{
color: #409eff;
}
.income_1{
color: #2961FE;
}
.income_2{
color: #3FC4FF;
}
</style>
<template>
<div class="Business">
<div class="add-Enclosure">
<el-row :gutter="12">
<el-col :span="8">
<el-input size="mini" placeholder="输入单号" v-model="msg.FrID" label="单号"
@keyup.enter.native="getList"></el-input>
</el-col>
<el-col :span="4">
<el-select size="mini" width="200" v-model="msg.Type" placeholder="请选择"
@change="getList">
<el-option
v-for="item in DocumentTypeList"
:key="item.Id" :label="item.Name" :value="item.Id"></el-option>
</el-select>
</el-col>
<el-col :span="4">
<el-select size="mini" width="200" v-model="msg.Status" placeholder="请选择"
@change="getList">
<el-option
v-for="item in ApprovalStatusList"
:key="item.Id" :label="item.Name" :value="item.Id"></el-option>
</el-select>
</el-col>
</el-row>
</div>
<div class="page-content">
<el-table
v-loading="loading"
stripe
ref="multipleTable"
:data="dataList"
tooltip-effect="dark"
style="width: 100%"
row-class-name="font-size-12">
<el-table-column
fixed
label="单号"
show-overflow-tooltip>
<template slot-scope="scope">
<p @click="openDetails(scope.row)" class="font-color-link cp">{{scope.row.FrID}}</p>
</template>
</el-table-column>
<el-table-column
fixed
label="费用类型"
show-overflow-tooltip :width="120">
<template slot-scope="scope">
<p v-for="(item,index) in scope.row.CostTypeList" :key="index">
{{item}}
</p>
</template>
</el-table-column>
<el-table-column
label="单据类型"
show-overflow-tooltip :width="80">
<template slot-scope="scope">
<p>{{scope.row.Type==1?'收入':(scope.row.Type==2?'支出':'不限')}}</p>
</template>
</el-table-column>
<el-table-column
label="金额"
show-overflow-tooltip>
<template slot-scope="scope">
<p>应付:{{scope.row.Money}}</p>
<p>实收:{{scope.row.PayMoney}}</p>
</template>
</el-table-column>
<el-table-column
label="付款对象"
show-overflow-tooltip>
<template slot-scope="scope">
{{scope.row.Type==2?scope.row.ClientTypeName+':':'汇款人:'}}{{scope.row.RemitterName}}
</template>
</el-table-column>
<el-table-column
label="制单人员"
show-overflow-tooltip :width="80">
<template slot-scope="scope">
{{scope.row.EmName}}
</template>
</el-table-column>
<el-table-column
fixed="right"
label="当前状态"
show-overflow-tooltip :width="80">
<template slot-scope="scope">
{{scope.row.StatusStr}}
</template>
</el-table-column>
</el-table>
</div>
<div v-if="total>0">
<el-pagination class="Mypagination" background @current-change="handleCurrentChange"
:page-sizes="[30, 60, 90, 100]" :page-size="msg.pageSize" layout="sizes, prev, pager, next"
@size-change="handleSizeChange" :total="total">
</el-pagination>
</div>
</div>
</template>
<script>
export default {
props: ["ID", "BusinessType"],
data() {
return {
ApprovalStatusList:[
{Name:'不限',Id:'-1'},
{Name:'暂存',Id:'0'},
{Name:'审核中',Id:'1'},
{Name:'通过',Id:'2'},
{Name:'驳回',Id:'3'},
{Name:'作废',Id:'4'},
{Name:'出纳暂存',Id:'5'},
],//订单状态
DocumentTypeList:[
{Name:'不限',Id:'-1'},
{Name:'收入',Id:'1'},
{Name:'支出',Id:'2'},
],// 单据类型
dataList: [],
loading: false,
msg: {
pageIndex: 1,
pageSize: 30,
FrID:"0",
Type:"-1",
Status: "-1",
GuestId:""
},
total:0
};
},
watch: {
ID: {
handler(val, oldVal) {
this.getList();
},
deep: true,
},
},
mounted() {
this.msg.GuestId = this.ID
this.getList();
let $this = this
this.MsgBus.$on("closeGetList", function() {
$this.getList()
});
},
methods: {
openDetails(row) {
let href
let url
if(this.isOnline()){
url = 'http://yx.oytour.com/#/'
}else{
url = 'http://www.test.com:8080/#/'
}
let data = [
{
path:'FinancialDocumentsDetail',
id: row.FrID
}
]
href = url+'automaticLogin?token='+this.getLocalStorage().token+'&data=' + JSON.stringify(data)
window.open(href);
},
// 获取订单列表
getList() {
if(this.msg.FrID==''){
this.msg.FrID = 0
}
this.loading = true;
this.apipost2(
"Financial_post_GetCRMGuestFinancePageList",
this.msg,
(res) => {
this.msg.FrID=""
if (res.data.resultCode == 1) {
this.dataList = res.data.data.pageData;
this.total = res.data.data.count;
this.loading = false
} else {
this.$message.error(res.data.message);
}
}
);
},
// 添加订单
addBusiness() {
let $this = this;
this.MsgBus.$emit("addTicketOrderBoxOpen", $this.ID, 0, true);
},
guanlian() {},
jiechuguanlian() {},
handleSizeChange(val) {
this.msg.pageSize = val;
this.getList();
},
handleCurrentChange(val) {
this.msg.pageIndex = val;
this.getList();
},
},
};
</script>
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