|
@ -377,11 +377,11 @@ |
|
|
// 当所有数据被加载时触发 |
|
|
// 当所有数据被加载时触发 |
|
|
onLoadSuccess: function(data) { |
|
|
onLoadSuccess: function(data) { |
|
|
var childRows = data.rows; |
|
|
var childRows = data.rows; |
|
|
if(childRows[0].orderNum == 0||childRows[0].orderNum == null){ |
|
|
|
|
|
childRows.forEach(function(row) { |
|
|
childRows.forEach(function(row) { |
|
|
|
|
|
if(row.orderNum == 0||row.orderNum == null){ |
|
|
row.orderNum = parentRow.orderNum * row.useNum; |
|
|
row.orderNum = parentRow.orderNum * row.useNum; |
|
|
}); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
}); |
|
|
childRows.forEach(function (materialData){ |
|
|
childRows.forEach(function (materialData){ |
|
|
var key = childTableId + '_' + materialData.materialNo; |
|
|
var key = childTableId + '_' + materialData.materialNo; |
|
|
var curIndex = materialData.sortNo -1; |
|
|
var curIndex = materialData.sortNo -1; |
|
@ -390,6 +390,7 @@ |
|
|
var pickDetail = JSON.parse(pick); |
|
|
var pickDetail = JSON.parse(pick); |
|
|
$("#"+childTableId+curIndex).val(pickDetail.pickNum); |
|
|
$("#"+childTableId+curIndex).val(pickDetail.pickNum); |
|
|
}else{ |
|
|
}else{ |
|
|
|
|
|
materialData.pickNum = $("#"+childTableId+curIndex).val(); |
|
|
sessionStorage.setItem(key,JSON.stringify(materialData)); |
|
|
sessionStorage.setItem(key,JSON.stringify(materialData)); |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
@ -502,7 +503,7 @@ |
|
|
} |
|
|
} |
|
|
data.pickDetails = pickDetails; |
|
|
data.pickDetails = pickDetails; |
|
|
console.log(data); |
|
|
console.log(data); |
|
|
$.operate.saveJson(ctx + "system/makeorderpick/ad", JSON.stringify(data)); |
|
|
$.operate.saveJson(ctx + "system/makeorderpick/add", JSON.stringify(data)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
</script> |
|
|
</script> |
|
|