|
|
|
@ -174,6 +174,7 @@ layui.use(['form', 'step', 'flow', 'table', 'inputTag'], function () { |
|
|
|
{field: 'stockTakingQuantity', width: 100, title: '盘点数', edit: 'quantity'}, |
|
|
|
{field: 'takingResultString', width: 100, title: '盘点结果'}, |
|
|
|
{field: 'takingInventory', width: 100, title: '盈亏数量'}, |
|
|
|
{title: '操作', width: 100, toolbar: '#currentTableBarForLocation', align: "center"} |
|
|
|
] |
|
|
|
], |
|
|
|
limits: [10, 15, 20, 25, 50, 100], |
|
|
|
@ -195,6 +196,8 @@ layui.use(['form', 'step', 'flow', 'table', 'inputTag'], function () { |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 用于打开负责人树形菜单
|
|
|
|
$("#selectdepartmentManagerForMaterial").on('click', function () { |
|
|
|
layer.open({ |
|
|
|
@ -224,6 +227,8 @@ layui.use(['form', 'step', 'flow', 'table', 'inputTag'], function () { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
table.on('edit(currentTableFilterForMaterial)', function (obj) { |
|
|
|
obj.update({stockTakingQuantity: obj.value});//修改当前行数据
|
|
|
|
calculateForMaterial(obj); |
|
|
|
@ -257,6 +262,20 @@ layui.use(['form', 'step', 'flow', 'table', 'inputTag'], function () { |
|
|
|
//下拉菜单
|
|
|
|
|
|
|
|
} |
|
|
|
else if(layEvent === "clear"){ |
|
|
|
let req = {}; |
|
|
|
req.id = obj.data.id + ""; |
|
|
|
$.ajax({ |
|
|
|
url: "/stockTaking/delTemporaryStorageForTakingResult", |
|
|
|
dataType: "json", |
|
|
|
data: JSON.stringify(req), |
|
|
|
type: "POST", |
|
|
|
contentType: "application/json;charset=utf-8", |
|
|
|
success : function(){ |
|
|
|
updateTableShowForMaterial(); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
// 用于计算盘点结果
|
|
|
|
|