diff --git a/components/orderCard/OrderCard.vue b/components/orderCard/OrderCard.vue index ba1ca0e..e8cb42e 100644 --- a/components/orderCard/OrderCard.vue +++ b/components/orderCard/OrderCard.vue @@ -49,6 +49,9 @@ + @@ -125,7 +128,24 @@ default: return '' } - }, + }, + toRepair(id){ + let data ={ + id: id + } + request({ + url: '/app/rescueInfo/toRepair', + method: 'post', + params: data + }).then((res) => { + if (res.code == 200) { + uni.showToast({ + title: '操作成功' + }) + this.$emit('refresh') + } + }) + }, onShowDetail() { uni.navigateTo({ url: '/pages/details/details?id=' + this.orderData.id diff --git a/pages/rescue/historylist.vue b/pages/rescue/historylist.vue index 81f526b..9272a1a 100644 --- a/pages/rescue/historylist.vue +++ b/pages/rescue/historylist.vue @@ -26,7 +26,7 @@ - + + + @@ -111,6 +116,28 @@ + + * 是否扣车 + + + + + + + + + + 现场图片 @@ -165,6 +192,8 @@ export default { data() { return { + // isWeiXiu: '0', + isKouChe: '0', show: false, value1: Number(new Date()), rescueLongitude: '', @@ -408,7 +437,10 @@ rescueType: this.rescueType, carType: this.carType, feeType: this.feeType, - kcPosition: this.kcname + kcPosition: this.kcname, + isKouChe: this.isKouChe, + // isWeiXiu: this.isWeiXiu, + sectionRoad: (this.seletedRoad && this.seletedRoad.length>0)? this.seletedRoad[0]: null } request({ url: '/app/rescueInfo/add',