|
|
@@ -823,8 +823,16 @@ export default {
|
|
|
|
|
|
if (this.objData.semiProductList.length > 0) {
|
|
|
// 预制体报工
|
|
|
+
|
|
|
this.objData.workReportInfo.formedNum =
|
|
|
this.objData.semiProductList.length;
|
|
|
+ let numCot = 0;
|
|
|
+ if (this.objData.semiProductList.length > 0) {
|
|
|
+ this.objData.semiProductList.map((fitem) => {
|
|
|
+ numCot = numCot + fitem.feedQuantity || 1;
|
|
|
+ });
|
|
|
+ this.objData.workReportInfo.formedNum = numCot;
|
|
|
+ }
|
|
|
} else if (this.objData.product.length > 0) {
|
|
|
console.log(this.objData.product, "this.objData.product");
|
|
|
const number = this.objData.product.reduce((acc, pro) => {
|
|
|
@@ -841,7 +849,7 @@ export default {
|
|
|
this.objData.workReportInfo.workOrderId = res.workOrderId;
|
|
|
|
|
|
this.paramDetailList = res.paramDetailList;
|
|
|
- console.log(this.paramDetailList, "this.paramDetailList");
|
|
|
+ console.log(this.objData, "this.paramDetailList");
|
|
|
|
|
|
// this.paramDetailList = res.paramDetailList.map((m) => {
|
|
|
// if (m.extInfo.textType == 5) {
|