|
@@ -562,6 +562,33 @@ class JRFIDServerService extends Service
|
|
|
return [true, $result['data']];
|
|
|
}
|
|
|
|
|
|
+ public function getDispatchContractDrawRoom($data,$param){
|
|
|
+ if(empty($data['site'])) return [false, '站点不能为空'];
|
|
|
+ if(empty($data['type'])) return [false, 'TYPE不能为空'];
|
|
|
+ $post['site'] = $data['site'];
|
|
|
+ $post['type'] = $data['type'];
|
|
|
+
|
|
|
+ $url = config("j_rfid.get_dispatch_contract_draw_room");
|
|
|
+ if(isset($data['contract_no'])) $post['contract_no'] = $data['contract_no'];
|
|
|
+ if(isset($data['room_no'])) $post['room_no'] = $data['room_no'];
|
|
|
+ if(isset($data['drawing_no'])) $post['drawing_no'] = $data['drawing_no'];
|
|
|
+ if(isset($data['procedure_calss'])) $post['procedure_calss'] = $data['procedure_calss'];
|
|
|
+ $post['size'] = $data['size'] ?? 10;
|
|
|
+ $post['number'] = $data['number'] ?? 1;
|
|
|
+
|
|
|
+ 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['msg']];
|
|
|
+
|
|
|
+ if(! isset($result['success'])) {
|
|
|
+ $error = $result[0]['message'] ?? "操作失败,请刷新页面";
|
|
|
+ return [false, $error];
|
|
|
+ }
|
|
|
+
|
|
|
+ return [true, $result['data']];
|
|
|
+ }
|
|
|
+
|
|
|
public function screenSend($data,$param){
|
|
|
if(empty($data['screenDataList'])) return [false, '收发货数据不能为空'];
|
|
|
if(empty($data['site']) || empty($data['site_show'])) return [false, '站点信息不能为空'];
|