|
|
|
@ -127,17 +127,15 @@ |
|
|
|
let id = $("#id").val(); |
|
|
|
|
|
|
|
$(function () { |
|
|
|
let loading2 = layer.open({ type: 3, shade: [0.25, '#000'], icon: 2, speed: 0}); |
|
|
|
$.ajax({ |
|
|
|
url: "/material/findOnlyMaterialById", |
|
|
|
data: JSON.stringify({"id": id}), |
|
|
|
type: 'post', |
|
|
|
dataType: 'json', |
|
|
|
contentType: "application/json;charset=utf-8", |
|
|
|
beforeSend: function () { |
|
|
|
this.layerIndex = layer.load(0, {shade: [0.5, '#393D49']}); |
|
|
|
}, |
|
|
|
success: function (res) { |
|
|
|
layer.close(this.layerIndex); |
|
|
|
|
|
|
|
let material = res.data; |
|
|
|
if (material === null) { |
|
|
|
layer.msg("该物料不存在,请重试", { |
|
|
|
@ -157,6 +155,7 @@ |
|
|
|
} |
|
|
|
}); |
|
|
|
updateTableShowForMaterial(); |
|
|
|
layer.close(loading2); |
|
|
|
}); |
|
|
|
|
|
|
|
table.render({ |
|
|
|
|