Commit c6929db2 authored by liudong1993's avatar liudong1993

1

parent 9a5bf1c4
...@@ -375,6 +375,7 @@ export default { ...@@ -375,6 +375,7 @@ export default {
}, },
mounted() { mounted() {
let $this = this; let $this = this;
this.userInfo = this.getLocalStorage();
this.MsgBus.$on("closeaddContacts", function() { this.MsgBus.$on("closeaddContacts", function() {
$this.commissionPopUpVisible = false; $this.commissionPopUpVisible = false;
}); });
...@@ -494,7 +495,7 @@ export default { ...@@ -494,7 +495,7 @@ export default {
if (this.superManage) { if (this.superManage) {
this.endOfLossfun(row) this.endOfLossfun(row)
}else{ }else{
if (this.userInfo.EmName != row.EnterName) { if (this.userInfo.EmployeeId != row.EnterID && this.userInfo.EmployeeId != row.CreateBy) {
this.ValidateOperator(); this.ValidateOperator();
} else { } else {
this.endOfLossfun(row) this.endOfLossfun(row)
...@@ -532,7 +533,7 @@ export default { ...@@ -532,7 +533,7 @@ export default {
if (this.superManage) { if (this.superManage) {
this.lossOperationfun(row) this.lossOperationfun(row)
}else{ }else{
if (this.userInfo.EmName != row.EnterName) { if (this.userInfo.EmployeeId != row.EnterID && this.userInfo.EmployeeId != row.CreateBy) {
this.ValidateOperator(); this.ValidateOperator();
} else { } else {
this.lossOperationfun(row) this.lossOperationfun(row)
...@@ -552,7 +553,7 @@ export default { ...@@ -552,7 +553,7 @@ export default {
if (this.superManage) { if (this.superManage) {
this.orderCompletedfun(row) this.orderCompletedfun(row)
}else{ }else{
if (this.userInfo.EmName != row.EnterName) { if (this.userInfo.EmployeeId != row.EnterID && this.userInfo.EmployeeId != row.CreateBy) {
this.ValidateOperator(); this.ValidateOperator();
} else { } else {
this.orderCompletedfun(row) this.orderCompletedfun(row)
...@@ -590,7 +591,7 @@ export default { ...@@ -590,7 +591,7 @@ export default {
if (this.superManage) { if (this.superManage) {
this.convertOrderfun(row) this.convertOrderfun(row)
}else{ }else{
if (this.userInfo.EmName != row.EnterName) { if (this.userInfo.EmployeeId != row.EnterID && this.userInfo.EmployeeId != row.CreateBy) {
this.ValidateOperator(); this.ValidateOperator();
} else { } else {
this.convertOrderfun(row) this.convertOrderfun(row)
...@@ -654,7 +655,7 @@ export default { ...@@ -654,7 +655,7 @@ export default {
if (this.superManage) { if (this.superManage) {
this.makeAdocumentFunction(row, index, num) this.makeAdocumentFunction(row, index, num)
}else{ }else{
if (this.userInfo.EmName != row.EnterName) { if (this.userInfo.EmployeeId != row.EnterID && this.userInfo.EmployeeId != row.CreateBy) {
this.ValidateOperator(); this.ValidateOperator();
} else { } else {
this.makeAdocumentFunction(row, index, num) this.makeAdocumentFunction(row, index, num)
...@@ -762,7 +763,7 @@ export default { ...@@ -762,7 +763,7 @@ export default {
if (this.superManage) { if (this.superManage) {
this.AmendVisafun(row); this.AmendVisafun(row);
} else { } else {
if (this.userInfo.EmName != row.EnterName) { if (this.userInfo.EmployeeId != row.EnterID && this.userInfo.EmployeeId != row.CreateBy) {
this.ValidateOperator(); this.ValidateOperator();
} else { } else {
this.AmendVisafun(row); this.AmendVisafun(row);
...@@ -787,7 +788,7 @@ export default { ...@@ -787,7 +788,7 @@ export default {
if (this.superManage) { if (this.superManage) {
this.ModifyStatusfun(row); this.ModifyStatusfun(row);
} else { } else {
if (this.userInfo.EmName != row.EnterName) { if (this.userInfo.EmployeeId != row.EnterID && this.userInfo.EmployeeId != row.CreateBy) {
this.ValidateOperator(); this.ValidateOperator();
} else { } else {
this.ModifyStatusfun(row); this.ModifyStatusfun(row);
...@@ -818,7 +819,7 @@ export default { ...@@ -818,7 +819,7 @@ export default {
if (this.superManage) { if (this.superManage) {
this.cancelOrderfun(row); this.cancelOrderfun(row);
} else { } else {
if (this.userInfo.EmName != row.EnterName) { if (this.userInfo.EmployeeId != row.EnterID && this.userInfo.EmployeeId != row.CreateBy) {
this.ValidateOperator(); this.ValidateOperator();
} else { } else {
this.cancelOrderfun(row); this.cancelOrderfun(row);
...@@ -877,7 +878,7 @@ export default { ...@@ -877,7 +878,7 @@ export default {
if (this.superManage) { if (this.superManage) {
this.editOrderfun(row); this.editOrderfun(row);
} else { } else {
if (this.userInfo.EmName != row.EnterName) { if (this.userInfo.EmployeeId != row.EnterID && this.userInfo.EmployeeId != row.CreateBy) {
this.ValidateOperator(); this.ValidateOperator();
} else { } else {
this.editOrderfun(row); this.editOrderfun(row);
...@@ -908,7 +909,7 @@ export default { ...@@ -908,7 +909,7 @@ export default {
if (this.superManage) { if (this.superManage) {
this.editOrderAmountfun(row); this.editOrderAmountfun(row);
} else { } else {
if (this.userInfo.EmName != row.EnterName) { if (this.userInfo.EmployeeId != row.EnterID && this.userInfo.EmployeeId != row.CreateBy) {
this.ValidateOperator(); this.ValidateOperator();
} else { } else {
this.editOrderAmountfun(row); this.editOrderAmountfun(row);
......
...@@ -647,7 +647,7 @@ ...@@ -647,7 +647,7 @@
}, },
// 订单收损完结 // 订单收损完结
endOfLoss(row) { endOfLoss(row) {
if (this.userInfo.EmName != row.EnterName) { if (this.userInfo.EmployeeId != row.EnterID && this.userInfo.EmployeeId != row.CreateBy) {
this.ValidateOperator(); this.ValidateOperator();
} else { } else {
this.endOfLossfun(row) this.endOfLossfun(row)
...@@ -681,7 +681,7 @@ ...@@ -681,7 +681,7 @@
}, },
// 收损 // 收损
lossOperation(row) { lossOperation(row) {
if (this.userInfo.EmName != row.EnterName) { if (this.userInfo.EmployeeId != row.EnterID && this.userInfo.EmployeeId != row.CreateBy) {
this.ValidateOperator(); this.ValidateOperator();
} else { } else {
this.lossOperationfun(row) this.lossOperationfun(row)
...@@ -697,7 +697,7 @@ ...@@ -697,7 +697,7 @@
}, },
// 订单完结 // 订单完结
orderCompleted(row) { orderCompleted(row) {
if (this.userInfo.EmName != row.EnterName) { if (this.userInfo.EmployeeId != row.EnterID && this.userInfo.EmployeeId != row.CreateBy) {
this.ValidateOperator(); this.ValidateOperator();
} else { } else {
this.orderCompletedfun(row) this.orderCompletedfun(row)
...@@ -730,7 +730,7 @@ ...@@ -730,7 +730,7 @@
}, },
// 转换订单 // 转换订单
convertOrder(row) { convertOrder(row) {
if (this.userInfo.EmName != row.EnterName) { if (this.userInfo.EmployeeId != row.EnterID && this.userInfo.EmployeeId != row.CreateBy) {
this.ValidateOperator(); this.ValidateOperator();
} else { } else {
this.convertOrderfun(row) this.convertOrderfun(row)
...@@ -809,7 +809,7 @@ ...@@ -809,7 +809,7 @@
let url = this.domainManager().erpRoutingUrl let url = this.domainManager().erpRoutingUrl
let data let data
let list = row.OrderType && row.OrderType.split(',') let list = row.OrderType && row.OrderType.split(',')
if (this.userInfo.EmName != row.EnterName) { if (this.userInfo.EmployeeId != row.EnterID && this.userInfo.EmployeeId != row.CreateBy) {
this.ValidateOperator() this.ValidateOperator()
} else { } else {
if (row.OrderStatus != '2') { if (row.OrderStatus != '2') {
...@@ -893,7 +893,7 @@ ...@@ -893,7 +893,7 @@
}, },
// 修改签证状态 // 修改签证状态
AmendVisa(row) { AmendVisa(row) {
if (this.userInfo.EmName != row.EnterName) { if (this.userInfo.EmployeeId != row.EnterID && this.userInfo.EmployeeId != row.CreateBy) {
this.ValidateOperator() this.ValidateOperator()
} else { } else {
this.AmendVisafun(row); this.AmendVisafun(row);
...@@ -914,7 +914,7 @@ ...@@ -914,7 +914,7 @@
}, },
// 修改出票状态 // 修改出票状态
modifyStatus(row) { modifyStatus(row) {
if (this.userInfo.EmName != row.EnterName) { if (this.userInfo.EmployeeId != row.EnterID && this.userInfo.EmployeeId != row.CreateBy) {
this.ValidateOperator() this.ValidateOperator()
} else { } else {
if (row.OrderStatus == 2) { if (row.OrderStatus == 2) {
...@@ -933,7 +933,7 @@ ...@@ -933,7 +933,7 @@
}, },
// 取消订单 // 取消订单
cancelOrder(row) { cancelOrder(row) {
if (this.userInfo.EmName != row.EnterName) { if (this.userInfo.EmployeeId != row.EnterID && this.userInfo.EmployeeId != row.CreateBy) {
this.ValidateOperator() this.ValidateOperator()
} else { } else {
if (row.OrderStatus != '2' && row.IncomeFinance.length == 0 && row.BackFinance.length == 0 && row if (row.OrderStatus != '2' && row.IncomeFinance.length == 0 && row.BackFinance.length == 0 && row
...@@ -972,7 +972,7 @@ ...@@ -972,7 +972,7 @@
}, },
// 编辑订单 // 编辑订单
editOrder(row) { editOrder(row) {
if (this.userInfo.EmName != row.EnterName) { if (this.userInfo.EmployeeId != row.EnterID && this.userInfo.EmployeeId != row.CreateBy) {
this.ValidateOperator() this.ValidateOperator()
} else { } else {
if (row.TicketStatus == 1 && row.OrderStatus == 1) { if (row.TicketStatus == 1 && row.OrderStatus == 1) {
...@@ -985,7 +985,7 @@ ...@@ -985,7 +985,7 @@
}, },
// 编辑订单金额 // 编辑订单金额
editOrderAmount(row) { editOrderAmount(row) {
if (this.userInfo.EmName != row.EnterName) { if (this.userInfo.EmployeeId != row.EnterID && this.userInfo.EmployeeId != row.CreateBy) {
this.ValidateOperator() this.ValidateOperator()
} else { } else {
if (row.TicketStatus == 1 && row.OrderStatus == 1) { if (row.TicketStatus == 1 && row.OrderStatus == 1) {
......
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