|
|
@ -1,5 +1,11 @@ |
|
|
|
<!DOCTYPE html> |
|
|
|
<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> |
|
|
|
<th:block th:include="include :: header('bom列表')" /> |
|
|
|
</head> |
|
|
@ -92,7 +98,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<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:inline="javascript"> |
|
|
|
var editFlag = [[${@permission.hasPermi('erp:bom:edit')}]]; |
|
|
@ -126,6 +132,7 @@ |
|
|
|
sortStable: true, // 设置为 true 将获得稳定的排序 |
|
|
|
modalName: "bom", |
|
|
|
detailView: true, |
|
|
|
width: 800, |
|
|
|
fixedColumns: true, // 启用冻结列 |
|
|
|
rightFixedColumns:1, |
|
|
|
fixedRightNumber: 1, // 冻结右列个数 |
|
|
@ -145,26 +152,34 @@ |
|
|
|
checkbox: true, |
|
|
|
}, |
|
|
|
{ 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: 'materialName', sortable: true,}, |
|
|
|
{title: '描述',field: 'describe',}, |
|
|
|
{ title: '品牌',field: 'brand', sortable: true,}, |
|
|
|
{title: '半成品类型',field: 'processMethod', |
|
|
|
{ title: '物料名称',field: 'materialName', sortable: true,width: 100,}, |
|
|
|
{title: '描述',field: 'describe', |
|
|
|
cellStyle: function (row, index) { |
|
|
|
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);; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ title: '单位',field: 'unit',}, |
|
|
|
{ title: '图片',field: 'photoUrl', |
|
|
|
{ title: '单位',field: 'unit',align: 'center',width: 50, |
|
|
|
cellStyle: function (row, index) { |
|
|
|
return { css: { 'width': '50px' } }; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ title: '图片',field: 'photoUrl',align: 'center',width: 50, |
|
|
|
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>';} |
|
|
|
}, |
|
|
|
{ title: '申请时间',field: 'applyTime',sortable: true,}, |
|
|
|
{title: '上次更新时间',field: 'updateTime',}, |
|
|
|
{ title: '当前状态',field: 'taskName',align: 'center', |
|
|
|
{ title: '申请时间',field: 'applyTime',sortable: true,width: 100,}, |
|
|
|
{title: '上次更新时间',field: 'updateTime',width: 120,}, |
|
|
|
{ title: '当前状态',field: 'taskName',align: 'center',width: 120, |
|
|
|
formatter: function(value, row, index) { |
|
|
|
if(row.auditStatus!="1"&&value != "未启动"){ |
|
|
|
return '<span class="badge badge-danger">' + value + '</span>'; |
|
|
@ -213,6 +228,7 @@ |
|
|
|
{ |
|
|
|
title: '操作', |
|
|
|
align: 'center', |
|
|
|
width: 120, |
|
|
|
formatter: function(value, row, index) { |
|
|
|
var actions = []; |
|
|
|
// 审核状态-审核通过 使用状态-是 未发起作废流程 |
|
|
|