Commit 2c5326160193f280e4ce313a508d3d98b995de0f

Authored by sanmu
1 parent 8ea1346f

fix: 修复项目报告书无法编辑

src/views/project/order/FormDetail/index.vue
@@ -360,6 +360,13 @@ @@ -360,6 +360,13 @@
360 360
361 //默认没有修改包装费用 361 //默认没有修改包装费用
362 forms.profitAnalysisInfo.isEditPacketPrice = false; 362 forms.profitAnalysisInfo.isEditPacketPrice = false;
  363 + //如果包装费用有修改过,那么传参isEditPacketPrice为true
  364 + if (
  365 + originPackagePrice.value != -1 &&
  366 + originPackagePrice.value !== forms?.profitAnalysisInfo?.packetPrice
  367 + ) {
  368 + forms.profitAnalysisInfo.isEditPacketPrice = true;
  369 + }
363 } else if (activeKey.value === '3') { 370 } else if (activeKey.value === '3') {
364 // 项目报告书 371 // 项目报告书
365 await reportFormPanelRef?.value?.validate(); 372 await reportFormPanelRef?.value?.validate();
@@ -382,14 +389,6 @@ @@ -382,14 +389,6 @@
382 forms.inspectionStageInfo = inspectionFormPanelRef?.value?.getFieldsValue() || {}; 389 forms.inspectionStageInfo = inspectionFormPanelRef?.value?.getFieldsValue() || {};
383 } 390 }
384 391
385 - //如果包装费用有修改过,那么传参isEditPacketPrice为true  
386 - if (  
387 - originPackagePrice.value != -1 &&  
388 - originPackagePrice.value !== forms?.profitAnalysisInfo?.packetPrice  
389 - ) {  
390 - forms.profitAnalysisInfo.isEditPacketPrice = true;  
391 - }  
392 -  
393 await orderUpdate(forms); 392 await orderUpdate(forms);
394 closeDrawer(); 393 closeDrawer();
395 emit('success', {}); 394 emit('success', {});