diff --git a/order/order/orderInfo/orderInfo.vue b/order/order/orderInfo/orderInfo.vue index 046ef0a..07f227f 100644 --- a/order/order/orderInfo/orderInfo.vue +++ b/order/order/orderInfo/orderInfo.vue @@ -9,91 +9,71 @@ - - - 工单标题: - - - {{lists.name}} - + + + 所属片区: + + + {{lists.arealName}} + + + + + 来源: + + + {{lists.accept_date}} + + + + + 来源编号: + + + {{lists.fromName}} + + + + + 要求完成时间: + + + {{lists.time}} + + + + + 工作内容: + + + {{lists.content}} + + + + + 地址: + + + {{lists.address}} + + + + + + 投诉人姓名: + + + {{lists.people}} + + + + + 投诉人电话: + + + {{lists.phone}} + - - - 反馈科室: - - - {{lists.depName}} - - - - - 定位地址: - - - {{lists.address}} - - - - - 内容: - - - {{lists.content}} - - - - - 现场照片: - - - - - - - - 异常处置建议: - - - {{lists.tip}} - - - - - 是否隶属于雨管科: - - - {{lists.is_rain_name}} - - - - - 是否现场处理: - - - {{lists.is_scene_name}} - - - - - 现场处理结果: - - - {{lists.result}} - - - - - 处理后照片: - - - - - - - - - - @@ -156,7 +136,22 @@ }); }, loadInfo: function(id) { - var that = this; + var that = this; + that.lists={ + accept_date:"12345", + fromName:"来源编号", + content:"内容", + arealName:"沧浪", + time:"2022-08-08 09:56:12", + admin_id:"admin", + address:"suzhou", + created_at:"2022-08-08 09:56:12", + people:"某某", + mobile:"1891207" + + + } + return; this.util.request({ method:"get", api: '/api/mobile/mobile-worksheet/show', diff --git a/order/order/orderList/orderList.vue b/order/order/orderList/orderList.vue index 8cfe2fd..c8e1517 100644 --- a/order/order/orderList/orderList.vue +++ b/order/order/orderList/orderList.vue @@ -27,46 +27,92 @@ - 工单标题: + 所属片区: - {{item.name}} + {{item.arealName}} - 反馈科室: + 来源: - {{item.feedbackName}} + {{item.accept_date}} + + + + 来源编号: + + + {{item.fromName}} + + + + + 要求完成时间: + + + {{item.time}} + + + + + 工作内容: + + + {{item.content}} + - 定位地址: + 地址: - + {{item.address}} - - - 编辑 - + + + 查看 + - + + 签收 + + + + 去巡查 + + + + 去养护 + + + + 确认完成 + + + + + - + @@ -127,7 +173,6 @@ }, onPullDownRefresh: function(e) { this.loadStatus = 'loadmore'; - console.log("onPullDownRefresh") this.loadPage(1); }, onShow: function() { @@ -165,14 +210,80 @@ url: "../orderInfo/orderInfo?id=" + id }) }, - toedit(id){ - uni.navigateTo({ - url: "../order/order?id=" + id - }) + acceptOrder:function(id){ + var that = this + uni.showModal({ + title: '提示', + content: '是否确定签收?', + success(res) { + if(res.confirm){ + uni.showToast({ + icon: "none", + title: "签收成功", + complete() { + that.dataList[0].status = 1 + that.dataList[0].statusName="已签收" + }, + duration: 2000 + }) + }else if(res.cancel){ + + } + } + }) + }, + completeOrder(id){ + var that = this + uni.showModal({ + title: '提示', + content: '是否确定完成?', + success(res) { + if(res.confirm){ + uni.showToast({ + icon: "none", + title: "工单已完成", + complete() { + that.dataList[0].status = 3 + that.dataList[0].statusName="已结束" + }, + duration: 2000 + }) + }else if(res.cancel){ + + } + } + }) + }, + goxuncha(id){ + this.dataList[0].status = 2 + this.dataList[0].statusName="已处理" + uni.navigateTo({ + url: "../../../road/road/road?type=raininspection&orderId="+id + }) + }, + goyanghu(id){ + this.dataList[0].status = 2 + this.dataList[0].statusName="已处理" + uni.navigateTo({ + url: "../../../road/road/road?type=rainmaintain&orderId="+id + }) }, loadPage: function(page) { uni.hideKeyboard() - var that = this; + var that = this; + that.dataList = [{ + status:0, + accept_date:"12345", + fromName:"来源编号", + content:"内容", + arealName:"沧浪", + time:"2022-08-08 09:56:12", + admin_id:"admin", + address:"suzhou", + statusName:"已派发", + created_at:"2022-08-08 09:56:12" + }] + return this.util.request({ bindThis: that, api: '/api/mobile/mobile-worksheet/index',