From c3b2d6d35b77d11ff86d45926501493b7fc8886e Mon Sep 17 00:00:00 2001 From: wjt <1797368093@qq.com> Date: 星期二, 23 七月 2024 10:30:20 +0800 Subject: [PATCH] 新功能添加 --- qiye/record/details.vue | 34 ++++++++++++++++++++++++++++++++-- 1 files changed, 32 insertions(+), 2 deletions(-) diff --git a/qiye/record/details.vue b/qiye/record/details.vue index 9a88159..d851ff6 100644 --- a/qiye/record/details.vue +++ b/qiye/record/details.vue @@ -168,7 +168,7 @@ </view> </view> </view> - <view class="bottom" v-if="msg.orderStatus==3 || msg.orderStatus== 4"> + <view class="bottom" v-if=" msg.orderStatus== 5"> <view class="one" v-if="msg.isComplaint != 1 && msg.isEva == 1"> <view class="b1" @click="open()"> 鎶曡瘔 @@ -187,6 +187,15 @@ 鎴戣璇勪环 </view> </view> + </view> + <view class="bottom" v-if=" msg.orderStatus == 4"> + <view class="one" > + <view class="b1" style="background-color: #1171E0;color: white;" @click="enterOrder()"> + 纭 + </view> + </view> + + </view> <u-popup :show="show" @close="close" mode="bottom" round="10" closeable> <view class="page-box"> @@ -224,7 +233,7 @@ import { order } from '@/api/index.js' import { getDicts } from '@/api/data.js' import { config } from '@/common/config' - import { orderComplaint } from '@/api/qiye.js' + import { orderComplaint, confirmOrderId } from '@/api/qiye.js' export default { data() { return { @@ -259,6 +268,27 @@ this.getdata() }, methods: { + enterOrder() { + uni.showModal({ + title: '鎻愮ず', + content: '纭璇ヨ鍗曪紵', + success: val => { + if(val.confirm) { + confirmOrderId({orderId: this.msg.orderId}).then(val => { + if(val.data.code == 200) { + uni.showToast({ + title: '纭鎴愬姛', + icon: 'none' + }) + this.getdata() + } + }) + } + } + + }) + + }, getdata(){ order(this.id).then(val => { -- Gitblit v1.9.1