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); tableData.push(row);
hasValue = true; hasValue = true;
} }
}else if(row.currentNum!=0){ }else if(row.currentNum && row.currentNum!=0){
tableData.push(row); tableData.push(row);
hasValue = true; hasValue = true;
} }

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

@ -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>

Loading…
Cancel
Save