You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
2.8 KiB
82 lines
2.8 KiB
//长春富维江森投料管理模块中产品相关信息的公用方法
|
|
|
|
|
|
function TableStyle(index, row) {
|
|
return '<div style="padding:2px"><table id="ddv-' + index + '"></table></div>';
|
|
}
|
|
|
|
//绑定数据列
|
|
function BindFISExpandRow(index, row) {
|
|
|
|
if (row == undefined) {
|
|
row = $("#QDateGrid").datagrid("getSelected");
|
|
}
|
|
if (index == undefined) {
|
|
index = $("#QDateGrid").datagrid("getRowIndex", row);
|
|
}
|
|
|
|
var getDetailUrl = $('#GETDETAILINFO').val();
|
|
|
|
$('#ddv-' + index).datagrid({
|
|
url: getDetailUrl + row.PID,
|
|
fitColumns: false,
|
|
singleSelect: true,
|
|
rownumbers: true,
|
|
loadMsg: '',
|
|
height: 'auto',
|
|
columns: [[
|
|
{ field: 'FIS_PID', title: 'FIS发货主键', width: 90,
|
|
align: 'center', hidden: true
|
|
},
|
|
// { field: 'SHIPMENT_NO', title: '发货号', width: 70,
|
|
// align: 'center'
|
|
// },
|
|
{ field: 'STATE', title: '状态', width: 90,
|
|
align: 'center'
|
|
},
|
|
// { field: 'MATERIAL_CODE', title: '物料号', width: 120,
|
|
// align: 'center'
|
|
// },
|
|
// { field: 'MATERIAL_NAME', title: '物料名称', width: 220,
|
|
// align: 'center'
|
|
// },
|
|
// {field: 'FACTORY_CODE', title: '工厂编号', width: 60,
|
|
// align: 'center'
|
|
// },
|
|
// { field: 'FACTORY_NAME', title: '工厂名称', width: 90,
|
|
// align: 'center'
|
|
// },
|
|
{ field: 'WORKCENTER_CODE', title: '工作中心编号', width: 90,
|
|
align: 'left'
|
|
},
|
|
{ field: 'WORKCENTER_NAME', title: '工作中心名称', width: 90,
|
|
align:'left'
|
|
},
|
|
{ field: 'SENDCODE', title: '贴车单号', width: 90,
|
|
align: 'center'
|
|
},
|
|
{ field: 'PRODUCT_SN', title: '产品条码', width: 90,
|
|
align: 'left'
|
|
},
|
|
{ field: 'SCANDATE', title: '发运时间', width: 90,
|
|
align: 'left'
|
|
},
|
|
{ field: 'OPERATOR', title: '操作者', width: 90,
|
|
align: 'left'
|
|
}
|
|
// { field: 'QTY', title: '数量', width: 90,
|
|
// align: 'left'
|
|
// }
|
|
]],
|
|
onResize: function () {
|
|
$('#QDateGrid').datagrid('fixDetailRowHeight', index);
|
|
},
|
|
onLoadSuccess: function () {
|
|
setTimeout(function () {
|
|
$('#QDateGrid').datagrid('fixDetailRowHeight', index);
|
|
}, 0);
|
|
}
|
|
});
|
|
$('#QDateGrid').datagrid('fixDetailRowHeight', index);
|
|
}
|
|
|
|
|