瀏覽代碼

lew提交工序单件工时可以编辑小数 合计保留2位小数

Min 1 年之前
父節點
當前提交
adf0d6ce57
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      fhKeeper/formulahousekeeper/timesheet-workshop/src/views/product/list.vue

+ 3 - 3
fhKeeper/formulahousekeeper/timesheet-workshop/src/views/product/list.vue

@@ -232,7 +232,7 @@
                     </el-table-column>
                     <el-table-column prop="workingTime" label="单件工时(分)"  width="140">
                         <template slot-scope="scope">
-                            <el-input v-model.number="scope.row.workingTime"   clearable maxlength="11" placeholder="请输入"></el-input>
+                            <el-input type="number" v-model="scope.row.workingTime"   clearable maxlength="11" placeholder="请输入"></el-input>
                         </template>
                     </el-table-column>
                     <el-table-column prop="unitPrice" label="单件工价(元)" width="140">
@@ -262,8 +262,8 @@
                         <i class="el-icon-plus" @click="addProcedure()"></i>
                         <span>合计</span>
                     </div>
-                    <div class="workshopTotalText">{{ pieceHourTotal }}</div>
-                    <div>{{ priceSingleTotal }}</div>
+                    <div class="workshopTotalText">{{ pieceHourTotal.toFixed(2) }}</div>
+                    <div>{{ priceSingleTotal.toFixed(2) }}</div>
                 </div>
 
             </div>