This commit is contained in:
2023-06-09 17:59:05 +08:00
parent 59b15f321d
commit 47a057b35b
237 changed files with 669 additions and 216 deletions

View File

@@ -10,6 +10,9 @@
<view class="orderTab-item" :class="{active : yearStatus == 5}" @click="stateClick('5')">已驳回</view>
</scroll-view>
<view class="orderState">
<view class="orderState-item" :class="{active : refundStatus == 'all'}" @click="refundClick('all')">
<text>全部</text>
</view>
<view class="orderState-item" :class="{active : refundStatus == 0}" @click="refundClick('0')">
<text>未退款</text>
</view>
@@ -41,6 +44,23 @@
{{item.entrust.title}}
</view>
</view>
<view class="listItem-cont-label" v-if="item.can.lawyer_status != 0">
<view class="listItem-cont-name">
律师匹配
</view>
<view class="listItem-cont-text listItem-cont-price">
<block v-if="item.can.lawyer_status == 1">待匹配律师</block>
<block v-else-if="item.can.lawyer_status == 2">已匹配律师</block>
</view>
</view>
<view class="listItem-cont-label" v-if="item.lawyer">
<view class="listItem-cont-name">
所属律师
</view>
<view class="listItem-cont-text listItem-cont-price">
{{item.lawyer.name}}
</view>
</view>
<view class="listItem-cont-label">
<view class="listItem-cont-name">
订单金额
@@ -49,6 +69,14 @@
{{item.total}}
</view>
</view>
<view class="listItem-cont-label" v-if="item.remark != ''">
<view class="listItem-cont-name">
驳回原因
</view>
<view class="listItem-cont-text listItem-cont-reject" @click="rejectClick(item.remark)">
查看原因>
</view>
</view>
<view class="listItem-cont-label" v-if="item.need_pay_diff_prices != 0">
<view class="listItem-cont-name">
补差价金额
@@ -58,10 +86,18 @@
<view class="listItem-cont-btn">去支付</view>
</view>
</view>
<view class="listItem-cont-label">
<view class="listItem-cont-name">
下单时间
</view>
<view class="listItem-cont-text listItem-cont-diff" @click="diffClick(item)">
{{item.created_at}}
</view>
</view>
</view>
<view class="listItem-labor">
<view class="listItem-labor-time">
{{item.created_at}}
<view @click="operateMore(item.entrust_order_id)" v-if="item.can.cancel">更多</view>
</view>
<view class="listItem-labor-btn">
<view v-if="item.can.pay_status == 1" @click="expressSheet(item.entrust_order_id, item.order_type, item.can, item.price)" class="listItem-labor-go">
@@ -85,7 +121,7 @@
</view>
<view class="pack-center pages-hint" v-else>
<image src="/static/imgs/Noevaluate.png"></image>
<image src="https://douhuo-storage.oss-cn-beijing.aliyuncs.com/images/2023/06/06/7ad417d0c215db601b8e1bead05c3a5e.png"></image>
<view>暂无订单</view>
</view>
@@ -130,12 +166,12 @@
</template>
<script>
import { entrustOrder, entrustPay, esignUrl } from '@/apis/interfaces/synthesis'
import { entrustOrder, entrustPay, esignUrl, entrustCancel } from '@/apis/interfaces/synthesis'
export default {
data() {
return {
yearStatus : 0, // 0 未付款 1 2
refundStatus : 0, // 0 退款 0 1
refundStatus : 'all', // 全部 0 退款 0 1
yearArr : [], // 委托单列表
orderType : '', // 委托单列表-类型
orderId : '', // 委托单列表-id
@@ -149,11 +185,11 @@
}
},
created() {
this.yearStatus = this.$Route.query.yearStatus || 0
},
created() {},
onShow() {
this.yearStatus = this.$Route.query.yearStatus || 0
// 获取-委托单-列表
this.yearServe();
},
@@ -204,8 +240,8 @@
esignUrl({
order_id : id,
order_type: type,
// redirect_url: "https://web.douhuofalv.com/user/index",
redirect_url: "https://web.douhuotest.douhuofalv.com/user/index",
redirect_url: "https://web.douhuofalv.com/user/index",
// redirect_url: "https://web.douhuotest.douhuofalv.com/user/index",
channel : 'h5',
app_scheme : ''
}).then(res => {
@@ -283,6 +319,48 @@
this.$Router.push({name: 'DiffList', params: {orderId: e.entrust_order_id, orderType:e.order_type, payForm: 'entrust'}})
},
// 更多操作
operateMore(id) {
wx.showActionSheet({
itemList: ['取消订单'],
success: ()=> {
wx.showModal({
title : '提示',
content : '是否取消订单',
success : res=> {
if (res.confirm) {
entrustCancel(id).then(res => {
wx.showToast({
title:'取消成功',
icon:'none'
})
// 获取-委托单-列表
this.yearServe();
}).catch(err => {
uni.showToast({
title: err.message,
icon : 'none'
})
})
}
}
})
},
fail: err=> {}
})
},
// 查看驳回原因
rejectClick(text){
uni.showToast({
title: text,
icon : 'none'
})
},
// 页面相关事件处理函数--监听用户下拉动作
onPullDownRefresh() {
// 获取-委托单-列表
@@ -417,6 +495,16 @@
font-weight: normal;
}
}
&.listItem-cont-reject {
color: #ec7647;
background-color: #fff6ea;
padding: 0 15rpx;
border-radius: 10rpx;
height: 52rpx;
line-height: 52rpx;
margin-top: 6rpx;
font-size: 26rpx;
}
}
}
}