|
|
@@ -58,6 +58,35 @@ layui.config({
|
|
|
}
|
|
|
});
|
|
|
|
|
|
+ var laydate = layui.laydate;
|
|
|
+ var layUpdateDate = laydate.render({
|
|
|
+ elem: '#UpdateDate',
|
|
|
+ type: 'date',
|
|
|
+ range: true,
|
|
|
+ trigger: 'click',
|
|
|
+ change: function (value, date, endDate) {
|
|
|
+ var op = true;
|
|
|
+ if (date.year == endDate.year && endDate.month - date.month <= 1) {
|
|
|
+ if (endDate.month - date.month == 1 && endDate.date > date.date) {
|
|
|
+ op = false;
|
|
|
+ layUpdateDate.hint('日期范围请不要超过1个月');
|
|
|
+ setTimeout(function () {
|
|
|
+ $(".laydate-btns-confirm").addClass("laydate-disabled");
|
|
|
+ }, 1);
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ op = false;
|
|
|
+ layUpdateDate.hint('日期范围请不要超过1个月');
|
|
|
+ setTimeout(function () {
|
|
|
+ $(".laydate-btns-confirm").addClass("laydate-disabled");
|
|
|
+ }, 1);
|
|
|
+ }
|
|
|
+ if (op) {
|
|
|
+ $('#UpdateDate').val(value);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
//excel导入
|
|
|
excel = layui.excel;
|
|
|
$('#ExcelFile').change(function (e) {
|
|
|
@@ -82,14 +111,17 @@ layui.config({
|
|
|
{ type: 'checkbox', fixed: 'left' }
|
|
|
, { field: 'Id', fixed: 'left', title: 'ID', width: 80, sort: true, unresize: true }
|
|
|
, { field: 'PosSn', width: 250, title: '机具SN', sort: true }
|
|
|
+ , { field: 'MerNo', width: 250, title: '商户编号', sort: true }
|
|
|
, { field: 'BrandName', width: 200, title: '品牌', sort: true }
|
|
|
, { field: 'Status', width: 100, title: '状态', sort: true }
|
|
|
, { field: 'CreateDate', width: 200, title: '创建时间', sort: true }
|
|
|
+ , { field: 'UpdateDate', width: 200, title: '同步时间', sort: true }
|
|
|
+ , { field: 'DoDate', width: 200, title: '执行时间', sort: true }
|
|
|
, { field: 'UpFeeFlag', width: 150, title: '调升标记', sort: true }
|
|
|
, { field: 'DownFeeFlag', width: 150, title: '调降标记', sort: true }
|
|
|
, { field: 'DownFee', width: 150, title: '调降费率', sort: true }
|
|
|
, { field: 'TradeFeeRate', width: 150, title: '支付公司费率', sort: true }
|
|
|
- , { field: 'TradeFeeAmt', width: 150, title: '支付公司秒到费', sort: true }
|
|
|
+ , { field: 'TradeFeeAmt', width: 150, title: '支付公司秒到费', sort: true }
|
|
|
|
|
|
, { title: '操作', align: 'center', width: 150, fixed: 'right', toolbar: '#table-list-tools' }
|
|
|
]]
|