lisy
2023-08-15 c6332a2118d9d8fe43d773495a403d4a9edf533d
cloud-server-management/src/main/webapp/static/modular/system/tGoods/tGoods.js
@@ -49,8 +49,10 @@
        },
        {title: '排序', field: 'sort', visible: true, align: 'center', valign: 'middle'
        },
        {title: '活动状态', field: 'state', visible: true, align: 'center', valign: 'middle'
        {title: '活动状态', field: 'activeStatus', visible: true, align: 'center', valign: 'middle',
            formatter: function (value, row, index) {
                return {1: "未开始", 2: "已开始", 3: "已结束"}[value]
            }
        },
        {title: '可售状态', field: 'shelves', visible: true, align: 'center', valign: 'middle',
            formatter: function (value, row, index) {
@@ -145,11 +147,11 @@
    if (this.check()) {
        var index = layer.open({
            type: 2,
            title:'编辑',
            area: ['100%', '100%'], //宽高
            title:'购买详情',
            area: ['70%', '70%'], //宽高
            fix: false, //不固定
            maxmin: true,
            content: Feng.ctxPath + '/tGoods/tCity_update/' + TPointProducts.seItem.id
            content: Feng.ctxPath + '/tGoods/tPay_detail/' + TPointProducts.seItem.id
        });
        this.layerIndex = index;
    }
@@ -166,7 +168,7 @@
            area: ['100%', '100%'], //宽高
            fix: false, //不固定
            maxmin: true,
            content: Feng.ctxPath + '/tGoods/tCity_update/' + TPointProducts.seItem.id
            content: Feng.ctxPath + '/tGoods/tGoods_update/' + TPointProducts.seItem.id
        });
        this.layerIndex = index;
    }
@@ -178,16 +180,17 @@
 */
TPointProducts.grounding = function (m) {
    console.log('m:',m);
    // if (this.check()) {
    //     var ajax = new $ax(Feng.ctxPath + "/tGoods/freeze", function (data) {
    //         Feng.success("冻结成功!");
    //         TPointProducts.table.refresh();
    //     }, function (data) {
    //         Feng.error("冻结失败!" + data.responseJSON.message + "!");
    //     });
    //     ajax.set("id",this.seItem.id);
    //     ajax.start();
    // }
    if (this.check()) {
        var ajax = new $ax(Feng.ctxPath + "/tGoods/grounding", function (data) {
            Feng.success("操作成功!");
            TPointProducts.table.refresh();
        }, function (data) {
            Feng.error("操作失败!" + data.responseJSON.message + "!");
        });
        ajax.set("id",this.seItem.id);
        ajax.set("type",m);
        ajax.start();
    }
};