{extend name="../../admin/view/main"} {block name="button"}
{if isset($type) and $type eq 'index'}
{else}
{/if}
{/block} {block name="content"}

{foreach ['index'=>'商品管理','recycle'=>'回 收 站'] as $k=>$v} {if isset($type) and $type eq $k}
- {$v}
{else}
- {$v}
{/if}{/foreach}

{include file='shop/goods/index_search'}

{notempty name='list'}
|  | 商品信息 |  | 商品状态 |
--- | --- | --- | --- | --- | ---
{/notempty}
{foreach $list as $key=>$vo}

{notempty name='vo.cover'}
{/notempty}
商品名称：{$vo.name|default='--'}
商品编号：{$vo.code|default='--'}

{notempty name='vo.marks'}{foreach $vo.marks as $mark} {$mark} {/foreach}{/notempty}
{notempty name='vo.cateinfo'} {:join('', $vo.cateinfo.names)} {/notempty}

累计库存 {$vo.stock_total} 件，剩余库存 {$vo.stock_total-$vo.stock_sales} 件 ( 已销售 {$vo.stock_sales} 件 )
{eq name='vo.status' value='0'}已下架{else}销售中{/eq} {eq name='vo.vip_entry' value='0'}非入会礼包{else}是入会礼包{/eq} {eq name='vo.truck_type' value='0'}无需发货{else}需要发货{/eq} {eq name='vo.rebate_type' value='0'}非返利商品{else}是返利商品{/eq}

复 制 编 辑 编 辑 {if isset($type) and $type eq 'index'} {if isset($vo.status) and $vo.status eq 1} 下 架 下 架 {else} 上 架 上 架 {/if} 入 库 入 库 删 除 {else} 恢 复 {/if}

{/foreach}

{empty name='list'}没有记录哦{else}{$pagehtml|raw|default=''}{/empty}
{/block}