Commit 8e6c07ad authored by youjie's avatar youjie

当地游跟团合同

parent 58c1eeb8
<style> <style>
@import "../../assets/css/newTravelManager.css"; @import "../../assets/css/newTravelManager.css";
@import "../../assets/css/flex.css";
.color_red_order { .color_red_order {
color: #e95252 !important; color: #e95252 !important;
} }
...@@ -763,6 +763,13 @@ ...@@ -763,6 +763,13 @@
border-top: 1px solid #cccccc; border-top: 1px solid #cccccc;
border-left: 1px solid #cccccc; border-left: 1px solid #cccccc;
} }
.GO_Contract {
color: blue;
display: inline-block;
cursor: pointer;
margin-right: 20px;
}
</style> </style>
...@@ -1708,29 +1715,73 @@ ...@@ -1708,29 +1715,73 @@
<span style="display: block">{{$t('salesModule.RoomInfo')}}:{{item.orderGuestHouseStr}}</span> <span style="display: block">{{$t('salesModule.RoomInfo')}}:{{item.orderGuestHouseStr}}</span>
<p v-if="item.luggageNum">{{$t('objFill.xinglisl')}}:{{item.luggageNum}}</p> <p v-if="item.luggageNum">{{$t('objFill.xinglisl')}}:{{item.luggageNum}}</p>
<span v-if="item.tipMoney" style="color:red">({{$t('fnc.xiaofei')}}:{{item.tipMoney}})</span> <span v-if="item.tipMoney" style="color:red">({{$t('fnc.xiaofei')}}:{{item.tipMoney}})</span>
<div v-if="item.otherContractList"> <div class="row">
<span class="GO_Contract" style="color:blue;cursor:pointer;" @click="goSingleContract(item)"> <div v-if="item.otherContractList&&(qjGroupId == userInfo.RB_Group_id || F_ContractManagement)">
{{item.otherContractList.length==0? $t('objFill.danxianght') : $t('objFill.chankandxht')}} <span class="GO_Contract"
</span> @click="goSingleContract(item)">{{item.otherContractList.length==0? $t('objFill.danxianght') : $t('objFill.chankandxht')}}</span>
</div> </div>
<div v-if="item.contractNum.length == 0"> <template v-if="item.otherContractList && item.otherContractList.length > 0">
<span class="GO_Contract" style="color:blue;cursor:pointer;" @click="goContract(item, {})"> <!-- {{$t('objFill.danxianght')}}: -->
{{$t('objFill.chujinghet')}} <span v-for="sItem in item.otherContractList" class="GO_Contract mr-sm"
</span> @click="sItem.thirdContractID&&sItem.thirdContractFileUrl?window.open(sItem.thirdContractFileUrl):goSingleContract(item, sItem)">
</div> <template v-if="sItem.thirdContractID">
<div v-else> {{sItem.tourists_Name+sItem.thirdContractID}}
<template v-if="item.contractNum && item.contractNum.length > 0"> <span v-if="sItem.thirdContractState==0" class="c9e">{{$t('objFill.daishanchuan')}}</span>
<span v-for="sItem in item.contractNum" class="GO_Contract" @click="goContract(item, sItem)"> <span v-if="sItem.thirdContractState==1" class="c3FC4FF">{{$t('objFill.v103.daiqianmin')}}</span>
{{ sItem.client_Name + "" + sItem.contractNum }} <span v-if="sItem.thirdContractState==2" class="c20C997">{{$t('objFill.v103.yiqianshu')}}</span>
<template v-if="sItem.auditContract&& sItem.auditContract==3"> <span v-if="sItem.thirdContractState==3" class="cF1416C">{{$t('active.cl_yzfei')}}</span>
<font style="color:red">{{$t('fnc.bohui')}}</font> <span v-if="sItem.thirdContractState==4" class="cff9800">{{$t('objFill.v103.daiqianshu')}}</span>
</template> <span v-if="sItem.thirdContractState==5" class="c9e">{{$t('objFill.v103.daizuofei')}}</span>
<template v-if="sItem.auditContract&&sItem.auditContract==2"> </template>
<font style="color:green">{{$t('objFill.shenhetongguo')}}</font> <template v-else>
</template> {{ sItem.tourists_Name+sItem.t_ContractNum }}
</span> <template v-if="sItem.status==3">
<font style="color:red">{{$t('fnc.bohui')}}</font>
</template>
<template v-if="sItem.status==2">
<font style="color:green">{{$t('objFill.shenhetongguo')}}</font>
</template>
</template>
</span>
</template> </template>
</div> </div>
<div class="row">
<div v-if="
item.contractNum.length == 0 &&
(qjGroupId == userInfo.RB_Group_id || F_ContractManagement)
">
<span class="GO_Contract" @click="goContract(item, {})">{{$t('objFill.chujinghet')}}</span>
</div>
<div v-else>
<template v-if="item.contractNum && item.contractNum.length > 0">
{{$t('objFill.chujinghet')}}
<span v-for="sItem in item.contractNum" class="GO_Contract mr-sm"
@click="sItem.thirdContractID&&sItem.thirdContractFileUrl?window.open(sItem.thirdContractFileUrl):goContract(item, sItem)">
<template v-if="sItem.thirdContractID">
{{sItem.client_Name+sItem.thirdContractID}}
<span v-if="sItem.thirdContractState==0" class="c9e">{{$t('objFill.daishanchuan')}}</span>
<span v-if="sItem.thirdContractState==1" class="c3FC4FF">{{$t('objFill.v103.daiqianmin')}}</span>
<span v-if="sItem.thirdContractState==2" class="c20C997">{{$t('objFill.v103.yiqianshu')}}</span>
<span v-if="sItem.thirdContractState==3" class="cF1416C">{{$t('active.cl_yzfei')}}</span>
<span v-if="sItem.thirdContractState==4" class="cff9800">{{$t('objFill.v103.daiqianshu')}}</span>
<span v-if="sItem.thirdContractState==5" class="c9e">{{$t('objFill.v103.daizuofei')}}</span>
</template>
<template v-else>
{{ sItem.client_Name + "" + sItem.contractNum }}
<template v-if="sItem.auditContract==3">
<font style="color:red">{{$t('fnc.bohui')}}</font>
</template>
<template v-if="sItem.auditContract==2">
<font style="color:green">{{$t('objFill.shenhetongguo')}}</font>
</template>
</template>
</span>
</template>
</div>
</div>
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -2275,6 +2326,9 @@ ...@@ -2275,6 +2326,9 @@
TotalNumber: 0, TotalNumber: 0,
isGuest: 0, isGuest: 0,
countryList: [], //国籍 countryList: [], //国籍
qjGroupId: -1,
userInfo: {},
F_ContractManagement: false, //合同权限
} }
}, },
components: { components: {
...@@ -2328,18 +2382,35 @@ ...@@ -2328,18 +2382,35 @@
this.getList(); this.getList();
}, },
//跳转单单项合同 //跳转单单项合同
goSingleContract(item) { goSingleContract(item,sItem) {
let query = { let query = {
TCID: item.tcid, TCID: item.tcid,
orderID: item.orderId, orderID: item.orderId,
} }
this.OpenNewPage('/ContractManage', query) // this.OpenNewPage('/ContractManage', query)
if(!sItem) {
query = {
...query
}
this.OpenNewPage('/ContractManage', query)
}
else {
query = {
...query,
id: sItem.id,
}
this.OpenNewPage('/SingleContract', query)
}
}, },
//跳转至领取合同 //跳转至领取合同
goContract(item, sItem) { goContract(item, sItem) {
let cid = 0;
let guestId = 0; let guestId = 0;
var path = "TravelContractNew"; var path = "TravelContractNew";
if (sItem) { if (sItem) {
if (sItem.id) {
cid = sItem.id;
}
if (sItem.guestId) { if (sItem.guestId) {
guestId = sItem.guestId; guestId = sItem.guestId;
} }
...@@ -2353,6 +2424,7 @@ ...@@ -2353,6 +2424,7 @@
TCID: item.tcid, TCID: item.tcid,
guestId: guestId, guestId: guestId,
orderID: item.orderId, orderID: item.orderId,
Id: cid,
blank: "y", blank: "y",
}, },
}); });
...@@ -4134,9 +4206,17 @@ ...@@ -4134,9 +4206,17 @@
this.isEditOrderCreate = 1; this.isEditOrderCreate = 1;
} }
}); });
// 合同
var actiionContract = this.$AuthCode.F_ContractManagement;
this.CheckUserAuth(actiionContract, (res) => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.F_ContractManagement = true;
}
});
}, },
}, },
mounted() { mounted() {
this.qjGroupId = this.QjGroupId();
const that = this; const that = this;
window.onresize = () => { window.onresize = () => {
return (() => { return (() => {
...@@ -4150,6 +4230,7 @@ ...@@ -4150,6 +4230,7 @@
this.ScreenHeight = "300px"; this.ScreenHeight = "300px";
} }
this.GetEditOrderCreateByAuth(); this.GetEditOrderCreateByAuth();
this.userInfo = this.getLocalStorage()
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
let userMenuCode = ',' + userInfo.ActionMenuCode + ','; let userMenuCode = ',' + userInfo.ActionMenuCode + ',';
this.TransferMission = userMenuCode.indexOf(',Sale_TurnGroup,') != -1 ? true : false; this.TransferMission = userMenuCode.indexOf(',Sale_TurnGroup,') != -1 ? true : false;
......
...@@ -341,12 +341,14 @@ ...@@ -341,12 +341,14 @@
<template v-if="CtObj.auditContract != 2"> <template v-if="CtObj.auditContract != 2">
<input class="btn-warning" type="button" @click="submitForm('CtObj')" <input class="btn-warning" type="button" @click="submitForm('CtObj')"
:loading="SaveLoading" v-loading="SaveLoading"
:disabled="SaveLoading"
:value="$t('pub.saveBtn')"></input> :value="$t('pub.saveBtn')"></input>
</template> </template>
<template v-if="CurrentUserInfo.EmployeeId == 615"> <template v-if="CurrentUserInfo.EmployeeId == 615">
<input class="btn-warning" type="button" @click="submitForm('CtObj')" <input class="btn-warning" type="button" @click="submitForm('CtObj')"
:loading="SaveLoading" v-loading="SaveLoading"
:disabled="SaveLoading"
:value="$t('pub.saveBtn')+'(S)'"></input> :value="$t('pub.saveBtn')+'(S)'"></input>
</template> </template>
</div> </div>
...@@ -2026,6 +2028,7 @@ ...@@ -2026,6 +2028,7 @@
}, },
//提交数据 //提交数据
SaveMsg() { SaveMsg() {
if(this.SaveLoading) return;
this.SaveLoading = true; this.SaveLoading = true;
this.CtObj.status = 1; this.CtObj.status = 1;
this.CtObj.contractStatus = 2; this.CtObj.contractStatus = 2;
......
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