Commit 52bce71c authored by 黄奎's avatar 黄奎

页面修改

parent 4478923e
......@@ -2177,6 +2177,12 @@
<template v-if="item.contractNum && item.contractNum.length > 0">
<span v-for="sItem in item.contractNum" class="GO_Contract" @click="goContract(item, sItem)">
{{ sItem.client_Name + "" + sItem.contractNum }}
<template v-if="sItem.auditContract==3">
<font style="color:red">驳回</font>
</template>
<template v-if="sItem.auditContract==2">
<font style="color:green">审核通过</font>
</template>
</span>
</template>
</div>
......@@ -2929,7 +2935,6 @@
},
//跳转至领取合同
goContract(item, sItem) {
let cid = 0;
if (sItem && sItem.id) {
cid = sItem.id;
......
......@@ -2384,6 +2384,12 @@
<template v-if="item.contractNum && item.contractNum.length > 0">
<span v-for="sItem in item.contractNum" class="GO_Contract" @click="goContract(item, sItem)">
{{ sItem.client_Name + "" + sItem.contractNum }}
<template v-if="sItem.auditContract==3">
<font style="color:red">驳回</font>
</template>
<template v-if="sItem.auditContract==2">
<font style="color:green">审核通过</font>
</template>
</span>
</template>
</div>
......
......@@ -301,8 +301,10 @@
<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()"
value="提交审核" />
<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()"
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" @click="dialogVisible=true,getGuestList()" value="复制合同" />
......
......@@ -146,11 +146,12 @@
<td>
<el-row>
<el-tooltip class="item" effect="dark" content="审核通过" placement="top-start">
<el-button type="primary" icon="iconfont icon-shenpi" @click="AuditElec(item,2)" circle></el-button>
<el-button type="primary" icon="iconfont icon-shenpi" @click="showContractDialog(item,2)" circle>
</el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="驳回" placement="top-start">
<el-button type="danger" v-if="item.AuditContract!=3" icon="iconfont icon-shenhebohui"
@click="AuditElec(item,3)" circle></el-button>
@click="showContractDialog(item,3)" circle></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" v-if="item.IsTravelAgencySignature==0" content="盖章"
placement="top-start">
......@@ -335,6 +336,22 @@
</el-pagination>
</div>
</template>
<el-dialog custom-class='w500' title="合同驳回" :visible.sync="isShowContract" center
:before-close="closeContractDialog">
<table class="layerTable" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="80" align="right">驳回原因:</td>
<td>
<el-input type='textarea' v-model='auditMsg.AuditContractReason' maxlength='50'></el-input>
</td>
</tr>
</table>
<div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="closeContractDialog">取 消</button> &nbsp;
<button class="normalBtn" type="primary" @click="AuditElec">确定</button>
</div>
</el-dialog>
</div>
</template>
......@@ -412,10 +429,46 @@
let startTime = new Date(this.msg.StartDate);
return startTime.getTime() >= time.getTime();
}
},
isShowContract: false,
auditMsg: {
Id: 0, //合同编号
AuditContract: 0, //审核状态
AuditContractReason: "", //审核原因
}
};
},
methods: {
//关闭合同弹窗
closeContractDialog() {
this.auditMsg.Id = 0;
this.auditMsg.AuditContract = 0;
this.auditMsg.AuditContractReason = '';
this.isShowContract = false;
},
//显示合同弹窗
showContractDialog(item, type) {
this.auditMsg.Id = item.Id;
this.auditMsg.AuditContract = type;
console.log("item", item);
if (type == 2) {
this.AuditElec();
} else {
this.isShowContract = true;
}
},
//审核通过或者驳回
AuditElec() {
this.apipost("travelcontract_get_UpdateAuditContractService", this.auditMsg, res => {
if (res.data.resultCode === 1) {
this.Success(res.data.message);
this.getListOutTract();
this.closeContractDialog();
} else {
this.Error(res.data.message);
}
}, null);
},
//切换
getSwitch() {
if (this.active == 1) {
......@@ -459,19 +512,7 @@
}
});
},
//审核通过或者驳回
AuditElec(item, type) {
item.AuditContract = type;
// this.apiJavaPost("/api/contract/dosaveOrUpdate", item, res => {
this.apipost("travelcontract_get_UpdateAuditContractService", item, res => {
if (res.data.resultCode === 1) {
this.Success(res.data.message);
this.getList();
} else {
this.Error(res.data.message);
}
}, null);
},
getDate(date) {
return moment(date).format("YYYY-MM-DD");
},
......
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