123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248 |
- <style>
- th label {
- display: inline-block;
- width: 60px;
- margin-left: 10px;
- }
- .page .fixed-bar .item-title h3 {
- margin-top: 18px !important;
- margin-bottom: 10px !important;
- font-weight: 700 !important;
- }
- .tab-base li span {
- font-size: 12px !important;
- }
- .query_ors {
- width: 125px;
- }
- th label {
- display: inline-block;
- width: 60px;
- }
- .lineLi {
- min-width: 150px;
- font-size: 12px;
- color: #000;
- }
- #prompt ul .noLineLi {
- background: none;
- }
- #prompt div {
- display: inline-block;
- background: none
- }
- #prompt ul .lineLi {
- color: #000;
- }
- #selest_nc {
- width: 220px
- }
- tbody {
- font-size: 12px;
- }
- .layui-form-select .layui-input {
- padding: 13px 5px;
- }
- .selection .layui-form-selected dl {
- display: flex !important;
- flex-wrap: wrap !important;
- }
- .selection .layui-form-select dl {
- top: 29px !important;
- min-width: 883% !important;
- max-height: 280px !important;
- padding: 14px 0 !important;
- left: 0 !important;
- }
- .layui-form-select {
- width: 45%;
- }
- .layui-select-title {
- width: 104%;
- }
- .selection .layui-form-select .layui-input {
- padding-left: 11px;
- }
- .page .fixed-bar .item-title h3 {
- margin-top: 18px !important;
- margin-bottom: 10px !important;
- font-weight: 700 !important;
- }
- .tab-base li span {
- font-size: 12px !important;
- }
- .layui-form-select .layui-input {
- height: 26px;
- }
- input::placeholder {
- color: #333;
- }
- .xm-tips {
- color: #333 !important;
- font-size: 12px;
- }
- .layui-form-select dl dd.layui-this {
- display: none;
- }
- .layui-form-select dl dd {
- cursor: pointer;
- width: 130px;
- }
- .tb-type1 td select {
- width: 201px;
- }
- .tb-type1 td input[type="text"],
- .tb-type1 td select {
- margin-right: 4px;
- margin-left: 0;
- width: 195px;
- }
- .layui-form-select .layui-edge {
- right: -91px !important;
- }
- .type .layui-form-select dl {
- top: 29px !important;
- width: 214% !important;
- }
- </style>
- <?php defined('InShopNC') or exit('Access Invalid!'); ?>
- <div class="page">
- <div class="fixed-bar">
- <div class="item-title">
- <h3>任务列表</h3>
- <ul class="tab-base">
- <li><a href="JavaScript:void(0);" class="current"><span>任务列表</span></a></li>
- </ul>
- </div>
- </div>
- <div class="fixed-empty"></div>
- <form method="get" action="index.php" name="formSearch" id="formSearch">
- <input type="hidden" name="act" value="orderstats"/>
- <input type="hidden" name="op" value="index"/>
- <table class="tb-type1 noborder search">
- <tr>
- <th><label>处理状态</label></th>
- <td>
- <label>
- <select name="state">
- <option value=""><?php echo $lang['nc_please_choose']; ?></option>
- <?php foreach($output['task_state'] as $key => $value){?>
- <option value="<?php echo $key;?>" <?php if ($_GET['state'] == $key){ ?>selected<?php } ?>><?php echo $value;?></option>
- <?php }?>
- </select>
- </label>
- </td>
- <td>
- <a href="javascript:void(0);" id="ncsubmit" class="btn-search "
- title="<?php echo $lang['nc_query']; ?>">
- </a>
- </td>
- </tr>
- </table>
- </form>
- <table class="table tb-type2 nobdb">
- <thead>
- <tr class="thead">
- <th class="align-center">编号</th>
- <th class="align-center">任务ID</th>
- <th class="align-center">任务类型</th>
- <th class="align-center">标题</th>
- <th class="align-center">任务状态</th>
- <th class="align-center">生成日期</th>
- <th class="align-center">处理日期</th>
- <th class="align-center">完成日期</th>
- <th class="align-center">处理结果</th>
- <th class="align-center">操作</th>
- </tr>
- </thead>
- <tbody id="tbody">
- <?php if (count($output['list']) > 0) { ?>
- <?php
- foreach ($output['list'] as $key => $value) { ?>
- <tr class="hover trFlex">
- <td class="align-center"><?php echo $key + 1; ?></td>
- <td class="align-center"><?php echo $value['task_id']; ?></td>
- <td class="align-center"><?php echo $output['task_type'][$value['type']]; ?></td>
- <td class="align-center"><?php echo $value['title']; ?></td>
- <td class="align-center"><?php echo $output['task_state'][$value['state']]; ?></td>
- <td class="align-center"><?php echo $value['add_time'] ? date('Y-m-d H:i:s', $value['add_time']) : '/'; ?></td>
- <td class="align-center"><?php echo $value['act_time'] ? date('Y-m-d H:i:s', $value['act_time']) : '/'; ?></td>
- <td class="align-center"><?php echo $value['finish_time'] ? date('Y-m-d H:i:s', $value['finish_time']) : '/'; ?></td>
- <td class="align-center">
- <?php if($value['state'] == 3 && !empty($value['result'])){?>
- <?php if($value['result_state'] == 1){ ?>
- <a target="_blank" href="<?php echo UPLOAD_SITE_URL . '/' . ATTACH_TASK . DS . $value['result']; ?>">下载</a>
- <?php }else{
- echo $value['result'];
- }?>
- <?php }?>
- </td>
- <td class="align-center">
- <a href="index.php?act=task&op=task_del&task_id=<?php echo $value['task_id'] ?>">删除</a>
- </td>
- </tr>
- <?php } ?>
- <?php } else { ?>
- <tr class="no_data">
- <td colspan="13"><?php echo $lang['nc_no_record']; ?></td>
- </tr>
- <?php } ?>
- </tbody>
- <tfoot>
- <tr class="tfoot">
- <td colspan="13" id="dataFuncs">
- <div class="pagination"> <?php echo $output['show_page']; ?> </div>
- </td>
- </tr>
- </tfoot>
- </table>
- <!-- 预警提示 -->
- <audio id="auto" src="<?php echo RESOURCE_SITE_URL; ?>/warning.mp3"></audio>
- </div>
- <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/laydate/laydate.js"></script>
- <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/jquery-ui/jquery.ui.js"></script>
- <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/jquery-ui/i18n/zh-CN.js"
- charset="utf-8"></script>
- <link rel="stylesheet" type="text/css"
- href="<?php echo RESOURCE_SITE_URL; ?>/js/jquery-ui/themes/ui-lightness/jquery.ui.css"/>
- <script type="text/javascript" src="<?php echo ADMIN_TEMPLATES_URL;?>/layui/layui.js"></script>
- <link rel="stylesheet" type="text/css" href="<?php echo ADMIN_TEMPLATES_URL; ?>/layui/css/layui.css"/>
- <script type="text/javascript">
- $(function () {
- $('#ncsubmit').click(function () {
- $('#formSearch').submit();
- });
- $('#query_start_time').datepicker({dateFormat: 'yy-mm-dd'});
- $('#query_end_time').datepicker({dateFormat: 'yy-mm-dd'});
- // 日期选择器
- laydate.render({
- elem: '#startTime',
- type: 'datetime'
- });
- laydate.render({
- elem: '#endTime',
- type: 'datetime'
- });
- // 表格hover时背景
- $('.trFlex').each(function () {
- $(this).hover(function () {
- $(this)[0].style.backgroundColor = '#cbe9f3'
- }, function () {
- $(this)[0].style.backgroundColor = '#fff'
- })
- })
- // 供方名称颜色
- $('.textColor').each(function () {
- let color = $(this).attr('data-color')
- if (color == '1') {
- $(this).css('color', 'green')
- } else {
- $(this).css('color', 'red')
- }
- })
- });
- </script>
|