Commit 2c5326160193f280e4ce313a508d3d98b995de0f

Authored by sanmu
1 parent 8ea1346f

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

src/views/project/order/FormDetail/index.vue
... ... @@ -360,6 +360,13 @@
360 360  
361 361 //默认没有修改包装费用
362 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 370 } else if (activeKey.value === '3') {
364 371 // 项目报告书
365 372 await reportFormPanelRef?.value?.validate();
... ... @@ -382,14 +389,6 @@
382 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 392 await orderUpdate(forms);
394 393 closeDrawer();
395 394 emit('success', {});
... ...