Browse Source

产品管理-编辑工序-单价工价最大值限制

yangsj 1 year ago
parent
commit
72ffac15bf

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

@@ -235,7 +235,7 @@
                             <el-input v-model="scope.row.workingTime"   clearable maxlength="11" placeholder="请输入"></el-input>
                         </template>
                     </el-table-column>
-                    <el-table-column prop="unitPrice" label="单件工价(元)"  width="140">
+                    <el-table-column prop="unitPrice" label="单件工价(元)" width="140">
                         <template slot-scope="scope">
                             <el-input v-model="scope.row.unitPrice"   clearable maxlength="9"  placeholder="请输入"></el-input>
                         </template>
@@ -1213,10 +1213,18 @@ export default {
                         });
 
                         return 
-                    } 
+                    }
+                    console.log("工价:"+this.procedureLit[i].unitPrice)
+                   if(this.procedureLit[i].unitPrice> 9999999.999){
+                     this.$message({
+                       message: this.procedureLit[i].name+":单件工价超出范围",
+                       type: "error"
+                     });
 
-                  
-                }
+                     return
+                   }
+
+                 }
 
             }