Kaynağa Gözat

fix:修改发票管理本次开票金额精度

lazy 3 hafta önce
ebeveyn
işleme
444dd4ed76

+ 2 - 2
src/views/mySettlement/invoicesManagement/components/ApplyInvoicingContent.vue

@@ -167,7 +167,7 @@
                 v-model="scope.row.openQuantity"
                 placeholder="请输入本次开票数量"
                 :disabled="disabled"
-                @blur="calcMoney(scope.row,scope.$index)"
+                @blur="formatMoney(Number(scope.row.openQuantity) * Number(scope.row.salesPrice))"
                 @input="totalOpenQuantity(scope.row,scope.$index)"
               />
             </template>
@@ -475,7 +475,7 @@ export default {
     },
     calcMoney() {
       return (val) => {
-        return formatMoney(Number(val.openQuantity) * Number(val.salesPrice))
+        return formatMoney(Number(val.openQuantity) * Number(val.salesPrice), 4)
       }
     }
     // #region comment by lx 贸理通4.0版本优化发票管理