fix:coding798使用数量默认为0

This commit is contained in:
shijing 2025-03-14 10:18:51 +08:00
parent a9a5211418
commit bfca9d02bd
2 changed files with 6 additions and 6 deletions

View File

@ -55,7 +55,7 @@
<el-input ref="codeInput" v-model="wm_in" clearable @change="formWminChange(wm_in)"></el-input>
</el-form-item>
<el-form-item label="使用数量" prop="count_use">
<el-input-number ref="codeInput" v-model="form.count_use" clearable></el-input-number>
<el-input-number ref="codeInput" v-model="form.count_use" :min="0" clearable></el-input-number>
</el-form-item>
<el-form-item label="主要批次" v-if="!isfix">
<el-select
@ -89,7 +89,7 @@ const defaultForm = {
mtask: "",
batch: "",
wm_in: "",
count_use: 1,
count_use: 0,
note:'',
parent: "",
};
@ -181,7 +181,7 @@ export default {
this.visible = true;
this.form.mtask = "";
this.wm_in = "";
this.form.count_use = "";
this.form.count_use = 0;
this.form.parent = "";
},
getMlogbIn(){

View File

@ -61,7 +61,7 @@
<el-form-item label="领用数量">
<el-input-number
v-model="form.count_use"
:min="1"
:min="0"
controls-position="right"
/>
</el-form-item>
@ -85,7 +85,7 @@ const defaultForm = {
mlog: "",
mtask: "",
batch: "",
count_use: "",
count_use: 0,
};
export default {
@ -147,7 +147,7 @@ export default {
this.visible = true;
this.form.mtask = "";
this.form.wm_in = "";
this.form.count_use = "";
this.form.count_use = 0;
this.form.parent = "";
},
getMtask() {