fix:6车间新增报工时,无法多次修改领用数量问题修改

This commit is contained in:
shijing 2026-03-26 17:06:01 +08:00
parent be10887892
commit 0f46fb6b53
1 changed files with 4 additions and 1 deletions

View File

@ -715,7 +715,10 @@ export default {
return this; return this;
}, },
countUseChange(){ countUseChange(){
if(this.form.count_real>this.form.count_use){ if(this.count_cando<this.form.count_use){
this.form.count_real = this.form.count_use = this.count_cando;
this.form.count_ok = this.form.count_use - this.form.count_notok;
}else{
this.form.count_real = this.form.count_use; this.form.count_real = this.form.count_use;
this.form.count_ok = this.form.count_use - this.form.count_notok; this.form.count_ok = this.form.count_use - this.form.count_notok;
} }