diff --git a/src/pages/Middle/bathroom/BathroomQuotation/BathroomQuotation/Edit.vue b/src/pages/Middle/bathroom/BathroomQuotation/BathroomQuotation/Edit.vue index c4bc260..b9cdcc4 100644 --- a/src/pages/Middle/bathroom/BathroomQuotation/BathroomQuotation/Edit.vue +++ b/src/pages/Middle/bathroom/BathroomQuotation/BathroomQuotation/Edit.vue @@ -1548,7 +1548,7 @@ export default { this.resetMaterial(); if (selectedData.spec) { - row.height_formula = selectedData.spec; + row.material_default_height = selectedData.spec; } } @@ -1558,6 +1558,13 @@ export default { if (!row.paint_number && this.settignsValues.Default_rate_of_paint_surface) { row.paint_number = this.settignsValues.Default_rate_of_paint_surface; } + if (!row.board_length_formula) { + row.board_length_formula = this.settignsValues.Default_board_length_formula || '{板材的长}*{板材的宽}*{部件的数量}/{主材利用率}/1000000/2.96'; + } + + if (!row.paint_area_formula) { + row.paint_area_formula = this.settignsValues.Default_paint_area_formula || '{板材的长}*{板材的宽}*{部件的数量}*{油漆面}/1000000'; + } }, fittings_onPopupSelected({ rows, name, params }) { console.log(rows, name, params); diff --git a/src/pages/Middle/bathroom/BathroomQuotation/BathroomQuotation/drawer.vue b/src/pages/Middle/bathroom/BathroomQuotation/BathroomQuotation/drawer.vue index 4145acb..2ea1530 100644 --- a/src/pages/Middle/bathroom/BathroomQuotation/BathroomQuotation/drawer.vue +++ b/src/pages/Middle/bathroom/BathroomQuotation/BathroomQuotation/drawer.vue @@ -124,8 +124,6 @@ - + @@ -1076,7 +1076,7 @@ export default { this.resetMaterial(); if(selectedData.spec){ - row.height_formula = selectedData.spec; + row.material_default_height = selectedData.spec; } } if (!row.rate_materials && this.settignsValues.Main_material_utilization_rate) { @@ -1085,6 +1085,14 @@ export default { if (!row.paint_number && this.settignsValues.Default_rate_of_paint_surface) { row.paint_number = this.settignsValues.Default_rate_of_paint_surface; } + + if (!row.board_length_formula) { + row.board_length_formula = this.settignsValues.Default_board_length_formula || '{板材的长}*{板材的宽}*{部件的数量}/{主材利用率}/1000000/2.96'; + } + + if (!row.paint_area_formula) { + row.paint_area_formula = this.settignsValues.Default_paint_area_formula || '{板材的长}*{板材的宽}*{部件的数量}*{油漆面}/1000000'; + } }, fittings_onPopupSelected({ rows, name, params }) { console.log(rows, name, params);