Przeglądaj źródła

fix: 预付款总额接受改成parseFloat

lanjianrong 4 lat temu
rodzic
commit
c3390f5161
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/view/advance/detail.ejs

+ 1 - 1
app/view/advance/detail.ejs

@@ -351,7 +351,7 @@
     const advance = JSON.parse('<%- JSON.stringify(advance) %>');
     const prevAdvance = JSON.parse('<%- JSON.stringify(prevAdvance) %>');
     const isEdited = JSON.parse('<%- isEdited %>');
-    const advancePayTotal = parseInt('<%- advancePayTotal %>');
+    const advancePayTotal = parseFloat('<%- advancePayTotal %>');
     const preUrl = '<%- preUrl %>';
     const fileList = JSON.parse('<%- JSON.stringify(fileList) %>') || [];
     const whiteList = JSON.parse('<%- JSON.stringify(whiteList) %>');