Browse Source

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

余思翰 3 days ago
parent
commit
19f1499e36

+ 2
- 2
oa-ui/src/views/flowable/form/budget/carTable.vue View File

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

+ 2
- 2
oa-ui/src/views/flowable/form/budget/deviceTable.vue View File

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

+ 2
- 2
oa-ui/src/views/flowable/form/budget/staffTable.vue View File

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

Loading…
Cancel
Save