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

---
 pages/customer-page/customer-index/customer-index.vue |   23 ++++++++---------------
 1 files changed, 8 insertions(+), 15 deletions(-)

diff --git a/pages/customer-page/customer-index/customer-index.vue b/pages/customer-page/customer-index/customer-index.vue
index cc34f45..c70f52a 100644
--- a/pages/customer-page/customer-index/customer-index.vue
+++ b/pages/customer-page/customer-index/customer-index.vue
@@ -9,15 +9,15 @@
 						寮�
 					</view>
 					<view class="card-left__utils">
-						<u-button @tap.stop="receiveClick(item)" text="棰嗗彇" type="primary" v-if="item.cars == item.cars2 ? false : true" shape="circle"></u-button>
-						<u-button text="杞彂" type="primary" @tap.stop="forwardClick(item)" shape="circle"></u-button>
+						<u-button @tap.stop="receiveClick(item)" text="棰嗗彇" type="primary" v-if="item.cars2 != item.carNum" shape="circle"></u-button>
+						<u-button text="杞彂" type="primary" @tap.stop="forwardClick(item)" shape="circle" v-if="item.carNum != item.carNumSurplus1"></u-button>
 					</view>
 				</template>
 				<template v-slot:right-top>
 					<view class="right-top">
 						<view class="card-right-top-row">
 							<view>
-								<text>{{ item.compName || '' }}</text>
+								<text>{{ item.deptName || '' }}</text>
 							</view>
 							<view>
 								<text>{{ item.coalName }}</text>
@@ -61,8 +61,6 @@
 <script>
 import card from '@/components/card/card.vue';
 import { customerId } from '@/utils/status';
-import colorGradient from '@/uni_modules/uview-ui/libs/function/colorGradient';
-
 export default {
 	components: {
 		card
@@ -92,13 +90,9 @@
 			});
 			this.$reqGet('GetOrderPlan').then(res => {
 				this.orderPlanData = res.data;
-				uni.hideLoading()
+				uni.hideLoading();
 			});
 		},
-		// 棰嗗彇鐐瑰嚮
-		// numInput(id) {
-
-		// },
 		popupDetermineClick() {
 			if (this.receiveNum) {
 				this.getOrderNum.num = this.receiveNum;
@@ -115,6 +109,8 @@
 							icon: 'none',
 							duration: 1000
 						});
+					} else {
+						this.$u.toast(res.data ? res.data : '棰嗗彇澶辫触');
 					}
 				});
 			} else {
@@ -127,17 +123,14 @@
 		},
 		/**
 		 * @瀹㈡埛棰嗗彇
+		 * 棰嗗彇寮规
 		 */
 		receiveClick(item) {
 			this.show = true;
-
 			this.getOrderNum.id = item.id; // 鑾峰彇棰嗗彇鎻愮叅鍗曠殑id
 		},
-		open() {
-			console.log('鎵撳紑浜�');
-		},
+		open() {},
 		close() {
-			console.log('鍏抽棴鏂规硶');
 			this.show = false;
 			this.receiveNum = null;
 		},

--
Gitblit v1.9.1