This commit is contained in:
hayu 2025-09-18 20:34:54 +08:00
parent 9fab328b5c
commit 42448a64fe
1 changed files with 7 additions and 0 deletions

View File

@ -685,6 +685,13 @@ const saveNumAll = async () => {
uni.showToast({ title: '返厂维修请选择厂家!', icon: 'none' })
}else if(formRight.value.scrapNum > 0 && !formRight.value.scrapReason && !formRight.value.scrapId) {
uni.showToast({ title: '维修报废请填写报废原因!', icon: 'none' })
}else if (
Number(formLeft.value.repairNum) +
Number(formMiddle.value.repairNum) +
Number(formRight.value.scrapNum) >
Number(queryParams.value.waitRepairNum)
) {
uni.showToast({ title: '总数量不可大于待修数量!', icon: 'none' })
}else {
if (loading.value) {
uni.showToast({ title: '请勿重复提交!', icon: 'none' })