Commit 3c4be862 authored by zhengke's avatar zhengke

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

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