{foreach from=$list_fields_array item=name key=key} {strparse var=fmt value=$name} {/foreach} {foreach from=$ls item=row} {foreach from=$list_fields_array item=name key=key name=listeach} {strparse var=fmt value=$name} {if $key == "list_no" OR $smarty.foreach.listeach.first} {elseif $key == "module_name"} {elseif $key == "branch_id"} {elseif $key == "storehouse_id"} {elseif $key == "approved"} {elseif in_array($key,array("create_date","assign_date","logistics_start_time","logistics_end_time"))} {else} {/if} {/foreach} {/foreach}
{$sort.$key|default:$fmt.title}
{$row.$key} {$category_array[$row.module]}{$branch_array[$row.branch_id]}{if $row.module == "maintainstock" && $row.storehouse_id ==0}员工库{else}{$storehouse_array[$row.storehouse_id]}{/if} {if $row.approved==0}待审核{elseif $row.locked}已锁定{elseif $row.checkin}已入账{elseif $row.abort}已取消{elseif $row.approved}已审核{/if} {$row.$key|local_date:8:5}{$row.$key}
{*} {if $smarty.request.list_status < 50 && $smarty.request.list_status >= 10}
{if check_acl("storeapply.list")}{/if} {if check_acl("storein.list")}{/if} {if check_acl("prequest.list")}{/if} {if check_acl("purchasing.list")}{/if} {if check_acl("brequest.list")}{/if} {if check_acl("sell.list")}{/if} {if check_acl("badrecycle.list")}{/if}
{/if} {*}