Browse Source

[fix] 工程管理

物料前端列表页面,新增录入时间字段,并且按照录入时间可以前端手动进行升序和降序
修改物料后端分页查询接口,新增默认排序为录入时间降序排序
dev
liuxiaoxu 3 months ago
parent
commit
90333851c9
  1. 8
      ruoyi-admin/src/main/resources/templates/erp/material/material.html

8
ruoyi-admin/src/main/resources/templates/erp/material/material.html

@ -158,6 +158,9 @@
return $.table.imageView(value); return $.table.imageView(value);
} }
}, },
{title: '使用状态',field: 'useStatus',
formatter: function(value, row, index) {return $.table.selectDictLabel(useStatusDatas, value);}
},
{title: '<span style="color: red;">申请人</span>',field: 'applyUserName', {title: '<span style="color: red;">申请人</span>',field: 'applyUserName',
formatter: function(value, row, index) {return '<span style="color: red;">' + (value ? value : "-") + '</span>';} formatter: function(value, row, index) {return '<span style="color: red;">' + (value ? value : "-") + '</span>';}
}, },
@ -175,9 +178,6 @@
{title: '审核状态',field: 'auditStatus',visible: false, {title: '审核状态',field: 'auditStatus',visible: false,
formatter: function(value, row, index) {return $.table.selectDictLabel(auditStatusDatas, value);} formatter: function(value, row, index) {return $.table.selectDictLabel(auditStatusDatas, value);}
}, },
{title: '使用状态',field: 'useStatus',visible: false,
formatter: function(value, row, index) {return $.table.selectDictLabel(useStatusDatas, value);}
},
{title: '工程员',field: 'businessMembers',visible: false}, {title: '工程员',field: 'businessMembers',visible: false},
{title: '关联bom号',field: 'bomNo',visible: false}, {title: '关联bom号',field: 'bomNo',visible: false},
{title: '物料类型',field: 'materialType',visible: false, {title: '物料类型',field: 'materialType',visible: false,
@ -189,7 +189,7 @@
}, },
{title: '技术团队id',field: 'productItem',visible: false,}, {title: '技术团队id',field: 'productItem',visible: false,},
{title: '技术团队名称',field: 'itemName',visible: false}, {title: '技术团队名称',field: 'itemName',visible: false},
{title: '录入时间',field: 'createTime',visible: false}, {title: '录入时间',field: 'createTime',sortable: true},
{title: '更新人',field: 'updateBy',visible: false}, {title: '更新人',field: 'updateBy',visible: false},
{title: '删除标志', field: 'delFlag',visible: false}, {title: '删除标志', field: 'delFlag',visible: false},
{title: '入库部门', field: 'warehouseDept',visible: false, {title: '入库部门', field: 'warehouseDept',visible: false,

Loading…
Cancel
Save