Houjie
2025-06-03 2fda34643bc22e25f6c569415da5f955c81536bf
pages/ToDoList/ToDoSpareParts/ToDoSpareParts.vue
@@ -293,57 +293,8 @@
            }
            // if (this.formData.reportStatus == 'UNDER_REPAIR' && this.formData.isSpare == 0 && this.flag !== 'task') {
            //    if (this.formData.faultReason == undefined || this.formData.faultReason == null ||
            //       this
            //       .formData.faultReason ==
            //       '') {
            //       uni.showToast({
            //          icon: 'none',
            //          title: '故障原因不能为空'
            //       });
            //       return false;
            //    }
            //    if (this.formData.repairDescription == undefined || this.formData.repairDescription == null ||
            //       this
            //       .formData.repairDescription ==
            //       '') {
            //       uni.showToast({
            //          icon: 'none',
            //          title: '维修结果不能为空'
            //       });
            //       return false;
            //    }
            // }
            // if (this.formData.reportStatus == 'UNDER_REPAIR' && this.formData.isSpare == 1 && this.flag !== 'task') {
            //    if (this.formData.faultReason == undefined || this.formData.faultReason == null ||
            //       this
            //       .formData.faultReason ==
            //       '') {
            //       uni.showToast({
            //          icon: 'none',
            //          title: '故障原因不能为空'
            //       });
            //       return false;
            //    }
            //    if (this.formData.repairDescription == undefined || this.formData.repairDescription == null ||
            //       this
            //       .formData.repairDescription ==
            //       '') {
            //       uni.showToast({
            //          icon: 'none',
            //          title: '维修结果不能为空'
            //       });
            //       return false;
            //    }
            // }
            if (this.formData.reportStatus == 'UNDER_REPAIR' && this.flag !== 'task') {
            if (this.formData.reportStatus == 'UNDER_REPAIR' && this.flag !== 'task' && this.formData.isSpare == 0) {
                if (this.formData.faultReason == undefined || this.formData.faultReason == null || this.formData.faultReason == '') {
                    uni.showToast({
                        icon: 'none',