fix:数字输入框字段校验
This commit is contained in:
parent
64ad4c692c
commit
54ad1c08df
@ -204,7 +204,7 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="频率" prop="cycleCount">
|
<el-form-item label="频率" prop="cycleCount">
|
||||||
<el-input-number :min="1" :step="1" v-model="form.cycleCount" placeholder="请输入次数" />
|
<el-input-number :min="1" :max="99999999" :step="1" v-model="form.cycleCount" placeholder="请输入次数" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="4" >
|
<el-col :span="4" >
|
||||||
|
@ -138,8 +138,8 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-form-item label="面积" prop="area">
|
<el-form-item label="面11积" prop="area">
|
||||||
<el-input-number :min="0" :percision="2" :step="1" v-model="form.area" placeholder="请输入面积" />
|
<el-input-number :min="0" :max="99999999" :percision="2" :step="1" v-model="form.area" placeholder="请输入面积" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
@ -253,7 +253,7 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="待检测数量" prop="quantityUncheck">
|
<el-form-item label="待检测数量" prop="quantityUncheck">
|
||||||
<el-input-number :min="0" @change="handleQuantityChanged" v-model="form.quantityUncheck" placeholder="请输入待检测数量" />
|
<el-input-number :min="0" :max="99999999" @change="handleQuantityChanged" v-model="form.quantityUncheck" placeholder="请输入待检测数量" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
@ -146,7 +146,7 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="流转数量" prop="quantityTransfered">
|
<el-form-item label="流转数量" prop="quantityTransfered">
|
||||||
<el-input-number v-model="form.quantityTransfered" placeholder="请输入流转数量" />
|
<el-input-number v-model="form.quantityTransfered" :max="99999999" :min="1" placeholder="请输入流转数量" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -237,9 +237,6 @@ export default {
|
|||||||
specification: [
|
specification: [
|
||||||
{ max: 250, message: "字段过长", trigger: "blur" }
|
{ max: 250, message: "字段过长", trigger: "blur" }
|
||||||
],
|
],
|
||||||
quantityTransfered: [
|
|
||||||
{ max: 12, message: "字段过长", trigger: "blur" }
|
|
||||||
],
|
|
||||||
batchCode: [
|
batchCode: [
|
||||||
{ max: 64, message: "字段过长", trigger: "blur" }
|
{ max: 64, message: "字段过长", trigger: "blur" }
|
||||||
],
|
],
|
||||||
|
@ -186,13 +186,13 @@
|
|||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="准备时间" prop="defaultPreTime">
|
<el-form-item label="准备时间" prop="defaultPreTime">
|
||||||
<el-tooltip effect="dark" content="当前系统支持的最小时间粒度为1小时" placement="right">
|
<el-tooltip effect="dark" content="当前系统支持的最小时间粒度为1小时" placement="right">
|
||||||
<el-input-number :min="0" :step="1" v-model="form.defaultPreTime" placeholder="请输入准备时间" />
|
<el-input-number :min="0" :max="99999999" :step="1" v-model="form.defaultPreTime" placeholder="请输入准备时间" />
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="等待时间" prop="defaultSufTime">
|
<el-form-item label="等待时间" prop="defaultSufTime">
|
||||||
<el-input-number :min="0" :step="1" v-model="form.defaultSufTime" placeholder="请输入等待时间" />
|
<el-input-number :min="0" :max="99999999" :step="1" v-model="form.defaultSufTime" placeholder="请输入等待时间" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
@ -329,7 +329,7 @@
|
|||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="工单数量" prop="quantity">
|
<el-form-item label="工单数量" prop="quantity">
|
||||||
<el-input-number :min="1" v-model="form.quantity" placeholder="请输入生产数量" />
|
<el-input-number :min="1" :max="99999999" v-model="form.quantity" placeholder="请输入生产数量" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
|
@ -291,17 +291,17 @@
|
|||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="本次接收数量" prop="quantityRecived">
|
<el-form-item label="本次接收数量" prop="quantityRecived">
|
||||||
<el-input-number :min="1" v-model="form.quantityRecived" placeholder="请输入本次接收数量" />
|
<el-input-number :min="1" :max="99999999" v-model="form.quantityRecived" placeholder="请输入本次接收数量" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="合格品数量" prop="quantityQualified">
|
<el-form-item label="合格品数量" prop="quantityQualified">
|
||||||
<el-input-number :min="0" v-model="form.quantityQualified" placeholder="请输入合格品数量" />
|
<el-input-number :min="0" :max="99999999" v-model="form.quantityQualified" placeholder="请输入合格品数量" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="不合格数量" prop="quantityUnqualified">
|
<el-form-item label="不合格数量" prop="quantityUnqualified">
|
||||||
<el-input-number :min="0" v-model="form.quantityUnqualified" placeholder="请输入不合格数" />
|
<el-input-number :min="0" :max="99999999" v-model="form.quantityUnqualified" placeholder="请输入不合格数" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
@ -265,17 +265,17 @@
|
|||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="发货数量" prop="quantityOut">
|
<el-form-item label="发货数量" prop="quantityOut">
|
||||||
<el-input-number :min="1" v-model="form.quantityOut" placeholder="请输入发货数量" />
|
<el-input-number :min="1" :max="99999999" v-model="form.quantityOut" placeholder="请输入发货数量" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="检测数量" prop="quantityCheck">
|
<el-form-item label="检测数量" prop="quantityCheck">
|
||||||
<el-input-number :min="1" v-model="form.quantityCheck" placeholder="请输入本次检测数量" />
|
<el-input-number :min="1" :max="99999999" v-model="form.quantityCheck" placeholder="请输入本次检测数量" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="不合格数量" prop="quantityUnqualified">
|
<el-form-item label="不合格数量" prop="quantityUnqualified">
|
||||||
<el-input-number :min="0" readonly="readonly" v-model="form.quantityUnqualified" />
|
<el-input-number :min="0" :max="99999999" readonly="readonly" v-model="form.quantityUnqualified" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
@ -126,12 +126,12 @@
|
|||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="误差上限" prop="thresholdMax">
|
<el-form-item label="误差上限" prop="thresholdMax">
|
||||||
<el-input-number :min="0" v-model="form.thresholdMax" placeholder="请输入误差上限" />
|
<el-input-number :min="0" :max="99999999" v-model="form.thresholdMax" placeholder="请输入误差上限" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="误差下限" prop="thresholdMin">
|
<el-form-item label="误差下限" prop="thresholdMin">
|
||||||
<el-input-number :max="0" v-model="form.thresholdMin" placeholder="请输入误差下限" />
|
<el-input-number :mix="0" :max="99999999" v-model="form.thresholdMin" placeholder="请输入误差下限" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
@ -115,13 +115,13 @@
|
|||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="最低检测数" prop="quantityCheck">
|
<el-form-item label="最低检测数" prop="quantityCheck">
|
||||||
<el-input-number :min="1" size="small" v-model="form.quantityCheck" placeholder="请输入最低检测数" />
|
<el-input-number :min="1" :max="99999999" size="small" v-model="form.quantityCheck" placeholder="请输入最低检测数" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="最大不合格数" prop="quantityUnqualified">
|
<el-form-item label="最大不合格数" prop="quantityUnqualified">
|
||||||
<el-tooltip content="检测过程中缺陷数量超出最大不合格数后,整批将判定为不合格。为0时,代表不启用此限制" placement="right">
|
<el-tooltip content="检测过程中缺陷数量超出最大不合格数后,整批将判定为不合格。为0时,代表不启用此限制" placement="right">
|
||||||
<el-input-number :min="0" size="small" v-model="form.quantityUnqualified" placeholder="请输入最大不合格数" />
|
<el-input-number :min="0" :max="99999999" size="small" v-model="form.quantityUnqualified" placeholder="请输入最大不合格数" />
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
@ -249,7 +249,7 @@
|
|||||||
<el-col :span="10">
|
<el-col :span="10">
|
||||||
<el-form-item label="数量" prop="quantity">
|
<el-form-item label="数量" prop="quantity">
|
||||||
<el-input v-if="form.codeFlag=='Y'" readonly v-model="form.quantity" />
|
<el-input v-if="form.codeFlag=='Y'" readonly v-model="form.quantity" />
|
||||||
<el-input-number :min="0" @blur="onQuantityChanged" v-else v-model="form.quantity" placeholder="请输入数量" />
|
<el-input-number :min="0" :max="99999999" @blur="onQuantityChanged" v-else v-model="form.quantity" placeholder="请输入数量" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
@ -199,12 +199,12 @@
|
|||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="面积" prop="area">
|
<el-form-item label="面积" prop="area">
|
||||||
<el-input-number :min="0" :step="1" :percision="2" v-model="form.area" placeholder="请输入面积" />
|
<el-input-number :min="0" :max="99999999" :step="1" :percision="2" v-model="form.area" placeholder="请输入面积" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="最大载重量" prop="maxLoa">
|
<el-form-item label="最大载重量" prop="maxLoa">
|
||||||
<el-input-number v-model="form.maxLoa" :step="1" :percision="2" placeholder="请输入最大载重量" />
|
<el-input-number v-model="form.maxLoa" :max="99999999" :step="1" :percision="2" placeholder="请输入最大载重量" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -236,17 +236,17 @@
|
|||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="库位位置X" prop="positionX">
|
<el-form-item label="库位位置X" prop="positionX">
|
||||||
<el-input-number :min="0" :step="1" v-model="form.positionX" placeholder="请输入库位位置X" />
|
<el-input-number :min="0" :max="99999999" :step="1" v-model="form.positionX" placeholder="请输入库位位置X" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="库位位置y" prop="positionY">
|
<el-form-item label="库位位置y" prop="positionY">
|
||||||
<el-input-number :min="0" :step="1" v-model="form.positionY" placeholder="请输入库位位置y" />
|
<el-input-number :min="0" :max="99999999" :step="1" v-model="form.positionY" placeholder="请输入库位位置y" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="库位位置z" prop="positionZ">
|
<el-form-item label="库位位置z" prop="positionZ">
|
||||||
<el-input-number :min="0" :step="1" v-model="form.positionZ" placeholder="请输入库位位置z" />
|
<el-input-number :min="0" :max="99999999" :step="1" v-model="form.positionZ" placeholder="请输入库位位置z" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -321,7 +321,10 @@ export default {
|
|||||||
],
|
],
|
||||||
areaName: [
|
areaName: [
|
||||||
{ required: true, message: "库位名称不能为空", trigger: "blur" }
|
{ required: true, message: "库位名称不能为空", trigger: "blur" }
|
||||||
]
|
],
|
||||||
|
remark: [
|
||||||
|
{ max: 250, message: '长度必须小于250个字符', trigger: 'blur' }
|
||||||
|
],
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
@ -148,7 +148,7 @@
|
|||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-form-item label="面积" prop="area">
|
<el-form-item label="面积" prop="area">
|
||||||
<el-input-number :min="0" :step="1" :percision="2" v-model="form.area" placeholder="请输入面积" />
|
<el-input-number :min="0" :max="99999999" :step="1" :percision="2" v-model="form.area" placeholder="请输入面积" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -225,7 +225,10 @@ export default {
|
|||||||
],
|
],
|
||||||
locationName: [
|
locationName: [
|
||||||
{ required: true, message: "库区名称不能为空", trigger: "blur" }
|
{ required: true, message: "库区名称不能为空", trigger: "blur" }
|
||||||
]
|
],
|
||||||
|
remark: [
|
||||||
|
{ max: 250, message: '长度必须小于250个字符', trigger: 'blur' }
|
||||||
|
],
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
@ -112,7 +112,7 @@
|
|||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="入库数量" prop="quantityRecived">
|
<el-form-item label="入库数量" prop="quantityRecived">
|
||||||
<el-input-number :min="0.01" v-model="form.quantityRecived" placeholder="请输入入库数量" />
|
<el-input-number :min="0.01" :max="99999999" v-model="form.quantityRecived" placeholder="请输入入库数量" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
|
@ -164,7 +164,7 @@
|
|||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-form-item label="面积" prop="area">
|
<el-form-item label="面积" prop="area">
|
||||||
<el-input-number :min="0" :step="1" :percision="2" v-model="form.area" placeholder="请输入面积" />
|
<el-input-number :min="0" :max="99999999" :step="1" :percision="2" v-model="form.area" placeholder="请输入面积" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
Loading…
Reference in New Issue
Block a user