Commit f03d063c authored by 黄奎's avatar 黄奎

页面修改

parent db845175
...@@ -301,10 +301,11 @@ ...@@ -301,10 +301,11 @@
<span v-if="CtObj.auditContract==1" style="font-size:12px;color:red;">等待行政审批通过后获取签字链接</span> <span v-if="CtObj.auditContract==1" style="font-size:12px;color:red;">等待行政审批通过后获取签字链接</span>
<input type="button" v-if="CtObj.status==1&&CtObj.auditContract==0" class="TCbtn-info" @click="sendAudit()" <input type="button" v-if="CtObj.status==1&&CtObj.auditContract==0" class="TCbtn-info" @click="sendAudit()"
value="提交审核" /> value="提交审核" />
<font v-if="CtObj.status==1&&CtObj.auditContract==3&&CtObj.auditContractReason" style="color:red;">驳回原因:{{CtObj.auditContractReason}}</font> <font v-if="CtObj.status==1&&CtObj.auditContract==3&&CtObj.auditContractReason" style="color:red;">
驳回原因:{{CtObj.auditContractReason}}</font>
<input type="button" v-if="CtObj.status==1&&CtObj.auditContract==3" class="TCbtn-info" @click="sendAudit()" <input type="button" v-if="CtObj.status==1&&CtObj.auditContract==3" class="TCbtn-info" @click="sendAudit()"
value="审核已被驳回,重新提交" /> 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.auditContract==2" @click="getinvalid()" value="作废"> <input type="button" class="TCbtn-info" v-if="CtObj.auditContract==2" @click="getinvalid()" value="作废">
<input type="button" class="TCbtn-info" @click="dialogVisible=true,getGuestList()" value="复制合同" /> <input type="button" class="TCbtn-info" @click="dialogVisible=true,getGuestList()" value="复制合同" />
...@@ -628,6 +629,9 @@ ...@@ -628,6 +629,9 @@
</td> </td>
<td> <td>
<a style="color:blue;cursor:pointer;" @click="DeleteTicket(index)">删除</a> <a style="color:blue;cursor:pointer;" @click="DeleteTicket(index)">删除</a>
<a style="color:blue;cursor:pointer;" v-if="index!=0" @click="MoveTicket(index,1)">上移</a>
<a style="color:blue;cursor:pointer;" v-if="index!=CtObj.ticketList.length-1"
@click="MoveTicket(index,2)">下移</a>
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -1064,6 +1068,25 @@ ...@@ -1064,6 +1068,25 @@
}; };
}, },
methods: { methods: {
//一排上移、下移
MoveTicket(index, type) {
console.log("this.CtObj.ticketList", this.CtObj.ticketList);
if (this.CtObj.ticketList && this.CtObj.ticketList.length > 0) {
var tempData = this.CtObj.ticketList[index];
//上移
if (type == 1 && index > 0) {
var upData = this.CtObj.ticketList[index - 1];
this.CtObj.ticketList[index] = upData;
this.CtObj.ticketList[index - 1] = tempData;
} else {
//下移
var downData = this.CtObj.ticketList[index + 1];
this.CtObj.ticketList[index] = downData;
this.CtObj.ticketList[index + 1] = tempData;
}
this.$forceUpdate();
}
},
//添加航班 //添加航班
AddTicket() { AddTicket() {
var ticketObj = { var ticketObj = {
...@@ -1082,7 +1105,12 @@ ...@@ -1082,7 +1105,12 @@
//删除航班 //删除航班
DeleteTicket(index) { DeleteTicket(index) {
if (this.CtObj.ticketList && this.CtObj.ticketList.length > 0) { if (this.CtObj.ticketList && this.CtObj.ticketList.length > 0) {
this.CtObj.ticketList.splice(index, 1); var that = this;
that.Confirm("删除航班后将不能恢复?", function () {
if (index > -1) {
this.CtObj.ticketList.splice(index, 1);
}
});
} }
}, },
//添加酒店 //添加酒店
...@@ -1101,7 +1129,12 @@ ...@@ -1101,7 +1129,12 @@
//删除酒店 //删除酒店
DeleteHotel(index) { DeleteHotel(index) {
if (this.CtObj.hotelList && this.CtObj.hotelList.length > 0) { if (this.CtObj.hotelList && this.CtObj.hotelList.length > 0) {
this.CtObj.hotelList.splice(index, 1); var that = this;
that.Confirm("删除酒店后将不能恢复?", function () {
if (index > -1) {
this.CtObj.hotelList.splice(index, 1);
}
});
} }
}, },
changeSignType() { changeSignType() {
...@@ -1175,7 +1208,8 @@ ...@@ -1175,7 +1208,8 @@
this.CtObj.eachNumber = 1; this.CtObj.eachNumber = 1;
//初始化行程 //初始化行程
this.GetTrip(0, this.msg.TCID); this.GetTrip(0, this.msg.TCID);
} if(tempObj.company) { }
if (tempObj.company) {
this.CtObj.SignType = tempObj.company == '四川和平国际旅行社有限公司' ? 0 : 1; this.CtObj.SignType = tempObj.company == '四川和平国际旅行社有限公司' ? 0 : 1;
this.CtObj.company = tempObj.company; this.CtObj.company = tempObj.company;
} }
......
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