Browse Source

修复行业产品订单报错

master
李可松 4 years ago
parent
commit
34afa64f09
  1. 10
      app/AdminAgent/Controllers/IndustryOrderController.php
  2. 4
      app/AdminSupplier/Controllers/IndustryOrderController.php

10
app/AdminAgent/Controllers/IndustryOrderController.php

@ -68,11 +68,11 @@ class IndustryOrderController extends AdminController
->display('查看')
->modal('购买信息', function ($model) {
$info = [
'预留姓名' => $this->name ?? '',
'预留手机' => $this->mobile ?? '',
'产品名称' => $this->title,
'规格名称' => $this->spec->name ?? '',
'规格日期' => $this->spec->date ?? '',
['预留姓名', $this->name ?? ''],
['预留手机', $this->mobile ?? ''],
['产品名称', $this->title],
['规格名称', $this->spec->name ?? ''],
['规格日期', $this->spec->date ?? ''],
];
return Table::make([], $info);
});

4
app/AdminSupplier/Controllers/IndustryOrderController.php

@ -62,8 +62,8 @@ class IndustryOrderController extends AdminController
->display('查看')
->modal('规格信息', function ($model) {
$info = [
'规格名称' => $this->spec->name ?? '',
'规格日期' => $this->spec->date ?? '',
['规格名称', $this->spec->name ?? ''],
['规格日期', $this->spec->date ?? ''],
];
return Table::make([], $info);
});

Loading…
Cancel
Save