Commit d763ab88 authored by zhengke's avatar zhengke

修改

parent af7d792c
...@@ -987,7 +987,7 @@ ...@@ -987,7 +987,7 @@
<el-col :span="12">乙方签字(盖章):</el-col> <el-col :span="12">乙方签字(盖章):</el-col>
<el-col :span="12" style="position:relative;"> <el-col :span="12" style="position:relative;">
{{CtObj.TravelAgency_Name}} {{CtObj.TravelAgency_Name}}
<img class="signImg" style="position:absolute;right:0;" src="../assets/img/dzht/zhang.png" alt=""/> <img class="signImg" v-if="CtObj.IsTravelAgencySignature==1" style="position:absolute;right:0;" src="../assets/img/dzht/zhang.png" alt=""/>
</el-col> </el-col>
</el-row> </el-row>
</li> </li>
...@@ -1394,7 +1394,7 @@ ...@@ -1394,7 +1394,7 @@
<li > <li >
<el-row> <el-row>
<el-col :span="12">出境社盖章:</el-col> <el-col :span="12">出境社盖章:</el-col>
<el-col :span="12" style="position:relative;"><img class="signImg" style="position:absolute;right:0;" src="../assets/img/dzht/zhang.png" alt=""/></el-col> <el-col :span="12" style="position:relative;"><img class="signImg" v-if="CtObj.IsTravelAgencySignature==1" style="position:absolute;right:0;" src="../assets/img/dzht/zhang.png" alt=""/></el-col>
</el-row> </el-row>
</li> </li>
<li> <li>
...@@ -1534,7 +1534,7 @@ ...@@ -1534,7 +1534,7 @@
<li style="position:relative;"> <li style="position:relative;">
<el-row> <el-row>
<el-col :span="12">旅行社:(盖章)</el-col> <el-col :span="12">旅行社:(盖章)</el-col>
<el-col :span="12"><img style="width:120px;position:absolute;right:0;" src="../assets/img/dzht/zhang.png" alt="" /></el-col> <el-col :span="12"><img style="width:120px;position:absolute;right:0;" v-if="CtObj.IsTravelAgencySignature==1" src="../assets/img/dzht/zhang.png" alt="" /></el-col>
</el-row> </el-row>
</li> </li>
<li> <li>
...@@ -1955,7 +1955,7 @@ ...@@ -1955,7 +1955,7 @@
<el-col :span="12">乙方签字(盖章):</el-col> <el-col :span="12">乙方签字(盖章):</el-col>
<el-col :span="12" style="position:relative;"> <el-col :span="12" style="position:relative;">
{{CtObj.TravelAgency_Name}} {{CtObj.TravelAgency_Name}}
<img class="signImg" style="position:absolute;right:0;" src="../assets/img/dzht/zhang.png" alt=""/> <img class="signImg" style="position:absolute;right:0;" v-if="CtObj.IsTravelAgencySignature==1" src="../assets/img/dzht/zhang.png" alt=""/>
</el-col> </el-col>
</el-row> </el-row>
</li> </li>
...@@ -3199,6 +3199,7 @@ ...@@ -3199,6 +3199,7 @@
TripType: 0, //行程类型(0-简易行程,1-标准行程) TripType: 0, //行程类型(0-简易行程,1-标准行程)
Tourists_Sign:'', Tourists_Sign:'',
CreateTimeStr:"", CreateTimeStr:"",
IsTravelAgencySignature:0 //判断是否盖章
}, },
}; };
}, },
...@@ -3351,6 +3352,7 @@ ...@@ -3351,6 +3352,7 @@
this.CtObj.PickUpTotalPrice = tempObj.PickUpTotalPrice; this.CtObj.PickUpTotalPrice = tempObj.PickUpTotalPrice;
this.CtObj.VisaTotalPrice = tempObj.VisaTotalPrice; this.CtObj.VisaTotalPrice = tempObj.VisaTotalPrice;
this.CtObj.Tourists_Sign= tempObj.Tourists_Sign; this.CtObj.Tourists_Sign= tempObj.Tourists_Sign;
this.CtObj.IsTravelAgencySignature = tempObj.IsTravelAgencySignature;
this.CtObj.TicketAndHotelTotalPrice = this.CtObj.TicketAndHotelTotalPrice =
tempObj.TicketAndHotelTotalPrice; tempObj.TicketAndHotelTotalPrice;
if ( if (
......
...@@ -576,7 +576,7 @@ ...@@ -576,7 +576,7 @@
</td> </td>
<td> <td>
<span>{{dataList.company}}</span> <span>{{dataList.company}}</span>
<img class="esealDiv" src='../assets/img/dzht/zhang.png' alt=""/> <img class="esealDiv" v-if="isShowZhang==1" src='../assets/img/dzht/zhang.png' alt=""/>
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -874,7 +874,8 @@ ...@@ -874,7 +874,8 @@
returnArriveCityName:'', returnArriveCityName:'',
tripList:[], tripList:[],
//交通 //交通
trifficList:[] trifficList:[],
isShowZhang:0,
}; };
}, },
methods: { methods: {
...@@ -957,6 +958,21 @@ ...@@ -957,6 +958,21 @@
getDayAddOne(day,num){ getDayAddOne(day,num){
return moment(day).add(num,'days').format('YYYY-MM-DD') return moment(day).add(num,'days').format('YYYY-MM-DD')
}, },
//获取是否显示公司章
getShow(ID){
if(ID!=null&&ID!=undefined){
let msg = {
ID:ID
}
this.apipost("travelcontract_post_GetContractService",msg,res => {
if (res.data.resultCode === 1) {
this.isShowZhang=res.data.data.IsTravelAgencySignature;
} else {
this.Error(res.data.message);
}
});
}
},
//获取大写 //获取大写
getTotalNum(num) { getTotalNum(num) {
switch (num) { switch (num) {
...@@ -1415,7 +1431,9 @@ ...@@ -1415,7 +1431,9 @@
this.msg.TCID = this.$route.query.TCID; this.msg.TCID = this.$route.query.TCID;
this.msg.orderID = this.$route.query.orderID; this.msg.orderID = this.$route.query.orderID;
this.msg.guestId = this.$route.query.guestId; this.msg.guestId = this.$route.query.guestId;
let TID = this.$route.query.ID;
this.getList(); this.getList();
this.getShow(this.TID);
this.GetTrip(0,this.msg.TCID); this.GetTrip(0,this.msg.TCID);
} }
}; };
......
...@@ -785,7 +785,7 @@ ...@@ -785,7 +785,7 @@
<td>受托方(旅行社)签章:</td> <td>受托方(旅行社)签章:</td>
<td style="position:relative;"> <td style="position:relative;">
<font>{{CtObj.TravelAgency_Name}}</font> <font>{{CtObj.TravelAgency_Name}}</font>
<img src="../assets/img/dzht/zhang.png" alt="" <img src="../assets/img/dzht/zhang.png" v-if="CtObj.IsTravelAgencySignature==1" alt=""
style="width:120px;heigth:120px;position:absolute;top:0;" /> style="width:120px;heigth:120px;position:absolute;top:0;" />
</td> </td>
</tr> </tr>
...@@ -1265,7 +1265,7 @@ ...@@ -1265,7 +1265,7 @@
</td> </td>
<td style="width:15%">出境社盖章:</td> <td style="width:15%">出境社盖章:</td>
<td style="width:35%;position:relative;"> <td style="width:35%;position:relative;">
<img src="../assets/img/dzht/zhang.png" alt="" <img src="../assets/img/dzht/zhang.png" v-if="CtObj.IsTravelAgencySignature==1" alt=""
style="width:120px;heigth:120px;position:absolute;top:0;" /> style="width:120px;heigth:120px;position:absolute;top:0;" />
</td> </td>
</tr> </tr>
...@@ -1712,7 +1712,7 @@ ...@@ -1712,7 +1712,7 @@
<td>乙方签字(盖章)</td> <td>乙方签字(盖章)</td>
<td style="position:relative;"> <td style="position:relative;">
<font>{{CtObj.TravelAgency_Name}}</font> <font>{{CtObj.TravelAgency_Name}}</font>
<img src="../assets/img/dzht/zhang.png" alt="" style="width:120px;heigth:120px;position:absolute;top:0;" /> <img src="../assets/img/dzht/zhang.png" v-if="CtObj.IsTravelAgencySignature==1" alt="" style="width:120px;heigth:120px;position:absolute;top:0;" />
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -2034,6 +2034,7 @@ ...@@ -2034,6 +2034,7 @@
TripType: 0, //行程类型(0-简易行程,1-标准行程) TripType: 0, //行程类型(0-简易行程,1-标准行程)
Tourists_Sign: '', Tourists_Sign: '',
CreateTimeStr: "", CreateTimeStr: "",
IsTravelAgencySignature:0 //是否盖章
}, },
}; };
}, },
...@@ -2176,6 +2177,7 @@ ...@@ -2176,6 +2177,7 @@
this.CtObj.PickUpTotalPrice = tempObj.PickUpTotalPrice; this.CtObj.PickUpTotalPrice = tempObj.PickUpTotalPrice;
this.CtObj.VisaTotalPrice = tempObj.VisaTotalPrice; this.CtObj.VisaTotalPrice = tempObj.VisaTotalPrice;
this.CtObj.Tourists_Sign = tempObj.Tourists_Sign; this.CtObj.Tourists_Sign = tempObj.Tourists_Sign;
this.CtObj.IsTravelAgencySignature = tempObj.IsTravelAgencySignature;
this.CtObj.TicketAndHotelTotalPrice = this.CtObj.TicketAndHotelTotalPrice =
tempObj.TicketAndHotelTotalPrice; tempObj.TicketAndHotelTotalPrice;
if ( if (
......
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
</span> </span>
</li> </li>
<li> <li>
<input type="button" class="hollowFixedBtn" value="查询" @click="getList()" /> <input type="button" class="hollowFixedBtn" value="查询" @click="getListOutTract(),resetOutPage()" />
</li> </li>
</ul> </ul>
</div> </div>
...@@ -116,27 +116,32 @@ ...@@ -116,27 +116,32 @@
<th>出发日期</th> <th>出发日期</th>
<th>返回日期</th> <th>返回日期</th>
<th>状态</th> <th>状态</th>
<th>是否盖章</th>
<th width="200">操作</th> <th width="200">操作</th>
</tr> </tr>
<tr v-for="item in dataListOut"> <tr v-for="item in dataListOut">
<td>{{item.contractNum}}</td> <td>{{item.ContractNum}}</td>
<td>{{item.orderId}}</td> <td>{{item.OrderId}}</td>
<td>{{item.tcid}}</td> <td>{{item.TCID}}</td>
<td>{{item.productName}}</td> <td>{{item.ProductName}}</td>
<td> <td>
<template v-if="item.startDate!=null"> <template v-if="item.StartDate!=null">
{{getDate(item.startDate)}} {{getDate(item.StartDate)}}
</template> </template>
</td> </td>
<td> <td>
<template v-if="item.returnDate!=null"> <template v-if="item.ReturnDate!=null">
{{getDate(item.returnDate)}} {{getDate(item.ReturnDate)}}
</template> </template>
</td> </td>
<td> <td>
<span v-if="item.auditContract==3" style="color:red;">已驳回</span> <span v-if="item.AuditContract==3" style="color:red;">已驳回</span>
<span v-if="item.auditContract==1" style="color:blue;">待审核</span> <span v-if="item.AuditContract==1" style="color:blue;">待审核</span>
<span v-if="item.auditContract==2" style="color:green;">审核通过</span> <span v-if="item.AuditContract==2" style="color:green;">审核通过</span>
</td>
<td>
<span v-if="item.IsTravelAgencySignature==0">未盖章</span>
<span v-if="item.IsTravelAgencySignature==1" style="color:green;">已盖章</span>
</td> </td>
<td> <td>
<el-row> <el-row>
...@@ -144,9 +149,14 @@ ...@@ -144,9 +149,14 @@
<el-button type="primary" icon="iconfont icon-shenpi" @click="AuditElec(item,2)" circle></el-button> <el-button type="primary" icon="iconfont icon-shenpi" @click="AuditElec(item,2)" circle></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" content="驳回" placement="top-start"> <el-tooltip class="item" effect="dark" content="驳回" placement="top-start">
<el-button type="danger" v-if="item.auditContract!=3" icon="iconfont icon-shenhebohui" <el-button type="danger" v-if="item.AuditContract!=3" icon="iconfont icon-shenhebohui"
@click="AuditElec(item,3)" circle></el-button> @click="AuditElec(item,3)" circle></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" v-if="item.IsTravelAgencySignature==0" content="盖章" placement="top-start">
<el-button type="success" icon="iconfont icon-gaizhang" circle @click="OutGaiZhang(item.Id)"
style="padding:4px;"></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="查看" placement="top-start"> <el-tooltip class="item" effect="dark" content="查看" placement="top-start">
<el-button type="danger" icon="iconfont icon-chakan" @click="goToDetail(item)" circle></el-button> <el-button type="danger" icon="iconfont icon-chakan" @click="goToDetail(item)" circle></el-button>
</el-tooltip> </el-tooltip>
...@@ -158,6 +168,9 @@ ...@@ -158,6 +168,9 @@
<i class="iconfont icon-kong" style="font-size:100px;"></i> <i class="iconfont icon-kong" style="font-size:100px;"></i>
<p>{{$t("active.ld_noData")}}</p> <p>{{$t("active.ld_noData")}}</p>
</div> </div>
<el-pagination background @current-change="handleOutChange" :current-page.sync="currentPage2"
layout="total,prev, pager, next, jumper" :page-size="msgOut.PageSize" :total="total2">
</el-pagination>
</div> </div>
</div> </div>
</template> </template>
...@@ -252,6 +265,7 @@ ...@@ -252,6 +265,7 @@
<th width="100">合同状态</th> <th width="100">合同状态</th>
<th width="100">创建人</th> <th width="100">创建人</th>
<th width="120">创建时间</th> <th width="120">创建时间</th>
<th width="80">是否盖章</th>
<th width="130">操作</th> <th width="130">操作</th>
</tr> </tr>
<tr v-for="(item, index) in dataList" :key="index"> <tr v-for="(item, index) in dataList" :key="index">
...@@ -281,6 +295,10 @@ ...@@ -281,6 +295,10 @@
</td> </td>
<td>{{ item.CreateByName }}</td> <td>{{ item.CreateByName }}</td>
<td>{{ item.CreateTimeStr }}</td> <td>{{ item.CreateTimeStr }}</td>
<td>
<span v-if="item.IsTravelAgencySignature==0">未盖章</span>
<span v-if="item.IsTravelAgencySignature==1" style="color:green;">已盖章</span>
</td>
<td> <td>
<el-tooltip class="item" effect="dark" content="审核通过" placement="top-start" v-if="item.Status==1"> <el-tooltip class="item" effect="dark" content="审核通过" placement="top-start" v-if="item.Status==1">
<el-button type="primary" icon="iconfont icon-shenpi" circle @click="SubmitContract(item,2)"></el-button> <el-button type="primary" icon="iconfont icon-shenpi" circle @click="SubmitContract(item,2)"></el-button>
...@@ -289,6 +307,10 @@ ...@@ -289,6 +307,10 @@
<el-button type="info" icon="iconfont icon-shenhebohui" circle @click="SubmitContract(item,3)"> <el-button type="info" icon="iconfont icon-shenhebohui" circle @click="SubmitContract(item,3)">
</el-button> </el-button>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" v-if="item.IsTravelAgencySignature==0" content="盖章" placement="top-start">
<el-button type="success" icon="iconfont icon-gaizhang" circle @click="GaiZhang(item.ID)"
style="padding:4px;"></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="查看" placement="top-start"> <el-tooltip class="item" effect="dark" content="查看" placement="top-start">
<el-button type="danger" icon="iconfont icon-chakan" circle @click="ViewContract(item)" <el-button type="danger" icon="iconfont icon-chakan" circle @click="ViewContract(item)"
style="padding:4px;"></el-button> style="padding:4px;"></el-button>
...@@ -296,7 +318,7 @@ ...@@ -296,7 +318,7 @@
</td> </td>
</tr> </tr>
</table> </table>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage" <el-pagination background @current-change="handleOutChange" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total="total"> layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total="total">
</el-pagination> </el-pagination>
</div> </div>
...@@ -316,7 +338,9 @@ ...@@ -316,7 +338,9 @@
Tcid: '', Tcid: '',
StartDate: '', StartDate: '',
ReturnDate: '', ReturnDate: '',
AuditContract: '' AuditContract: '',
PageIndex:1,
PageSize:15
}, },
dataListOut: [], dataListOut: [],
loadingOut: false, loadingOut: false,
...@@ -340,7 +364,9 @@ ...@@ -340,7 +364,9 @@
activeName: '1', activeName: '1',
//ContractMange参数 //ContractMange参数
total: 0, total: 0,
total2: 0,
currentPage: 1, currentPage: 1,
currentPage2: 1,
dataList: [], dataList: [],
loading: false, //页面加载 loading: false, //页面加载
msg: { msg: {
...@@ -396,38 +422,30 @@ ...@@ -396,38 +422,30 @@
this.$router.push({ this.$router.push({
name: 'TravelContractDetail', name: 'TravelContractDetail',
query: { query: {
TCID: item.tcid, TCID: item.TCID,
guestId: item.guestId, guestId: item.GuestId,
orderID: item.orderId, orderID: item.OrderId,
ID: item.Id,
blank: "y", blank: "y",
} }
}); });
}, },
getListOutTract() { getListOutTract() {
this.loadingOut = true; this.loadingOut = true;
//travelcontract_post_GetContractPageListService
this.apipost("travelcontract_post_GetContractPageListService",this.msgOut,res => { this.apipost("travelcontract_post_GetContractPageListService",this.msgOut,res => {
this.loadingOut = false; this.loadingOut = false;
console.log(res,'ressss');
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
console.log(res,'ressss');
this.dataListOut = res.data.data.pageData; this.dataListOut = res.data.data.pageData;
this.total2=res.data.data.count;
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
}); });
// this.apiJavaPost("/api/contract/auditContract", this.msgOut, res => {
// this.loadingOut = false;
// if (res.data.resultCode === 1) {
// this.dataListOut = res.data.data;
// } else {
// this.Error(res.data.message);
// }
// }, null);
}, },
//审核通过或者驳回 //审核通过或者驳回
AuditElec(item, type) { AuditElec(item, type) {
item.auditContract = type; item.AuditContract = type;
this.apiJavaPost("/api/contract/dosaveOrUpdate", item, res => { this.apiJavaPost("/api/contract/dosaveOrUpdate", item, res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.Success(res.data.message); this.Success(res.data.message);
...@@ -497,10 +515,19 @@ ...@@ -497,10 +515,19 @@
this.msg.pageIndex = 1; this.msg.pageIndex = 1;
this.currentPage = 1; this.currentPage = 1;
}, },
resetOutPage() {
this.msgOut.PageIndex = 1;
this.currentPage2 = 1;
},
handleCurrentChange(val) { handleCurrentChange(val) {
this.msg.pageIndex = val; this.msg.pageIndex = val;
this.getList(); this.getList();
}, },
handleOutChange(val){
this.msgOut.PageIndex = val;
this.getListOutTract();
},
ViewContract(item) { ViewContract(item) {
this.$router.push({ this.$router.push({
name: "TravelContractView", name: "TravelContractView",
...@@ -511,6 +538,36 @@ ...@@ -511,6 +538,36 @@
} }
}); });
}, },
//其他合同盖章
GaiZhang(ID){
let msg={
ID:ID,
Status:1
}
this.apipost("travelcontract_post_UpdateTravelContractSignatureService",msg,res => {
if (res.data.resultCode === 1) {
this.Success(res.data.message);
this.getList();
} else {
this.Error(res.data.message);
}
});
},
//出境合同盖章
OutGaiZhang(ID){
let msg={
ID:ID,
Status:1
}
this.apipost("travelcontract_post_UpdateContractSignatureService",msg,res => {
if (res.data.resultCode === 1) {
this.Success(res.data.message);
this.getListOutTract();
} else {
this.Error(res.data.message);
}
});
},
}, },
mounted() { mounted() {
this.getListOutTract(); this.getListOutTract();
......
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