|
@@ -134,14 +134,15 @@ class Orders extends Base {
|
|
|
}
|
|
|
if ($type == 1) {
|
|
|
if ($data['userType'] == 0) {
|
|
|
- $sData['send_time'] = getTime();
|
|
|
+
|
|
|
if (!isset($data['to_user_id']) || empty($data['to_user_id'])) {
|
|
|
- $this->error = '请选择执行人';
|
|
|
- return false;
|
|
|
-// $sData['order_mode'] = 1;
|
|
|
-// $data['to_user_id'] = "";
|
|
|
+// $this->error = '请选择执行人';
|
|
|
+// return false;
|
|
|
+ $sData['order_mode'] = 1;
|
|
|
+ $data['to_user_id'] = "";
|
|
|
}else{
|
|
|
-// $sData['order_mode'] = 4;
|
|
|
+ $sData['send_time'] = getTime();
|
|
|
+ $sData['order_mode'] = 4;
|
|
|
}
|
|
|
if ($data['work_type_mode'] == 1) {
|
|
|
if (!isset($data['type_id']) || empty($data['type_id'])) {
|
|
@@ -158,8 +159,9 @@ class Orders extends Base {
|
|
|
$sData['order_mode'] = 1;
|
|
|
$sData['is_deal'] = 1;
|
|
|
if (!isset($data['to_roles_id']) || empty($data['to_roles_id'])) {
|
|
|
- $this->error = '请选择二级调度';
|
|
|
- return false;
|
|
|
+// $this->error = '请选择二级调度';
|
|
|
+// return false;
|
|
|
+ $sData['is_deal'] = 0;
|
|
|
}
|
|
|
}
|
|
|
}
|