|
@@ -1,103 +1,106 @@
|
|
|
<style>
|
|
|
- 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
|
|
|
- }
|
|
|
- #denomination {
|
|
|
- width:220px
|
|
|
- }
|
|
|
- tbody {
|
|
|
- font-size: 12px;
|
|
|
- }
|
|
|
- .layui-form-select .layui-input {
|
|
|
- padding: 13px 5px;
|
|
|
- }
|
|
|
- .layui-form-selected dl {
|
|
|
- display: flex!important;
|
|
|
- flex-wrap: wrap!important;
|
|
|
- }
|
|
|
- .layui-form-select dl {
|
|
|
-
|
|
|
- top: 29px !important;
|
|
|
- left: 4px!important;
|
|
|
- min-width: 883%!important;
|
|
|
- max-height: 280px!important;
|
|
|
- padding: 14px 0!important;
|
|
|
- }
|
|
|
- .layui-form-select .layui-input {
|
|
|
- padding-right: 0!important;
|
|
|
+ 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
|
|
|
+ }
|
|
|
+ #denomination {
|
|
|
+ width: 220px
|
|
|
+ }
|
|
|
+ tbody {
|
|
|
+ font-size: 12px;
|
|
|
+ }
|
|
|
+ .layui-form-select .layui-input {
|
|
|
+ padding: 13px 5px;
|
|
|
+ }
|
|
|
+ .layui-form-selected dl {
|
|
|
+ display: flex !important;
|
|
|
+ flex-wrap: wrap !important;
|
|
|
+ }
|
|
|
+ .layui-form-select dl {
|
|
|
+ top: 29px !important;
|
|
|
+ left: 4px !important;
|
|
|
+ min-width: 883% !important;
|
|
|
+ max-height: 280px !important;
|
|
|
+ padding: 14px 0 !important;
|
|
|
+ }
|
|
|
+ .layui-form-select .layui-input {
|
|
|
+ padding-right: 0 !important;
|
|
|
cursor: pointer;
|
|
|
width: 124%;
|
|
|
-}
|
|
|
- .layui-form-select {
|
|
|
- width: 45%;
|
|
|
- }
|
|
|
- .layui-select-title {
|
|
|
- width: 100%;
|
|
|
- }
|
|
|
- .layui-form-select .layui-input {
|
|
|
-
|
|
|
- padding-left: 4px;
|
|
|
- }
|
|
|
- .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;
|
|
|
+ }
|
|
|
+ .layui-form-select {
|
|
|
+ width: 45%;
|
|
|
+ }
|
|
|
+ .layui-select-title {
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+ .layui-form-select .layui-input {
|
|
|
+ padding-left: 4px;
|
|
|
+ }
|
|
|
+ .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 {
|
|
|
+ }
|
|
|
+ .layui-form-select dl dd.layui-this {
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+ .layui-form-select dl dd {
|
|
|
cursor: pointer;
|
|
|
width: 130px;
|
|
|
- }
|
|
|
- .layui-form-select .layui-edge {
|
|
|
- right: -24px!important;
|
|
|
- }
|
|
|
- .db-right {
|
|
|
- padding-right: 134px!important;
|
|
|
- border-bottom: 1px solid #ccc;
|
|
|
+ }
|
|
|
|
|
|
- }
|
|
|
- .db-center {
|
|
|
+ .layui-form-select .layui-edge {
|
|
|
+ right: -24px !important;
|
|
|
+ }
|
|
|
+ .db-right {
|
|
|
+ padding-right: 134px !important;
|
|
|
+ border-bottom: 1px solid #ccc;
|
|
|
+ }
|
|
|
+ .db-center {
|
|
|
padding: 9px 0;
|
|
|
border-bottom: 1px solid #ccc;
|
|
|
- }
|
|
|
- .db-top {
|
|
|
- padding: 0 30px;
|
|
|
- }
|
|
|
- .covercolor:hover, .covercolor:visited, .covercolor:link, .covercolor:active {
|
|
|
+ }
|
|
|
+ .db-top {
|
|
|
+ padding: 0 30px;
|
|
|
+ }
|
|
|
+ .covercolor:hover,
|
|
|
+ .covercolor:visited,
|
|
|
+ .covercolor:link,
|
|
|
+ .covercolor:active {
|
|
|
color: #0D93BF;
|
|
|
-}
|
|
|
-
|
|
|
+ }
|
|
|
</style>
|
|
|
<?php defined('InShopNC') or exit('Access Invalid!'); ?>
|
|
|
<div class="page">
|
|
@@ -586,405 +589,393 @@
|
|
|
<script type="text/javascript">
|
|
|
$(function () {
|
|
|
//查看
|
|
|
- $('.examine').click(function() {
|
|
|
- let sq = $(this).attr('data-order')
|
|
|
- $.get('index.php?act=refill_order&op=refill_third_info',
|
|
|
- {
|
|
|
- order_id:sq
|
|
|
- },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 db_click = $(this).attr('data-order')
|
|
|
- $.get('index.php?act=refill_order&op=showOrders', {
|
|
|
- order_sn:db_click
|
|
|
- }, function(data) {
|
|
|
- data = JSON.parse(data)
|
|
|
- if (data.state == 1) {
|
|
|
-
|
|
|
- var dbclick = data.data
|
|
|
- let ConentArr = [];
|
|
|
- let html = '';
|
|
|
- for (let i = 0; i < dbclick.length; i++) {
|
|
|
- var item = dbclick[i];
|
|
|
- html += `
|
|
|
- <tr>
|
|
|
- <td class="db-center">${item.order_sn}</td>
|
|
|
- <td class="db-center">${item.commit_time_text}</td>
|
|
|
- <td class="db-center">${item.notify_time_text}</td>
|
|
|
- <td class="db-center">${item.diff_time_text}</td>
|
|
|
- <td class="db-center">${item.order_state_text}</td>
|
|
|
- <td class="db-center">${item.channel_name}</td>
|
|
|
- <td class="db-center">${item.err_msg}</td>
|
|
|
+ })
|
|
|
|
|
|
-
|
|
|
- <tr>
|
|
|
- `
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- layer.open({
|
|
|
- title: `<span>共${data.count}单</span> <span class="db-top">回调状态:${data.mch_notify_state}</span> <span>回调次数:${data.mch_notify_times}</span>` ,
|
|
|
- content: `<table>
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th class="db-right">订单号</th>
|
|
|
- <th class="db-right">提单日期</th>
|
|
|
- <th class="db-right">回调日期</th>
|
|
|
- <th class="db-right">耗时</th>
|
|
|
- <th class="db-right">订单状态</th>
|
|
|
- <th class="db-right">供方名称</th>
|
|
|
- <th class="db-right">错误原因</th>
|
|
|
-
|
|
|
- </tr>
|
|
|
+ //双击
|
|
|
+ $('.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>
|
|
|
+ <td class="db-center">${item.notify_time_text}</td>
|
|
|
+ <td class="db-center">${item.diff_time_text}</td>
|
|
|
+ <td class="db-center">${item.order_state_text}</td>
|
|
|
+ <td class="db-center">${item.channel_name}</td>
|
|
|
+ <td class="db-center">${item.err_msg}</td>
|
|
|
+ <tr> `
|
|
|
+ }
|
|
|
+ let content = `<table>
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th class="db-right">订单号</th>
|
|
|
+ <th class="db-right">提单日期</th>
|
|
|
+ <th class="db-right">回调日期</th>
|
|
|
+ <th class="db-right">耗时</th>
|
|
|
+ <th class="db-right">订单状态</th>
|
|
|
+ <th class="db-right">供方名称</th>
|
|
|
+ <th class="db-right">错误原因</th>
|
|
|
+ </tr>
|
|
|
</thead>
|
|
|
- <tbody>
|
|
|
- ${html}
|
|
|
- </tbody>
|
|
|
- </table>`,
|
|
|
-
|
|
|
+ <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("没有此订单");
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
|
|
|
- });
|
|
|
- } else {
|
|
|
- alert("没有此订单");
|
|
|
+ // 获取不包含客户
|
|
|
+ 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
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ 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();
|
|
|
+ // })
|
|
|
|
|
|
- })
|
|
|
- // 获取不包含客户
|
|
|
- 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
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- 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();
|
|
|
-
|
|
|
-// })
|
|
|
// 获取包含面值
|
|
|
- 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
|
|
|
- })
|
|
|
- $('#query_start_time').datepicker({dateFormat: 'yy-mm-dd'});
|
|
|
- $('#query_end_time').datepicker({dateFormat: 'yy-mm-dd'});
|
|
|
- $('#ncsubmit').click(function () {
|
|
|
- var 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)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ denomination = xmSelect.render({
|
|
|
+ el: '#denomination',
|
|
|
+ size: 'mini',
|
|
|
+ filterable: true,
|
|
|
+ autoRow: true,
|
|
|
+ height: '500px',
|
|
|
+ style: {
|
|
|
+ minHeight: '27px',
|
|
|
+ lineHeight: '27px',
|
|
|
+ marginLeft: '4px'
|
|
|
+ },
|
|
|
+ language: 'zn',
|
|
|
+ data: datas
|
|
|
+ })
|
|
|
|
|
|
- $('input[name="no_mchid"]').val(selectStr);
|
|
|
- $('input[name="no_amount"]').val(nominalStr);
|
|
|
-
|
|
|
- $('#formSearch').submit();
|
|
|
+ $('#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();
|
|
|
});
|
|
|
- // 导出
|
|
|
- $('#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);
|
|
|
- $('#formSearch').submit();
|
|
|
- $('input[name="export"]').val('');
|
|
|
- var ii = layer.load();
|
|
|
- setTimeout(function(){
|
|
|
- layer.close(ii);
|
|
|
- }, 800);
|
|
|
+
|
|
|
+ // 导出
|
|
|
+ $('#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);
|
|
|
+ $('#formSearch').submit();
|
|
|
+ $('input[name="export"]').val('');
|
|
|
+ let ii = layer.load();
|
|
|
+ setTimeout(function(){
|
|
|
+ layer.close(ii);
|
|
|
+ }, 800);
|
|
|
})
|
|
|
- // 对账导出
|
|
|
- $('#ncexport_stats').click(function () {
|
|
|
- var ii = layer.load();
|
|
|
- setTimeout(function(){
|
|
|
- layer.close(ii);
|
|
|
- }, 800);
|
|
|
|
|
|
- $('input[name="export_stats"]').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="export_stats"]').val('');
|
|
|
+ // 对账导出
|
|
|
+ $('#ncexport_stats').click(function () {
|
|
|
+ let ii = layer.load();
|
|
|
+ setTimeout(function(){
|
|
|
+ layer.close(ii);
|
|
|
+ }, 800);
|
|
|
+ $('input[name="export_stats"]').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="export_stats"]').val('');
|
|
|
})
|
|
|
- //搜索+统计
|
|
|
- $('#ncstat').click(function () {
|
|
|
- var 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)
|
|
|
|
|
|
- $('input[name="no_mchid"]').val(selectStr);
|
|
|
- $('input[name="no_amount"]').val(nominalStr);
|
|
|
+ //搜索+统计
|
|
|
+ $('#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)
|
|
|
|
|
|
- $('#formSearch').submit();
|
|
|
- $('input[name="fShowStat"]').val('');
|
|
|
+ $('input[name="no_mchid"]').val(selectStr);
|
|
|
+ $('input[name="no_amount"]').val(nominalStr);
|
|
|
+
|
|
|
+ $('#formSearch').submit();
|
|
|
+ $('input[name="fShowStat"]').val('');
|
|
|
})
|
|
|
- // 向客户回调
|
|
|
- $('#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('');
|
|
|
- var ii = layer.load();
|
|
|
- setTimeout(function(){
|
|
|
- layer.close(ii);
|
|
|
- }, 800);
|
|
|
+ // 向客户回调
|
|
|
+ $('#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);
|
|
|
})
|
|
|
- // 更新待收货状态
|
|
|
- $('#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('');
|
|
|
- var ii = layer.load();
|
|
|
- setTimeout(function(){
|
|
|
- layer.close(ii);
|
|
|
- }, 800);
|
|
|
+ // 更新待收货状态
|
|
|
+ $('#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);
|
|
|
})
|
|
|
+
|
|
|
// 日期选择器
|
|
|
- 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() {
|
|
|
$(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 hCopyChannel(e) {
|