Переглянути джерело

修改网页端,预算因toFixed出现的无法选择bug

余思翰 3 дні тому
джерело
коміт
19f1499e36

+ 2
- 2
oa-ui/src/views/flowable/form/budget/carTable.vue Переглянути файл

@@ -53,7 +53,7 @@
53 53
           </tr>
54 54
           <tr>
55 55
             <td colspan="8">车辆成本合计</td>
56
-            <td>{{ form.carCost ? form.carCost.toFixed(2) : '0.00' }}</td>
56
+            <td>{{ form.carCost }}</td>
57 57
           </tr>
58 58
         </table>
59 59
       </el-form-item>
@@ -129,7 +129,7 @@ export default {
129 129
       for (let car of this.chooseCar) {
130 130
         carCost = carCost + Number(car.expense);
131 131
       }
132
-      this.form.carCost = carCost
132
+      this.form.carCost = carCost.toFixed(2)
133 133
     },
134 134
     getChooseCar(val) {
135 135
       this.chooseCar = val;

+ 2
- 2
oa-ui/src/views/flowable/form/budget/deviceTable.vue Переглянути файл

@@ -37,7 +37,7 @@
37 37
           </tr>
38 38
           <tr>
39 39
             <td colspan="5">设备成本合计</td>
40
-            <td>{{ form.deviceCost ? form.deviceCost.toFixed(2) : '0.00' }}</td>
40
+            <td>{{ form.deviceCost }}</td>
41 41
           </tr>
42 42
         </table>
43 43
       </el-form-item>
@@ -111,7 +111,7 @@ export default {
111 111
       for (let device of this.chooseDevice) {
112 112
         deviceCost = deviceCost + Number(device.depreciation);
113 113
       }
114
-      this.form.deviceCost = deviceCost
114
+      this.form.deviceCost = deviceCost.toFixed(2)
115 115
     },
116 116
     getChooseDevice(val) {
117 117
       this.chooseDevice = val;

+ 2
- 2
oa-ui/src/views/flowable/form/budget/staffTable.vue Переглянути файл

@@ -37,7 +37,7 @@
37 37
           </tr>
38 38
           <tr>
39 39
             <td colspan="4">人员成本合计</td>
40
-            <td>{{ form.staffCost ? form.staffCost.toFixed(2) : '0.00' }}</td>
40
+            <td>{{ form.staffCost }}</td>
41 41
           </tr>
42 42
         </table>
43 43
       </el-form-item>
@@ -111,7 +111,7 @@ export default {
111 111
       for (let user of this.chooseUser) {
112 112
         staffCost = staffCost + Number(user.staffCost);
113 113
       }
114
-      this.form.staffCost = staffCost
114
+      this.form.staffCost = staffCost.toFixed(2)
115 115
     },
116 116
     getChooseUser(val) {
117 117
       for (let v of val) {

Завантаження…
Відмінити
Зберегти