You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pdd-order-api/app/views/page/admin/batch/task_goods.php

129 lines
5.0 KiB
PHP

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<div>
<div class="pd_10 bg-ivory clearfix mt_10 mb_10">
<?php echo ZcHtmlHelper::drawForm('goodsSearch', Zc::url(AdminRouteConst::adminBatchTaskGoods), 'get', 'class="form-inline"');?>
<div class="sub-menu clearfix">
<!-- Select Basic -->
<div class="inline form-inline mr_20">
<div class="form-group">
<label for="mallId">MallId</label>
<input type="text" class="form-control span2" name="mallId" value="<?php echo $filter['mallId'];?>">
</div>
</div>
<div class="form-group mr_15">
<label class="control-label" for="selectbasic">类型:</label>
<?php
$batchTypeMap = BatchConst::getBatchTypeNameMap();
array_unshift($batchTypeMap, '全部');
echo ZcHtml::dropDownList('batchType', $filter['batchType'], $batchTypeMap, array('class' => 'form-control'));
?>
</div>
<div class="form-group mr_15">
<label class="control-label" for="selectbasic">状态:</label>
<?php
$optFilterDate = array(
array('id' => 'ALL', 'text' => '全部'),
array('id' => 'finish', 'text' => '修改完成'),
array('id' => 'wait', 'text' => '等待'),
array('id' => 'processing', 'text' => '处理中'),
array('id' => 'skip', 'text' => '被跳过'),
);
?>
<?php echo ZcHtmlHelper::drawSelectFiled('optFilterTaskStatus', $optFilterDate, $filter['status'], 'class="form-control"');?>
</div>
<div class="inline form-inline mr_20">
<div class="form-group">
<label for="mallId">总共运行时间:</label>
<input type="text" class="form-control" style="width: 90px;" name="startTotalSeconds" value="<?php echo $filter['startTotalSeconds'];?>" />
~
<input type="text" class="form-control" style="width: 90px;" name="endTotalSeconds" value="<?php echo $filter['endTotalSeconds'];?>" />
</div>
</div>
<div class="form-group">
<button type="submit"
class="btn btn-sm btn-primary J_searchGoodsBtn">
<span class="glyphicon glyphicon-search"></span>&nbsp;查询
</button>
</div>
</div>
<?php echo '</form>'?>
</div>
<div class="opt-goods-filter mb_10">
<div class="title-opt">
<table class="data-table">
<thead>
<tr>
<th class="text-left">MallId</th>
<th class="text-left">TaskId</th>
<th class="text-left ">商品统计</th>
<th class="text-left ">商品统计</th>
<th class="text-left">商品统计</th>
<th class="text-left">运行统计</th>
<th class="text-left">状态</th>
<th class="text-left">类型</th>
<th class="text-left">选择类型</th>
<th class="text-left">isFastModal</th>
</tr>
</thead>
<tbody>
<tr>
<td class="hide" colspan="8"></td>
</tr>
<?php foreach ($goodsList as $goods){?>
<tr>
<td class="text-left"><a href="<?php echo Zc::url(AdminRouteConst::adminMallMock, array('mallId' => $goods['mall_id'], 'appName' => AppConst::appPlds)); ?>" target="_blank"><?php echo $goods['mall_id'];?><br/><?php echo $goods['shop_name'];?></a></td>
<td class="force-middle text-left">
<?php echo $goods['batch_task_id'];?>
</td>
<td class="force-middle text-left" style="line-height:20px;">
预览商品数:<?php echo $goods['preview_goods_count'];?><br />
商品数: <?php echo $goods['goods_count'];?>
</td>
<td class="force-middle text-left" style="line-height:20px;">
成功数:<?php echo $goods['success_count'];?><br />
失败数:<span class="fm-georgia red"><?php echo $goods['fail_count'];?></span>
</td>
<td class="force-middle text-left" style="line-height:20px;">
已被删除数:<?php echo $goods['delete_count'];?><br />
跳过相同数: <?php echo $goods['skip_count'];?>
</td>
<td class="force-middle text-left" style="line-height:20px;">
等待解压秒数:<?php echo $goods['wait_parse_seconds'];?><br />
解压秒数:<?php echo $goods['parse_seconds'];?><br />
总共秒数: <?php echo $goods['total_seconds'];?><br />
</td>
<td class="force-middle text-left">
<?php echo $goods['status'];?>
</td>
<td class="text-left"><?php echo $goods['type'];?></br><?php echo $goods['gmt_create'];?></br><?php echo $goods['gmt_modified'];?></td>
<td class="text-left"><?php echo $goods['choose_type'];?></td>
<?php $condition = unserialize($goods['condition']);?>
<td class="text-left"><?php echo empty($condition['isFastMode']) ? 0 : 1;?></td>
</tr>
<?php }?>
<?php if(empty($goodsList)){?>
<tr>
<td colspan="10"><p class="text-center pd_10">没有记录</p></td>
</tr>
<?php }?>
</tbody>
</table>
<?php if($pagination){?>
<div class="pull-right mt_10">
<?php echo $pagination->renderLinks();?>
</div>
<?php }?>
</div>
</div>
</div>
<?php echo HtmlTool::getStaticCommonFile('biz/admin/goods_batch.js?' . TsConst::jsAdminGoodsBatch);?>