Commit 8e6c07ad authored by youjie's avatar youjie

当地游跟团合同

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