Commit 05a34eda authored by 黄奎's avatar 黄奎

页面修改

parent 9c702998
...@@ -685,7 +685,7 @@ ...@@ -685,7 +685,7 @@
</td> </td>
<td> <td>
<span>{{dataList.company}}</span> <span>{{dataList.company}}</span>
<img class="esealDiv" :src="CurrentUserInfo.ZhangImg" alt="" /> <img class="esealDiv" :src="dataList.zhangUrl" alt="" />
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -770,13 +770,15 @@ ...@@ -770,13 +770,15 @@
msg: { msg: {
TCID: 0, TCID: 0,
orderID: 0, orderID: 0,
guestId: 0 guestId: 0,
Id: 0,//合同主键编号
}, },
//数据源 //数据源
dataList: [], dataList: [],
isShowFade: false, isShowFade: false,
QRCodeStr: "", QRCodeStr: "",
pdfLoading: false, pdfLoading: false,
isShowZhang: 0, isShowZhang: 0,
}; };
}, },
...@@ -793,7 +795,7 @@ ...@@ -793,7 +795,7 @@
orderID: this.$route.query.orderID, orderID: this.$route.query.orderID,
guestId: guestId, guestId: guestId,
Id: this.$route.query.ID, Id: this.$route.query.ID,
pUrl: "clientConfirmRB", pUrl: "clientConfirm",
}; };
this.$http({ this.$http({
headers: { headers: {
...@@ -807,9 +809,12 @@ ...@@ -807,9 +809,12 @@
}).then(res => { }).then(res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.QRCodeStr = res.data.data; this.QRCodeStr = res.data.data;
} else {} } else {
}
}).catch(err => {}) }).catch(err => {})
}, },
// 生成pdf // 生成pdf
toContractPDF: function (title) { toContractPDF: function (title) {
let urlObj = this.domainManager(); let urlObj = this.domainManager();
...@@ -849,6 +854,7 @@ ...@@ -849,6 +854,7 @@
this.apipost("travelcontract_post_GetContractInfoService", this.msg, res => { this.apipost("travelcontract_post_GetContractInfoService", this.msg, res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.dataList = res.data.data; this.dataList = res.data.data;
this.isShowZhang = res.data.data.IsTravelAgencySignature;
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
...@@ -857,19 +863,44 @@ ...@@ -857,19 +863,44 @@
getDate(date) { getDate(date) {
return moment(date).format("YYYY-MM-DD"); return moment(date).format("YYYY-MM-DD");
}, },
//获取是否显示公司章 //加一天返回
getShow(ID) { getDayAddOne(day, num) {
if (ID != null && ID != undefined) { return moment(day).add(num, 'days').format('YYYY-MM-DD')
let msg = { },
ID: ID
} //获取大写
this.apipost("travelcontract_post_GetContractService", msg, res => { getTotalNum(num) {
if (res.data.resultCode === 1) { switch (num) {
this.isShowZhang = res.data.data.IsTravelAgencySignature; case 1:
} else { return '壹';
this.Error(res.data.message); break;
} case 2:
}); return '贰';
break;
case 3:
return '叁';
break;
case 4:
return '肆';
break;
case 5:
return '伍';
break;
case 6:
return '陆';
break;
case 7:
return '柒';
break;
case 8:
return '捌';
break;
case 9:
return '玖';
break;
case 10:
return '玖';
break;
} }
}, },
//作废 //作废
...@@ -880,6 +911,7 @@ ...@@ -880,6 +911,7 @@
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.dataList.status = 0; this.dataList.status = 0;
// this.apiJavaPost("/api/contract/dosaveOrUpdate", this.dataList, res => {
this.apipost("travelcontract_post_UpdateStatusContractService", this.dataList, res => { this.apipost("travelcontract_post_UpdateStatusContractService", this.dataList, res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.Success(res.data.message); this.Success(res.data.message);
...@@ -898,10 +930,9 @@ ...@@ -898,10 +930,9 @@
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;
this.msg.company = this.$route.query.company; this.msg.company = this.$route.query.company;
this.msg.Id = this.$route.query.ID;
this.msg.companyAddress = this.$route.query.companyAddress this.msg.companyAddress = this.$route.query.companyAddress
let TID = this.$route.query.ID;
this.getList(); this.getList();
this.getShow(TID);
} }
}; };
......
...@@ -432,8 +432,12 @@ ...@@ -432,8 +432,12 @@
}, },
//跳转至详情 //跳转至详情
goToDetail(item) { goToDetail(item) {
var path = "TravelContractDetail";
if (item.TemplateType == 1) {
path = "TravelContractDetailRB";
}
this.$router.push({ this.$router.push({
name: 'TravelContractDetail', name: path,
query: { query: {
TCID: item.TCID, TCID: item.TCID,
guestId: item.GuestId, guestId: item.GuestId,
......
...@@ -871,7 +871,7 @@ ...@@ -871,7 +871,7 @@
<li> <li>
<el-row> <el-row>
<el-col :span="12">出境社盖章:</el-col> <el-col :span="12">出境社盖章:</el-col>
<el-col :span="12"><img class="signImg" :src="CurrentUserInfo.ZhangImg" alt="" /></el-col> <el-col :span="12"><img class="signImg" :src="dataList.zhangUrl" alt="" /></el-col>
</el-row> </el-row>
</li> </li>
<li> <li>
......
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