Commit d27d0245 authored by 黄奎's avatar 黄奎

页面修改

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