liujie
9 天以前 bc52f606d965585ab8a14730a2ec96e5f7197c67
cloud-server-management/src/main/webapp/static/modular/system/tHuiminCard/tHuiminCard.js
@@ -1,5 +1,5 @@
/**
 * 惠民卡管理初始化
 * 玩湃惠民卡管理初始化
 */
var THuiminCard = {
    id: "THuiminCardTable",   //表格id
@@ -15,8 +15,8 @@
    return [
        {field: 'selectItem', radio: true},
            {title: '主键id', field: 'id', visible: true, align: 'center', valign: 'middle'},
            {title: '惠民卡名称', field: 'huiMinName', visible: true, align: 'center', valign: 'middle'},
            {title: '惠民卡类型1年度2年内', field: 'huiMinType', visible: true, align: 'center', valign: 'middle'},
            {title: '玩湃惠民卡名称', field: 'huiMinName', visible: true, align: 'center', valign: 'middle'},
            {title: '玩湃惠民卡类型1年度2年内', field: 'huiMinType', visible: true, align: 'center', valign: 'middle'},
            {title: '售卖金额', field: 'salesMoney', visible: true, align: 'center', valign: 'middle'},
            {title: '已购买封面', field: 'buyCover', visible: true, align: 'center', valign: 'middle'},
            {title: '未购买封面', field: 'unBuyCover', visible: true, align: 'center', valign: 'middle'},
@@ -31,7 +31,7 @@
            {title: '不可用时间段,yyyy-MM-dd HH:mm:ss,多个逗号分隔', field: 'unUseTimes', visible: true, align: 'center', valign: 'middle'},
            {title: '使用范围1门店2场地', field: 'useScope', visible: true, align: 'center', valign: 'middle'},
            {title: '根据适用范围,存储门店id或场地id,多个逗号分隔', field: 'useIds', visible: true, align: 'center', valign: 'middle'},
            {title: '惠民卡介绍', field: 'introduce', visible: true, align: 'center', valign: 'middle'},
            {title: '玩湃惠民卡介绍', field: 'introduce', visible: true, align: 'center', valign: 'middle'},
            {title: '排序', field: 'sort', visible: true, align: 'center', valign: 'middle'},
            {title: '门店id', field: 'storeId', visible: true, align: 'center', valign: 'middle'}
    ];
@@ -52,13 +52,13 @@
};
/**
 * 点击添加惠民卡
 * 点击添加玩湃惠民卡
 */
THuiminCard.openAddTHuiminCard = function () {
    var index = layer.open({
        type: 2,
        title: '添加惠民卡',
        area: ['800px', '420px'], //宽高
        title: '添加玩湃惠民卡',
        area: ['100%', '100%'], //宽高
        fix: false, //不固定
        maxmin: true,
        content: Feng.ctxPath + '/tHuiminCard/tHuiminCard_add'
@@ -67,24 +67,35 @@
};
/**
 * 打开查看惠民卡详情
 * 打开查看玩湃惠民卡详情
 */
THuiminCard.openTHuiminCardDetail = function () {
    if (this.check()) {
        var index = layer.open({
            type: 2,
            title: '惠民卡详情',
            area: ['800px', '420px'], //宽高
            fix: false, //不固定
            maxmin: true,
            content: Feng.ctxPath + '/tHuiminCard/tHuiminCard_update/' + THuiminCard.seItem.id
        });
        this.layerIndex = index;
    }
THuiminCard.openTHuiminCardDetail = function (id, pageType) {
    console.log(id)
    let index = layer.open({
        type: 2,
        title: '玩湃惠民卡详情',
        area: ['100%', '100%'], //宽高
        fix: false, //不固定
        maxmin: true,
        content: Feng.ctxPath + '/tHuiminCard/tHuiminCard_detail/' + id+'?pageType='+pageType
    });
    this.layerIndex = index;
};
THuiminCard.addOrder = function (id, pageType) {
    console.log(id)
    let index = layer.open({
        type: 2,
        title: '订单录入',
        area: ['100%', '100%'], //宽高
        fix: false, //不固定
        maxmin: true,
        content: Feng.ctxPath + '/tHuiminCard/tHuiminCardAddOrder'
    });
    this.layerIndex = index;
};
/**
 * 删除惠民卡
 * 删除玩湃惠民卡
 */
THuiminCard.delete = function () {
    if (this.check()) {
@@ -99,18 +110,12 @@
    }
};
/**
 * 查询惠民卡列表
 * 查询玩湃惠民卡列表
 */
THuiminCard.search = function () {
    var queryData = {};
    queryData['condition'] = $("#condition").val();
    THuiminCard.table.refresh({query: queryData});
};
$(function () {
    var defaultColunms = THuiminCard.initColumn();
    var table = new BSTable(THuiminCard.id, "/tHuiminCard/list", defaultColunms);
    table.setPaginationType("client");
    THuiminCard.table = table.init();
});