|
|
@@ -78,6 +78,8 @@ class Product extends Controller
|
|
|
$result['data'][$key]['product_specs'] = $product_specs ? array_filter($product_specs) : '';
|
|
|
$sampling_cycle = isset($value['sampling_cycle']) ? explode(',', $value['sampling_cycle']) : '';
|
|
|
$result['data'][$key]['sampling_cycle'] = $sampling_cycle ? array_filter($sampling_cycle) : '';
|
|
|
+ $round_number_config = isset($value['round_number_config']) ? explode(',', $value['round_number_config']) : '';
|
|
|
+ $result['data'][$key]['round_number_config'] = $round_number_config ? array_filter($round_number_config) : '';
|
|
|
}
|
|
|
}
|
|
|
// 加载模板
|
|
|
@@ -216,6 +218,8 @@ class Product extends Controller
|
|
|
$data->product_specs = $product_specs ? array_filter($product_specs) : '';
|
|
|
$sampling_cycle = isset($data->sampling_cycle) ? explode(',', $data->sampling_cycle) : '';
|
|
|
$data->sampling_cycle = $sampling_cycle ? array_filter($sampling_cycle) : '';
|
|
|
+ $round_number_config = isset($data->round_number_config) ? explode(',', $data->round_number_config) : '';
|
|
|
+ $data->round_number_config = $round_number_config ? array_filter($round_number_config) : '';
|
|
|
// 加载模板
|
|
|
return json_send(['code' => 'success', 'msg' => '获取成功', 'data' => $data]);
|
|
|
}
|
|
|
@@ -254,6 +258,8 @@ class Product extends Controller
|
|
|
$sampling_end_time = request('sampling_end_time', '');
|
|
|
$round_number = request('round_number', 1);
|
|
|
$is_multiple_accounts = request('is_multiple_accounts', 0);
|
|
|
+ $round_number_config = request('round_number_config', '');
|
|
|
+ $all_data['round_number_config'] = !empty($round_number_config) ? json_encode($round_number_config):'';
|
|
|
$all_data['is_multiple_accounts'] = $is_multiple_accounts;
|
|
|
$all_data['round_number'] = $round_number;
|
|
|
$all_data['sampling_cycle'] = $sampling_cycle;
|
|
|
@@ -367,6 +373,8 @@ class Product extends Controller
|
|
|
$sampling_end_time = request('sampling_end_time', '');
|
|
|
$round_number = request('round_number', 1);
|
|
|
$is_multiple_accounts = request('is_multiple_accounts', 0);
|
|
|
+ $round_number_config = request('round_number_config', '');
|
|
|
+ $all_data['round_number_config'] = !empty($round_number_config) ? json_encode($round_number_config):'';
|
|
|
$all_data['is_multiple_accounts'] = $is_multiple_accounts;
|
|
|
$all_data['round_number'] = $round_number;
|
|
|
$all_data['sampling_cycle'] = $sampling_cycle;
|