|
@@ -2,7 +2,7 @@ var ExcelData, ExcelKind;
|
|
|
function ConfirmImport() {
|
|
function ConfirmImport() {
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
type: "POST",
|
|
type: "POST",
|
|
|
- url: "/Admin/TradeRecord/Import?r=" + Math.random(1),
|
|
|
|
|
|
|
+ url: "/Admin/SpTradeRecord/Import?r=" + Math.random(1),
|
|
|
data: "ExcelData=" + encodeURIComponent(JSON.stringify(ExcelData)),
|
|
data: "ExcelData=" + encodeURIComponent(JSON.stringify(ExcelData)),
|
|
|
dataType: "text",
|
|
dataType: "text",
|
|
|
success: function (data) {
|
|
success: function (data) {
|
|
@@ -49,7 +49,7 @@ layui.config({
|
|
|
if (field == "Sort") {
|
|
if (field == "Sort") {
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
type: "POST",
|
|
type: "POST",
|
|
|
- url: "/Admin/TradeRecord/Sort?r=" + Math.random(1),
|
|
|
|
|
|
|
+ url: "/Admin/SpTradeRecord/Sort?r=" + Math.random(1),
|
|
|
data: "Id=" + data.Id + "&Sort=" + value,
|
|
data: "Id=" + data.Id + "&Sort=" + value,
|
|
|
dataType: "text",
|
|
dataType: "text",
|
|
|
success: function (data) {
|
|
success: function (data) {
|
|
@@ -61,26 +61,33 @@ layui.config({
|
|
|
//列表数据
|
|
//列表数据
|
|
|
table.render({
|
|
table.render({
|
|
|
elem: '#LAY-list-manage'
|
|
elem: '#LAY-list-manage'
|
|
|
- , url: '/Admin/TradeRecord/IndexData' //模拟接口
|
|
|
|
|
|
|
+ , url: '/Admin/SpTradeRecord/IndexData' //模拟接口
|
|
|
, cols: [[
|
|
, cols: [[
|
|
|
{ type: 'checkbox', fixed: 'left' }
|
|
{ type: 'checkbox', fixed: 'left' }
|
|
|
- , { field: 'Id', fixed: 'left', title: 'ID', width: 80, sort: true, unresize: true }
|
|
|
|
|
|
|
+ // , { field: 'Id', fixed: 'left', title: 'ID', width: 80, sort: true, unresize: true }
|
|
|
|
|
+ , { field: 'Status', width: 200, title: '状态', sort: true }
|
|
|
, { field: 'TradeSerialNo', width: 200, title: '交易单号', sort: true }
|
|
, { field: 'TradeSerialNo', width: 200, title: '交易单号', sort: true }
|
|
|
, { field: 'MerNo', width: 200, title: '商户编号', sort: true }
|
|
, { field: 'MerNo', width: 200, title: '商户编号', sort: true }
|
|
|
, { field: 'TradeAmount', width: 200, title: '交易金额', sort: true }
|
|
, { field: 'TradeAmount', width: 200, title: '交易金额', sort: true }
|
|
|
- // , { field: 'TradeStatus', width: 200, title: '交易状态', sort: true }
|
|
|
|
|
|
|
+ , { field: 'CreateDate', width: 200, title: '创建时间', sort: true }
|
|
|
|
|
+ , { field: 'AgentNo', width: 200, title: '代理编号', sort: true }
|
|
|
|
|
+ , { field: 'BankCardNo', width: 200, title: '交易卡号', sort: true }
|
|
|
|
|
+ , { field: 'TradeSnNo', width: 200, title: '机具号', sort: true }
|
|
|
|
|
+ , { field: 'TradeType', width: 200, title: '交易类型', sort: true }
|
|
|
|
|
+ , { field: 'TradeStatus', width: 200, title: '交易状态', sort: true }
|
|
|
// , { field: 'TradeDate', width: 200, title: '交易日期', sort: true }
|
|
// , { field: 'TradeDate', width: 200, title: '交易日期', sort: true }
|
|
|
- // , { field: 'TradeTime', width: 200, title: '交易时间', sort: true }
|
|
|
|
|
|
|
+ , { field: 'TradeTime', width: 200, title: '交易时间', sort: true }
|
|
|
, { field: 'BankCardType', width: 200, title: '银行卡类型', sort: true }
|
|
, { field: 'BankCardType', width: 200, title: '银行卡类型', sort: true }
|
|
|
- // , { field: 'BankCardNo', width: 200, title: '交易卡号', sort: true }
|
|
|
|
|
|
|
+ , { field: 'MerNo', width: 200, title: '商户编号', sort: true }
|
|
|
// , { field: 'SettleFee', width: 200, title: '出款手续费', sort: true }
|
|
// , { field: 'SettleFee', width: 200, title: '出款手续费', sort: true }
|
|
|
// , { field: 'Remark', width: 200, title: '备注', sort: true }
|
|
// , { field: 'Remark', width: 200, title: '备注', sort: true }
|
|
|
- // , { field: 'ProductType', width: 200, title: '产品类型', sort: true }
|
|
|
|
|
|
|
+ , { field: 'ProductType', width: 200, title: '产品类型', sort: true }
|
|
|
// , { field: 'AgentNo', width: 200, title: '代理商编号', sort: true }
|
|
// , { field: 'AgentNo', width: 200, title: '代理商编号', sort: true }
|
|
|
- // , { field: 'ChannelSerial', width: 200, title: '渠道流水号', sort: true }
|
|
|
|
|
|
|
+ , { field: 'ChannelSerial', width: 200, title: '渠道流水号', sort: true }
|
|
|
|
|
+ , { field: 'TradeSerialNo', width: 200, title: '贸易序列号', sort: true }
|
|
|
|
|
|
|
|
// , { field: 'Sort', fixed: 'right', title: '排序', width: 80, edit: 'text' }
|
|
// , { field: 'Sort', fixed: 'right', title: '排序', width: 80, edit: 'text' }
|
|
|
- , { title: '操作', align: 'center', fixed: 'right', toolbar: '#table-list-tools' }
|
|
|
|
|
|
|
+ // , { title: '操作', align: 'center', fixed: 'right', toolbar: '#table-list-tools' }
|
|
|
]]
|
|
]]
|
|
|
, where: {
|
|
, where: {
|
|
|
|
|
|
|
@@ -101,7 +108,7 @@ layui.config({
|
|
|
var index = layer.confirm('确定要删除吗?删除后不能恢复!', function (index) {
|
|
var index = layer.confirm('确定要删除吗?删除后不能恢复!', function (index) {
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
type: "POST",
|
|
type: "POST",
|
|
|
- url: "/Admin/TradeRecord/Delete?r=" + Math.random(1),
|
|
|
|
|
|
|
+ url: "/Admin/SpTradeRecord/Delete?r=" + Math.random(1),
|
|
|
data: "Id=" + data.Id,
|
|
data: "Id=" + data.Id,
|
|
|
dataType: "text",
|
|
dataType: "text",
|
|
|
success: function (data) {
|
|
success: function (data) {
|
|
@@ -155,7 +162,7 @@ layui.config({
|
|
|
|
|
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
type: "POST",
|
|
type: "POST",
|
|
|
- url: "/Admin/TradeRecord/Edit?r=" + Math.random(1),
|
|
|
|
|
|
|
+ url: "/Admin/SpTradeRecord/Edit?r=" + Math.random(1),
|
|
|
data: userdata,
|
|
data: userdata,
|
|
|
dataType: "text",
|
|
dataType: "text",
|
|
|
success: function (data) {
|
|
success: function (data) {
|
|
@@ -217,7 +224,7 @@ layui.config({
|
|
|
var index = layer.confirm('确定要删除吗?删除后不能恢复!', function (index) {
|
|
var index = layer.confirm('确定要删除吗?删除后不能恢复!', function (index) {
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
type: "POST",
|
|
type: "POST",
|
|
|
- url: "/Admin/TradeRecord/Delete?r=" + Math.random(1),
|
|
|
|
|
|
|
+ url: "/Admin/SpTradeRecord/Delete?r=" + Math.random(1),
|
|
|
data: "Id=" + ids,
|
|
data: "Id=" + ids,
|
|
|
dataType: "text",
|
|
dataType: "text",
|
|
|
success: function (data) {
|
|
success: function (data) {
|
|
@@ -272,7 +279,7 @@ layui.config({
|
|
|
|
|
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
type: "POST",
|
|
type: "POST",
|
|
|
- url: "/Admin/TradeRecord/Add?r=" + Math.random(1),
|
|
|
|
|
|
|
+ url: "/Admin/SpTradeRecord/Add?r=" + Math.random(1),
|
|
|
data: userdata,
|
|
data: userdata,
|
|
|
dataType: "text",
|
|
dataType: "text",
|
|
|
success: function (data) {
|
|
success: function (data) {
|
|
@@ -314,7 +321,7 @@ layui.config({
|
|
|
});
|
|
});
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
type: "GET",
|
|
type: "GET",
|
|
|
- url: "/Admin/TradeRecord/ExportExcel?r=" + Math.random(1),
|
|
|
|
|
|
|
+ url: "/Admin/SpTradeRecord/ExportExcel?r=" + Math.random(1),
|
|
|
data: userdata,
|
|
data: userdata,
|
|
|
dataType: "json",
|
|
dataType: "json",
|
|
|
success: function (data) {
|
|
success: function (data) {
|
|
@@ -337,7 +344,7 @@ layui.config({
|
|
|
var index = layer.confirm('确定要开启吗?', function (index) {
|
|
var index = layer.confirm('确定要开启吗?', function (index) {
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
type: "POST",
|
|
type: "POST",
|
|
|
- url: "/Admin/TradeRecord/Open?r=" + Math.random(1),
|
|
|
|
|
|
|
+ url: "/Admin/SpTradeRecord/Open?r=" + Math.random(1),
|
|
|
data: "Id=" + ids,
|
|
data: "Id=" + ids,
|
|
|
dataType: "text",
|
|
dataType: "text",
|
|
|
success: function (data) {
|
|
success: function (data) {
|
|
@@ -366,7 +373,7 @@ layui.config({
|
|
|
var index = layer.confirm('确定要关闭吗?', function (index) {
|
|
var index = layer.confirm('确定要关闭吗?', function (index) {
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
type: "POST",
|
|
type: "POST",
|
|
|
- url: "/Admin/TradeRecord/Close?r=" + Math.random(1),
|
|
|
|
|
|
|
+ url: "/Admin/SpTradeRecord/Close?r=" + Math.random(1),
|
|
|
data: "Id=" + ids,
|
|
data: "Id=" + ids,
|
|
|
dataType: "text",
|
|
dataType: "text",
|
|
|
success: function (data) {
|
|
success: function (data) {
|