|
|
@ -5,7 +5,7 @@ |
|
|
|
</head> |
|
|
|
<body class="white-bg"> |
|
|
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
|
|
|
<form class="form-horizontal m" id="form-inventoryHistory-edit" th:object="${warehouseInventoryInquiry}"> |
|
|
|
<form class="form-horizontal m" id="form-inventoryHistory-inventoryHistory" th:object="${warehouseInventoryInquiry}"> |
|
|
|
<input name="inventoryInquiryId" th:field="*{inventoryInquiryId}" type="hidden"> |
|
|
|
<div class="form-group"> |
|
|
|
<label class="col-sm-3 control-label">料号:</label> |
|
|
@ -58,16 +58,19 @@ |
|
|
|
var prefix = ctx + "warehouse/inventoryInquiry"; |
|
|
|
|
|
|
|
var warehouseInventoryInquiry = [[${warehouseInventoryInquiry}]]; |
|
|
|
var inventoryHistoricalType = [[${@dict.getType('inventory_historical_type')}]]; |
|
|
|
|
|
|
|
var inventoryIncreaseDecrease = [[${@dict.getType('inventory_increase_decrease')}]]; |
|
|
|
var inquiryBusinessType = [[${@dict.getType('inquiry_business_type')}]]; |
|
|
|
var inquiryOrderType = [[${@dict.getType('inquiry_order_type')}]]; |
|
|
|
var inquiryWarehouseType = [[${@dict.getType('inquiry_warehouse_type')}]] |
|
|
|
|
|
|
|
$("#form-inventoryHistory-edit").validate({ |
|
|
|
$("#form-inventoryHistory-inventoryHistory").validate({ |
|
|
|
focusCleanup: true |
|
|
|
}); |
|
|
|
|
|
|
|
function submitHandler() { |
|
|
|
if ($.validate.form()) { |
|
|
|
$.operate.save(prefix + "/edit", $('#form-inventoryHistory-edit').serialize()); |
|
|
|
$.operate.save(prefix + "/inventoryHistory", $('#form-inventoryHistory-inventoryHistory').serialize()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -76,7 +79,7 @@ |
|
|
|
$(function() { |
|
|
|
var options = { |
|
|
|
modalName: "选择物料", |
|
|
|
url: ctx + "warehouse/inventoryInquiry/getMaterialInventoryHistoricalList", |
|
|
|
url: prefix + "/getMaterialInventoryHistoricalList", |
|
|
|
queryParams: queryParams, |
|
|
|
showSearch: false, |
|
|
|
showRefresh: false, |
|
|
@ -88,25 +91,31 @@ |
|
|
|
{title: '库存查询详情id', field: 'inventoryInquiryDetailId', visible: false}, |
|
|
|
{title: '物料号', field: 'materialNo', visible: false}, |
|
|
|
{title: '时间', field: 'inventoryHistoricalTime',}, |
|
|
|
{title: '类型', field: 'inventoryHistoricalType', |
|
|
|
{title: '库存增减', field: 'inventoryIncreaseDecrease', |
|
|
|
formatter: function(value, row, index) { |
|
|
|
return $.table.selectDictLabel(inventoryHistoricalType, value); |
|
|
|
return $.table.selectDictLabel(inventoryIncreaseDecrease, value); |
|
|
|
} |
|
|
|
}, |
|
|
|
{title: '库存增减', field: 'inventoryIncreaseDecrease', |
|
|
|
{title: '单号', field: 'correlationCode'}, |
|
|
|
{title: '出货设备ID', field: 'shippingDeviceId'}, |
|
|
|
{title: '数量', field: 'increaseDecreaseNum'}, |
|
|
|
{title: '业务类型', field: 'inquiryBusinessType', |
|
|
|
formatter: function(value, row, index) { |
|
|
|
return $.table.selectDictLabel(inventoryIncreaseDecrease, value); |
|
|
|
return $.table.selectDictLabel(inquiryBusinessType, value); |
|
|
|
} |
|
|
|
}, |
|
|
|
{title: '数量', field: 'availableStockNum'}, |
|
|
|
{title: '库存历史数量', field: 'inventoryHistoricalNum',visible: false}, |
|
|
|
{title: '不含税采购总价', field: 'purchasePriceExcludingTax',}, |
|
|
|
{title: '含税总价', field: 'purchasePriceIncludesTax',}, |
|
|
|
{title: '采购单号', field: 'purchaseOrderCode',}, |
|
|
|
{title: '供应商ID', field: 'supplierCode',}, |
|
|
|
{title: '供应商名称', field: 'supplierName',}, |
|
|
|
{title: '库存归属单号', field: 'inventoryAttributionCode',}, |
|
|
|
{title: '库存使用单号', field: 'inventoryUseCode',}, |
|
|
|
{title: '订单类型', field: 'inquiryOrderType', |
|
|
|
formatter: function(value, row, index) { |
|
|
|
return $.table.selectDictLabel(inquiryOrderType, value); |
|
|
|
} |
|
|
|
}, |
|
|
|
{title: '出入库类型', field: 'inquiryWarehouseType', |
|
|
|
formatter: function(value, row, index) { |
|
|
|
return $.table.selectDictLabel(inquiryWarehouseType, value); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
] |
|
|
|
}; |
|
|
|
$.table.init(options); |
|
|
|