|
|
@ -908,7 +908,7 @@ |
|
|
barCode.empty(); |
|
|
barCode.empty(); |
|
|
} |
|
|
} |
|
|
unit.empty(); |
|
|
unit.empty(); |
|
|
unit.append(new Option(d.unit, "-1")); |
|
|
unit.append(new Option(d.baseUnit, "-1")); |
|
|
if (d.splitInfoList !== null && d.splitInfoList.length > 0) { |
|
|
if (d.splitInfoList !== null && d.splitInfoList.length > 0) { |
|
|
$.each(d.splitInfoList, function (index, item) { |
|
|
$.each(d.splitInfoList, function (index, item) { |
|
|
unit.append(new Option(item.newUnit, item.newUnit));//往下拉菜单里添加元素 |
|
|
unit.append(new Option(item.newUnit, item.newUnit));//往下拉菜单里添加元素 |
|
|
@ -1552,7 +1552,8 @@ |
|
|
$("#" + "oldInventory" + idNumber).val(d.data) |
|
|
$("#" + "oldInventory" + idNumber).val(d.data) |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} else if (id.includes("unit")) { |
|
|
} |
|
|
|
|
|
else if (id.includes("unit")) { |
|
|
let idNumber = id.split("unit")[1]; // 得到当前id对应数字 |
|
|
let idNumber = id.split("unit")[1]; // 得到当前id对应数字 |
|
|
req.mid = $("#" + "mid" + idNumber).val(); |
|
|
req.mid = $("#" + "mid" + idNumber).val(); |
|
|
req.unit = data.value; |
|
|
req.unit = data.value; |
|
|
|