仓库细节优化
parent
e7d74fa2f6
commit
7baa2d4938
|
|
@ -80,7 +80,8 @@ class WarehouseGoods extends Common
|
|||
$data_params = [
|
||||
'field' => 'id,name',
|
||||
'where' => [
|
||||
'is_enable' => 1,
|
||||
'is_enable' => 1,
|
||||
'is_delete_time' => 0,
|
||||
],
|
||||
];
|
||||
$warehouse = WarehouseService::WarehouseList($data_params);
|
||||
|
|
|
|||
|
|
@ -150,10 +150,10 @@ class Warehousegoods
|
|||
public function WarehouseList()
|
||||
{
|
||||
$result = [];
|
||||
$ids = Db::name('WarehouseGoods')->column('warehouse_id');
|
||||
$ids = array_unique(Db::name('WarehouseGoods')->column('warehouse_id'));
|
||||
if(!empty($ids))
|
||||
{
|
||||
$result = Db::name('Warehouse')->field('id,name')->where(['id'=>$ids])->select();
|
||||
$result = Db::name('Warehouse')->field('id,name')->where(['id'=>$ids, 'is_delete_time'=>0])->select();
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,4 +6,12 @@
|
|||
<a href="{{:MyUrl('admin/warehouse/saveinfo')}}" class="am-btn am-btn-secondary am-radius am-btn-xs am-icon-plus"> 新增</a>
|
||||
<!-- 父级内容 -->
|
||||
{__block__}
|
||||
{{/block}}
|
||||
|
||||
{{block name="form_extend"}}
|
||||
<div class="am-alert am-alert-warning" data-am-alert>
|
||||
<button type="button" class="am-close">×</button>
|
||||
<p>1. 权重(数值越大权重越高、扣除库存按照权重依次扣除)</p>
|
||||
<p>2. 删除(数据仅软删除、删除后仓库将不可用、仅数据库中保留数据)</p>
|
||||
</div>
|
||||
{{/block}}
|
||||
|
|
@ -35,6 +35,9 @@ web端
|
|||
15. 商品详情二维码改为静态、更容易适配各种服务器环境
|
||||
16. 后台首页新增收益走势
|
||||
|
||||
小程序
|
||||
1. 微信小程序支持分享到朋友圈
|
||||
|
||||
插件
|
||||
1. 分销插件新增返积分模块、海报高清
|
||||
2. 微信小程序直播分享海报高清
|
||||
|
|
|
|||
Loading…
Reference in New Issue