Browse Source

[fix]

工程管理 bom信息
调整表格列宽,优化显示效果
dev
王晓迪 7 months ago
parent
commit
6df2b3705c
  1. 40
      ruoyi-admin/src/main/resources/templates/erp/bom/bom.html

40
ruoyi-admin/src/main/resources/templates/erp/bom/bom.html

@ -1,5 +1,11 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"> <html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<style>
.table{
table-layout: fixed;
word-break: break-all;
}
</style>
<head> <head>
<th:block th:include="include :: header('bom列表')" /> <th:block th:include="include :: header('bom列表')" />
</head> </head>
@ -92,7 +98,7 @@
</div> </div>
</div> </div>
<th:block th:include="include :: footer" /> <th:block th:include="include :: footer" />
<th:block th:include="include :: bootstrap-table-fixed-columns-js" /> <!-- <th:block th:include="include :: bootstrap-table-fixed-columns-js" />-->
<script th:src="@{/js/activiti.js}"></script> <script th:src="@{/js/activiti.js}"></script>
<script th:inline="javascript"> <script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('erp:bom:edit')}]]; var editFlag = [[${@permission.hasPermi('erp:bom:edit')}]];
@ -126,6 +132,7 @@
sortStable: true, // 设置为 true 将获得稳定的排序 sortStable: true, // 设置为 true 将获得稳定的排序
modalName: "bom", modalName: "bom",
detailView: true, detailView: true,
width: 800,
fixedColumns: true, // 启用冻结列 fixedColumns: true, // 启用冻结列
rightFixedColumns:1, rightFixedColumns:1,
fixedRightNumber: 1, // 冻结右列个数 fixedRightNumber: 1, // 冻结右列个数
@ -145,26 +152,34 @@
checkbox: true, checkbox: true,
}, },
{ title: '主键ID',field: 'id',visible: false}, { title: '主键ID',field: 'id',visible: false},
{ title: 'bom号',field: 'bomNo', sortable: true,}, { title: 'bom号',field: 'bomNo', sortable: true,width: 150},
{ title: '料号',field: 'materialNo', sortable: true,}, { title: '料号',field: 'materialNo', sortable: true,},
{ title: '物料名称',field: 'materialName', sortable: true,}, { title: '物料名称',field: 'materialName', sortable: true,width: 100,},
{title: '描述',field: 'describe',}, {title: '描述',field: 'describe',
{ title: '品牌',field: 'brand', sortable: true,}, cellStyle: function (row, index) {
{title: '半成品类型',field: 'processMethod', return { css: { 'width': '80px' } };
}
},
{ title: '品牌',field: 'brand', sortable: true,width: 70,},
{title: '半成品类型',field: 'processMethod',width: 120,
formatter: function(value, row, index) {return $.table.selectDictLabel(processMethodDatas, value);; formatter: function(value, row, index) {return $.table.selectDictLabel(processMethodDatas, value);;
} }
}, },
{ title: '单位',field: 'unit',}, { title: '单位',field: 'unit',align: 'center',width: 50,
{ title: '图片',field: 'photoUrl', cellStyle: function (row, index) {
return { css: { 'width': '50px' } };
}
},
{ title: '图片',field: 'photoUrl',align: 'center',width: 50,
formatter: function(value, row, index) {return $.table.imageView(value); formatter: function(value, row, index) {return $.table.imageView(value);
} }
}, },
{ title: '<span style="color: red;">申请人</span>',field: 'applyUserName', { title: '<span style="color: red;">申请人</span>',field: 'applyUserName',width: 80,
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>';}
}, },
{ title: '申请时间',field: 'applyTime',sortable: true,}, { title: '申请时间',field: 'applyTime',sortable: true,width: 100,},
{title: '上次更新时间',field: 'updateTime',}, {title: '上次更新时间',field: 'updateTime',width: 120,},
{ title: '当前状态',field: 'taskName',align: 'center', { title: '当前状态',field: 'taskName',align: 'center',width: 120,
formatter: function(value, row, index) { formatter: function(value, row, index) {
if(row.auditStatus!="1"&&value != "未启动"){ if(row.auditStatus!="1"&&value != "未启动"){
return '<span class="badge badge-danger">' + value + '</span>'; return '<span class="badge badge-danger">' + value + '</span>';
@ -213,6 +228,7 @@
{ {
title: '操作', title: '操作',
align: 'center', align: 'center',
width: 120,
formatter: function(value, row, index) { formatter: function(value, row, index) {
var actions = []; var actions = [];
// 审核状态-审核通过 使用状态-是 未发起作废流程 // 审核状态-审核通过 使用状态-是 未发起作废流程

Loading…
Cancel
Save