|
@@ -53,7 +53,7 @@
|
|
min-width: 883% !important;
|
|
min-width: 883% !important;
|
|
max-height: 280px !important;
|
|
max-height: 280px !important;
|
|
padding: 14px 0 !important;
|
|
padding: 14px 0 !important;
|
|
- left: -599px !important;
|
|
|
|
|
|
+ left: 0 !important;
|
|
}
|
|
}
|
|
.layui-form-select {
|
|
.layui-form-select {
|
|
width: 45%;
|
|
width: 45%;
|
|
@@ -123,52 +123,28 @@
|
|
</div>
|
|
</div>
|
|
<div class="fixed-empty"></div>
|
|
<div class="fixed-empty"></div>
|
|
<form method="get" action="index.php" name="formSearch" id="formSearch">
|
|
<form method="get" action="index.php" name="formSearch" id="formSearch">
|
|
- <input type="hidden" name="act" value="order_search"/>
|
|
|
|
- <input type="hidden" name="op" value="index"/>
|
|
|
|
|
|
+ <input type="hidden" name="act" value="orderstats"/>
|
|
|
|
+ <input type="hidden" name="op" value="refill_task"/>
|
|
<table class="tb-type1 noborder search">
|
|
<table class="tb-type1 noborder search">
|
|
<tr>
|
|
<tr>
|
|
- <th><label for="query_start_time">下单时间</label></th>
|
|
|
|
- <td style="width: 327px">
|
|
|
|
- <input class="txt date" type="text" value="<?php echo $_GET['query_start_time']; ?>"
|
|
|
|
- id="startTime" name="query_start_time" autocomplete="off" style="width:120px" />
|
|
|
|
- <label for="query_start_time">~</label>
|
|
|
|
- <input class="txt date" type="text" value="<?php echo $_GET['query_end_time']; ?>"
|
|
|
|
- id="endTime" name="query_end_time" autocomplete="off" style="width:120px" />
|
|
|
|
- </td>
|
|
|
|
- <th><label>订单状态</label></th>
|
|
|
|
- <td class="layui-form type">
|
|
|
|
- <select name="order_state" class="querySelect">
|
|
|
|
- <option value=""><?php echo $lang['nc_please_choose']; ?></option>
|
|
|
|
- <option value="10"
|
|
|
|
- <?php if ($_GET['order_state'] == '10'){ ?>selected<?php } ?>><?php echo $lang['order_state_new']; ?></option>
|
|
|
|
- <option value="20"
|
|
|
|
- <?php if ($_GET['order_state'] == '20'){ ?>selected<?php } ?>><?php echo $lang['order_state_pay']; ?></option>
|
|
|
|
- <option value="30"
|
|
|
|
- <?php if ($_GET['order_state'] == '30'){ ?>selected<?php } ?>><?php echo $lang['order_state_send']; ?></option>
|
|
|
|
- <option value="40"
|
|
|
|
- <?php if ($_GET['order_state'] == '40'){ ?>selected<?php } ?>><?php echo $lang['order_state_success']; ?></option>
|
|
|
|
- <option value="0"
|
|
|
|
- <?php if ($_GET['order_state'] == '0'){ ?>selected<?php } ?>><?php echo $lang['order_state_cancel']; ?></option>
|
|
|
|
- </select>
|
|
|
|
- </td>
|
|
|
|
<th><label>主体类型</label></th>
|
|
<th><label>主体类型</label></th>
|
|
<td class="layui-form type">
|
|
<td class="layui-form type">
|
|
<select name="type" id="type" lay-filter="type">
|
|
<select name="type" id="type" lay-filter="type">
|
|
<option value="">请选择</option>
|
|
<option value="">请选择</option>
|
|
<?php foreach ($output['type'] as $key => $value){?>
|
|
<?php foreach ($output['type'] as $key => $value){?>
|
|
- <option value="<?php echo $key;?>"><?php echo $value;?></option>
|
|
|
|
|
|
+ <option value="<?php echo $key;?>" <?php if($_GET['type'] === $key) { echo 'selected'; }?>><?php echo $value;?></option>
|
|
<?php }?>
|
|
<?php }?>
|
|
</select>
|
|
</select>
|
|
</td>
|
|
</td>
|
|
<th><label>主体选择</label></th>
|
|
<th><label>主体选择</label></th>
|
|
<td class="layui-form selection">
|
|
<td class="layui-form selection">
|
|
- <select name="cid" id="selection" lay-search></select>
|
|
|
|
|
|
+ <select name="cid" id="cid" lay-filter="cid" lay-search></select>
|
|
</td>
|
|
</td>
|
|
- <!-- <td>
|
|
|
|
|
|
+ <td>
|
|
<a href="javascript:void(0);" id="ncsubmit" class="btn-search "
|
|
<a href="javascript:void(0);" id="ncsubmit" class="btn-search "
|
|
title="<?php echo $lang['nc_query']; ?>">
|
|
title="<?php echo $lang['nc_query']; ?>">
|
|
</a>
|
|
</a>
|
|
- </td> -->
|
|
|
|
|
|
+ </td>
|
|
</tr>
|
|
</tr>
|
|
</table>
|
|
</table>
|
|
</form>
|
|
</form>
|
|
@@ -181,6 +157,7 @@
|
|
<th class="align-center">任务类型</th>
|
|
<th class="align-center">任务类型</th>
|
|
<th class="align-center">主体类型</th>
|
|
<th class="align-center">主体类型</th>
|
|
<th class="align-center">主体ID</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>
|
|
@@ -199,14 +176,34 @@
|
|
<td class="align-center"><?php echo $output['task_type'][$value['task_type']]; ?></td>
|
|
<td class="align-center"><?php echo $output['task_type'][$value['task_type']]; ?></td>
|
|
<td class="align-center"><?php echo $output['type'][$value['type']]; ?></td>
|
|
<td class="align-center"><?php echo $output['type'][$value['type']]; ?></td>
|
|
<td class="align-center"><?php echo $value['cid']; ?></td>
|
|
<td class="align-center"><?php echo $value['cid']; ?></td>
|
|
|
|
+ <td class="align-center"><?php echo $value['cname']; ?></td>
|
|
<td class="align-center">
|
|
<td class="align-center">
|
|
-
|
|
|
|
|
|
+ <p>统计日期类型:<?php echo $output['order_time_type'][$value['condition']['order_time_type']];?></p>
|
|
|
|
+ <p>
|
|
|
|
+ 统计日期范围:<?php echo date("Y-m-d H:i:s", $value['condition']['start_unixtime'])?>
|
|
|
|
+ <?php if (!empty($value['condition']['end_unixtime'])) {
|
|
|
|
+ echo '~' . date("Y-m-d H:i:s", $value['condition']['end_unixtime']);
|
|
|
|
+ }
|
|
|
|
+ ?>
|
|
|
|
+ </p>
|
|
|
|
+ <p>订单状态:
|
|
|
|
+ <?php if ($value['condition']['order_state'] === '') {
|
|
|
|
+ echo '/';
|
|
|
|
+ } else {
|
|
|
|
+ echo orderState($value['condition']);
|
|
|
|
+ }
|
|
|
|
+ ?>
|
|
|
|
+ </p>
|
|
</td>
|
|
</td>
|
|
<td class="align-center"><?php echo $output['task_state'][$value['task_state']]; ?></td>
|
|
<td class="align-center"><?php echo $output['task_state'][$value['task_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['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['dispose_time'] ? date('Y-m-d H:i:s', $value['dispose_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 echo $value['finish_time'] ? date('Y-m-d H:i:s', $value['finish_time']) : '/'; ?></td>
|
|
- <td class="align-center"></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 }?>
|
|
|
|
+ </td>
|
|
</tr>
|
|
</tr>
|
|
<?php } ?>
|
|
<?php } ?>
|
|
<?php } else { ?>
|
|
<?php } else { ?>
|
|
@@ -235,6 +232,7 @@
|
|
<script type="text/javascript" src="<?php echo ADMIN_TEMPLATES_URL;?>/layui/layui.js"></script>
|
|
<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"/>
|
|
<link rel="stylesheet" type="text/css" href="<?php echo ADMIN_TEMPLATES_URL; ?>/layui/css/layui.css"/>
|
|
<script type="text/javascript">
|
|
<script type="text/javascript">
|
|
|
|
+
|
|
$(function () {
|
|
$(function () {
|
|
$('#ncsubmit').click(function () {
|
|
$('#ncsubmit').click(function () {
|
|
$('#formSearch').submit();
|
|
$('#formSearch').submit();
|
|
@@ -268,11 +266,55 @@
|
|
$(this).css('color', 'red')
|
|
$(this).css('color', 'red')
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- //主体选择
|
|
|
|
|
|
+
|
|
|
|
+ let selectValue = ''
|
|
|
|
+ let selectRes = {}
|
|
|
|
+
|
|
|
|
+ let selectNew = $("#cid").next().find("input")
|
|
|
|
+
|
|
|
|
+ for (let i = 0; i < selectRes.length; i++) {
|
|
|
|
+ if (selectRes[i].value == selectValue) {
|
|
|
|
+ console.log(selectValue, 12333);
|
|
|
|
+ $(selectNew).val(selectRes[i].value)
|
|
|
|
+ selectRes[i].selected = true
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ //主体选择
|
|
layui.use(['form'], function () {
|
|
layui.use(['form'], function () {
|
|
let form = layui.form;
|
|
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) {
|
|
|
|
+ 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 {
|
|
|
|
+ $('#cid').html('');
|
|
|
|
+ form.render('select')
|
|
|
|
+ }
|
|
form.on('select(type)', function (data) {
|
|
form.on('select(type)', function (data) {
|
|
let form_type = data.value;
|
|
let form_type = data.value;
|
|
|
|
+ selectValue = data.value
|
|
form.render('select')
|
|
form.render('select')
|
|
if (form_type === 'merchant') {
|
|
if (form_type === 'merchant') {
|
|
$.get('index.php?act=refill_order&op=merchant_data', function(res) {
|
|
$.get('index.php?act=refill_order&op=merchant_data', function(res) {
|
|
@@ -282,22 +324,32 @@
|
|
html += `<option value="${item.value}">${item.name}</option>`;
|
|
html += `<option value="${item.value}">${item.name}</option>`;
|
|
})
|
|
})
|
|
let select_type = `<select>${html}</select>`
|
|
let select_type = `<select>${html}</select>`
|
|
- $('#selection').html(select_type);
|
|
|
|
|
|
+ $('#cid').html(select_type);
|
|
form.render('select')
|
|
form.render('select')
|
|
|
|
+
|
|
})
|
|
})
|
|
} else if (form_type === 'provider'){
|
|
} else if (form_type === 'provider'){
|
|
$.get('index.php?act=refill_order&op=provider_data', function(res) {
|
|
$.get('index.php?act=refill_order&op=provider_data', function(res) {
|
|
- res = JSON.parse(res)
|
|
|
|
|
|
+ res = JSON.parse(res)
|
|
|
|
+ selectRes = res
|
|
let html = '';
|
|
let html = '';
|
|
res.forEach(item => {
|
|
res.forEach(item => {
|
|
html += `<option value="${item.value}">${item.name}</option>`;
|
|
html += `<option value="${item.value}">${item.name}</option>`;
|
|
})
|
|
})
|
|
let select_type = `<select>${html}</select>`
|
|
let select_type = `<select>${html}</select>`
|
|
- $('#selection').html(select_type);
|
|
|
|
|
|
+ $('#cid').html(select_type);
|
|
|
|
+ form.on('select(cid)', function (data) {
|
|
|
|
+ let form_type = data.value;
|
|
|
|
+ console.log('xuang',form_type);
|
|
|
|
+ $("#cid dl").find("dd[lay-value=" +form_type+"]").attr("selected",true);
|
|
form.render('select')
|
|
form.render('select')
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+ form.render('select')
|
|
|
|
+
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
- $('#selection').html('');
|
|
|
|
|
|
+ $('#cid').html('');
|
|
form.render('select')
|
|
form.render('select')
|
|
}
|
|
}
|
|
})
|
|
})
|