|
@@ -755,6 +755,32 @@ class JRFIDServerService extends Service
|
|
|
return [true, $result['assembly_list']];
|
|
|
}
|
|
|
|
|
|
+ public function screenGetDispatchDtData($data,$param){
|
|
|
+ if(empty($data['id'])) return [false, '数据ID不能为空'];
|
|
|
+ if(empty($data['type'])) return [false, 'TYPE不能为空'];
|
|
|
+
|
|
|
+ $url = config("j_rfid.screen_get_dispatch_dt_data");
|
|
|
+ $post = [
|
|
|
+ 'id' => $data['id'],
|
|
|
+ 'type' => $data['type'],
|
|
|
+ 'contract_no' => $data['contract_no'] ?? null,
|
|
|
+ 'drawing_no' => $data['drawing_no'] ?? null,
|
|
|
+ ];
|
|
|
+
|
|
|
+ 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['furn_dispatch_product_dt'])) {
|
|
|
+ $error = $result[0]['message'] ?? "操作失败,请刷新页面";
|
|
|
+ return [false, $error];
|
|
|
+ }
|
|
|
+
|
|
|
+ return [true, $result];
|
|
|
+ }
|
|
|
+
|
|
|
public function post_helper($url, $data, $header = [], $timeout = 20){
|
|
|
Log::channel('apiLog')->info('工装云POST', ["api" => $url , "param" => $data ,"header" => $header]);
|
|
|
|