|
@@ -754,6 +754,39 @@ class JRFIDServerService extends Service
|
|
|
return [true, $result['assembly_list']];
|
|
|
}
|
|
|
|
|
|
+ public function screenGetPackageAssemData($data,$param){
|
|
|
+ if(empty($data['id'])) return [false, '数据ID不能为空'];
|
|
|
+ if(empty($data['type'])) return [false, 'TYPE不能为空'];
|
|
|
+ if(empty($data['site'])) return [false, '站点不能为空'];
|
|
|
+
|
|
|
+ $url = config("j_rfid.screenGetPackageAssemData");
|
|
|
+ $post = [
|
|
|
+ 'id' => $data['id'],
|
|
|
+ 'type' => $data['type'],
|
|
|
+ 'site' => $data['site'],
|
|
|
+ 'contract_no' => $data['contract_no'] ?? ""
|
|
|
+ ];
|
|
|
+
|
|
|
+ list($status,$result) = $this->post_helper($url,$post,$param['header']);
|
|
|
+ if(! $status) return [$status, $result];
|
|
|
+
|
|
|
+ if(! empty($result['status']) && $result['status'] == 'error') return [false, $result['message']];
|
|
|
+ if(! empty($result['type']) && $result['type'] == 'errorVm') return [false, $result['message']];
|
|
|
+
|
|
|
+ if(! isset($result['assembly_list'])) {
|
|
|
+ $error = $result[0]['message'] ?? "操作失败,请刷新页面";
|
|
|
+ return [false, $error];
|
|
|
+ }
|
|
|
+
|
|
|
+ foreach ($result['assembly_list'] as $key => $value){
|
|
|
+ foreach ($value['package_assembly_list'] as $kk => $vv){
|
|
|
+ $result['assembly_list'][$key]['package_assembly_list'][$kk]['package_date'] = $this->changeDateToDateMin($vv['package_date']);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return [true, $result['assembly_list']];
|
|
|
+ }
|
|
|
+
|
|
|
public function screenGetDispatchDtData($data,$param){
|
|
|
if(empty($data['id'])) return [false, '数据ID不能为空'];
|
|
|
if(empty($data['type'])) return [false, 'TYPE不能为空'];
|