From d36eb757af8867278125c6999fcaa5bdb902151c Mon Sep 17 00:00:00 2001
From: 付延余 <f-yanyu@outlook.com>
Date: 星期二, 21 三月 2023 17:38:45 +0800
Subject: [PATCH] 司机称重页面,签到页面

---
 pages/driver-page/appointment/appointment.vue |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/pages/driver-page/appointment/appointment.vue b/pages/driver-page/appointment/appointment.vue
index 80923af..272b15c 100644
--- a/pages/driver-page/appointment/appointment.vue
+++ b/pages/driver-page/appointment/appointment.vue
@@ -1,6 +1,6 @@
 <template>
 	<view class="appointment">
-		<combined-title :title="yuYueData.length != 0?yuYueData[0].filedName + '鈥斺��' + yuYueData[0].sendDate:'鏆傛棤棰勭害鍒楄〃'"></combined-title>
+		<combined-title :title="yuYueData.length != 0 ? yuYueData[0].filedName + '鈥斺��' + yuYueData[0].sendDate : '鏆傛棤棰勭害鍒楄〃'"></combined-title>
 		<view class="appointment-table">
 			<uni-table border stripe emptyText="鏆傛棤鏇村鏁版嵁">
 				<uni-tr>
@@ -22,7 +22,6 @@
 
 <script>
 import combinedTitle from '@/components/combined-title/combined-title.vue';
-import { BigNumber } from 'bignumber.js';
 export default {
 	components: {
 		combinedTitle
@@ -34,9 +33,9 @@
 				deptId: '',
 				sendDate: ''
 			},
-			yuYuePostParams:{
+			yuYuePostParams: {
 				takeCoalId: null,
-				yuYueId: null,
+				yuYueId: null
 			},
 			yuYueData: [],
 			isRCSQ: false, // 鍏ュ満鐢宠鎺ュ彛鎺у埗
@@ -95,6 +94,11 @@
 			this.$reqPost('yuYue', { takeCoalId: this.yuYuePostParams.takeCoalId, yuYueId: this.yuYuePostParams.yuYueId }, 'params').then(res => {
 				if (res.code == 0) {
 					this.$u.toast('棰勭害鎴愬姛锛�');
+					uni.navigateBack({
+						delta: 1
+					})
+				} else {
+					this.$u.toast(res.data ? res.data : '棰勭害澶辫触');
 				}
 				setTimeout(() => {
 					this.yuYueList();

--
Gitblit v1.9.1