diff --git a/components/orderCard/OrderCard.vue b/components/orderCard/OrderCard.vue
index e8cb42e..299e572 100644
--- a/components/orderCard/OrderCard.vue
+++ b/components/orderCard/OrderCard.vue
@@ -51,14 +51,73 @@
联系司机
- 转维修
+ 转维修
+ @cancel="deleteCancel">
+ {toRepairShow=false}">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {pinpaiShow=false}">
+ {fuwuShow=false}">
@@ -76,7 +135,9 @@
status: {
type: [String, Number],
default: ''
- }
+ },
+ brandList: [],
+ staffList: []
},
computed: {
statusStr() {
@@ -101,8 +162,17 @@
columns: [],
id: '',
show: false,
- showDelete: false,
+ showDelete: false,
+ toRepairShow: false,
+ pinpaiShow: false,
+ fuwuShow: false,
+ formData:{
+ brandAndModel:[]
+ }
}
+ },
+ onLoad(){
+
},
methods: {
hasRole,
@@ -129,10 +199,31 @@
return ''
}
},
- toRepair(id){
- let data ={
- id: id
- }
+ onPinpaiConfirm(e){
+ console.log(e)
+ this.formData.brandName = e.value[0].brandName
+ this.formData.brandAndModel[0] = e.value[0].id
+ this.pinpaiShow = false
+ },
+ onFuwuConfirm(e){
+ this.formData.adviserName = e.value[0].name
+ this.formData.adviserId = e.value[0].id
+ this.formData.userId = e.value[0].userId
+ this.fuwuShow = false
+ },
+ showRepair(){
+ if(this.orderData.connectionName){
+ this.formData.name = this.orderData.connectionName
+ }
+ if(this.orderData.connectionPhone){
+ this.formData.phone = this.orderData.connectionPhone
+ }
+ this.toRepairShow = true
+ },
+ toRepair(){
+ let data = JSON.parse(JSON.stringify(this.formData))
+ data.id = this.orderData.id
+ console.log(data,'data');
request({
url: '/app/rescueInfo/toRepair',
method: 'post',
@@ -142,6 +233,7 @@
uni.showToast({
title: '操作成功'
})
+ this.toRepairShow = false
this.$emit('refresh')
}
})
diff --git a/pages/rescue/historylist.vue b/pages/rescue/historylist.vue
index 9272a1a..bbd9cda 100644
--- a/pages/rescue/historylist.vue
+++ b/pages/rescue/historylist.vue
@@ -26,7 +26,7 @@
-
+