|
|
@ -49,11 +49,19 @@ |
|
|
|
<th:block th:include="include :: footer" /> |
|
|
|
<script th:inline="javascript"> |
|
|
|
var editFlag = [[${@permission.hasPermi('warehouse:inventoryInquiry:edit')}]]; |
|
|
|
|
|
|
|
|
|
|
|
var materialUseStatusDatas = [[${@dict.getType('material_use_status')}]]; |
|
|
|
var auditStatusDatas = [[${@dict.getType('auditStatus')}]]; |
|
|
|
var useStatusDatas = [[${@dict.getType('useStatus')}]]; |
|
|
|
var processMethodDatas = [[${@dict.getType('processMethod')}]]; |
|
|
|
var sysUnitClassDatas = [[${@dict.getType('sysUnitClassDatas')}]]; |
|
|
|
var warehouseDeptDatas = [[${@dict.getType('warehouseDept')}]]; |
|
|
|
var haveProductTem = [[${@dict.getType('haveProductTem')}]]; |
|
|
|
var materialTypeDatas = [[${@category.getChildByCode('materialType')}]]; |
|
|
|
var commonCurrencyDatas = [[${@dict.getType('commonCurrentcy')}]]; |
|
|
|
var userName = [[${@permission.getPrincipalProperty('userName')}]]; |
|
|
|
var currentUser = [[${currentUser}]]; |
|
|
|
var loginName = [[${@permission.getPrincipalProperty('loginName')}]]; |
|
|
|
var prefix = ctx + "warehouse/inventoryInquiry"; |
|
|
|
|
|
|
|
$(function() { |
|
|
|
var options = { |
|
|
|
url: prefix + "/list", |
|
|
@ -61,110 +69,59 @@ |
|
|
|
updateUrl: prefix + "/edit/{id}", |
|
|
|
exportUrl: prefix + "/export", |
|
|
|
modalName: "仓库库存查询", |
|
|
|
columns: [{ |
|
|
|
checkbox: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '库存查询id', |
|
|
|
field: 'inventoryInquiryId', |
|
|
|
visible: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '料号', |
|
|
|
field: 'materialNo', |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '物料名称', |
|
|
|
field: 'materialName', |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '物料类型', |
|
|
|
field: 'materialType', |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '物料图片地址', |
|
|
|
field: 'materialPhotourl', |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '物料品牌', |
|
|
|
field: 'materialBrand', |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '物料单位', |
|
|
|
field: 'materialUnit', |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '物料描述', |
|
|
|
field: 'materialDescribe', |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '物料加工方式', |
|
|
|
field: 'materialProcessMethod', |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '物料型号', |
|
|
|
field: 'materialModel', |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '物料规格', |
|
|
|
field: 'materialSpecification', |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '物料历史总数量', |
|
|
|
field: 'historicalTotal', |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '可用库存数', |
|
|
|
field: 'availableStockNum', |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '物料归属可用库存数', |
|
|
|
field: 'attributionAvailableStockNum', |
|
|
|
columns: [ |
|
|
|
{checkbox: true}, |
|
|
|
{title: '库存查询id', field: 'inventoryInquiryId', visible: false}, |
|
|
|
{title: '料号', field: 'materialNo',}, |
|
|
|
{title: '物料名称', field: 'materialName',}, |
|
|
|
{title: '物料类型', field: 'materialType', |
|
|
|
formatter: function( value, row,index) { |
|
|
|
return $.table.selectCategoryLabel(materialTypeDatas, value); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '物料无归属可用库存数', |
|
|
|
field: 'noattributionAvailableStockNum', |
|
|
|
{title: '物料图片地址', field: 'materialPhotourl', |
|
|
|
formatter: function(value, row, index) { |
|
|
|
return $.table.imageView(value); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '物料使用数', |
|
|
|
field: 'useNum', |
|
|
|
{title: '物料品牌', field: 'materialBrand',}, |
|
|
|
{title: '物料单位', field: 'materialUnit',}, |
|
|
|
{title: '物料描述', field: 'materialDescribe',}, |
|
|
|
{title: '物料加工方式', field: 'materialProcessMethod', |
|
|
|
formatter: function(value, row, index) { |
|
|
|
return $.table.selectDictLabel(processMethodDatas, value); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '物料报损数', |
|
|
|
field: 'reportDamageNum', |
|
|
|
{title: '物料型号', field: 'materialModel',}, |
|
|
|
{title: '物料规格', field: 'materialSpecification',}, |
|
|
|
{title: '物料入库部门', field: 'warehouseDept',visible: false, |
|
|
|
formatter: function(value, row, index) { |
|
|
|
return $.table.selectDictLabel(warehouseDeptDatas, value); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '物料使用状态', |
|
|
|
field: 'materialUseStatus', |
|
|
|
{title: '物料历史总数量', field: 'historicalTotal',}, |
|
|
|
{title: '可用库存数', field: 'availableStockNum',}, |
|
|
|
{title: '物料归属可用库存数', field: 'attributionAvailableStockNum',}, |
|
|
|
{title: '物料无归属可用库存数', field: 'noattributionAvailableStockNum',}, |
|
|
|
{title: '物料使用数', field: 'useNum',}, |
|
|
|
{title: '物料报损数', field: 'reportDamageNum',}, |
|
|
|
{title: '物料使用状态', field: 'materialUseStatus', |
|
|
|
formatter: function(value, row, index) { |
|
|
|
return $.table.selectDictLabel(materialUseStatusDatas, value); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '录入时间', |
|
|
|
field: 'createTime', |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '录入人', |
|
|
|
field: 'createBy', |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '更新人', |
|
|
|
field: 'updateBy', |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '上次更新时间', |
|
|
|
field: 'updateTime', |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '操作', |
|
|
|
align: 'center', |
|
|
|
{title: '录入时间', field: 'createTime',}, |
|
|
|
{title: '录入人', field: 'createBy',}, |
|
|
|
{title: '更新人', field: 'updateBy',}, |
|
|
|
{title: '上次更新时间', field: 'updateTime',}, |
|
|
|
{title: '操作', align: 'center', |
|
|
|
formatter: function(value, row, index) { |
|
|
|
var actions = []; |
|
|
|
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.inventoryInquiryId + '\')"><i class="fa fa-edit"></i>编辑</a> '); |
|
|
|
return actions.join(''); |
|
|
|
} |
|
|
|
}] |
|
|
|
} |
|
|
|
] |
|
|
|
}; |
|
|
|
$.table.init(options); |
|
|
|
}); |
|
|
|