|
@@ -124,22 +124,18 @@
|
|
|
<form method="get" action="index.php" name="formSearch" id="formSearch">
|
|
|
<input type="hidden" name="act" value="orderstats"/>
|
|
|
<input type="hidden" name="op" value="refill_task"/>
|
|
|
- <input type="hidden" name="cid_type" value=""/>
|
|
|
- <input type="hidden" name="default_cid_type" value="<?php echo $_GET['cid_type']; ?>"/>
|
|
|
<table class="tb-type1 noborder search">
|
|
|
<tr>
|
|
|
- <th><label>主体类型</label></th>
|
|
|
- <td class="layui-form type">
|
|
|
- <select name="type" id="type" lay-filter="type">
|
|
|
- <option value="">请选择</option>
|
|
|
- <?php foreach ($output['type'] as $key => $value){?>
|
|
|
- <option value="<?php echo $key;?>" <?php if($_GET['type'] === $key) { echo 'selected'; }?>><?php echo $value;?></option>
|
|
|
- <?php }?>
|
|
|
- </select>
|
|
|
- </td>
|
|
|
- <th><label>主体选择</label></th>
|
|
|
- <td class="layui-form selection">
|
|
|
- <select name="cid" id="cid" lay-filter="cid" lay-search></select>
|
|
|
+ <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 "
|
|
@@ -156,7 +152,7 @@
|
|
|
<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>
|
|
@@ -172,8 +168,8 @@
|
|
|
<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['task_type']]; ?></td>
|
|
|
- <td class="align-center">
|
|
|
+ <td class="align-center"><?php echo $output['task_type'][$value['type']]; ?></td>
|
|
|
+<!-- <td class="align-center">-->
|
|
|
<!-- --><?php //if(!empty($value['condition']['refill_order.order_time'])) { ?>
|
|
|
<!-- <p>统计日期范围:-->
|
|
|
<!-- --><?php //echo date("Y-m-d H:i:s", $value['condition']['refill_order.order_time'][0][1]) ?? '/';?>
|
|
@@ -188,14 +184,18 @@
|
|
|
// }
|
|
|
// ?>
|
|
|
<!-- </p>-->
|
|
|
- </td>
|
|
|
- <td class="align-center"><?php echo $output['task_state'][$value['task_state']]; ?></td>
|
|
|
+<!-- </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['dispose_time'] ? date('Y-m-d H:i:s', $value['dispose_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['task_state'] == 3 && !empty($value['task_result'])){?>
|
|
|
- <a target="_blank" href="<?php echo UPLOAD_SITE_URL . '/' . ATTACH_TASK . DS . $value['task_result']; ?>">下载</a>
|
|
|
+ <?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">
|
|
@@ -229,16 +229,8 @@
|
|
|
<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">
|
|
|
- let selectValue = ''
|
|
|
- let Interface
|
|
|
- let default_type = '<?php echo $_GET['type'];?>';
|
|
|
- // console.log(default_type, 'type');
|
|
|
- let default_cid_m = '<?php echo $_GET['cid'];?>';
|
|
|
- // console.log(default_cid_m);
|
|
|
-
|
|
|
$(function () {
|
|
|
$('#ncsubmit').click(function () {
|
|
|
- $('input[name="cid_type"]').val(selectValue);
|
|
|
$('#formSearch').submit();
|
|
|
});
|
|
|
$('#query_start_time').datepicker({dateFormat: 'yy-mm-dd'});
|
|
@@ -270,102 +262,5 @@
|
|
|
$(this).css('color', 'red')
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- //主体选择
|
|
|
- layui.use(['form'], function () {
|
|
|
- let form = layui.form;
|
|
|
- let default_type = $('select[name="type"]').val();
|
|
|
- if (default_type === 'merchant') {
|
|
|
- $.get('index.php?act=refill_order&op=merchant_data', function(res) {
|
|
|
- res = JSON.parse(res)
|
|
|
- let html = '';
|
|
|
- res.forEach(item => {
|
|
|
- html += `<option value="${item.value}">${item.name}</option>`;
|
|
|
- })
|
|
|
- let select_type = `<select>${html}</select>`
|
|
|
- $('#cid').html(select_type);
|
|
|
- form.render('select')
|
|
|
- })
|
|
|
- } else if (default_type === 'provider'){
|
|
|
- $.get('index.php?act=refill_order&op=provider_data', function(res) {
|
|
|
- selectRes = JSON.parse(res)
|
|
|
- let html = '';
|
|
|
- selectRes.forEach(item => {
|
|
|
- html += `<option value="${item.value}">${item.name}</option>`;
|
|
|
- })
|
|
|
- let select_type = `<select>${html}</select>`
|
|
|
- $('#cid').html(select_type);
|
|
|
- let default_cid_type = $('input[name="default_cid_type"]').val()
|
|
|
- console.log(default_cid_type, '隐藏');
|
|
|
- if (default_cid_type) {
|
|
|
- for (let i = 0; i < selectRes.length; i++) {
|
|
|
- // let html = '';
|
|
|
- if(selectRes[i].value == default_cid_type) {
|
|
|
- console.log(selectRes[i].value, '接口的valie');
|
|
|
- selectRes[i].selected = true
|
|
|
- // html = `<option value="${selectRes[i].value }">${selectRes[i].name }</option>`;
|
|
|
- // let select_type = `<select>${html}</select>`
|
|
|
- // electRes[i].selected = true
|
|
|
- // var select = 'dd[lay-value=' + selectRes[i].value + ']';// 设置value
|
|
|
- // $("#cid").find("option[value="+selectRes[i].value+"]").prop("selected",true);
|
|
|
- // let as = $('#cid').siblings("div.layui-form-select").find('dl').find(select).click()
|
|
|
- form.render('select')
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- form.render('select')
|
|
|
- })
|
|
|
- form.on('select(cid)', function (data) {
|
|
|
- let form_type = data.value;
|
|
|
- selectValue = data.value
|
|
|
- form.render('select')
|
|
|
-
|
|
|
- })
|
|
|
- } else {
|
|
|
- $('#cid').html('');
|
|
|
- form.render('select')
|
|
|
- }
|
|
|
- form.on('select(type)', function (data) {
|
|
|
- let form_type = data.value;
|
|
|
- form.render('select')
|
|
|
- if (form_type === 'merchant') {
|
|
|
- $.get('index.php?act=refill_order&op=merchant_data', function(res) {
|
|
|
- res = JSON.parse(res)
|
|
|
- let html = '';
|
|
|
- res.forEach(item => {
|
|
|
- html += `<option value="${item.value}">${item.name}</option>`;
|
|
|
- })
|
|
|
- let select_type = `<select>${html}</select>`
|
|
|
- $('#cid').html(select_type);
|
|
|
- form.render('select')
|
|
|
-
|
|
|
- })
|
|
|
- } else if (form_type === 'provider'){
|
|
|
- $.get('index.php?act=refill_order&op=provider_data', function(res) {
|
|
|
- res = JSON.parse(res)
|
|
|
- let html = '';
|
|
|
- res.forEach(item => {
|
|
|
- html += `<option value="${item.value}">${item.name}</option>`;
|
|
|
- })
|
|
|
- let select_type = `<select>${html}</select>`
|
|
|
- $('#cid').html(select_type);
|
|
|
- form.render('select')
|
|
|
- })
|
|
|
- form.on('select(cid)', function (data) {
|
|
|
- let form_type = data.value;
|
|
|
- selectValue = data.value
|
|
|
- form.render('select')
|
|
|
-
|
|
|
- })
|
|
|
- } else {
|
|
|
- $('#cid').html('');
|
|
|
- form.render('select')
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
});
|
|
|
</script>
|