|
24
25
26
27
28
29
30
31
32
|
var prefix = ctx + "task/taskDetail"
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
modalName: "立库任务明细",
|
|
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
columns: [{
checkbox: true
},
{
field : 'id',
title : '立库任务明细ID'
},
{
field : 'taskId',
title : '主任务Id'
},
{
field : 'warehouseId',
title : '仓库Id'
},
{
field : 'warehouseCode',
title : '仓库'
},
{
field : 'allocationId',
title : '容器物料表ID'
},
{
field : 'materialCode',
title : ''
},
{
field : 'materialName',
title : ''
},
{
field : 'containerCode',
title : '出入库货箱Code'
},
{
field : 'sourceLocation',
title : '源库位'
},
{
field : 'destinationLocation',
title : '目的库位'
},
{
field : 'qty',
title : ''
},
{
field : 'status',
title : '子任务状态'
},
{
field : 'endTime',
title : '子任务完成时间'
},
{
field : 'lastUpdated',
title : '最后修改时间'
},
{
field : 'lastUpdatedBy',
title : '更新用户'
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="#" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="#" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>
|