Commit ef2b7ac8 authored by youjie's avatar youjie

合同修复

parent d8f407a5
...@@ -332,7 +332,7 @@ ...@@ -332,7 +332,7 @@
</style> </style>
<template> <template>
<div class="TC-MainContent"> <div class="TC-MainContent" v-loading="dataLoading">
<!-- 内容开始 --> <!-- 内容开始 -->
<ul class="fixedMenu" id="fixedMenu"> <ul class="fixedMenu" id="fixedMenu">
<li v-for="(item, index) in menuArr" :key="index" :class="{ active: index == ckedIndex }" <li v-for="(item, index) in menuArr" :key="index" :class="{ active: index == ckedIndex }"
...@@ -1542,6 +1542,7 @@ ...@@ -1542,6 +1542,7 @@
tripList: [], tripList: [],
LineName: "", LineName: "",
SMLoading: false, SMLoading: false,
dataLoading: false,
}; };
}, },
components: { components: {
...@@ -1690,6 +1691,7 @@ ...@@ -1690,6 +1691,7 @@
}, },
//提交 //提交
submitForm(addMsg) { submitForm(addMsg) {
if(this.$route.query.orderID) this.CtObj.OrderId = this.$route.query.orderID
//提交创建、修改表单 //提交创建、修改表单
this.$refs[addMsg].validate(valid => { this.$refs[addMsg].validate(valid => {
if (valid) { if (valid) {
...@@ -1813,6 +1815,8 @@ ...@@ -1813,6 +1815,8 @@
} }
}, },
GetData() { GetData() {
if(this.dataLoading) return
this.dataLoading = true
this.apipost( this.apipost(
"travelcontract_get_GetTravelContractService", { "travelcontract_get_GetTravelContractService", {
ID: this.CtObj.ID, ID: this.CtObj.ID,
...@@ -1859,11 +1863,13 @@ ...@@ -1859,11 +1863,13 @@
}; };
this.CtObj.ContractTripList.push(tripObj); this.CtObj.ContractTripList.push(tripObj);
} }
this.dataLoading = false
} else { } else {
this.dataLoading = false
this.Error(res.data.message); this.Error(res.data.message);
} }
}, },
err => {} err => { this.dataLoading = false}
); );
}, },
//公用休改 //公用休改
...@@ -2144,9 +2150,6 @@ ...@@ -2144,9 +2150,6 @@
this.CtObj.TCID = this.$route.query.TCID; this.CtObj.TCID = this.$route.query.TCID;
this.GetTrip(this.CtObj.TCID); this.GetTrip(this.CtObj.TCID);
} }
if (this.$route.query.orderID && this.$route.query.orderID > 0) {
this.CtObj.OrderId = this.$route.query.orderID;
}
}, },
mounted() { mounted() {
if (this.$route.query.id && this.$route.query.id > 0) { if (this.$route.query.id && this.$route.query.id > 0) {
......
...@@ -2360,7 +2360,10 @@ ...@@ -2360,7 +2360,10 @@
<div class="row"> <div class="row">
<div v-if="item.otherContractList&&(qjGroupId == userInfo.RB_Group_id || F_ContractManagement)"> <div v-if="item.otherContractList&&(qjGroupId == userInfo.RB_Group_id || F_ContractManagement)">
<span class="GO_Contract" <span class="GO_Contract"
@click="goSingleContract(item)">{{item.otherContractList.length==0? $t('objFill.danxianght') : $t('objFill.chankandxht')}}</span> @click="goSingleContract(item)">
<!-- {{item.otherContractList.length==0? $t('objFill.danxianght') : $t('objFill.chankandxht')}} -->
{{item.otherContractList.length==0? $t('objFill.danxianght') : $t('objFill.v101.myOrdersAllType.chakanhet')}}
</span>
</div> </div>
<template v-if="item.otherContractList && item.otherContractList.length > 0"> <template v-if="item.otherContractList && item.otherContractList.length > 0">
<!-- {{$t('objFill.danxianght')}}: --> <!-- {{$t('objFill.danxianght')}}: -->
...@@ -3331,7 +3334,10 @@ ...@@ -3331,7 +3334,10 @@
...query, ...query,
id: sItem.id, id: sItem.id,
} }
this.OpenNewPage('/SingleContract', query) let path = '/SingleContract'
if(sItem.cType==3) path = '/onedayTripContract'
if(sItem.cType==2) path = '/DomesticTravelcontract'
this.OpenNewPage(path, query)
} }
}, },
//跳转到保密协议 //跳转到保密协议
......
...@@ -1718,7 +1718,10 @@ ...@@ -1718,7 +1718,10 @@
<div class="row"> <div class="row">
<div v-if="item.otherContractList&&(qjGroupId == userInfo.RB_Group_id || F_ContractManagement)"> <div v-if="item.otherContractList&&(qjGroupId == userInfo.RB_Group_id || F_ContractManagement)">
<span class="GO_Contract" <span class="GO_Contract"
@click="goSingleContract(item)">{{item.otherContractList.length==0? $t('objFill.danxianght') : $t('objFill.chankandxht')}}</span> @click="goSingleContract(item)">
<!-- {{item.otherContractList.length==0? $t('objFill.danxianght') : $t('objFill.chankandxht')}} -->
{{item.otherContractList.length==0? $t('objFill.danxianght') : $t('objFill.v101.myOrdersAllType.chakanhet')}}
</span>
</div> </div>
<template v-if="item.otherContractList && item.otherContractList.length > 0"> <template v-if="item.otherContractList && item.otherContractList.length > 0">
<!-- {{$t('objFill.danxianght')}}: --> <!-- {{$t('objFill.danxianght')}}: -->
...@@ -2395,11 +2398,10 @@ ...@@ -2395,11 +2398,10 @@
this.OpenNewPage('/ContractManage', query) this.OpenNewPage('/ContractManage', query)
} }
else { else {
query = { let path = '/SingleContract'
...query, if(sItem.cType==3) path = '/onedayTripContract'
id: sItem.id, if(sItem.cType==2) path = '/DomesticTravelcontract'
} this.OpenNewPage(path, query)
this.OpenNewPage('/SingleContract', query)
} }
}, },
//跳转至领取合同 //跳转至领取合同
......
...@@ -319,7 +319,7 @@ ...@@ -319,7 +319,7 @@
</style> </style>
<template> <template>
<div class="TC-MainContent"> <div class="TC-MainContent" v-loading="dataLoading">
<!-- 内容开始 --> <!-- 内容开始 -->
<ul class="fixedMenu" id="fixedMenu"> <ul class="fixedMenu" id="fixedMenu">
<li v-for="(item,index) in menuArr" :class="{'active':index==ckedIndex}" <li v-for="(item,index) in menuArr" :class="{'active':index==ckedIndex}"
...@@ -1474,6 +1474,7 @@ ...@@ -1474,6 +1474,7 @@
//大写金额 //大写金额
AmountMoney: '', AmountMoney: '',
SMLoading: false, SMLoading: false,
dataLoading: false,
}; };
}, },
filters: { filters: {
...@@ -1812,6 +1813,8 @@ ...@@ -1812,6 +1813,8 @@
} }
}, },
GetData() { GetData() {
if(this.dataLoading) return
this.dataLoading = true
this.apipost( this.apipost(
"travelcontract_get_GetTravelContractService", { "travelcontract_get_GetTravelContractService", {
ID: this.CtObj.ID, ID: this.CtObj.ID,
...@@ -1885,12 +1888,13 @@ ...@@ -1885,12 +1888,13 @@
if (this.CtObj.C_TotalPrice && this.CtObj.ContractTicketAndHotel.ContractHotels != null) { if (this.CtObj.C_TotalPrice && this.CtObj.ContractTicketAndHotel.ContractHotels != null) {
this.number_chinese(this.CtObj.C_TotalPrice); this.number_chinese(this.CtObj.C_TotalPrice);
} }
this.dataLoading = false
} else { } else {
this.dataLoading = false
this.Error(res.data.message); this.Error(res.data.message);
} }
}, },
err => {} err => { this.dataLoading = false}
); );
}, },
......
...@@ -291,7 +291,7 @@ ...@@ -291,7 +291,7 @@
</style> </style>
<template> <template>
<div class="TC-MainContent"> <div class="TC-MainContent" v-loading="dataLoading">
<!-- 内容开始 --> <!-- 内容开始 -->
<ul class="fixedMenu" id="fixedMenu"> <ul class="fixedMenu" id="fixedMenu">
<li v-for="(item, index) in menuArr" :class="{ active: index == ckedIndex }" <li v-for="(item, index) in menuArr" :class="{ active: index == ckedIndex }"
...@@ -1728,6 +1728,7 @@ ...@@ -1728,6 +1728,7 @@
content: "发送短信", //按钮显示内容 content: "发送短信", //按钮显示内容
SaveLoading: false, //保存Loading SaveLoading: false, //保存Loading
SMLoading: false, SMLoading: false,
dataLoading: false,
}; };
}, },
components: { components: {
...@@ -1842,6 +1843,8 @@ ...@@ -1842,6 +1843,8 @@
document.documentElement.scrollTop = anchor.offsetTop - 70; document.documentElement.scrollTop = anchor.offsetTop - 70;
}, },
getList() { getList() {
if(this.dataLoading) return
this.dataLoading = true
this.apipost( this.apipost(
"travelcontract_post_GetContractInfoService", "travelcontract_post_GetContractInfoService",
this.msg, this.msg,
...@@ -1913,11 +1916,13 @@ ...@@ -1913,11 +1916,13 @@
this.goContract(); this.goContract();
} }
} }
this.dataLoading = false
} else { } else {
this.dataLoading = false
this.Error(res.data.message); this.Error(res.data.message);
} }
}, },
null err=>{ this.dataLoading = false}
); );
}, },
//获取国家 //获取国家
......
...@@ -1583,6 +1583,7 @@ ...@@ -1583,6 +1583,7 @@
}, },
//提交 //提交
submitForm(addMsg) { submitForm(addMsg) {
if(this.$route.query.orderID) this.CtObj.OrderId = this.$route.query.orderID
//提交创建、修改表单 //提交创建、修改表单
this.$refs[addMsg].validate(valid => { this.$refs[addMsg].validate(valid => {
if (valid) { if (valid) {
...@@ -2015,9 +2016,6 @@ ...@@ -2015,9 +2016,6 @@
this.CtObj.TCID = this.$route.query.TCID; this.CtObj.TCID = this.$route.query.TCID;
this.GetTrip(this.CtObj.TCID); this.GetTrip(this.CtObj.TCID);
} }
if (this.$route.query.orderID && this.$route.query.orderID > 0) {
this.CtObj.OrderId = this.$route.query.orderID;
}
}, },
mounted() { mounted() {
if (this.$route.query.id && this.$route.query.id > 0) { if (this.$route.query.id && this.$route.query.id > 0) {
......
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