diff --git a/pages/orderDetails/details.vue b/pages/orderDetails/details.vue index 2d8b020..b353bef 100644 --- a/pages/orderDetails/details.vue +++ b/pages/orderDetails/details.vue @@ -516,6 +516,55 @@ + + + + 描述 + + + 节点: + {{ dictLabel }} + + + 救援结束车辆里程数: + + + + 故障车车牌号: + + + + 备注信息: + + + + + + + 图片上传中,请稍候... + + + + 现场图片 + + + + + + + 取消 + + + + {{ isSubmitting ? '处理中...' : '确认' }} + + + + + 转维修信息 @@ -1261,7 +1310,8 @@ label: '否', value: 0 }, - ] + ], + orderCompleteShow: false, } }, @@ -1701,16 +1751,13 @@ } this.rescueId = id; if (this.recordSteps.length > 0) { - console.log('this.recordSteps', this.recordSteps) - console.log('this.currentStepIndex', this.currentStepIndex) - console.log('this.currentStepIndex - 1', this.currentStepIndex - 1) this.dictValue = this.recordSteps[this.currentStepIndex - 1].value; this.dictLabel = this.recordSteps[this.currentStepIndex - 1].label; - console.log('this.dictValue', this.dictValue) - console.log('this.dictLabel', this.dictLabel) } if (this.currentStepIndex === 2) { this.acceptOrderShow = true; + } else if (this.currentStepIndex === 7) { + this.orderCompleteShow = true } else { this.recordShow = true; } @@ -1724,6 +1771,15 @@ this.ulImages = []; }, + + cancelOrderComplete() { + this.orderCompleteShow = false; + this.remark = ''; // 清空备注 + this.fileList1 = []; // 清空图片列表 + this.selectedOption = ''; + this.ulImages = []; + }, + deletePic(event) { // 从 fileList 中删除 this[`fileList${event.name}`].splice(event.index, 1); @@ -2172,6 +2228,8 @@ if (this.currentStepIndex == 7) { updateData.rescueEndTime = new Date(); updateData.rescueStatus = '4'; + updateData.endScale = this.detailsData.endScale; + updateData.licenseNum = this.detailsData.licenseNum; } // 更新下一步显示 @@ -2192,6 +2250,9 @@ // 刷新订单详情 this.recordShow = false; + if (this.currentStepIndex == 7) { + this.orderCompleteShow = false; + } this.getrescueDetail(this.rescueId); } else { throw new Error(`API返回错误代码: ${res.code}`); @@ -2535,6 +2596,21 @@ }); return; } + if (this.currentStepIndex === 7 && (!this.detailsData.licenseNum || this.detailsData.licenseNum + .trim() === '')) { + uni.showToast({ + title: '请填写故障车车牌号', + icon: 'none' + }) + return + } + if (this.currentStepIndex === 7 && !this.detailsData.endScale) { + uni.showToast({ + title: '请填写车辆里程', + icon: 'none' + }) + return + } if (this.ulImages.length === 0 && this.currentStepIndex != 6) { uni.showToast({ title: '请上传图片',