Commit 9ea4b491 authored by zhengke's avatar zhengke

新增页面及组件

parent dbe01d25
This diff is collapsed.
This diff is collapsed.
<style>
.AmoebaTitle{
font-size:14px;
margin-bottom:20px;
}
.AmoebaTCNUM{
color:blue;
}
.AmobaTable{
width:800px;
}
.AmobaTable tr th{
border-right:1px solid #d1d1d1;
}
.biaoTou {
position:relative;
margin:auto;
width:150px;
height:40px;
box-sizing:border-box;
text-indent:5px;
background:
linear-gradient(15deg, transparent 49.5%, #d1d1d1 49.5%, #d1d1d1 50.5%, transparent 50.5%);
}
.biaoTou em:first-child{
position: absolute;
top:17px;
left:20px;
}
.biaoTou em:last-child{
position: absolute;
top:3px;
right:20px;
}
</style>
<template>
<div class="flexOne AmoebaDetail">
<div class="AmoebaTitle">
<span class="AmoebaTCNUM">{{LtName}} {{TCNUM}}</span> 阿米巴结算表
</div>
<table class="singeRowTable AmobaTable" border="0" cellspacing="0" cellpadding="0">
<tr>
<th width="150">
<div class="biaoTou">
<em>项目</em>
<em>部门</em>
</div>
</th>
<th>票务</th>
<th>签证</th>
<th>日本地接部</th>
</tr>
<tr v-for="(item,index) in dataList">
<td>{{item.Name}}</td>
<td>{{item.Ticket}}</td>
<td>{{item.Visa}}</td>
<td>{{item.JapDiJie}}</td>
</tr>
</table>
</div>
</template>
<script>
export default {
data() {
return {
msg: {
TCID:''
},
LtName:'',
TCNUM:'',
dataList: [],
};
},
methods: {
getList() {
//获取现有线路列表
this.loading = true;
this.apipost(
"sellorder_post_GetTravelSettlement",
this.msg,
res => {
this.loading = false;
if (res.data.resultCode == 1) {
console.log(res,'resssss');
this.dataList = res.data.data.List;
} else {
this.loading = false;
}
},
err => {}
);
},
},
mounted() {
this.LtName = this.$route.query.LtName;
this.TCNUM = this.$route.query.TCNUM;
this.msg.TCID = this.$route.query.TCID;
this.getList();
}
};
</script>
<style>
.SnotSet{
color:#E95252;
}
</style>
<template>
<div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="singeRowTable">
<tr>
<td colspan="4">
收损金额
</td>
</tr>
<tr>
<td colspan="4">
op收损设置人数:
<template v-if="Type==1">
<el-input class="w180" placeholder="请输入" v-model="dataList.OpSetLossPeople" type="text" ></el-input>
</template>
<template v-else>{{dataList.OpSetLossPeople}}</template>
</td>
</tr>
<tr>
<td>
op设置金额
</td>
<td>
票务收损金额
</td>
<td>
签证收损金额
</td>
<td>
地接收损金额
</td>
</tr>
<tr>
<td>
<template v-if="Type==1">
<el-input class="w135" v-model="dataList.LossOPMoney" placeholder="请输入" type="text" ></el-input>
</template>
<template v-else>{{dataList.LossOPMoney}}</template>
</td>
<td>
<template v-if="Type==2">
<el-input class="w135" v-model="dataList.LossTicketMoney" placeholder="请输入" type="text" ></el-input>
</template>
<template v-else>
<span v-if="dataList.TicketIsSet==1">{{dataList.LossTicketMoney}}</span>
<span class="SnotSet" v-else>未设置</span>
</template>
</td>
<td>
<template v-if="Type==3">
<el-input class="w135" v-model="dataList.LossVisaMoney" placeholder="请输入" type="text" ></el-input>
</template>
<template v-else>
<span v-if="dataList.VisaIsSet==1">{{dataList.LossVisaMoney}}</span>
<span class="SnotSet" v-else>未设置</span>
</template>
</td>
<td>
<template v-if="Type==4">
<el-input class="w135" v-model="dataList.LossDiJieMoney" placeholder="请输入" type="text" ></el-input>
</template>
<template v-else>
<span v-if="dataList.DiJieIsSet==1">{{dataList.LossDiJieMoney}}</span>
<span class="SnotSet" v-else>未设置</span>
</template>
</td>
</tr>
<tfoot>
<tr>
<td style="padding:10px 0" colspan="4">
<input type="button" class="normalBtn" @click="closeDialog()" value="取消" />
<input type="button" class="normalBtn" @click="setShouSun()" value="保存" />
</td>
</tr>
</tfoot>
</table>
</div>
</template>
<script>
export default {
props: ["Type"],
data() {
return {
dataList:[],
OrderId:0,
};
},
methods: {
getShouSunList(OrderId) {
this.OrderId=OrderId;
let msg = {
OrderId:OrderId
}
this.apipost("sellorder_post_GetTravelSetLossMoneyInfo",msg,res => {
if (res.data.resultCode == 1) {
console.log(res,'resssss');
this.dataList = res.data.data;
} else {
this.Error(res.data.message);
}
},
err => {}
);
},
//关闭窗口
closeDialog() {
this.$emit("closeShouSun");
},
//保存
setShouSun(){
let msg={
OrderId:this.OrderId,
Type:this.Type,
PeopleNum:this.dataList.OpSetLossPeople,
LossMoney:0
}
switch(this.Type){
case 1:
msg.LossMoney=this.dataList.LossOPMoney
break;
case 2:
msg.LossMoney=this.dataList.LossTicketMoney
break;
case 3:
msg.LossMoney=this.dataList.LossVisaMoney
break;
case 4:
msg.LossMoney=this.dataList.LossVisaMoney
break;
}
this.apipost("sellorder_post_SetOrderRevenueLossNew",msg,res => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.closeDialog();
} else {
this.Error(res.data.message);
}
},
err => {}
);
}
},
mounted() {
}
};
</script>
This diff is collapsed.
......@@ -817,6 +817,14 @@ export default {
title: '机票业绩'
},
},
{
path: '/TicketShouSun', //机票->收损订单
name: 'TicketShouSun',
component: resolve => require(['@/components/Ticketing/TicketShouSun'], resolve),
meta: {
title: '收损订单'
},
},
{
path: '/flightChild', //航班子表管理
name: 'flightChild',
......@@ -1686,6 +1694,13 @@ export default {
meta: {
title: '团队收支'
},
}, {
path: '/AmoebaDetail', //阿米巴结算详情
name: 'AmoebaDetail',
component: resolve => require(['@/components/TravelManager/TravelList/AmoebaDetail'], resolve),
meta: {
title: '团队收支'
},
}, {
path: '/BasicTravelControlList', //团控列表2
name: 'BasicTravelControlList',
......@@ -2909,7 +2924,14 @@ export default {
meta: {
title: '签证总表'
},
}, { // 签证 个签办理
}, { //签证 收损订单
path: '/VisaShouSun',
name: 'VisaShouSun',
component: resolve => require(['@/components/SalesVisa/VisaShouSun'], resolve),
meta: {
title: '收损订单'
},
},{ // 签证 个签办理
path: '/signatureHandle',
name: 'signatureHandle',
component: resolve => require(['@/components/SalesVisa/signatureHandle'], resolve),
......@@ -3122,6 +3144,14 @@ export default {
title: '地接总表'
}
},
{
path: '/dmcShouSun', //地接->收损订单
name: 'dmcShouSun',
component: resolve => require(['@/components/dmc/manager/dmcShouSun'], resolve),
meta: {
title: '收损订单'
}
},
{
path: '/teamRevenueExpenditure', //地接总表
name: 'teamRevenueExpenditure',
......
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