Commit 93c53f1b authored by zhengke's avatar zhengke

修改合同

parent c969c765
...@@ -304,14 +304,14 @@ ...@@ -304,14 +304,14 @@
</style> </style>
<template> <template>
<div class="TD_MainContent"> <div class="TD_MainContent" v-loading="pdfLoading">
<div class="container-fluid"> <div class="container-fluid">
<div class="block mtop15"> <div class="block mtop15">
<div class="blockTitle"> <div class="blockTitle">
<span class="icon"><i class="iconfont icon-wenjian"></i></span> <span class="icon"><i class="iconfont icon-wenjian"></i></span>
<h2>合同详情 <h2>合同详情
<span> <span>
<input type="button" class="TCbtn-info" v-if="dataList.status==1" @click="getinvalid()" value="作废" /> <input type="button" class="TCbtn-info" v-if="dataList.status==1" @click="getinvalid()" value="作废" style="display:none;" />
<input type="button" class="TCbtn-info" v-if="dataList.companySignature==''" @click="isShowFade=true,GetQrCode()" value="客户签字" /> <input type="button" class="TCbtn-info" v-if="dataList.companySignature==''" @click="isShowFade=true,GetQrCode()" value="客户签字" />
<input type="button" class="TCbtn-info" v-if="dataList.companySignature!=''" value="下载" @click="toContractPDF(dataList.contractNum)" /> <input type="button" class="TCbtn-info" v-if="dataList.companySignature!=''" value="下载" @click="toContractPDF(dataList.contractNum)" />
</span> </span>
...@@ -925,6 +925,7 @@ ...@@ -925,6 +925,7 @@
"msg": msg "msg": msg
} }
}).then(res => { }).then(res => {
this.pdfLoading = false
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
let sign = title + "V2" let sign = title + "V2"
const a = document.createElement('a'); const a = document.createElement('a');
...@@ -935,7 +936,6 @@ ...@@ -935,7 +936,6 @@
} else { } else {
this.Error('PDF获取失败'); this.Error('PDF获取失败');
} }
this.pdfLoading = false
}).catch(err => { }).catch(err => {
}) })
......
...@@ -157,6 +157,10 @@ ...@@ -157,6 +157,10 @@
.TC-MainContent .pull-right{ .TC-MainContent .pull-right{
float:right; float:right;
} }
.TC-MainContent .TC_disabled{
color:#57a3f3;
cursor: not-allowed!important;
}
.TC-MainContent .TCbtn-info { .TC-MainContent .TCbtn-info {
color: #ffffff; color: #ffffff;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
...@@ -232,7 +236,7 @@ ...@@ -232,7 +236,7 @@
<input type="button" v-if="CtObj.status==1&&CtObj.auditContract==3" class="TCbtn-info" @click="sendAudit()" value="审核已被驳回,重新提交"/> <input type="button" v-if="CtObj.status==1&&CtObj.auditContract==3" class="TCbtn-info" @click="sendAudit()" value="审核已被驳回,重新提交"/>
<input type="button" class="TCbtn-info" v-if="CtObj.status==1" @click="goUrl()" value="预览"> <input type="button" class="TCbtn-info" v-if="CtObj.status==1" @click="goUrl()" value="预览">
<input type="button" class="TCbtn-info" v-if="CtObj.status==1" @click="getinvalid()" value="作废" style="display:none;"> <input type="button" class="TCbtn-info" v-if="CtObj.status==1" @click="getinvalid()" value="作废" style="display:none;">
<input type="button" v-if="!msg.guestId" class="TCbtn-info" @click="dialogVisible=true,getGuestList()" value="复制合同"/> <input type="button" class="TCbtn-info" @click="dialogVisible=true,getGuestList()" value="复制合同"/>
<input type="button" class="TCbtn-info" v-if="CtObj.status==1" @click="msgDialog=true,getMsgList()" value="发送短信"/> <input type="button" class="TCbtn-info" v-if="CtObj.status==1" @click="msgDialog=true,getMsgList()" value="发送短信"/>
<input type="button" v-if="CtObj.auditContract==0||CtObj.auditContract==3" class="btn-warning" @click="submitForm('CtObj')" value="保存"/> <input type="button" v-if="CtObj.auditContract==0||CtObj.auditContract==3" class="btn-warning" @click="submitForm('CtObj')" value="保存"/>
</div> </div>
...@@ -1201,7 +1205,7 @@ ...@@ -1201,7 +1205,7 @@
</el-dialog> </el-dialog>
<el-dialog custom-class='w600' title='发送信息' :visible.sync="msgDialog" center> <el-dialog custom-class='w600' title='发送信息' :visible.sync="msgDialog" center>
<input type="button" class="TCbtn-info" style="padding:8px 10px;float:right;margin-bottom:10px;" @click="sendMsg()" value="发送短信"/> <input type="button" class="TCbtn-info" :class='{"TC_disabled":!this.canClick}' style="padding:8px 10px;float:right;margin-bottom:10px;" @click="sendMsg11()" :value="content"/>
<table border="0" cellspacing="0" cellpadding="0" class="singeRowTable"> <table border="0" cellspacing="0" cellpadding="0" class="singeRowTable">
<tr> <tr>
<th> <th>
...@@ -1215,7 +1219,7 @@ ...@@ -1215,7 +1219,7 @@
</tr> </tr>
<tr v-for="(item,index) in msgGuest"> <tr v-for="(item,index) in msgGuest">
<td> <td>
<input v-model="item.checked" type="checkbox"/> <input v-model="item.checked" :disabled="item.isCanck" type="checkbox"/>
</td> </td>
<td>{{item.clientName}}</td> <td>{{item.clientName}}</td>
<td>{{item.clientCall}}</td> <td>{{item.clientCall}}</td>
...@@ -1417,6 +1421,9 @@ ...@@ -1417,6 +1421,9 @@
//短信旅客名单 //短信旅客名单
msgGuest:[], msgGuest:[],
ckedAll:false, ckedAll:false,
content:'发送短信', //按钮显示内容
totalTime:10,
canClick: true //添加canClick
}; };
}, },
methods: { methods: {
...@@ -1761,6 +1768,11 @@ ...@@ -1761,6 +1768,11 @@
this.msgGuest=res.data.data; this.msgGuest=res.data.data;
this.msgGuest.forEach(x=>{ this.msgGuest.forEach(x=>{
x.checked=false; x.checked=false;
if(x.msgSendStatus==3){
x.isCanck=true;
}else{
x.isCanck=false;
}
}) })
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
...@@ -1781,7 +1793,11 @@ ...@@ -1781,7 +1793,11 @@
var that=this; var that=this;
if(that.ckedAll){ if(that.ckedAll){
this.msgGuest.forEach(x=>{ this.msgGuest.forEach(x=>{
if(x.msgSendStatus==3){
x.checked=false;
}else{
x.checked = true; x.checked = true;
}
}) })
}else{ }else{
this.msgGuest.forEach(x=>{ this.msgGuest.forEach(x=>{
...@@ -1789,6 +1805,34 @@ ...@@ -1789,6 +1805,34 @@
}) })
} }
}, },
sendMsg11(){
let newArr = [];
this.msgGuest.forEach(x=>{
let obj={};
if(x.checked){
newArr.push(x);
}
})
if(newArr.length==0){
this.Error('请勾选要发送信息的旅客!');
return;
}
if (!this.canClick)
return
this.sendMsg(); //调用发送短信
this.canClick = false
this.content = this.totalTime + 's后重新发送'
let clock = window.setInterval(() => {
this.totalTime--
this.content = this.totalTime + 's后重新发送'
if (this.totalTime < 0) {
window.clearInterval(clock)
this.content = '重新发送验证码'
this.totalTime = 10
this.canClick = true //这里重新开启
}
},1000)
},
//发送短信 //发送短信
sendMsg(){ sendMsg(){
let msgObj=[]; let msgObj=[];
......
...@@ -160,6 +160,7 @@ export default { ...@@ -160,6 +160,7 @@ export default {
name: 'TravelContractDetail', name: 'TravelContractDetail',
query: { query: {
TCID: item.tcid, TCID: item.tcid,
guestId:item.guestId,
orderID: item.orderId, orderID: item.orderId,
blank: "y", blank: "y",
} }
......
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