Commit 4c82a0ca authored by 黄奎's avatar 黄奎

页面修改

parent b16a03c7
...@@ -3,32 +3,35 @@ ...@@ -3,32 +3,35 @@
background-color: #fff !important; background-color: #fff !important;
color: #e95252 !important; color: #e95252 !important;
border-color: #e95252 !important; border-color: #e95252 !important;
} }
.ContractManage .query-box .el-button--primary:focus, .ContractManage .query-box .el-button--primary:focus,
.query-box .el-button--primary:hover { .query-box .el-button--primary:hover {
background-color: #fff !important; background-color: #fff !important;
color: #e95252 !important; color: #e95252 !important;
border-color: #e95252 !important; border-color: #e95252 !important;
} }
.ContractManage .query-box .el-button { .ContractManage .query-box .el-button {
border-radius: 16px; border-radius: 16px;
height: 30px; height: 30px;
position: relative; position: relative;
top:5px; top: 5px;
} }
.ContractManage .query-box .el-button i { .ContractManage .query-box .el-button i {
color: #e95252; color: #e95252;
} }
.ContractManage .query-box .el-button span {
.ContractManage .query-box .el-button span {
position: relative; position: relative;
top: -3px; top: -3px;
} }
.ContractManage .el-button+.el-button{
margin-left:0!important; .ContractManage .el-button+.el-button {
} margin-left: 0 !important;
}
</style> </style>
<template> <template>
...@@ -109,7 +112,7 @@ ...@@ -109,7 +112,7 @@
resetPageIndex(); resetPageIndex();
" /> " />
<el-dropdown @command="getImport"> <el-dropdown @command="getImport">
<el-button type="primary" @click="goContract('onedayTripContract', 0, '一日游合同')" > 一日游合同 <el-button type="primary" @click="goContract('onedayTripContract', 0, '一日游合同')"> 一日游合同
<i class="el-icon-arrow-down el-icon--right"></i> <i class="el-icon-arrow-down el-icon--right"></i>
</el-button> </el-button>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
...@@ -133,6 +136,7 @@ ...@@ -133,6 +136,7 @@
<th width="100">合同状态</th> <th width="100">合同状态</th>
<th width="100">创建人</th> <th width="100">创建人</th>
<th width="120">创建时间</th> <th width="120">创建时间</th>
<th width="120">是否盖章</th>
<th width="130">操作</th> <th width="130">操作</th>
</tr> </tr>
<tr v-for="(item, index) in dataList" :key="index"> <tr v-for="(item, index) in dataList" :key="index">
...@@ -150,7 +154,11 @@ ...@@ -150,7 +154,11 @@
</template> </template>
</td> </td>
<td>{{ item.T_ContractNum }}</td> <td>{{ item.T_ContractNum }}</td>
<td>{{ item.Tourists_Name }}</td> <td style="text-align:left">
<span v-if="item.Tourists_Sign!=''" style="color:green;">【已签字】</span>
<span v-else style="color:red;">【未签字】</span>
{{ item.Tourists_Name }}
</td>
<td>{{ item.TravelAgency_Name }}</td> <td>{{ item.TravelAgency_Name }}</td>
<td>{{ item.TravelAgency_DealMan }}</td> <td>{{ item.TravelAgency_DealMan }}</td>
<td>{{ item.C_TCNUM }}</td> <td>{{ item.C_TCNUM }}</td>
...@@ -158,8 +166,11 @@ ...@@ -158,8 +166,11 @@
<td>{{ item.StatusStr }}</td> <td>{{ item.StatusStr }}</td>
<td>{{ item.CreateByName }}</td> <td>{{ item.CreateByName }}</td>
<td>{{ item.CreateTimeStr }}</td> <td>{{ item.CreateTimeStr }}</td>
<td> <span v-if="item.IsTravelAgencySignature==0">未盖章</span>
<span v-if="item.IsTravelAgencySignature==1" style="color:green;">已盖章</span></td>
<td> <td>
<el-tooltip class="item" effect="dark" content="修改" placement="top-start" v-if="item.Status==0||item.Status==3"> <el-tooltip class="item" effect="dark" content="修改" placement="top-start"
v-if="item.Status==0||item.Status==3">
<template v-if="item.CType == 3"> <template v-if="item.CType == 3">
<el-button type="primary" icon="el-icon-edit" circle <el-button type="primary" icon="el-icon-edit" circle
@click="goContract('onedayTripContract', item.ID, '一日游合同')"></el-button> @click="goContract('onedayTripContract', item.ID, '一日游合同')"></el-button>
...@@ -186,14 +197,16 @@ ...@@ -186,14 +197,16 @@
<el-button type="info" icon="el-icon-upload2" circle @click="SubmitContract(item)"></el-button> <el-button type="info" icon="el-icon-upload2" circle @click="SubmitContract(item)"></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" v-if="item.Status==2" effect="dark" content="复制链接发送给客户"> <el-tooltip class="item" v-if="item.Status==2" effect="dark" content="复制链接发送给客户">
<el-button type="info" icon="iconfont icon-copy-l" circle @click="CopyUrl(item)" style="padding:4px;background-color:#9266f9;border-color:#9266f9;"></el-button> <el-button type="info" icon="iconfont icon-copy-l" circle @click="CopyUrl(item)"
style="padding:4px;background-color:#9266f9;border-color:#9266f9;"></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" content="取消" placement="top-start" v-if="item.Status==0"> <el-tooltip class="item" effect="dark" content="取消" placement="top-start" v-if="item.Status==0">
<el-button type="danger" icon="el-icon-close" circle @click="DeleteContract(item)"></el-button> <el-button type="danger" icon="el-icon-close" circle @click="DeleteContract(item)"></el-button>
</el-tooltip> </el-tooltip>
<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)" style="padding:4px;"></el-button> <el-button type="danger" icon="iconfont icon-chakan" circle @click="ViewContract(item)"
style="padding:4px;"></el-button>
</el-tooltip> </el-tooltip>
</td> </td>
</tr> </tr>
...@@ -291,21 +304,21 @@ ...@@ -291,21 +304,21 @@
}); });
}, },
//复制URL //复制URL
CopyUrl(item){ CopyUrl(item) {
var oInput = document.createElement('input'); var oInput = document.createElement('input');
oInput.value = item.Url; oInput.value = item.Url;
document.body.appendChild(oInput); document.body.appendChild(oInput);
oInput.select(); // 选择对象 oInput.select(); // 选择对象
document.execCommand("Copy"); // 执行浏览器复制命令 document.execCommand("Copy"); // 执行浏览器复制命令
oInput.className = 'oInput'; oInput.className = 'oInput';
oInput.style.display='none'; oInput.style.display = 'none';
this.Info("复制成功!"); this.Info("复制成功!");
}, },
//跳转 //跳转
getImport(command) { getImport(command) {
if(command==1){ if (command == 1) {
this.goContract('DomesticTravelcontract', 0, '境内旅游合同'); this.goContract('DomesticTravelcontract', 0, '境内旅游合同');
}else if(command==2){ } else if (command == 2) {
this.goContract('SingleContract', 0, '单项委托合同'); this.goContract('SingleContract', 0, '单项委托合同');
} }
}, },
...@@ -376,15 +389,14 @@ ...@@ -376,15 +389,14 @@
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.dataList = res.data.data.pageData; this.dataList = res.data.data.pageData;
this.dataList.forEach(x=>{ this.dataList.forEach(x => {
let Url=""; let Url = "";
if(this.isOnline()){ if (this.isOnline()) {
Url= window.location.hostname+'/#/TravelContractConfirm?ContractId='+x.ID; Url = window.location.hostname + '/#/TravelContractConfirm?ContractId=' + x.ID;
} } else {
else{ Url = window.location.hostname + ":8080/" + '#/TravelContractConfirm?ContractId=' + x.ID;
Url= window.location.hostname+":8080/"+'#/TravelContractConfirm?ContractId='+x.ID;
} }
x.Url=Url; x.Url = Url;
}) })
this.total = res.data.data.count; this.total = res.data.data.count;
} else { } else {
...@@ -402,8 +414,7 @@ ...@@ -402,8 +414,7 @@
this.msg.pageIndex = val; this.msg.pageIndex = val;
this.getList(); this.getList();
}, },
ViewContract(item) ViewContract(item) {
{
this.$router.push({ this.$router.push({
name: "TravelContractView", name: "TravelContractView",
query: { query: {
......
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