Commit d27d0245 authored by 黄奎's avatar 黄奎

页面修改

parent 8a1cba3b
...@@ -152,7 +152,8 @@ ...@@ -152,7 +152,8 @@
<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-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)" <el-button type="success" icon="iconfont icon-gaizhang" circle @click="OutGaiZhang(item.Id)"
style="padding:4px;"></el-button> style="padding:4px;"></el-button>
</el-tooltip> </el-tooltip>
...@@ -292,26 +293,36 @@ ...@@ -292,26 +293,36 @@
<span v-if="item.Status==3" style="color:red;">已驳回</span> <span v-if="item.Status==3" style="color:red;">已驳回</span>
<span v-else-if="item.Status==1" style="color:blue;">待审核</span> <span v-else-if="item.Status==1" style="color:blue;">待审核</span>
<span v-else-if="item.Status==2" style="color:green;">审核通过</span> <span v-else-if="item.Status==2" style="color:green;">审核通过</span>
<span v-else>{{item.StatusStr}}</span> <span v-else>{{item.StatusStr}}</span>
</td> </td>
<td>{{ item.CreateByName }}</td> <td>{{ item.CreateByName }}</td>
<td>{{ item.CreateTimeStr }}</td> <td>{{ item.CreateTimeStr }}</td>
<td> <td>
<template v-if="item.IsTravelAgencySignature">
<span v-if="item.IsTravelAgencySignature==0">未盖章</span> <span v-if="item.IsTravelAgencySignature==0">未盖章</span>
<span v-if="item.IsTravelAgencySignature==1" style="color:green;">已盖章</span> <span v-if="item.IsTravelAgencySignature==1" style="color:green;">已盖章</span>
</template>
<template v-else>
<span>未盖章</span>
</template>
</td> </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>
</el-tooltip> </el-tooltip>
<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="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||item.Status==2" content="盖章" placement="top-start"> <template v-if="item.Status==2">
<el-button type="success" icon="iconfont icon-gaizhang" circle @click="GaiZhang(item.ID)" <el-tooltip class="item" effect="dark"
style="padding:4px;"></el-button> v-if="item.IsTravelAgencySignature==null|| item.IsTravelAgencySignature==0 " content="盖章"
</el-tooltip> placement="top-start">
<el-button type="success" icon="iconfont icon-gaizhang" circle @click="GaiZhang(item.ID)"
style="padding:4px;"></el-button>
</el-tooltip>
</template>
<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>
...@@ -340,8 +351,8 @@ ...@@ -340,8 +351,8 @@
StartDate: '', StartDate: '',
ReturnDate: '', ReturnDate: '',
AuditContract: '', AuditContract: '',
PageIndex:1, PageIndex: 1,
PageSize:15 PageSize: 15
}, },
dataListOut: [], dataListOut: [],
loadingOut: false, loadingOut: false,
...@@ -384,7 +395,7 @@ ...@@ -384,7 +395,7 @@
C_TCNUM: "", //团号 C_TCNUM: "", //团号
C_ProductName: "", //线路名称 C_ProductName: "", //线路名称
IsAduitPage: 1, //是否是审核页面 IsAduitPage: 1, //是否是审核页面
IsQueryAll:1 IsQueryAll: 1
}, },
pickerBeginDateBefore2: { pickerBeginDateBefore2: {
disabledDate: time => { disabledDate: time => {
...@@ -434,11 +445,11 @@ ...@@ -434,11 +445,11 @@
}, },
getListOutTract() { getListOutTract() {
this.loadingOut = true; this.loadingOut = true;
this.apipost("travelcontract_post_GetContractPageListService",this.msgOut,res => { this.apipost("travelcontract_post_GetContractPageListService", this.msgOut, res => {
this.loadingOut = false; this.loadingOut = false;
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.dataListOut = res.data.data.pageData; this.dataListOut = res.data.data.pageData;
this.total2=res.data.data.count; this.total2 = res.data.data.count;
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
...@@ -460,14 +471,13 @@ ...@@ -460,14 +471,13 @@
return moment(date).format("YYYY-MM-DD"); return moment(date).format("YYYY-MM-DD");
}, },
//提交并盖章 //提交并盖章
SubmitContract(item,status) { SubmitContract(item, status) {
var that = this; var that = this;
var message="审核通过"; var message = "审核通过";
if(status==3) if (status == 3) {
{ message = "驳回";
message="驳回";
} }
this.Confirm("是否【"+message+"】此合同?", function () { this.Confirm("是否【" + message + "】此合同?", function () {
that.apipost( that.apipost(
"travelcontract_post_UpdateTravelContractStatusService", { "travelcontract_post_UpdateTravelContractStatusService", {
ID: item.ID, ID: item.ID,
...@@ -525,7 +535,7 @@ ...@@ -525,7 +535,7 @@
this.msg.pageIndex = val; this.msg.pageIndex = val;
this.getList(); this.getList();
}, },
handleOutChange(val){ handleOutChange(val) {
this.msgOut.PageIndex = val; this.msgOut.PageIndex = val;
this.getListOutTract(); this.getListOutTract();
}, },
...@@ -540,12 +550,12 @@ ...@@ -540,12 +550,12 @@
}); });
}, },
//其他合同盖章 //其他合同盖章
GaiZhang(ID){ GaiZhang(ID) {
let msg={ let msg = {
ID:ID, ID: ID,
Status:1 Status: 1
} }
this.apipost("travelcontract_post_UpdateTravelContractSignatureService",msg,res => { this.apipost("travelcontract_post_UpdateTravelContractSignatureService", msg, res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.Success(res.data.message); this.Success(res.data.message);
this.getList(); this.getList();
...@@ -555,12 +565,12 @@ ...@@ -555,12 +565,12 @@
}); });
}, },
//出境合同盖章 //出境合同盖章
OutGaiZhang(ID){ OutGaiZhang(ID) {
let msg={ let msg = {
ID:ID, ID: ID,
Status:1 Status: 1
} }
this.apipost("travelcontract_post_UpdateContractSignatureService",msg,res => { this.apipost("travelcontract_post_UpdateContractSignatureService", msg, res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.Success(res.data.message); this.Success(res.data.message);
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