综法订单新增取消功能,新增匹配律师状态
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
:isSelf="item.is_self"
|
||||
:payStatus="item.pay_status"
|
||||
:can="item.can"
|
||||
@cancel="onCancel"
|
||||
@info="onInfo"
|
||||
@pay="onPay"
|
||||
@sing="onSing"
|
||||
@@ -46,6 +47,7 @@
|
||||
:payStatus="item.pay_status"
|
||||
@info="onInfo"
|
||||
@pay="onPay"
|
||||
@cancel="onCancel"
|
||||
/>
|
||||
<!-- 委托单 -->
|
||||
<entrust-block
|
||||
@@ -66,6 +68,7 @@
|
||||
@sing="onSing"
|
||||
@diff="onDiff"
|
||||
@callPhone="onCallPhone"
|
||||
@cancel="onCancel"
|
||||
/>
|
||||
<!-- 拓展单 -->
|
||||
<expand-block
|
||||
@@ -85,6 +88,7 @@
|
||||
@pay="onPay"
|
||||
@diff="onDiff"
|
||||
@callPhone="onCallPhone"
|
||||
@cancel="onCancel"
|
||||
/>
|
||||
</block>
|
||||
<!-- 分页 -->
|
||||
@@ -103,7 +107,7 @@
|
||||
|
||||
<script>
|
||||
import { certified } from '@/apis/interfaces/user.js'
|
||||
import { servicesOrder, synthesisOrder, entrustOrder, expandOrder, orderRead } from '@/apis/interfaces/synthesisOrder.js'
|
||||
import { servicesOrder, synthesisOrder, entrustOrder, expandOrder, orderRead, cancelOrder } from '@/apis/interfaces/synthesisOrder.js'
|
||||
import { esignUrl } from '@/apis/interfaces/synthesis.js'
|
||||
import entrustBlock from '@/components/entrustOrder.vue'
|
||||
import expandBlock from '@/components/expandOrder.vue'
|
||||
@@ -203,6 +207,37 @@
|
||||
this.getList()
|
||||
}
|
||||
},
|
||||
// 取消订单
|
||||
onCancel(no){
|
||||
let orderArr = this.orderArr
|
||||
let orderObj = orderArr.find(val => val.order_no === no)
|
||||
let orderIndex = orderArr.findIndex(val => val.order_no === no)
|
||||
|
||||
uni.showModal({
|
||||
title : '提示',
|
||||
content : '确认取消当前订单嘛?',
|
||||
success : modalRes => {
|
||||
if(modalRes.confirm){
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
mask : true
|
||||
})
|
||||
cancelOrder(this.$Route.query.type, orderObj.order_id).then(res => {
|
||||
this.orderArr.splice(orderIndex, 1)
|
||||
uni.showToast({
|
||||
title: '订单已取消',
|
||||
icon : 'none'
|
||||
})
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
// 签约
|
||||
onSing(no){
|
||||
let orderArr = this.orderArr
|
||||
|
||||
Reference in New Issue
Block a user