Commit d8f907d6 authored by qiaoyajun's avatar qiaoyajun

投诉管理修改

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