|
|
@@ -530,7 +530,10 @@
|
|
|
{field: 'p_nums', title: '打印次数', align: 'right', sortable: true, width: 50},
|
|
|
{field: 'smalltotal', title: '小件数量', align: 'center', sortable: true, width: 80},
|
|
|
{field: 'l_weight', title: '大件重量', align: 'center', sortable: true, width: 80,
|
|
|
- formatter: function(value,row,index){return value/100;}
|
|
|
+ formatter: function(value,row,index){return value/100}
|
|
|
+ },
|
|
|
+ {field: 'l_num', title: '大件数量', align: 'center', sortable: true, width: 80,
|
|
|
+ formatter: function(value,row,index){return value/10000}
|
|
|
},
|
|
|
{field: 'type', title: '打印状态', align: 'center', sortable: true, width: 80},
|
|
|
{field: 'l_status', title: '导出状态', align: 'center', sortable: true, width: 80,
|
|
|
@@ -549,7 +552,17 @@
|
|
|
$.messager.alert('系统提示', '数据加载错误,请刷新重试!', 'error');
|
|
|
},
|
|
|
|
|
|
- onClickRow: function (rowIndex, rowData) {
|
|
|
+ onLoadSuccess:function(data){
|
|
|
+ if(data.rows[0].l_num == null || data.rows[0].l_num == 0){
|
|
|
+ $("#supTgGrid").datagrid("hideColumn", "l_num"); // 设置隐藏列
|
|
|
+ $("#supTgGrid").datagrid("showColumn", "l_weight"); // 设置显示列
|
|
|
+ }else{
|
|
|
+ $("#supTgGrid").datagrid("hideColumn", "l_weight"); // 设置隐藏列
|
|
|
+ $("#supTgGrid").datagrid("showColumn", "l_num"); // 设置显示列
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ onClickRow: function (rowIndex, rowData) {
|
|
|
|
|
|
//点击大标签,弹出小标签列表
|
|
|
$('#supTgGridS').html("");
|
|
|
@@ -867,10 +880,7 @@
|
|
|
$.messager.alert('系统提示', '请先勾选需要修改的标签!', 'info');
|
|
|
return;
|
|
|
}
|
|
|
- if (checked.length > 1) {
|
|
|
- $.messager.alert('系统提示', '请先勾选单个标签!', 'info');
|
|
|
- return;
|
|
|
- }
|
|
|
+
|
|
|
$('#reptWin3').window('open'); // open a window
|
|
|
$('#reptForm3').form('load', {'reptQty3': '','reptQty33': ''});
|
|
|
}
|
|
|
@@ -1742,7 +1752,10 @@
|
|
|
{field: 'p_nums', title: '打印次数', align: 'right', sortable: true, width: 50},
|
|
|
{field: 'smalltotal', title: '小件数量', align: 'center', sortable: true, width: 80},
|
|
|
{field: 'l_weight', title: '大件重量', align: 'center', sortable: true, width: 80,
|
|
|
- formatter: function(value,row,index){return value/100;}
|
|
|
+ formatter: function(value,row,index){return value/100}
|
|
|
+ },
|
|
|
+ {field: 'l_num', title: '大件数量', align: 'center', sortable: true, width: 80,
|
|
|
+ formatter: function(value,row,index){return value/10000}
|
|
|
},
|
|
|
{field: 'type', title: '打印状态', align: 'center', sortable: true, width: 80},
|
|
|
{field: 'l_status', title: '导出状态', align: 'center', sortable: true, width: 80,
|
|
|
@@ -1761,6 +1774,16 @@
|
|
|
$.messager.alert('系统提示', '数据加载错误,请刷新重试!', 'error');
|
|
|
},
|
|
|
|
|
|
+ onLoadSuccess:function(data){
|
|
|
+ if(data.rows[0].l_num == null || data.rows[0].l_num == 0){
|
|
|
+ $("#supTgGrid").datagrid("hideColumn", "l_num"); // 设置隐藏列
|
|
|
+ $("#supTgGrid").datagrid("showColumn", "l_weight"); // 设置显示列
|
|
|
+ }else{
|
|
|
+ $("#supTgGrid").datagrid("hideColumn", "l_weight"); // 设置隐藏列
|
|
|
+ $("#supTgGrid").datagrid("showColumn", "l_num"); // 设置显示列
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
onClickRow: function (rowIndex, rowData) {
|
|
|
|
|
|
//点击大标签,弹出小标签列表
|
|
|
@@ -1834,8 +1857,7 @@
|
|
|
}
|
|
|
return true;
|
|
|
}
|
|
|
- });
|
|
|
- }
|
|
|
+ }); }
|
|
|
},
|
|
|
error: function (XMLHttpRequest, textStatus, errorThrown) {
|
|
|
$.messager.alert('系统提示', '数据加载错误,请刷新重试!', 'error');
|