Files
ulthon_admin/app/admin/view/test/goods/index.js
2026-01-05 22:59:12 +08:00

11 lines
2.7 KiB
PHP

$(function(){
ua.table.render({
init: init,
cols: [[
{type: 'checkbox'},
{field: 'id', title: 'id'},
{field: 'cate_id', title: '分类ID'},
{field: 'title', title: '商品名称'},
{field: 'logo', title: '商品logo', templet: ua.table.image},
{field: 'total_stock', title: '总库存'},
{field: 'sort', title: '排序', edit: 'text'},
{field: 'status', search: 'select', selectList: ua.getDataBrage('select_list_status'), title: '状态', templet: ua.table.switch},
{field: 'cert_file', title: '合格证', templet: ua.table.url},
{field: 'remark', title: '备注说明', templet: ua.table.text},
{field: 'create_time', title: 'create_time'},
{field: 'publish_time', title: '发布日期'},
{field: 'sale_time', title: '售卖日期'},
{field: 'intro', title: '简介'},
{field: 'time_status', search: 'select', selectList: ua.getDataBrage('select_list_time_status'), title: '秒杀状态'},
{field: 'is_recommend', search: 'select', selectList: ua.getDataBrage('select_list_is_recommend'), title: '是否推荐'},
{field: 'shop_type', search: 'select', selectList: ua.getDataBrage('select_list_shop_type'), title: '商品类型'},
{field: 'from_area', title: '产地'},
{field: 'store_city', title: '仓库'},
{field: 'tag_input', title: '商品标签 (输入)'},
{field: 'uid', title: '唯一id'},
{field: 'price', title: '价格'},
{field: 'detail', title: '详情'},
{field: 'mallCate.id', title: ''},
{field: 'mallCate.title', title: '分类名'},
{field: 'mallCate.image', title: '分类图片', templet: ua.table.image},
{field: 'mallCate.sort', title: '排序', edit: 'text'},
{field: 'mallCate.status', title: '状态', templet: ua.table.switch},
{field: 'mallCate.remark', title: '备注说明', templet: ua.table.text},
{field: 'mallCate.create_time', title: '创建时间'},
{width: 250, title: '操作', templet: ua.table.tool, operat: [{class: 'layui-btn layui-btn-primary layui-btn-xs', method: 'tab', field: 'id', text: '详情', title: '查看详情', auth: 'read', url: 'read', icon: ''}, 'edit', 'delete'], fixed:'right'},
]],
});
ua.listen();
})