From 2fda34643bc22e25f6c569415da5f955c81536bf Mon Sep 17 00:00:00 2001 From: Houjie <714924425@qq.com> Date: 星期二, 03 六月 2025 09:37:08 +0800 Subject: [PATCH] 设备详情通过ID过滤/设备详情增加上传附件 --- pages/ToDoList/ToDoSpareParts/ToDoSpareParts.vue | 55 +++---------------------------------------------------- 1 files changed, 3 insertions(+), 52 deletions(-) diff --git a/pages/ToDoList/ToDoSpareParts/ToDoSpareParts.vue b/pages/ToDoList/ToDoSpareParts/ToDoSpareParts.vue index 31844e8..951b926 100644 --- a/pages/ToDoList/ToDoSpareParts/ToDoSpareParts.vue +++ b/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', -- Gitblit v1.9.3