Commit 1ade1d64 authored by 黄奎's avatar 黄奎

页面修改

parent 2a299ab8
This diff is collapsed.
...@@ -79,19 +79,19 @@ ...@@ -79,19 +79,19 @@
<li> <li>
<input <input
type="button" type="button"
@click="goContract('onedayTripContract')" @click="goContract('onedayTripContract',0,'一日游合同')"
class="normalBtn" class="normalBtn"
value="一日游合同" value="一日游合同"
/> />
<input <input
type="button" type="button"
@click="goContract('DomesticTravelcontract')" @click="goContract('DomesticTravelcontract',0,'境内旅游合同')"
class="normalBtn" class="normalBtn"
value="境内旅游合同" value="境内旅游合同"
/> />
<input <input
type="button" type="button"
@click="goContract('SingleContract')" @click="goContract('SingleContract',0,'单项委托合同')"
class="normalBtn" class="normalBtn"
value="单项委托合同" value="单项委托合同"
/> />
...@@ -108,6 +108,7 @@ ...@@ -108,6 +108,7 @@
<tr> <tr>
<th width="80">编号</th> <th width="80">编号</th>
<th width="120">合同编号</th> <th width="120">合同编号</th>
<th width="120">合同类型</th>
<th width="150">客户名称</th> <th width="150">客户名称</th>
<th width="150">客户联系电话</th> <th width="150">客户联系电话</th>
<th width="150">客户地址</th> <th width="150">客户地址</th>
...@@ -119,6 +120,14 @@ ...@@ -119,6 +120,14 @@
<tr v-for="(item, index) in dataList" :key="index"> <tr v-for="(item, index) in dataList" :key="index">
<td>{{ item.ID }}</td> <td>{{ item.ID }}</td>
<td>{{ item.T_ContractNum }}</td> <td>{{ item.T_ContractNum }}</td>
<td>
<template v-if="item.CType == 2">
境内旅游合同
</template>
<template v-else-if="item.CType == 3">
一日游合同
</template>
</td>
<td>{{ item.Tourists_Name }}</td> <td>{{ item.Tourists_Name }}</td>
<td>{{ item.Tourists_Tel }}</td> <td>{{ item.Tourists_Tel }}</td>
<td>{{ item.Tourists_Addres }}</td> <td>{{ item.Tourists_Addres }}</td>
...@@ -132,12 +141,22 @@ ...@@ -132,12 +141,22 @@
content="修改" content="修改"
placement="top-start" placement="top-start"
> >
<template v-if="item.CType == 3">
<el-button
type="primary"
icon="el-icon-edit"
circle
@click="goContract('onedayTripContract', item.ID,'一日游合同')"
></el-button>
</template>
<template v-else-if="item.CType == 2">
<el-button <el-button
type="primary" type="primary"
icon="el-icon-edit" icon="el-icon-edit"
circle circle
@click="goContract('onedayTripContract', item.ID)" @click="goContract('DomesticTravelcontract', item.ID,'境内旅游合同')"
></el-button> ></el-button>
</template>
</el-tooltip> </el-tooltip>
<el-tooltip <el-tooltip
class="item" class="item"
...@@ -257,7 +276,7 @@ export default { ...@@ -257,7 +276,7 @@ export default {
this.msg.pageIndex = val; this.msg.pageIndex = val;
this.getList(); this.getList();
}, },
goContract(path, Id) { goContract(path, Id,title) {
var nId = 0; var nId = 0;
if (Id && Id > 0) { if (Id && Id > 0) {
nId = Id; nId = Id;
...@@ -267,7 +286,7 @@ export default { ...@@ -267,7 +286,7 @@ export default {
query: { query: {
id: nId, id: nId,
blank: "y", blank: "y",
tab: "一日游合同" tab: title
} }
}); });
} }
......
...@@ -1628,7 +1628,6 @@ export default { ...@@ -1628,7 +1628,6 @@ export default {
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
var tempObj = res.data.data; var tempObj = res.data.data;
console.log(tempObj,'tempobj');
this.CtObj.ID = tempObj.ID; this.CtObj.ID = tempObj.ID;
this.CtObj.CType = tempObj.CType; this.CtObj.CType = tempObj.CType;
this.CtObj.T_ContractNum = tempObj.T_ContractNum; this.CtObj.T_ContractNum = tempObj.T_ContractNum;
...@@ -1766,7 +1765,6 @@ export default { ...@@ -1766,7 +1765,6 @@ export default {
gItem.IsShow = 0; gItem.IsShow = 0;
}); });
} }
console.log(this.CtObj.ContractGuestList,'this.CtObj.ContractGuestList');
if ( if (
tempObj.ContractTripList && tempObj.ContractTripList &&
tempObj.ContractTripList != null && tempObj.ContractTripList != null &&
......
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