|
@@ -18,7 +18,7 @@
|
|
|
#prompt ul .lineLi {
|
|
|
color: #000;
|
|
|
}
|
|
|
- #selest_nc {
|
|
|
+ #select_nc {
|
|
|
width: 220px
|
|
|
}
|
|
|
#denomination {
|
|
@@ -158,7 +158,7 @@
|
|
|
</td>
|
|
|
<th><label>不包含客户</label></th>
|
|
|
<td>
|
|
|
- <div id="selest_nc"></div>
|
|
|
+ <div id="select_nc"></div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
@@ -581,58 +581,59 @@
|
|
|
<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 () {
|
|
|
+ $(function ()
|
|
|
+ {
|
|
|
let EntTime = localStorage.getItem('Endtime')
|
|
|
$('#endTime').val(EntTime)
|
|
|
localStorage.clear();
|
|
|
//查看
|
|
|
- $('#examine').click(function () {
|
|
|
- let order_id = $(this).attr('data-order')
|
|
|
- $.get('index.php?act=refill_order&op=refill_third_info',
|
|
|
- {
|
|
|
- order_id: order_id
|
|
|
- }, function (data) {
|
|
|
- data = JSON.parse(data)
|
|
|
- if (data.state == 1) {
|
|
|
- let contentArr = []
|
|
|
- contentArr.push(`单号:${data.data.order_sn}`)
|
|
|
- contentArr.push(`产品编码:${data.data.pcode}`)
|
|
|
- contentArr.push(`渠道编码:${data.data.chcode}`)
|
|
|
- contentArr.push(`充值数量:${data.data.quantity}`)
|
|
|
- if (data.data.user_account) {
|
|
|
- contentArr.push(`充值账号:${data.data.user_account}`)
|
|
|
- contentArr.push(`账号类型:${data.data.account_type_text}`)
|
|
|
- } else {
|
|
|
- contentArr.push(`卡密验证状态:${data.data.ret_state_text}`)
|
|
|
- contentArr.push(`卡密信息:${data.data.card_info}`)
|
|
|
- }
|
|
|
- let content = ''
|
|
|
- for (let index = 0; index < contentArr.length; index++) {
|
|
|
- content += `<p>${contentArr[index]}</p>`
|
|
|
- }
|
|
|
- layer.open({
|
|
|
- title: "查看",
|
|
|
- content: content
|
|
|
-
|
|
|
- });
|
|
|
-
|
|
|
- }
|
|
|
+ $('#examine').click(function () {
|
|
|
+ let order_id = $(this).attr('data-order')
|
|
|
+ $.get('index.php?act=refill_order&op=refill_third_info',
|
|
|
+ {
|
|
|
+ order_id: order_id
|
|
|
+ }, function (data) {
|
|
|
+ data = JSON.parse(data)
|
|
|
+ if (data.state == 1) {
|
|
|
+ let contentArr = []
|
|
|
+ contentArr.push(`单号:${data.data.order_sn}`)
|
|
|
+ contentArr.push(`产品编码:${data.data.pcode}`)
|
|
|
+ contentArr.push(`渠道编码:${data.data.chcode}`)
|
|
|
+ contentArr.push(`充值数量:${data.data.quantity}`)
|
|
|
+ if (data.data.user_account) {
|
|
|
+ contentArr.push(`充值账号:${data.data.user_account}`)
|
|
|
+ contentArr.push(`账号类型:${data.data.account_type_text}`)
|
|
|
+ } else {
|
|
|
+ contentArr.push(`卡密验证状态:${data.data.ret_state_text}`)
|
|
|
+ contentArr.push(`卡密信息:${data.data.card_info}`)
|
|
|
+ }
|
|
|
+ let content = ''
|
|
|
+ for (let index = 0; index < contentArr.length; index++) {
|
|
|
+ content += `<p>${contentArr[index]}</p>`
|
|
|
+ }
|
|
|
+ layer.open({
|
|
|
+ title: "查看",
|
|
|
+ content: content
|
|
|
+
|
|
|
+ });
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
})
|
|
|
- })
|
|
|
|
|
|
- //双击
|
|
|
- $('.doubleclick').dblclick(function () {
|
|
|
- let order_sn = $(this).attr('data-order')
|
|
|
- $.get('index.php?act=refill_order&op=showOrders', {
|
|
|
- order_sn: order_sn
|
|
|
- }, function (data) {
|
|
|
- data = JSON.parse(data)
|
|
|
- if (data.state == 1) {
|
|
|
- let order_item = data.data
|
|
|
- let html = '';
|
|
|
- for (let i = 0; i < order_item.length; i++) {
|
|
|
- let item = order_item[i];
|
|
|
- html += `
|
|
|
+ //双击
|
|
|
+ $('.doubleclick').dblclick(function () {
|
|
|
+ let order_sn = $(this).attr('data-order')
|
|
|
+ $.get('index.php?act=refill_order&op=showOrders', {
|
|
|
+ order_sn: order_sn
|
|
|
+ }, function (data) {
|
|
|
+ data = JSON.parse(data)
|
|
|
+ if (data.state == 1) {
|
|
|
+ let order_item = data.data
|
|
|
+ let html = '';
|
|
|
+ for (let i = 0; i < order_item.length; i++) {
|
|
|
+ let item = order_item[i];
|
|
|
+ html += `
|
|
|
<tr>
|
|
|
<td class="db-center">${item.order_sn}</td>
|
|
|
<td class="db-center">${item.commit_time_text}</td>
|
|
@@ -643,8 +644,8 @@
|
|
|
<td class="db-center">${item.err_msg}</td>
|
|
|
<td class="db-center">${item.close_reason}</td>
|
|
|
<tr> `
|
|
|
- }
|
|
|
- let content = `<table>
|
|
|
+ }
|
|
|
+ let content = `<table>
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th class="db-right">订单号</th>
|
|
@@ -659,348 +660,336 @@
|
|
|
</thead>
|
|
|
<tbody>${html}</tbody>
|
|
|
</table>`
|
|
|
- layer.open({
|
|
|
- title: `<span>共${data.count}单</span> <span class="db-top">回调状态:${data.mch_notify_state}</span> <span>回调次数:${data.mch_notify_times}</span>`,
|
|
|
- content: content
|
|
|
- });
|
|
|
- } else {
|
|
|
- alert("没有此订单");
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
- // 手动失败 成功
|
|
|
- $('#Manual #cancel').each(function (index, item) {
|
|
|
- $(item).click(function () {
|
|
|
- let order_id = $(this).attr("order_id")
|
|
|
- layer.confirm('您确实要手动失败', {
|
|
|
- btn: ['确定', '取消'],
|
|
|
- title: '手动失败'
|
|
|
- }, function () {
|
|
|
- window.location.href = `index.php?act=merchant&op=notify_manual_merchant&type=cancel&order_id= ${order_id}`
|
|
|
- }, function() {}
|
|
|
- )
|
|
|
+ layer.open({
|
|
|
+ title: `<span>共${data.count}单</span> <span class="db-top">回调状态:${data.mch_notify_state}</span> <span>回调次数:${data.mch_notify_times}</span>`,
|
|
|
+ content: content
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ alert("没有此订单");
|
|
|
+ }
|
|
|
+ })
|
|
|
})
|
|
|
- })
|
|
|
- // 手动成功
|
|
|
- $('#Manual #success').each(function (index, item) {
|
|
|
- $(item).click(function () {
|
|
|
- let order_id = $(this).attr("order_id")
|
|
|
- layer.confirm('您确实要手动成功', {
|
|
|
- btn: ['确定', '取消'],
|
|
|
- title: '手动成功'
|
|
|
- }, function () {
|
|
|
- window.location.href = `index.php?act=merchant&op=notify_manual_merchant&type=success&order_id= ${order_id}`
|
|
|
- }, function() {}
|
|
|
- )
|
|
|
+
|
|
|
+ // 手动失败 成功
|
|
|
+ $('#Manual #cancel').each(function (index, item) {
|
|
|
+ $(item).click(function () {
|
|
|
+ let order_id = $(this).attr("order_id")
|
|
|
+ layer.confirm('您确实要手动失败', {
|
|
|
+ btn: ['确定', '取消'],
|
|
|
+ title: '手动失败'
|
|
|
+ }, function () {
|
|
|
+ window.location.href = `index.php?act=merchant&op=notify_manual_merchant&type=cancel&order_id= ${order_id}`
|
|
|
+ }, function () {
|
|
|
+ }
|
|
|
+ )
|
|
|
+ })
|
|
|
+ })
|
|
|
+
|
|
|
+ // 手动成功
|
|
|
+ $('#Manual #success').each(function (index, item) {
|
|
|
+ $(item).click(function () {
|
|
|
+ let order_id = $(this).attr("order_id")
|
|
|
+ layer.confirm('您确实要手动成功', {
|
|
|
+ btn: ['确定', '取消'],
|
|
|
+ title: '手动成功'
|
|
|
+ }, function () {
|
|
|
+ window.location.href = `index.php?act=merchant&op=notify_manual_merchant&type=success&order_id= ${order_id}`
|
|
|
+ }, function () {
|
|
|
+ }
|
|
|
+ )
|
|
|
+ })
|
|
|
})
|
|
|
- })
|
|
|
|
|
|
- // 获取不包含客户
|
|
|
- let selest_nc
|
|
|
- let default_no_mch = $('input[name="default_no_mch"]').val().split(',');
|
|
|
- $.get('index.php?act=refill_order&op=merchant_data', function (data) {
|
|
|
- data = JSON.parse(data)
|
|
|
- if (default_no_mch) {
|
|
|
- for (let index = 0; index < default_no_mch.length; index++) {
|
|
|
- for (let j = 0; j < data.length; j++) {
|
|
|
- if (default_no_mch[index] == data[j].value) {
|
|
|
- data[j].selected = true
|
|
|
+ // 获取不包含客户
|
|
|
+ let exclude_merchant
|
|
|
+ let default_no_mch = $('input[name="default_no_mch"]').val().split(',');
|
|
|
+ let cur_index = layer.load()
|
|
|
+ $.get('index.php?act=refill_order&op=merchant_data', function (data)
|
|
|
+ {
|
|
|
+ console.log("on merchant_data callback")
|
|
|
+ data = JSON.parse(data)
|
|
|
+ if (default_no_mch) {
|
|
|
+ for (let index = 0; index < default_no_mch.length; index++) {
|
|
|
+ for (let j = 0; j < data.length; j++) {
|
|
|
+ if (default_no_mch[index] == data[j].value) {
|
|
|
+ data[j].selected = true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- selest_nc = xmSelect.render({
|
|
|
- el: '#selest_nc',
|
|
|
- size: 'mini',
|
|
|
- filterable: true,
|
|
|
- autoRow: true,
|
|
|
- height: '500px',
|
|
|
- style: {
|
|
|
- minHeight: '27px',
|
|
|
- lineHeight: '27px',
|
|
|
- marginLeft: '4px'
|
|
|
- },
|
|
|
- language: 'zn',
|
|
|
- data: data
|
|
|
- })
|
|
|
- })
|
|
|
|
|
|
- // 获取订单列表 首字母变红
|
|
|
- // $.get('index.php?act=refill_order&op=merchant_data', function (color) {
|
|
|
- // color = JSON.parse(color)
|
|
|
- // let html = '';
|
|
|
- // for (var i = 0; i < color.length; i++) {
|
|
|
- // if (i == 0) {
|
|
|
- // color[0].color = true
|
|
|
- // }
|
|
|
- // console.log();
|
|
|
- // if (color[i + 1]) {
|
|
|
- // if (color[i + 1].alpha !== color[i].alpha) {
|
|
|
- // color[i + 1].color = true
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
- // color.forEach(i => {
|
|
|
- // html += `<li style="color: ${i.color ? "red" : ""}">${i.name}</li>`
|
|
|
- // })
|
|
|
- // $(".Selectcolor").html(html)
|
|
|
- // $(".ycolor").ySearchSelect();
|
|
|
- // })
|
|
|
+ exclude_merchant = xmSelect.render({
|
|
|
+ el: '#select_nc',
|
|
|
+ size: 'mini',
|
|
|
+ filterable: true,
|
|
|
+ autoRow: true,
|
|
|
+ height: '500px',
|
|
|
+ style: {
|
|
|
+ minHeight: '27px',
|
|
|
+ lineHeight: '27px',
|
|
|
+ marginLeft: '4px'
|
|
|
+ },
|
|
|
+ language: 'zn',
|
|
|
+ data: data
|
|
|
+ })
|
|
|
+ layer.close(cur_index)
|
|
|
+ })
|
|
|
|
|
|
// 获取包含面值
|
|
|
- let denomination
|
|
|
- let default_no_amount = $('input[name="default_no_amount"]').val().split(',');
|
|
|
- let datas = [
|
|
|
- { name: '10', value: 10 },
|
|
|
- { name: '20', value: 20 },
|
|
|
- { name: '30', value: 30 },
|
|
|
- { name: '50', value: 50 },
|
|
|
- { name: '100', value: 100 },
|
|
|
- { name: '200', value: 200 },
|
|
|
- { name: '300', value: 300 },
|
|
|
- { name: '500', value: 500 },
|
|
|
- { name: '1000', value: 1000 },
|
|
|
- { name: '2000', value: 2000 },
|
|
|
- ]
|
|
|
- if (default_no_amount) {
|
|
|
- for (let index = 0; index < default_no_amount.length; index++) {
|
|
|
- for (let j = 0; j < datas.length; j++) {
|
|
|
- if (default_no_amount[index] == datas[j].value) {
|
|
|
- datas[j].selected = true
|
|
|
+ let denomination
|
|
|
+ let default_no_amount = $('input[name="default_no_amount"]').val().split(',');
|
|
|
+ let datas = [
|
|
|
+ {name: '10', value: 10},
|
|
|
+ {name: '20', value: 20},
|
|
|
+ {name: '30', value: 30},
|
|
|
+ {name: '50', value: 50},
|
|
|
+ {name: '100', value: 100},
|
|
|
+ {name: '200', value: 200},
|
|
|
+ {name: '300', value: 300},
|
|
|
+ {name: '500', value: 500},
|
|
|
+ {name: '1000', value: 1000},
|
|
|
+ {name: '2000', value: 2000},
|
|
|
+ ]
|
|
|
+ if (default_no_amount)
|
|
|
+ {
|
|
|
+ for (let index = 0; index < default_no_amount.length; index++) {
|
|
|
+ for (let j = 0; j < datas.length; j++) {
|
|
|
+ if (default_no_amount[index] == datas[j].value) {
|
|
|
+ datas[j].selected = true
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
- denomination = xmSelect.render({
|
|
|
- el: '#denomination',
|
|
|
- size: 'mini',
|
|
|
- filterable: true,
|
|
|
- autoRow: true,
|
|
|
- height: '500px',
|
|
|
- style: {
|
|
|
- minHeight: '27px',
|
|
|
- lineHeight: '27px',
|
|
|
- marginLeft: '4px'
|
|
|
- },
|
|
|
- language: 'zn',
|
|
|
- data: datas
|
|
|
- })
|
|
|
+ denomination = xmSelect.render({
|
|
|
+ el: '#denomination',
|
|
|
+ size: 'mini',
|
|
|
+ filterable: true,
|
|
|
+ autoRow: true,
|
|
|
+ height: '500px',
|
|
|
+ style: {
|
|
|
+ minHeight: '27px',
|
|
|
+ lineHeight: '27px',
|
|
|
+ marginLeft: '4px'
|
|
|
+ },
|
|
|
+ language: 'zn',
|
|
|
+ data: datas
|
|
|
+ })
|
|
|
|
|
|
- // $('#query_start_time').datepicker({dateFormat: 'yy-mm-dd'});
|
|
|
- // $('#query_end_time').datepicker({dateFormat: 'yy-mm-dd'});
|
|
|
- $('#ncsubmit').click(function () {
|
|
|
- let index = layer.load(0, {shade: false});
|
|
|
- $('input[name="op"]').val('index');
|
|
|
- let selectArr = selest_nc.getValue();
|
|
|
- let selectStr = ''
|
|
|
- for (let i = 0; i < selectArr.length; i++) {
|
|
|
- selectStr += selectArr[i].value+','
|
|
|
- }
|
|
|
- selectStr = selectStr.substr(0, selectStr.length-1)
|
|
|
- let nominalAll = denomination.getValue();
|
|
|
- let nominalStr = ''
|
|
|
- for (let i = 0; i < nominalAll.length; i++) {
|
|
|
- nominalStr += nominalAll[i].value+','
|
|
|
- }
|
|
|
- nominalStr = nominalStr.substr(0, nominalStr.length-1)
|
|
|
- $('input[name="no_mchid"]').val(selectStr);
|
|
|
- $('input[name="no_amount"]').val(nominalStr);
|
|
|
- $('#formSearch').submit();
|
|
|
- let Endtime = $('#endTime').val()
|
|
|
- localStorage.setItem('Endtime',Endtime)
|
|
|
+ $('#ncsubmit').click(function () {
|
|
|
+ loadIndex = layer.load();
|
|
|
+ $('input[name="op"]').val('index');
|
|
|
+ let selectArr = exclude_merchant.getValue();
|
|
|
+ let selectStr = ''
|
|
|
+ for (let i = 0; i < selectArr.length; i++) {
|
|
|
+ selectStr += selectArr[i].value + ','
|
|
|
+ }
|
|
|
+ selectStr = selectStr.substr(0, selectStr.length - 1)
|
|
|
+ let nominalAll = denomination.getValue();
|
|
|
+ let nominalStr = ''
|
|
|
+ for (let i = 0; i < nominalAll.length; i++) {
|
|
|
+ nominalStr += nominalAll[i].value + ','
|
|
|
+ }
|
|
|
+ nominalStr = nominalStr.substr(0, nominalStr.length - 1)
|
|
|
+ $('input[name="no_mchid"]').val(selectStr);
|
|
|
+ $('input[name="no_amount"]').val(nominalStr);
|
|
|
+ $('#formSearch').submit();
|
|
|
+ let Endtime = $('#endTime').val()
|
|
|
+ localStorage.setItem('Endtime', Endtime)
|
|
|
});
|
|
|
|
|
|
- // 导出
|
|
|
- $('#ncexport').click(function () {
|
|
|
- $('input[name="export"]').val('1');
|
|
|
- $('input[name="op"]').val('index');
|
|
|
- // 不包含客户
|
|
|
- let selectArr = selest_nc.getValue();
|
|
|
- let selectStr = ''
|
|
|
- for (let i = 0; i < selectArr.length; i++) {
|
|
|
- selectStr += selectArr[i].value+','
|
|
|
- }
|
|
|
- selectStr = selectStr.substr(0, selectStr.length-1)
|
|
|
- $('input[name="no_mchid"]').val(selectStr);
|
|
|
- let mchid = $('#mchid[name=mchid]').find('option:selected').html()
|
|
|
- let store_id = $('.store_id').find('option:selected').text();
|
|
|
- let order_state = $('.order_state').find('option:selected').text();
|
|
|
- let startTime = $('#startTime').val()
|
|
|
- let endTime = $('#endTime').val()
|
|
|
- let str = `搜索导出: ${startTime}-${endTime}`
|
|
|
- if(mchid != '请选择') {str = str + `,客户名称:${mchid}`}
|
|
|
- if(store_id != '请选择') {str = str + `,供方名称:${store_id}`}
|
|
|
- if(order_state != '请选择') {str = str + `,订单状态:${order_state}`}
|
|
|
- $('input[name="task_title"]').val(str);
|
|
|
- $('#formSearch').submit();
|
|
|
- $('input[name="export"]').val('');
|
|
|
- let Endtime = $('#endTime').val()
|
|
|
- localStorage.setItem('Endtime',Endtime)
|
|
|
- let ii = layer.load();
|
|
|
- setTimeout(function(){
|
|
|
- layer.close(ii);
|
|
|
- }, 800);
|
|
|
+ // 导出
|
|
|
+ $('#ncexport').click(function ()
|
|
|
+ {
|
|
|
+ $('input[name="export"]').val('1');
|
|
|
+ $('input[name="op"]').val('index');
|
|
|
+ // 不包含客户
|
|
|
+ let selectArr = exclude_merchant.getValue();
|
|
|
+ let selectStr = ''
|
|
|
+ for (let i = 0; i < selectArr.length; i++) {
|
|
|
+ selectStr += selectArr[i].value + ','
|
|
|
+ }
|
|
|
+ selectStr = selectStr.substr(0, selectStr.length - 1)
|
|
|
+ $('input[name="no_mchid"]').val(selectStr);
|
|
|
+ let mchid = $('#mchid[name=mchid]').find('option:selected').html()
|
|
|
+ let store_id = $('.store_id').find('option:selected').text();
|
|
|
+ let order_state = $('.order_state').find('option:selected').text();
|
|
|
+ let startTime = $('#startTime').val()
|
|
|
+ let endTime = $('#endTime').val()
|
|
|
+ let str = `搜索导出: ${startTime}-${endTime}`
|
|
|
+ if (mchid != '请选择') {
|
|
|
+ str = str + `,客户名称:${mchid}`
|
|
|
+ }
|
|
|
+ if (store_id != '请选择') {
|
|
|
+ str = str + `,供方名称:${store_id}`
|
|
|
+ }
|
|
|
+ if (order_state != '请选择') {
|
|
|
+ str = str + `,订单状态:${order_state}`
|
|
|
+ }
|
|
|
+ $('input[name="task_title"]').val(str);
|
|
|
+ $('#formSearch').submit();
|
|
|
+ $('input[name="export"]').val('');
|
|
|
+ let Endtime = $('#endTime').val()
|
|
|
+ localStorage.setItem('Endtime', Endtime)
|
|
|
+
|
|
|
+ layer.load();
|
|
|
})
|
|
|
|
|
|
- //搜索+统计
|
|
|
- $('#ncstat').click(function () {
|
|
|
- let index = layer.load(0, {shade: false});
|
|
|
- $('input[name="fShowStat"]').val('1');
|
|
|
- $('input[name="op"]').val('index');
|
|
|
- // 不包含客户
|
|
|
- let selectArr = selest_nc.getValue();
|
|
|
- let selectStr = ''
|
|
|
- for (let i = 0; i < selectArr.length; i++) {
|
|
|
- selectStr += selectArr[i].value+','
|
|
|
- }
|
|
|
- selectStr = selectStr.substr(0, selectStr.length-1)
|
|
|
- // 不包含面值
|
|
|
- let nominalAll = denomination.getValue();
|
|
|
- let nominalStr = ''
|
|
|
- for (let i = 0; i < nominalAll.length; i++) {
|
|
|
- nominalStr += nominalAll[i].value+','
|
|
|
- }
|
|
|
- nominalStr = nominalStr.substr(0, nominalStr.length-1)
|
|
|
+ //搜索+统计
|
|
|
+ $('#ncstat').click(function () {
|
|
|
+ layer.load();
|
|
|
+ $('input[name="fShowStat"]').val('1');
|
|
|
+ $('input[name="op"]').val('index');
|
|
|
+ // 不包含客户
|
|
|
+ let selectArr = exclude_merchant.getValue();
|
|
|
+ let selectStr = ''
|
|
|
+ for (let i = 0; i < selectArr.length; i++) {
|
|
|
+ selectStr += selectArr[i].value + ','
|
|
|
+ }
|
|
|
+ selectStr = selectStr.substr(0, selectStr.length - 1)
|
|
|
+ // 不包含面值
|
|
|
+ let nominalAll = denomination.getValue();
|
|
|
+ let nominalStr = ''
|
|
|
+ for (let i = 0; i < nominalAll.length; i++) {
|
|
|
+ nominalStr += nominalAll[i].value + ','
|
|
|
+ }
|
|
|
+ nominalStr = nominalStr.substr(0, nominalStr.length - 1)
|
|
|
|
|
|
- $('input[name="no_mchid"]').val(selectStr);
|
|
|
- $('input[name="no_amount"]').val(nominalStr);
|
|
|
+ $('input[name="no_mchid"]').val(selectStr);
|
|
|
+ $('input[name="no_amount"]').val(nominalStr);
|
|
|
|
|
|
- $('#formSearch').submit();
|
|
|
- $('input[name="fShowStat"]').val('');
|
|
|
- let Endtime = $('#endTime').val()
|
|
|
- localStorage.setItem('Endtime',Endtime)
|
|
|
+ $('#formSearch').submit();
|
|
|
+ $('input[name="fShowStat"]').val('');
|
|
|
+ let Endtime = $('#endTime').val()
|
|
|
+ localStorage.setItem('Endtime', Endtime)
|
|
|
})
|
|
|
|
|
|
// 向客户回调
|
|
|
- $('#mch_notify').click(function () {
|
|
|
- $('input[name="mch_notify"]').val('1');
|
|
|
- $('input[name="op"]').val('index');
|
|
|
- // 不包含客户
|
|
|
- let selectArr = selest_nc.getValue();
|
|
|
- let selectStr = ''
|
|
|
- for (let i = 0; i < selectArr.length; i++) {
|
|
|
- selectStr += selectArr[i].value+','
|
|
|
- }
|
|
|
- selectStr = selectStr.substr(0, selectStr.length-1)
|
|
|
- $('input[name="no_mchid"]').val(selectStr);
|
|
|
- $('#formSearch').submit();
|
|
|
- $('input[name="mch_notify"]').val('');
|
|
|
- let ii = layer.load();
|
|
|
- setTimeout(function(){
|
|
|
- layer.close(ii);
|
|
|
- }, 800);
|
|
|
+ $('#mch_notify').click(function () {
|
|
|
+ layer.load();
|
|
|
+ $('input[name="mch_notify"]').val('1');
|
|
|
+ $('input[name="op"]').val('index');
|
|
|
+ // 不包含客户
|
|
|
+ let selectArr = exclude_merchant.getValue();
|
|
|
+ let selectStr = ''
|
|
|
+ for (let i = 0; i < selectArr.length; i++) {
|
|
|
+ selectStr += selectArr[i].value + ','
|
|
|
+ }
|
|
|
+ selectStr = selectStr.substr(0, selectStr.length - 1)
|
|
|
+ $('input[name="no_mchid"]').val(selectStr);
|
|
|
+ $('#formSearch').submit();
|
|
|
+ $('input[name="mch_notify"]').val('');
|
|
|
})
|
|
|
|
|
|
// 更新待收货状态
|
|
|
- $('#order_query').click(function () {
|
|
|
- $('input[name="order_query"]').val('1');
|
|
|
- $('input[name="op"]').val('index');
|
|
|
- // 不包含客户
|
|
|
- let selectArr = selest_nc.getValue();
|
|
|
- let selectStr = ''
|
|
|
- for (let i = 0; i < selectArr.length; i++) {
|
|
|
- selectStr += selectArr[i].value+','
|
|
|
- }
|
|
|
- selectStr = selectStr.substr(0, selectStr.length-1)
|
|
|
- $('input[name="no_mchid"]').val(selectStr);
|
|
|
- $('#formSearch').submit();
|
|
|
- $('input[name="order_query"]').val('');
|
|
|
- let ii = layer.load();
|
|
|
- setTimeout(function(){
|
|
|
- layer.close(ii);
|
|
|
- }, 800);
|
|
|
+ $('#order_query').click(function () {
|
|
|
+ layer.load();
|
|
|
+ $('input[name="order_query"]').val('1');
|
|
|
+ $('input[name="op"]').val('index');
|
|
|
+ // 不包含客户
|
|
|
+ let selectArr = exclude_merchant.getValue();
|
|
|
+ let selectStr = ''
|
|
|
+ for (let i = 0; i < selectArr.length; i++) {
|
|
|
+ selectStr += selectArr[i].value + ','
|
|
|
+ }
|
|
|
+ selectStr = selectStr.substr(0, selectStr.length - 1)
|
|
|
+ $('input[name="no_mchid"]').val(selectStr);
|
|
|
+ $('#formSearch').submit();
|
|
|
+ $('input[name="order_query"]').val('');
|
|
|
})
|
|
|
|
|
|
// 日期选择器
|
|
|
- laydate.render({
|
|
|
+ laydate.render({
|
|
|
elem: '#startTime',
|
|
|
type: 'datetime',
|
|
|
trigger: 'click'
|
|
|
});
|
|
|
- laydate.render({
|
|
|
+ laydate.render({
|
|
|
elem: '#endTime',
|
|
|
type: 'datetime',
|
|
|
trigger: 'click'
|
|
|
});
|
|
|
|
|
|
// 表格hover时背景
|
|
|
- $('.trFlex').each(function () {
|
|
|
+ $('.trFlex').each(function () {
|
|
|
$(this).hover(function () {
|
|
|
$(this)[0].style.backgroundColor = '#cbe9f3'
|
|
|
- },function() {
|
|
|
+ }, 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')
|
|
|
- }
|
|
|
+ $('.textColor').each(function () {
|
|
|
+ let color = $(this).attr('data-color')
|
|
|
+ if (color == '1') {
|
|
|
+ $(this).css('color', 'green')
|
|
|
+ } else {
|
|
|
+ $(this).css('color', 'red')
|
|
|
+ }
|
|
|
})
|
|
|
|
|
|
// 十分钟订单
|
|
|
- $('#10_rder').click(function () {
|
|
|
- let date=new Date();
|
|
|
- let min=date.getMinutes();
|
|
|
- date.setMinutes(min-10);
|
|
|
- let y = date.getFullYear();
|
|
|
- let m = (date.getMonth() + 1) < 10 ? ("0" + (date.getMonth() + 1)) : (date.getMonth() + 1);
|
|
|
- let d = date.getDate() < 10 ? ("0" + date.getDate()) : date.getDate();
|
|
|
- let h = date.getHours() < 10 ? ('0' + date.getHours()) : date.getHours();
|
|
|
- let f = date.getMinutes() < 10 ? ('0' + date.getMinutes()) : date.getMinutes();
|
|
|
- let s = date.getSeconds();
|
|
|
- let formatdate = y+'-'+m+'-'+d + " " + h + ":" + f + ":" + s;
|
|
|
- $('#startTime').val(formatdate)
|
|
|
+ $('#10_rder').click(function () {
|
|
|
+ let date = new Date();
|
|
|
+ let min = date.getMinutes();
|
|
|
+ date.setMinutes(min - 10);
|
|
|
+ let y = date.getFullYear();
|
|
|
+ let m = (date.getMonth() + 1) < 10 ? ("0" + (date.getMonth() + 1)) : (date.getMonth() + 1);
|
|
|
+ let d = date.getDate() < 10 ? ("0" + date.getDate()) : date.getDate();
|
|
|
+ let h = date.getHours() < 10 ? ('0' + date.getHours()) : date.getHours();
|
|
|
+ let f = date.getMinutes() < 10 ? ('0' + date.getMinutes()) : date.getMinutes();
|
|
|
+ let s = date.getSeconds();
|
|
|
+ let formatdate = y + '-' + m + '-' + d + " " + h + ":" + f + ":" + s;
|
|
|
+ $('#startTime').val(formatdate)
|
|
|
});
|
|
|
|
|
|
// 30分钟订单
|
|
|
- $('#30_rder').click(function () {
|
|
|
- let date=new Date();
|
|
|
- let min=date.getMinutes();
|
|
|
- date.setMinutes(min-30);
|
|
|
- let y = date.getFullYear();
|
|
|
- let m = (date.getMonth() + 1) < 10 ? ("0" + (date.getMonth() + 1)) : (date.getMonth() + 1);
|
|
|
- let d = date.getDate() < 10 ? ("0" + date.getDate()) : date.getDate();
|
|
|
- let h = date.getHours() < 10 ? ('0' + date.getHours()) : date.getHours();
|
|
|
- let f = date.getMinutes() < 10 ? ('0' + date.getMinutes()) : date.getMinutes();
|
|
|
- let s = date.getSeconds();
|
|
|
- let formatdate = y+'-'+m+'-'+d + " " + h + ":" + f + ":" + s;
|
|
|
- $('#startTime').val(formatdate)
|
|
|
+ $('#30_rder').click(function () {
|
|
|
+ let date = new Date();
|
|
|
+ let min = date.getMinutes();
|
|
|
+ date.setMinutes(min - 30);
|
|
|
+ let y = date.getFullYear();
|
|
|
+ let m = (date.getMonth() + 1) < 10 ? ("0" + (date.getMonth() + 1)) : (date.getMonth() + 1);
|
|
|
+ let d = date.getDate() < 10 ? ("0" + date.getDate()) : date.getDate();
|
|
|
+ let h = date.getHours() < 10 ? ('0' + date.getHours()) : date.getHours();
|
|
|
+ let f = date.getMinutes() < 10 ? ('0' + date.getMinutes()) : date.getMinutes();
|
|
|
+ let s = date.getSeconds();
|
|
|
+ let formatdate = y + '-' + m + '-' + d + " " + h + ":" + f + ":" + s;
|
|
|
+ $('#startTime').val(formatdate)
|
|
|
});
|
|
|
// 60分钟订单
|
|
|
- $('#60_rder').click(function () {
|
|
|
- let date=new Date();
|
|
|
- let min=date.getMinutes();
|
|
|
- date.setMinutes(min-60);
|
|
|
- let y = date.getFullYear();
|
|
|
- let m = (date.getMonth() + 1) < 10 ? ("0" + (date.getMonth() + 1)) : (date.getMonth() + 1);
|
|
|
- let d = date.getDate() < 10 ? ("0" + date.getDate()) : date.getDate();
|
|
|
- let h = date.getHours() < 10 ? ('0' + date.getHours()) : date.getHours();
|
|
|
- let f = date.getMinutes() < 10 ? ('0' + date.getMinutes()) : date.getMinutes();
|
|
|
- let s = date.getSeconds();
|
|
|
- let formatdate = y+'-'+m+'-'+d + " " + h + ":" + f + ":" + s;
|
|
|
- $('#startTime').val(formatdate)
|
|
|
+ $('#60_rder').click(function () {
|
|
|
+ let date = new Date();
|
|
|
+ let min = date.getMinutes();
|
|
|
+ date.setMinutes(min - 60);
|
|
|
+ let y = date.getFullYear();
|
|
|
+ let m = (date.getMonth() + 1) < 10 ? ("0" + (date.getMonth() + 1)) : (date.getMonth() + 1);
|
|
|
+ let d = date.getDate() < 10 ? ("0" + date.getDate()) : date.getDate();
|
|
|
+ let h = date.getHours() < 10 ? ('0' + date.getHours()) : date.getHours();
|
|
|
+ let f = date.getMinutes() < 10 ? ('0' + date.getMinutes()) : date.getMinutes();
|
|
|
+ let s = date.getSeconds();
|
|
|
+ let formatdate = y + '-' + m + '-' + d + " " + h + ":" + f + ":" + s;
|
|
|
+ $('#startTime').val(formatdate)
|
|
|
});
|
|
|
+
|
|
|
// 当前零点钟订单
|
|
|
- $('#0_rder').click(function () {
|
|
|
- let date=new Date();
|
|
|
- let min=date.getMinutes();
|
|
|
- let y = date.getFullYear();
|
|
|
- let m = (date.getMonth() + 1) < 10 ? ("0" + (date.getMonth() + 1)) : (date.getMonth() + 1);
|
|
|
- let d = date.getDate() < 10 ? ("0" + date.getDate()) : date.getDate();
|
|
|
- let h = 0;
|
|
|
- let f = 0;
|
|
|
- let s = 0;
|
|
|
- let formatdate = y+'-'+m+'-'+d + " " + h + ":" + f + ":" + s;
|
|
|
- $('#startTime').val(formatdate)
|
|
|
+ $('#0_rder').click(function () {
|
|
|
+ let date = new Date();
|
|
|
+ let min = date.getMinutes();
|
|
|
+ let y = date.getFullYear();
|
|
|
+ let m = (date.getMonth() + 1) < 10 ? ("0" + (date.getMonth() + 1)) : (date.getMonth() + 1);
|
|
|
+ let d = date.getDate() < 10 ? ("0" + date.getDate()) : date.getDate();
|
|
|
+ let h = 0;
|
|
|
+ let f = 0;
|
|
|
+ let s = 0;
|
|
|
+ let formatdate = y + '-' + m + '-' + d + " " + h + ":" + f + ":" + s;
|
|
|
+ $('#startTime').val(formatdate)
|
|
|
})
|
|
|
+
|
|
|
+
|
|
|
});
|
|
|
- function copy_some(col)
|
|
|
- {
|
|
|
+
|
|
|
+ function copy_some(col) {
|
|
|
let str = ''
|
|
|
$('#tbody tr').each(function () {
|
|
|
let res = $(this).find('td').eq(col).text()
|