Commit 04e76d7c authored by 黄奎's avatar 黄奎

页面修改

parent e18552f7
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
margin-bottom: 20px; margin-bottom: 20px;
} }
.Supplier_AC_contDetail > p { .Supplier_AC_contDetail>p {
background: #ccc; background: #ccc;
color: #333; color: #333;
padding: 5px; padding: 5px;
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
border: 1px #d81e06 solid; border: 1px #d81e06 solid;
} }
.Supplier_AC_contDetail > a { .Supplier_AC_contDetail>a {
color: #3980c8 !important; color: #3980c8 !important;
} }
...@@ -129,12 +129,13 @@ ...@@ -129,12 +129,13 @@
</li> </li>
</ul> </ul>
</div> </div>
<el-input type="textarea" style="margin-top:10px;" :rows="5" v-model="EditMsg.ComplainContent" placeholder="具体问题描述,以及投诉人的姓名、联系方式"></el-input> <el-input type="textarea" style="margin-top:10px;" :rows="5" v-model="EditMsg.ComplainContent"
placeholder="具体问题描述,以及投诉人的姓名、联系方式"></el-input>
</div> </div>
<p style="text-align: center; margin: 10px 0 15px 0;"> <p style="text-align: center; margin: 10px 0 15px 0;">
<input type="button" class="normalBtn" value="保存" @click="SaveData()"/> <input type="button" class="normalBtn" value="保存" @click="SaveData()" />
<input type="button" class="normalBtn" value="取消"/> <input type="button" class="normalBtn" value="取消" />
</p> </p>
</div> </div>
</template> </template>
...@@ -148,11 +149,11 @@ ...@@ -148,11 +149,11 @@
themeCked: [], themeCked: [],
//添加修改投诉 //添加修改投诉
EditMsg: { EditMsg: {
Id: 0,//编号 Id: 0, //编号
SupplierId:0,//供应商编号 SupplierId: 0, //供应商编号
TCID: 0,//团队编号 TCID: 0, //团队编号
ComplainContentrs: '',//投诉内容 ComplainContentrs: '', //投诉内容
ComplainContent: '',//问题描述 ComplainContent: '', //问题描述
}, },
//查询参数 //查询参数
QMsg: { QMsg: {
...@@ -164,8 +165,7 @@ ...@@ -164,8 +165,7 @@
ExitCount: 0 ExitCount: 0
}; };
}, },
mounted() { mounted() {},
},
methods: { methods: {
//选取主题内容 //选取主题内容
getTheme(item) { getTheme(item) {
...@@ -192,8 +192,7 @@ ...@@ -192,8 +192,7 @@
} else { } else {
this.Error(res.data.message) this.Error(res.data.message)
} }
}, err => { }, err => {});
});
}, },
//保存数据 //保存数据
SaveData(status) { SaveData(status) {
...@@ -201,7 +200,6 @@ ...@@ -201,7 +200,6 @@
this.Error("请选择主题内容"); this.Error("请选择主题内容");
return false; return false;
} }
//数据组装 //数据组装
this.EditMsg.ComplainContentrs = ""; this.EditMsg.ComplainContentrs = "";
let contentrArr = []; let contentrArr = [];
...@@ -213,7 +211,6 @@ ...@@ -213,7 +211,6 @@
if (contentrArr.length > 0) { if (contentrArr.length > 0) {
this.EditMsg.ComplainContentrs = contentrArr.join(",") this.EditMsg.ComplainContentrs = contentrArr.join(",")
} }
this.ApiPost2('supplierComplain_Post_SetSupplierComplain', this.EditMsg, res => { this.ApiPost2('supplierComplain_Post_SetSupplierComplain', this.EditMsg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success("添加成功"); this.Success("添加成功");
...@@ -224,8 +221,7 @@ ...@@ -224,8 +221,7 @@
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
}, err => { }, err => {});
});
}, },
//获取投诉枚举集合 //获取投诉枚举集合
getEnumeration() { getEnumeration() {
...@@ -241,12 +237,43 @@ ...@@ -241,12 +237,43 @@
} }
}); });
}, },
GetData() {
this.ApiPost2('supplierComplain_Get_GetSupplierComplain', {
Id: this.EditMsg.Id
}, res => {
if (res.data.resultCode == 1) {
this.EditMsg = res.data.data;
if (this.EditMsg.ComplainContentrs && this.EditMsg.ComplainContentrs != '') {
var array = this.EditMsg.ComplainContentrs.split(',');
if (array != null && array.length > 0) {
array.forEach(subItem => {
this.themeList.forEach(x => {
if (subItem==x.Name) {
x.isCheck=true;
this.themeCked.push(x.Id)
}
});
});
}
}
} else {
this.Error(res.data.message);
}
}, err => {});
}
}, },
created() { created() {
this.EditMsg.Id = this.$route.query.id; this.EditMsg.Id = this.$route.query.Id;
this.QMsg.TCID = this.$route.query.TCID;
}, },
mounted() { mounted() {
this.getEnumeration(); this.getEnumeration();
if (this.QMsg.TCID) {
this.CheckTCID();
}
if (this.EditMsg.Id && this.EditMsg.Id > 0) {
this.GetData();
}
} }
}; };
......
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
<th width="100">操作</th> <th width="100">操作</th>
</tr> </tr>
<tr v-if="dataList.length==0"> <tr v-if="dataList.length==0">
<td colspan="8">暂无数据</td> <td colspan="9">暂无数据</td>
</tr> </tr>
<template v-for="(item,index) in dataList"> <template v-for="(item,index) in dataList">
<template v-for="(subItem,subIndex) in item.subList"> <template v-for="(subItem,subIndex) in item.subList">
...@@ -148,8 +148,13 @@ ...@@ -148,8 +148,13 @@
</span> </span>
</td> </td>
<td v-if="childIndex==0" :rowspan="subItem.hotelList.length"> <td v-if="childIndex==0" :rowspan="subItem.hotelList.length">
<a @click="AddSupplierComplain(subItem.TCNUMS)">添加投诉</a> <a style="text-decoration:underline;color:blue;cursor:pointer"
<a @click="">删除</a> @click="AddSupplierComplain(subItem.Complain_Extend.Id,subItem.Complain_Extend.TCID)">
<template v-if="subItem.Complain_Extend.Id>0">编辑</template>
<template v-else>添加</template>
</a>
<a style="text-decoration:underline;color:red;cursor:pointer" v-if="subItem.Complain_Extend.Id>0"
@click="DeleteSupplierComplain(subItem.Complain_Extend.Id)">删除</a>
</td> </td>
</tr> </tr>
</template> </template>
...@@ -177,7 +182,6 @@ ...@@ -177,7 +182,6 @@
HotelId: 0, HotelId: 0,
//日期 //日期
DateStr: "", DateStr: "",
//出团公司 //出团公司
OutBranchIds: [], OutBranchIds: [],
LineId: 14, LineId: 14,
...@@ -227,6 +231,26 @@ ...@@ -227,6 +231,26 @@
} }
}, },
methods: { methods: {
//删除投诉
DeleteSupplierComplain(Id) {
if (Id > 0) {
var that = this;
this.Confirm("是否此投诉信息删除?", function () {
var msg = {
Id: Id
};
that.ApiPost2("supplierComplain_Post_RemoveSupplierComplain", msg,
res => {
if (res.data.resultCode == 1) {
that.Success('删除成功!');
that.getList();
} else {
that.Error(res.data.data);
}
}, null);
});
}
},
getLineList() { getLineList() {
this.ApiPost2("line_post_GetAllList", {}, res => { this.ApiPost2("line_post_GetAllList", {}, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
...@@ -250,11 +274,12 @@ ...@@ -250,11 +274,12 @@
} }
); );
}, },
AddSupplierComplain(id) { AddSupplierComplain(id, tcid) {
this.$router.push({ this.$router.push({
name: 'AddSupplierComplaints', name: 'AddSupplierComplaints',
query: { query: {
"ID": id, Id: id,
TCID: tcid,
blank: 'y', blank: 'y',
tab: '供应商投诉' tab: '供应商投诉'
} }
......
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