Commit 3c4be862 authored by zhengke's avatar zhengke

投诉管理增加删除 和 去除 重复提交验证

parent 0a48963c
......@@ -126,7 +126,7 @@
<p>投诉情况</p>
<div class="AC_complaintList">
<div class="t">主题内容:</div>
<ul>
<ul style="width:90%;">
<li v-for="subItem in themeList" @click="getTheme(subItem)" :class="{'checked':subItem.isCheck}">
{{subItem.Name}}
</li>
......@@ -134,7 +134,7 @@
</div>
<div class="AC_complaintList">
<div class="t">严重程度:</div>
<ul>
<ul style="width:90%;">
<li v-for="subItem in severityList" @click="getServerity(subItem)" :class="{'checked':subItem.isCheck}">
{{subItem.Name}}
</li>
......@@ -234,10 +234,10 @@
this.EditMsg.LineID = this.PriceInfo.LineID;
this.EditMsg.LineteamId = this.PriceInfo.LineteamId;
}
this.ExitCount = res.data.data.ExitCount;
if(this.ExitCount>0){
this.Error("该订单已存在投诉");
}
// this.ExitCount = res.data.data.ExitCount;
// if(this.ExitCount>0){
// this.Error("该订单已存在投诉");
// }
} else {
this.Error(res.data.message)
}
......
......@@ -203,6 +203,7 @@
<td>{{getTimeConsuming(item,2)}}</td>
<td>
<span class="CM_detail" @click="goUrl('ComplaintsDetail',item.ID,item.OrderID,'投诉详情')">详情</span>
<span class="CM_detail" @click="delComplaints(item.ID,item.CreateBy)">删除</span>
</td>
</tr>
</table>
......@@ -438,6 +439,29 @@
var fileName = "投诉报表.xls";
this.GetLocalFile("get_complain_GetExport", msg, fileName);
},
//删除
delComplaints(ID,UserID){
let userInfo = this.getLocalStorage();
if(userInfo.EmployeeId==UserID){
var that = this;
that.Confirm("是否删除?", function () {
var msg = {
ID : ID
};
that.apipost(
"conplain_post_Remove",msg,res => {
if (res.data.resultCode == 1) {
that.Success(res.data.message);
that.getList();
}
},
null
);
});
}else{
this.Error('只能删除自己创建的单据');
}
}
},
mounted () {
this.getLineList()
......
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