Browse Source

[feat]

生产管理 生产订单
修改添加生产领料页面子表加载完成方法,存储行数据前将输入框值赋给行对象;
修改生产入库页面提交函数,遍历表格数据时添加入库数存在限制条件;
dev
王晓迪 1 week ago
parent
commit
dc132e6f12
  1. 2
      ruoyi-admin/src/main/resources/templates/system/makeorder/addProduceInbound.html
  2. 11
      ruoyi-admin/src/main/resources/templates/system/makeorder/addpick.html

2
ruoyi-admin/src/main/resources/templates/system/makeorder/addProduceInbound.html

@ -507,7 +507,7 @@
tableData.push(row);
hasValue = true;
}
}else if(row.currentNum!=0){
}else if(row.currentNum && row.currentNum!=0){
tableData.push(row);
hasValue = true;
}

11
ruoyi-admin/src/main/resources/templates/system/makeorder/addpick.html

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

Loading…
Cancel
Save