|
@@ -255,6 +255,46 @@ class JRFIDServerService extends Service
|
|
return [true, $result];
|
|
return [true, $result];
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public function furnProduceScheduleList($data,$param){
|
|
|
|
+ if(empty($data['site'])) return [false, '站点不能为空'];
|
|
|
|
+ $header = array_merge($param['header'], ['site:'. $data['site']]);
|
|
|
|
+ $url = config("j_rfid.furn_produce_schedule_list");
|
|
|
|
+
|
|
|
|
+ $sorts = [];
|
|
|
|
+ if(empty($data['sorts'])) {
|
|
|
|
+ //默认
|
|
|
|
+ $sorts = [
|
|
|
|
+ [
|
|
|
|
+ "property" => "exe_produce_order_a.order_date",
|
|
|
|
+ "direction" => "DESC",
|
|
|
|
+ "sortOrderNumber" => 2
|
|
|
|
+ ]
|
|
|
|
+ ];
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ $post = [
|
|
|
|
+ "direction" => $data['direction'] ?? "DESC", //排序
|
|
|
|
+ "property" => $data['direction'] ?? "id", // 排序
|
|
|
|
+ "sorts" => $sorts
|
|
|
|
+ ];
|
|
|
|
+ $post['size'] = $data['size'] ?? 10;
|
|
|
|
+ $post['number'] = ($data['number'] ?? 1) - 1;
|
|
|
|
+ $post['rules'] = $data['rules'] ?? [];
|
|
|
|
+
|
|
|
|
+ list($status,$result) = $this->post_helper($url,$post,$header);
|
|
|
|
+ if(! $status) return [false, $result];
|
|
|
|
+
|
|
|
|
+ if(! empty($result['status']) && $result['status'] == 'error') return [false, $result['msg']];
|
|
|
|
+ if(! empty($result['type']) && $result['type'] == 'errorVm') return [false, $result['message']];
|
|
|
|
+
|
|
|
|
+ if(! isset($result['content'])) {
|
|
|
|
+ $error = $result[0]['message'] ?? "操作失败,请刷新页面";
|
|
|
|
+ return [false, $error];
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return [true, $result];
|
|
|
|
+ }
|
|
|
|
+
|
|
public function completionOrders($data,$param){
|
|
public function completionOrders($data,$param){
|
|
//{"type":"","id":[],"completed_teams_group":"","completed_teams_group_show":"","completed_date":"","completed_date_lt":""}
|
|
//{"type":"","id":[],"completed_teams_group":"","completed_teams_group_show":"","completed_date":"","completed_date_lt":""}
|
|
// $p = [
|
|
// $p = [
|