yu.jie 4 سال پیش
والد
کامیت
9da27bb047

+ 4 - 3
src/views/manage/business-review/components/settlementAudit/index.vue

@@ -69,11 +69,12 @@
         </a-row>
         <a-row :gutter="24">
           <a-col :span="12">
-            <a-form-item label="调整保证金">
+              <a-form-item label="调整保证金">
               <span class="white">{{
-                                  formatValue(selectedRow.addmargin !== 0 ? "+" + formatValue(selectedRow.addmargin) : (selectedRow.decmargin === 0 ? 0.0 : "-" + formatValue(selectedRow.decmargin)))
+                                  formatValue(selectedRow.addmargin !== 0 && selectedRow.addmargin !== undefined ?
+                  "+" + formatValue(selectedRow.addmargin) : (selectedRow.decmargin === 0 ? 0.0 : "-" + formatValue(selectedRow.decmargin)))
                               }}</span>
-            </a-form-item>
+              </a-form-item>
           </a-col>
           <a-col :span="12">
             <a-form-item label="调整金额">

+ 5 - 4
src/views/manage/business-review/components/settlementCancel/index.vue

@@ -67,11 +67,12 @@
         </a-row>
         <a-row :gutter="24">
           <a-col :span="12">
-            <a-form-item label="调整保证金">
+              <a-form-item label="调整保证金">
               <span class="white">{{
-                              formatValue(selectedRow.addmargin !== 0 ? "+" + formatValue(selectedRow.addmargin) : (selectedRow.decmargin === 0 ? 0.0 : "-" + formatValue(selectedRow.decmargin)))
-                            }}</span>
-            </a-form-item>
+                                  formatValue(selectedRow.addmargin !== 0 && selectedRow.addmargin !== undefined ?
+                  "+" + formatValue(selectedRow.addmargin) : (selectedRow.decmargin === 0 ? 0.0 : "-" + formatValue(selectedRow.decmargin)))
+                              }}</span>
+              </a-form-item>
           </a-col>
           <a-col :span="12">
             <a-form-item label="调整金额">