|
@@ -34,7 +34,7 @@
|
|
|
</ws-select>
|
|
|
</ws-form-item>
|
|
|
<ws-form-item label="囤位号" span="1" prop="storageTagNo">
|
|
|
- <ws-input v-model="inspect.storageTagNo" placeholder="请输入囤位号" maxlength="100" size="small"
|
|
|
+ <ws-input v-model="inspect.storageTagNo" placeholder="请输入囤位号" maxlength="15" size="small"
|
|
|
:disabled="disabled" />
|
|
|
</ws-form-item>
|
|
|
<ws-form-item label="车牌号" span="1" prop="carNumber">
|
|
@@ -407,12 +407,41 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
+ if (String(this.inspect.impurity).indexOf('.') != -1 && String(this.inspect.impurity).length - (String(this.inspect.impurity).indexOf('.') + 1) > 1) {
|
|
|
+ this.$message({
|
|
|
+ message: '杂质输入错误',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+ if (this.inspect.impurity < 0 || this.inspect.impurity > 40) {
|
|
|
+ this.$message({
|
|
|
+ message: '杂质输入错误',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
if (!this.inspect.waterContent) {
|
|
|
this.$message({
|
|
|
message: '水分不能为空',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
|
+ }
|
|
|
+ if (this.inspect.waterContent < 0 || this.inspect.waterContent > 40) {
|
|
|
+ this.$message({
|
|
|
+ message: '水分输入错误',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (String(this.inspect.waterContent).indexOf('.') != -1 && String(this.inspect.waterContent).length - (String(this.inspect.waterContent).indexOf('.') + 1) > 1) {
|
|
|
+ this.$message({
|
|
|
+ message: '水分输入错误',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
}
|
|
|
if (!this.inspect.mildewGrain) {
|
|
|
this.$message({
|
|
@@ -420,6 +449,20 @@
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
|
+ }
|
|
|
+ if (this.inspect.mildewGrain < 0 || this.inspect.mildewGrain > 40) {
|
|
|
+ this.$message({
|
|
|
+ message: '霉变粒输入错误',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (String(this.inspect.mildewGrain).indexOf('.') != -1 && String(this.inspect.mildewGrain).length - (String(this.inspect.mildewGrain).indexOf('.') + 1) > 1) {
|
|
|
+ this.$message({
|
|
|
+ message: '霉变粒输入错误',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
}
|
|
|
if (!this.inspect.bulkDensity) {
|
|
|
this.$message({
|
|
@@ -427,6 +470,20 @@
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
|
+ }
|
|
|
+ if (this.inspect.bulkDensity < 500 || this.inspect.bulkDensity > 1000) {
|
|
|
+ this.$message({
|
|
|
+ message: '容重输入错误',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (String(this.inspect.bulkDensity).indexOf('.') != -1 && String(this.inspect.bulkDensity).length - (String(this.inspect.bulkDensity).indexOf('.') + 1) > 0) {
|
|
|
+ this.$message({
|
|
|
+ message: '容重需输入整数',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
}
|
|
|
if (!this.inspect.jiaorenli) {
|
|
|
this.$message({
|
|
@@ -434,6 +491,20 @@
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
|
+ }
|
|
|
+ if (this.inspect.jiaorenli < 0 || this.inspect.jiaorenli > 40) {
|
|
|
+ this.$message({
|
|
|
+ message: '热损伤输入错误',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (String(this.inspect.jiaorenli).indexOf('.') != -1 && String(this.inspect.jiaorenli).length - (String(this.inspect.jiaorenli).indexOf('.') + 1) > 1) {
|
|
|
+ this.$message({
|
|
|
+ message: '热损伤输入错误',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
}
|
|
|
if (!this.inspect.imperfectGrain) {
|
|
|
this.$message({
|
|
@@ -442,7 +513,20 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
+ if (this.inspect.imperfectGrain < 0 || this.inspect.imperfectGrain > 40) {
|
|
|
+ this.$message({
|
|
|
+ message: '不完善粒输入错误',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (String(this.inspect.imperfectGrain).indexOf('.') != -1 && String(this.inspect.imperfectGrain).length - (String(this.inspect.imperfectGrain).indexOf('.') + 1) > 1) {
|
|
|
+ this.$message({
|
|
|
+ message: '不完善粒输入错误',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
this.inspect.warehouseName = this.warehouseName
|
|
|
this.inspect.compId = sessionStorage.getItem('ws-pf_compId')
|
|
|
this.inspect.qualityInspector = sessionStorage.getItem('ws-pf_staffName')
|