Commit 5c5eb12f by 杨树贤

优化性能

parent 1cd2513c
......@@ -233,6 +233,7 @@ class SkuApiController extends Controller
'futures_cp_time_day' => $request->input('futures_cp_time_day'),
];
if (empty($cpTimeData['cp_time_day']) && $cpTimeData['day_type'] == 1) {
$this->response(-1, '货期有效期天数不能为0');
}
......
......@@ -153,6 +153,8 @@ class SkuController extends Controller
$supplier = $supplier->toArray();
$supplierCodes[$supplier['supplier_code']] = $supplier['supplier_name'] . '(' . $supplier['supplier_code'] . ')';
}
$supplierData = SupplierService::getSupplierCodeListForXmSelect();
$this->data['supplierData'] = $supplierData;
$this->data['title'] = '商品有效期配置';
$this->data['supplierCodes'] = $supplierCodes;
return $this->view('商品有效期配置');
......
......@@ -19,9 +19,8 @@
</div>
<div class="layui-form-item" style="display: none" id="supplier_code_div">
<div class="layui-inline" style="margin-left: 73px;">
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('supplier_code','供应商编码',null,
$supplierCodes,['required'=>true,'width'=>'350px']) !!}
@inject('multiSelectorPresenter','App\Presenters\MultiSelectorPresenter')
{!! $multiSelectorPresenter->render('supplier_code','供应商选择','',$supplierData,['required'=>true,'radio'=>'true','width'=>'400px']) !!}
</div>
</div>
<div class="layui-form-item">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment