Commit d8f907d6 authored by qiaoyajun's avatar qiaoyajun

投诉管理修改

parent ffc46466
......@@ -202,11 +202,15 @@
<ul>
<li><span>线路:</span>{{PriceInfo.LineName}}</li>
<li><span>系列:</span>{{PriceInfo.LtName}}</li>
<li><span>团队编号:</span><a>{{PriceInfo.TCID}}</a></li>
<li><span>团队编号:</span><a style="text-decoration:underline;cursor:pointer;"
@click="goTeamBalancePayment('团队收支','TeamBalancePayment',PriceInfo.TCID,PriceInfo.OutBranchId)">{{PriceInfo.TCID}}</a>
</li>
<li><span>行程天数:</span>{{PriceInfo.DayNum}}</li>
<li><span>出发日期:</span>{{PriceInfo.StartDate}}</li>
<li><span>返回日期:</span>{{PriceInfo.BackDate}}</li>
<li><span>订单号:</span><a>{{PriceInfo.OrderId}}</a></li>
<li><span>订单号:</span><a style="text-decoration:underline;cursor:pointer;"
@click="goEnrollTotal('报名统计','enrollTotal',item.OrderID)">{{item.OrderID}}>{{PriceInfo.OrderId}}</a>
</li>
<li><span>业务员:</span>{{PriceInfo.Salesman}}</li>
<li><span>线控:</span>{{PriceInfo.DriveByWire}}</li>
<li><span>操作OP:</span>{{PriceInfo.OpName}}</li>
......@@ -231,7 +235,7 @@
<span>已赔金额:</span>{{getBackMoney()}}
</li>
<li
v-if="ComplainInfo.DisposeStatus===4&&getLocalStorage().EmployeeId===ComplainDetial[ComplainDetial.length-1].CreateBy">
v-if="ComplainInfo.DisposeStatus===4&&(getLocalStorage().EmployeeId===ComplainDetial[ComplainDetial.length-1].CreateBy||authority.indexOf('S_Complain_Finance')!=-1)">
<span>单据详情:</span>
<span v-for="compensation in ComplainCompensation" class="CD_dealResult" href="javascript:void(0)"
@click="setFinance(compensation)">{{compensation.CompensateMoney}}</span>
......@@ -444,7 +448,8 @@
ishowBtn: true,
showAppendMoney: false,
CompensateMoney: 0,//赔偿金额
ComplainCompensation: []//赔款列表
ComplainCompensation: [],//赔款列表
authority: [],
}
},
methods: {
......@@ -604,13 +609,13 @@
})
} else if (compensation.FinanceID > 0) {
this.$router.push({
name: "FinancialDocumentsDetail",
name: 'FinancialDocumentsDetail',
query: {
id: compensation.FinanceID,
blank: 'y',
tab: "单据详情"
tab: '单据详情'
}
});
})
}
},
......@@ -727,6 +732,27 @@
})
return money
},
goEnrollTotal (name, path, orderId) {
this.$router.push({
name: path,
query: {orderId: orderId, blank: 'y', tab: name}
})
},
goTeamBalancePayment (name, path, id, outBranchId) {
this.$router.push({
name: path,
query: {id: id, outBranchId: outBranchId, blank: 'y', tab: name}
})
},
initAuthor() {
let msg = {
MenuUrl: "/ChoiceAddFinancialDocuments"
};
this.apipost("admin_get_GetActionCodeForUrlAndUser", msg, r => {
this.authority = r.data.data;
console.log("admin_get_GetActionCodeForUrlAndUser",this.authority)
});
},
},
mounted () {
this.queryMsg.ID = this.$route.query.id
......@@ -734,6 +760,7 @@
this.getEnumeration()
this.getEmployeeList()
this.getDetial()
this.initAuthor();
}
}
......
......@@ -102,6 +102,7 @@
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0">
<tr>
<th>投诉编号</th>
<th>团队编号</th>
<th>订单号</th>
<th>投诉内容</th>
<th>严重程度</th>
......@@ -116,13 +117,18 @@
</tr>
<tr v-for="item in queryCommonData.dataList">
<td>{{item.ID}}</td>
<td>{{item.OrderID}}</td>
<td style="text-decoration:underline;cursor:pointer;"
@click="goTeamBalancePayment('团队收支','TeamBalancePayment',item.TCID,item.OutBranchId)">{{item.TCNUM}}{{item.TCID}}
</td>
<td style="text-decoration:underline;cursor:pointer;"
@click="goEnrollTotal('报名统计','enrollTotal',item.OrderID)">{{item.OrderID}}
</td>
<td>{{item.Contentrs}}</td>
<td>{{item.SeverityLevelStr}}</td>
<td>{{item.RecordEmpName}}</td>
<td>{{item.DisposeStatusStr}}</td>
<td>{{item.DisposeStatus===4?item.ShouldPayMoney:""}}</td>
<td>{{item.DisposeStatus===4?item.BackMoney:""}}</td>
<td>{{item.DisposeStatus===4?item.ShouldPayMoney:''}}</td>
<td>{{item.DisposeStatus===4?item.BackMoney:''}}</td>
<td>{{item.CurrentDealEmpName}}</td>
<td>{{getTimeConsuming(item,1)}}</td>
<td>{{getTimeConsuming(item,2)}}</td>
......@@ -143,7 +149,7 @@
<script>
export default {
data() {
data () {
return {
queryCommonData: {
//下拉默认值
......@@ -185,11 +191,11 @@
pageIndex: 1,
pageSize: 10
}
};
}
},
methods: {
//添加修改投诉
goUrl(path, id) {
goUrl (path, id) {
this.$router.push({
path: path,
query: {
......@@ -197,28 +203,28 @@
blank: 'y',
tab: '投诉编辑'
}
});
})
},
getList() {
this.queryCommonData.loading = true;
this.queryMsg.pageIndex = this.queryCommonData.currentPage;
this.queryMsg.pageSize = this.queryCommonData.pageSize;
let msg = JSON.parse(JSON.stringify(this.queryMsg));
if (msg.ID == "") {
msg.ID = 0;
getList () {
this.queryCommonData.loading = true
this.queryMsg.pageIndex = this.queryCommonData.currentPage
this.queryMsg.pageSize = this.queryCommonData.pageSize
let msg = JSON.parse(JSON.stringify(this.queryMsg))
if (msg.ID == '') {
msg.ID = 0
}
if (msg.OrderID == "") {
msg.OrderID = 0;
if (msg.OrderID == '') {
msg.OrderID = 0
}
if (msg.TCID == "") {
msg.TCID = 0;
if (msg.TCID == '') {
msg.TCID = 0
}
this.apipost('conplain_get_GetPageList', msg, res => {
this.queryCommonData.loading = false;
this.queryCommonData.loading = false
if (res.data.resultCode == 1) {
this.queryCommonData.total = res.data.data.count;
this.queryCommonData.noData = !this.queryCommonData.total > 0;
this.queryCommonData.dataList = res.data.data.pageData;
this.queryCommonData.total = res.data.data.count
this.queryCommonData.noData = !this.queryCommonData.total > 0
this.queryCommonData.dataList = res.data.data.pageData
} else {
this.Error(res.data.message)
}
......@@ -226,109 +232,121 @@
})
},
//翻页
handleCurrentChange(val) {
this.queryCommonData.pageIndex = val;
this.getList();
handleCurrentChange (val) {
this.queryCommonData.pageIndex = val
this.getList()
},
//重新查询
resetPageIndex() {
this.queryCommonData.pageIndex = 1;
this.queryMsg.pageIndex = 1;
this.queryCommonData.currentPage = 1;
resetPageIndex () {
this.queryCommonData.pageIndex = 1
this.queryMsg.pageIndex = 1
this.queryCommonData.currentPage = 1
},
//获取线路列表
getLineList() {
this.apipost("line_post_GetList", {}, res => {
getLineList () {
this.apipost('line_post_GetList', {}, res => {
if (res.data.resultCode == 1) {
this.queryCommonData.LineList = res.data.data;
this.queryCommonData.LineList = res.data.data
}
});
})
},
//获取系列列表
getLineTeamList() {
this.queryMsg.LineteamId = 0;
getLineTeamList () {
this.queryMsg.LineteamId = 0
let msg = {
lineID: this.queryMsg.LineID,
isTOOP: 1
};
this.apipost("team_post_GetList", msg, res => {
}
this.apipost('team_post_GetList', msg, res => {
if (res.data.resultCode == 1) {
this.queryCommonData.LineTeamList = res.data.data;
this.queryCommonData.LineTeamList = res.data.data
}
});
})
},
//获取投诉枚举集合
getEnumeration() {
this.apipost("conplain_get_GetComplainEnumList", {}, res => {
getEnumeration () {
this.apipost('conplain_get_GetComplainEnumList', {}, res => {
if (res.data.resultCode == 1) {
this.queryCommonData.ComplainContentEnumList = res.data.data.ComplainContentEnumList;
this.queryCommonData.ComplainDealLevelList = res.data.data.ComplainDealLevelList;
this.queryCommonData.DisposeStatusList = res.data.data.DisposeStatusList;
this.queryCommonData.ComplainContentEnumList = res.data.data.ComplainContentEnumList
this.queryCommonData.ComplainDealLevelList = res.data.data.ComplainDealLevelList
this.queryCommonData.DisposeStatusList = res.data.data.DisposeStatusList
} else {
this.Error(res.data.message);
this.Error(res.data.message)
}
});
})
},
//根据当前员工所在部门获取该部门及子部门员工信息
getEmployeeList() {
let userInfo = this.getLocalStorage();
getEmployeeList () {
let userInfo = this.getLocalStorage()
let msg = {
GroupId: userInfo.RB_Group_id,
BranchId: "-1",
DepartmentId: "-1",
PostId: "-1",
IsLeave: "0"
};
BranchId: '-1',
DepartmentId: '-1',
PostId: '-1',
IsLeave: '0'
}
this.apipost(
"admin_get_EmployeeGetList", {},
'admin_get_EmployeeGetList', {},
res => {
if (res.data.resultCode == 1) {
this.queryCommonData.EmployeeList = res.data.data;
this.queryCommonData.EmployeeList = res.data.data
}
},
err => {
}
);
)
},
//跳转
goUrl(path, id, orderId, title) {
goUrl (path, id, orderId, title) {
this.$router.push({
name: path,
query: {
"id": id,
"orderId": orderId,
'id': id,
'orderId': orderId,
blank: 'y',
tab: title
}
})
},
//获取耗时
getTimeConsuming(item, type) {
var endDate = new Date();//获取系统当前时间
let resultStr = "";
getTimeConsuming (item, type) {
var endDate = new Date()//获取系统当前时间
let resultStr = ''
//处理人耗时
if (type === 1) {
if (item.DisposeStatus === 2) {
resultStr = this.$commonUtils.getDateTimeInterval(new Date(item.DealCreateTime), endDate);
resultStr = this.$commonUtils.getDateTimeInterval(new Date(item.DealCreateTime), endDate)
} else {
resultStr = item.ElapsedTime;
resultStr = item.ElapsedTime
}
} else {//总耗时
if (item.DisposeStatus === 2) {
resultStr = this.$commonUtils.getDateTimeInterval(new Date(item.CreateTime), endDate);
resultStr = this.$commonUtils.getDateTimeInterval(new Date(item.CreateTime), endDate)
} else {
resultStr = this.$commonUtils.getDateTimeInterval(new Date(item.CreateTime), new Date(item.UpdateTime));
resultStr = this.$commonUtils.getDateTimeInterval(new Date(item.CreateTime), new Date(item.UpdateTime))
}
}
return resultStr;
return resultStr
},
goEnrollTotal (name, path, orderId) {
this.$router.push({
name: path,
query: {orderId: orderId, blank: 'y', tab: name}
})
},
goTeamBalancePayment (name, path, id, outBranchId) {
this.$router.push({
name: path,
query: {id: id, outBranchId: outBranchId, blank: 'y', tab: name}
})
}
},
mounted() {
this.getLineList();
this.getEnumeration();
this.getEmployeeList();
this.getList();
mounted () {
this.getLineList()
this.getEnumeration()
this.getEmployeeList()
this.getList()
}
};
}
</script>
......@@ -152,7 +152,7 @@
<th width="130">单号&团号</th>
<th width="60">客户信息</th>
<th width="70">类型</th>
<th width="180">系列&线路</th>
<th width="180">系列&线路</th>
<th width="100">人数/机位数</th>
<th width="80">单价</th>
<th width="80">成交单价</th>
......@@ -588,6 +588,11 @@
this.msg.QStartDate = nowDay;
this.msg.QEndDate = nowDay;
}
if (this.$route.query.orderId) {
this.msg.tempOrderId = this.$route.query.orderId;
this.msg.QStartDate = "";
this.msg.QEndDate = "";
}
this.getList();
}
};
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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