diff --git a/erp-produce/src/main/resources/template/js/erpBom/erpBomAdd.js b/erp-produce/src/main/resources/template/js/erpBom/erpBomAdd.js
index 49ae66c9d0482c40471993b52291f7e577d48bcf..8d4c7b3df58e418937f7062d5a1222e7763f1200 100644
--- a/erp-produce/src/main/resources/template/js/erpBom/erpBomAdd.js
+++ b/erp-produce/src/main/resources/template/js/erpBom/erpBomAdd.js
@@ -81,7 +81,7 @@ layui.config({
}
});
if(unitIndex >= 0){
- return unitList[unitIndex].salePrice;
+ return unitList[unitIndex].normsSalePrice;
}
}
diff --git a/erp-produce/src/main/resources/template/js/erpBom/erpBomEdit.js b/erp-produce/src/main/resources/template/js/erpBom/erpBomEdit.js
index 22efbd620e89eb05ea9273e4d9120c1ecaf9c19e..73d9eeebfe4fd0db526dafa403a480bcc9e24e55 100644
--- a/erp-produce/src/main/resources/template/js/erpBom/erpBomEdit.js
+++ b/erp-produce/src/main/resources/template/js/erpBom/erpBomEdit.js
@@ -22,7 +22,7 @@ layui.config({
var selTemplate = getFileContent('tpl/template/select-option-must.tpl');
- AjaxPostUtil.request({url: flowableBasePath + "erpbom005", params: {rowId: parent.rowId}, type: 'json', method: "GET", callback: function (json) {
+ AjaxPostUtil.request({url: flowableBasePath + "erpbom005", params: {id: parent.rowId}, type: 'json', method: "GET", callback: function (json) {
$("#showForm").html(getDataUseHandlebars($("#mainHtml").html(), json));
textool.init({eleId: 'remark', maxlength: 200});
@@ -103,7 +103,7 @@ layui.config({
}
});
if(unitIndex >= 0){
- return unitList[unitIndex].salePrice;
+ return unitList[unitIndex].normsSalePrice;
}
}
@@ -319,8 +319,7 @@ layui.config({
var str = "";
var title = "";
$.each(procedureMationList, function(i, item) {
- str += '' +
- '' + item.number + '' + item.procedureName + ',';
+ str += '' + item.number + '' + item.procedureName + ',';
title += item.number + '、' + item.procedureName + '\n';
});
$("#procedureBox" + proId).html('' + str);
diff --git a/erp-produce/src/main/resources/template/js/erpBom/erpBomList.js b/erp-produce/src/main/resources/template/js/erpBom/erpBomList.js
index 77a10a587774fd7c4d24b4b3337c6ee397fe6ea6..edb8a930345803255cbf736c2c6e6d8df0ba8092 100644
--- a/erp-produce/src/main/resources/template/js/erpBom/erpBomList.js
+++ b/erp-produce/src/main/resources/template/js/erpBom/erpBomList.js
@@ -28,9 +28,9 @@ layui.config({
{ field: 'title', title: 'bom方案名称', align: 'left',width: 150, templet: function (d) {
return '' + d.title + '';
}},
- { field: 'materialName', title: '商品名称', align: 'left',width: 150 },
- { field: 'materialModel', title: '商品型号', align: 'left',width: 150 },
- { field: 'unitName', title: '计量单位', align: 'center',width: 100 },
+ { field: 'materialName', title: '商品名称', align: 'left',width: 150, templet: function (d) {return d.normMation.materialName}},
+ { field: 'materialModel', title: '商品型号', align: 'left',width: 150, templet: function (d) {return d.normMation.materialModel}},
+ { field: 'unitName', title: '计量单位', align: 'center',width: 100, templet: function (d) {return d.normMation.unitName}},
{ field: 'makeNum', title: '数量', align: 'center',width: 80 },
{ field: 'consumablesPrice', title: '耗材总费用', align: 'right',width: 100 },
{ field: 'procedurePrice', title: '工序总费用', align: 'right',width: 100 },
diff --git a/erp-produce/src/main/resources/template/js/erpMachin/erpMachinAdd.js b/erp-produce/src/main/resources/template/js/erpMachin/erpMachinAdd.js
index 85b026cb43d32b82f74f63496d5d89052e7d896f..4f2ea00af77d3c02b4cbe26053952b598dfa706c 100644
--- a/erp-produce/src/main/resources/template/js/erpMachin/erpMachinAdd.js
+++ b/erp-produce/src/main/resources/template/js/erpMachin/erpMachinAdd.js
@@ -58,8 +58,8 @@ layui.config({
if(thisRowValue == bean.id){//获取规格
//获取当前行数量
var rkNum = parseInt($("#rkNum" + thisRowNum).val());
- $("#unitPrice" + thisRowNum).val(bean.estimatePurchasePrice.toFixed(2));//单价
- $("#amountOfMoney" + thisRowNum).val((rkNum * parseFloat(bean.estimatePurchasePrice)).toFixed(2));//金额
+ $("#unitPrice" + thisRowNum).val(bean.normsEstimatePurchasePrice.toFixed(2));//单价
+ $("#amountOfMoney" + thisRowNum).val((rkNum * parseFloat(bean.normsEstimatePurchasePrice)).toFixed(2));//金额
return false;
}
});
diff --git a/erp-produce/src/main/resources/template/js/erpMachin/erpMachinEdit.js b/erp-produce/src/main/resources/template/js/erpMachin/erpMachinEdit.js
index b23392e16ca8c623be118834e90ce872f1981fe4..93f1edaf1ac2215ae6bc6eef85f0dbe370d2f95f 100644
--- a/erp-produce/src/main/resources/template/js/erpMachin/erpMachinEdit.js
+++ b/erp-produce/src/main/resources/template/js/erpMachin/erpMachinEdit.js
@@ -60,9 +60,9 @@ layui.config({
//加工产品信息
machinPro = {
materialId: data.materialId,
- materialName: data.materialName,
- materialModel: data.materialModel,
- unitList: data.unitList
+ materialName: data.normMation.materialName,
+ materialModel: data.normMation.materialModel,
+ unitList: data.normMation.unitList
};
$("#productName").val(machinPro.materialName);
$("#productModel").val(machinPro.materialModel);
@@ -126,8 +126,8 @@ layui.config({
if(thisRowValue == bean.id){//获取规格
//获取当前行数量
var rkNum = parseInt($("#rkNum" + thisRowNum).val());
- $("#unitPrice" + thisRowNum).val(bean.estimatePurchasePrice.toFixed(2));//单价
- $("#amountOfMoney" + thisRowNum).val((rkNum * parseFloat(bean.estimatePurchasePrice)).toFixed(2));//金额
+ $("#unitPrice" + thisRowNum).val(bean.normsEstimatePurchasePrice.toFixed(2));//单价
+ $("#amountOfMoney" + thisRowNum).val((rkNum * parseFloat(bean.normsEstimatePurchasePrice)).toFixed(2));//金额
return false;
}
});
diff --git a/erp-produce/src/main/resources/template/js/erpPick/erpPatchAdd.js b/erp-produce/src/main/resources/template/js/erpPick/erpPatchAdd.js
index 5c52c78d39b34ff6100c766a8483de68ac681c84..15ad1e3240d2cd5a3c4053dd03d23a844d6c1092 100644
--- a/erp-produce/src/main/resources/template/js/erpPick/erpPatchAdd.js
+++ b/erp-produce/src/main/resources/template/js/erpPick/erpPatchAdd.js
@@ -49,8 +49,8 @@ layui.config({
if(thisRowValue == bean.id){//获取规格
//获取当前行数量
var rkNum = parseInt($("#rkNum" + thisRowNum).val());
- $("#unitPrice" + thisRowNum).val(bean.estimatePurchasePrice.toFixed(2));//单价
- $("#amountOfMoney" + thisRowNum).val((rkNum * parseFloat(bean.estimatePurchasePrice)).toFixed(2));//金额
+ $("#unitPrice" + thisRowNum).val(bean.normsEstimatePurchasePrice.toFixed(2));//单价
+ $("#amountOfMoney" + thisRowNum).val((rkNum * parseFloat(bean.normsEstimatePurchasePrice)).toFixed(2));//金额
return false;
}
});
diff --git a/erp-produce/src/main/resources/template/js/erpPick/erpPatchEdit.js b/erp-produce/src/main/resources/template/js/erpPick/erpPatchEdit.js
index a23ea3c5dfe94fdbf727e95965e5c9a122329b7e..fa20577ef1867f03a9b4416db9532b387b1ba559 100644
--- a/erp-produce/src/main/resources/template/js/erpPick/erpPatchEdit.js
+++ b/erp-produce/src/main/resources/template/js/erpPick/erpPatchEdit.js
@@ -84,8 +84,8 @@ layui.config({
if(thisRowValue == bean.id){//获取规格
//获取当前行数量
var rkNum = parseInt($("#rkNum" + thisRowNum).val());
- $("#unitPrice" + thisRowNum).val(bean.estimatePurchasePrice.toFixed(2));//单价
- $("#amountOfMoney" + thisRowNum).val((rkNum * parseFloat(bean.estimatePurchasePrice)).toFixed(2));//金额
+ $("#unitPrice" + thisRowNum).val(bean.normsEstimatePurchasePrice.toFixed(2));//单价
+ $("#amountOfMoney" + thisRowNum).val((rkNum * parseFloat(bean.normsEstimatePurchasePrice)).toFixed(2));//金额
return false;
}
});
diff --git a/erp-produce/src/main/resources/template/js/erpPick/erpRequisitionAdd.js b/erp-produce/src/main/resources/template/js/erpPick/erpRequisitionAdd.js
index 9a2110d05c4fa65f54c49fc529ab555c059517d5..1f9c0615b43893541902046b19c28b4a4cf7010a 100644
--- a/erp-produce/src/main/resources/template/js/erpPick/erpRequisitionAdd.js
+++ b/erp-produce/src/main/resources/template/js/erpPick/erpRequisitionAdd.js
@@ -49,8 +49,8 @@ layui.config({
if(thisRowValue == bean.id){//获取规格
//获取当前行数量
var rkNum = parseInt($("#rkNum" + thisRowNum).val());
- $("#unitPrice" + thisRowNum).val(bean.estimatePurchasePrice.toFixed(2));//单价
- $("#amountOfMoney" + thisRowNum).val((rkNum * parseFloat(bean.estimatePurchasePrice)).toFixed(2));//金额
+ $("#unitPrice" + thisRowNum).val(bean.normsEstimatePurchasePrice.toFixed(2));//单价
+ $("#amountOfMoney" + thisRowNum).val((rkNum * parseFloat(bean.normsEstimatePurchasePrice)).toFixed(2));//金额
return false;
}
});
diff --git a/erp-produce/src/main/resources/template/js/erpPick/erpRequisitionEdit.js b/erp-produce/src/main/resources/template/js/erpPick/erpRequisitionEdit.js
index 53dabec8f9e8f543c0150cf03ac5e2b0196990a7..161865d3463d1fa617f5363035689a7358c753be 100644
--- a/erp-produce/src/main/resources/template/js/erpPick/erpRequisitionEdit.js
+++ b/erp-produce/src/main/resources/template/js/erpPick/erpRequisitionEdit.js
@@ -94,8 +94,8 @@ layui.config({
if(thisRowValue == bean.id){//获取规格
//获取当前行数量
var rkNum = parseInt($("#rkNum" + thisRowNum).val());
- $("#unitPrice" + thisRowNum).val(bean.estimatePurchasePrice.toFixed(2));//单价
- $("#amountOfMoney" + thisRowNum).val((rkNum * parseFloat(bean.estimatePurchasePrice)).toFixed(2));//金额
+ $("#unitPrice" + thisRowNum).val(bean.normsEstimatePurchasePrice.toFixed(2));//单价
+ $("#amountOfMoney" + thisRowNum).val((rkNum * parseFloat(bean.normsEstimatePurchasePrice)).toFixed(2));//金额
return false;
}
});
diff --git a/erp-produce/src/main/resources/template/js/erpPick/erpReturnAdd.js b/erp-produce/src/main/resources/template/js/erpPick/erpReturnAdd.js
index 35600dcbab45cce6add32efbaeb28ddbd687ec5d..c6835c54caaa50f5bab669279d5243a1293ab89a 100644
--- a/erp-produce/src/main/resources/template/js/erpPick/erpReturnAdd.js
+++ b/erp-produce/src/main/resources/template/js/erpPick/erpReturnAdd.js
@@ -45,8 +45,8 @@ layui.config({
if(thisRowValue == bean.id){//获取规格
//获取当前行数量
var rkNum = parseInt($("#rkNum" + thisRowNum).val());
- $("#unitPrice" + thisRowNum).val(bean.estimatePurchasePrice.toFixed(2));//单价
- $("#amountOfMoney" + thisRowNum).val((rkNum * parseFloat(bean.estimatePurchasePrice)).toFixed(2));//金额
+ $("#unitPrice" + thisRowNum).val(bean.normsEstimatePurchasePrice.toFixed(2));//单价
+ $("#amountOfMoney" + thisRowNum).val((rkNum * parseFloat(bean.normsEstimatePurchasePrice)).toFixed(2));//金额
return false;
}
});
diff --git a/erp-produce/src/main/resources/template/js/erpPick/erpReturnEdit.js b/erp-produce/src/main/resources/template/js/erpPick/erpReturnEdit.js
index ca548dc54cb309f2989fdfacb75a051127214c2d..4bcd5e9177f5e53f1c3d50702783f37f3ad58f59 100644
--- a/erp-produce/src/main/resources/template/js/erpPick/erpReturnEdit.js
+++ b/erp-produce/src/main/resources/template/js/erpPick/erpReturnEdit.js
@@ -75,8 +75,8 @@ layui.config({
if(thisRowValue == bean.id){//获取规格
//获取当前行数量
var rkNum = parseInt($("#rkNum" + thisRowNum).val());
- $("#unitPrice" + thisRowNum).val(bean.estimatePurchasePrice.toFixed(2));//单价
- $("#amountOfMoney" + thisRowNum).val((rkNum * parseFloat(bean.estimatePurchasePrice)).toFixed(2));//金额
+ $("#unitPrice" + thisRowNum).val(bean.normsEstimatePurchasePrice.toFixed(2));//单价
+ $("#amountOfMoney" + thisRowNum).val((rkNum * parseFloat(bean.normsEstimatePurchasePrice)).toFixed(2));//金额
return false;
}
});
diff --git a/erp-produce/src/main/resources/template/js/erpProduction/erpProductionEdit.js b/erp-produce/src/main/resources/template/js/erpProduction/erpProductionEdit.js
index fcb70e7d2e99ff1f4d49152c592d1dda11e2c4ea..cac7e7b47624c49757f16ec3c875d801412faee6 100644
--- a/erp-produce/src/main/resources/template/js/erpProduction/erpProductionEdit.js
+++ b/erp-produce/src/main/resources/template/js/erpProduction/erpProductionEdit.js
@@ -186,7 +186,7 @@ layui.config({
normsId: item.normsId,
number: $("#proposal" + item.materialId).val(),
unitNumber: item.needNum,
- unitPrice: item.normsPurchasePrice
+ unitPrice: item.normsEstimatePurchasePrice
});
});
//子件清单信息
diff --git a/erp-produce/src/main/resources/template/tpl/erpBom/erpBomDetail.html b/erp-produce/src/main/resources/template/tpl/erpBom/erpBomDetail.html
index c5f3f9408327128ea93a7da17ce6ce6c2a3a6cc6..653ceb799d710e724498456506f7fa4e59c1a3fc 100644
--- a/erp-produce/src/main/resources/template/tpl/erpBom/erpBomDetail.html
+++ b/erp-produce/src/main/resources/template/tpl/erpBom/erpBomDetail.html
@@ -56,19 +56,19 @@