소스 검색

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

yangsj 1 년 전
부모
커밋
72ffac15bf
1개의 변경된 파일12개의 추가작업 그리고 4개의 파일을 삭제
  1. 12 4
      fhKeeper/formulahousekeeper/timesheet-workshop/src/views/product/list.vue

+ 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
+                   }
+
+                 }
 
             }