...
|
...
|
@@ -473,25 +473,25 @@ class Api |
|
|
$Type = 0;
|
|
|
if ($Level == 1) {
|
|
|
//公司分管领导
|
|
|
if ($Order['price'] == 3 && $Order['status'] == 1) {
|
|
|
if ($Order['price'] == 3 && $Order['status'] == 1 && $Order['type'] != 2) {
|
|
|
$Type = 1;
|
|
|
}
|
|
|
}
|
|
|
if ($Level == 2) {
|
|
|
//公司机电负责人
|
|
|
if ($Order['price'] == 2 && $Order['status'] == 1) {
|
|
|
if ($Order['price'] == 2 && $Order['status'] == 1 && $Order['type'] != 2) {
|
|
|
$Type = 1;
|
|
|
}
|
|
|
}
|
|
|
if ($Level == 3) {
|
|
|
//维修负责人
|
|
|
if ($Order['wx_user_id'] == $UserId && $Order['redio_user_id'] == '') {
|
|
|
if ($Order['wx_user_id'] == $UserId && $Order['redio_user_id'] == '' && $Order['type'] != 2) {
|
|
|
$Type = 1;
|
|
|
}
|
|
|
}
|
|
|
if ($Level == 4) {
|
|
|
//维修成员
|
|
|
if ($Order['redio_user_id'] == $UserId && $Order['repair_type'] == 0) {
|
|
|
if ($Order['redio_user_id'] == $UserId && $Order['repair_type'] == 0 && $Order['type'] != 2) {
|
|
|
$Type = 1;
|
|
|
}
|
|
|
}
|
...
|
...
|
|