Houjie
2025-06-03 2fda34643bc22e25f6c569415da5f955c81536bf
pages/ToDoList/ToDoSpareParts/ToDoSpareParts.vue
@@ -63,7 +63,7 @@
               <!-- <view class="text-gray margin-bottom-lg">—————————管理员领用备件——————————</view> -->
               <uni-forms-item :label-width="100" required name="sparePartDescription" label="备件描述:">
                  <uni-easyinput type="textarea" v-model="ScanData.sparePartDescription" placeholder="请输入备件描述"
                     :disabled="isRuning" />
                     :disabled="isRuning"/>
               </uni-forms-item>
            </uni-group>
@@ -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',