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

页面修改

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