|
@@ -269,8 +269,7 @@ class SyncSealDrugReportService
|
|
|
{
|
|
{
|
|
|
return array_map(function ($item) {
|
|
return array_map(function ($item) {
|
|
|
return [
|
|
return [
|
|
|
- 'drug_report_id' => $item['drug_report_id'] ?? '',
|
|
|
|
|
- 'report_name' => $item['file_name'] ?? '',
|
|
|
|
|
|
|
+ 'report_id' => $item['drug_report_id'] ?? '',
|
|
|
'batch_no' => $item['produce_batch_no'] ?? '',
|
|
'batch_no' => $item['produce_batch_no'] ?? '',
|
|
|
'drug_id' => $item['drug_id'] ?? '',
|
|
'drug_id' => $item['drug_id'] ?? '',
|
|
|
'drug_name' => $item['physic_name'] ?? '',
|
|
'drug_name' => $item['physic_name'] ?? '',
|
|
@@ -288,7 +287,8 @@ class SyncSealDrugReportService
|
|
|
'ass_ref_ent_id' => $item['ass_ref_ent_id'] ?? '',
|
|
'ass_ref_ent_id' => $item['ass_ref_ent_id'] ?? '',
|
|
|
'from_ref_ent_id' => $item['from_ref_ent_id'] ?? '',
|
|
'from_ref_ent_id' => $item['from_ref_ent_id'] ?? '',
|
|
|
'from_ent_name' => $item['from_ent_name'] ?? '',
|
|
'from_ent_name' => $item['from_ent_name'] ?? '',
|
|
|
- 'sealed_report_url' => $item['sealed_report_url'] ?? '',
|
|
|
|
|
|
|
+ 'report_url' => $item['sealed_report_url'] ?? '',
|
|
|
|
|
+// 'file_name' => $item['file_name'] ?? '',
|
|
|
'report_sign_status' => $item['drug_report_sign_status'] ?? '',
|
|
'report_sign_status' => $item['drug_report_sign_status'] ?? '',
|
|
|
'raw_data' => json_encode($item ?? [], JSON_UNESCAPED_UNICODE),
|
|
'raw_data' => json_encode($item ?? [], JSON_UNESCAPED_UNICODE),
|
|
|
];
|
|
];
|
|
@@ -304,7 +304,7 @@ class SyncSealDrugReportService
|
|
|
{
|
|
{
|
|
|
return array_map(function ($item) {
|
|
return array_map(function ($item) {
|
|
|
return [
|
|
return [
|
|
|
- 'report_id' => $item['report_id'] ?? '',
|
|
|
|
|
|
|
+ 'report_v2_id' => $item['drug_report_v2_id'] ?? '',
|
|
|
'report_name' => $item['drug_report_name'] ?? '',
|
|
'report_name' => $item['drug_report_name'] ?? '',
|
|
|
'report_no' => $item['report_no'] ?? '',
|
|
'report_no' => $item['report_no'] ?? '',
|
|
|
'report_date' => $item['report_date'] ?? '',
|
|
'report_date' => $item['report_date'] ?? '',
|
|
@@ -315,7 +315,7 @@ class SyncSealDrugReportService
|
|
|
'pkg_spec' => $item['pkg_spec'] ?? '',
|
|
'pkg_spec' => $item['pkg_spec'] ?? '',
|
|
|
'prepn_spec' => $item['prepn_spec'] ?? '',
|
|
'prepn_spec' => $item['prepn_spec'] ?? '',
|
|
|
'pkg_ratio_list' => json_encode($item['pkg_ratio_list'] ?? [], JSON_UNESCAPED_UNICODE),
|
|
'pkg_ratio_list' => json_encode($item['pkg_ratio_list'] ?? [], JSON_UNESCAPED_UNICODE),
|
|
|
- 'sealed_report_url' => $item['sealed_report_url'] ?? '',
|
|
|
|
|
|
|
+ 'seal_report_url' => $item['sealed_report_url'] ?? '',
|
|
|
'seal_raw_data' => json_encode($item ?? [], JSON_UNESCAPED_UNICODE),
|
|
'seal_raw_data' => json_encode($item ?? [], JSON_UNESCAPED_UNICODE),
|
|
|
];
|
|
];
|
|
|
}, $data);
|
|
}, $data);
|
|
@@ -329,6 +329,8 @@ class SyncSealDrugReportService
|
|
|
protected function correctDrugReportOptHistory(array $data): array
|
|
protected function correctDrugReportOptHistory(array $data): array
|
|
|
{
|
|
{
|
|
|
return array_map(function ($item) {
|
|
return array_map(function ($item) {
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
return [
|
|
return [
|
|
|
'batch_no' => $item['batch_no'] ?? '',
|
|
'batch_no' => $item['batch_no'] ?? '',
|
|
|
'drug_id' => $item['drug_id'] ?? '',
|
|
'drug_id' => $item['drug_id'] ?? '',
|