作者 王智

修复生成订单号 失败

... ... @@ -95,8 +95,8 @@ class Order extends Model
}
public function batterycode()
{
return $this->belongsTo('BatteryCode', 'battery_id', 'id', [], 'LEFT')->setEagerlyType(0);
}
// public function batterycode()
// {
// return $this->belongsTo('BatteryCode', 'battery_id', 'id', [], 'LEFT')->setEagerlyType(0);
// }
}
... ...
... ... @@ -29,7 +29,6 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
{field: 'OrderSn', title: __('Ordersn'), operate: 'LIKE'},
// {field: 'stor_id', title: __('Stor_id')},
// {field: 'user_id', title: __('User_id')},
// {field: 'battery_id', title: __('Battery_id')},
{field: 'stor.name', title: __('Stor.name'), operate: 'LIKE'},
{field: 'user.nickname', title: __('User.nickname'), operate: 'LIKE'},
{field: 'user.avatar', title: __('User.avatar'), operate: 'LIKE', events: Table.api.events.image, formatter: Table.api.formatter.image},
... ...