From ae1aad66a165ee7253bed2127a3b53baa40c2361 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期三, 17 五月 2023 08:35:33 +0800
Subject: [PATCH] 修复错误,增加验证

---
 pages/public-page/forward/forward.vue |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/pages/public-page/forward/forward.vue b/pages/public-page/forward/forward.vue
index 37b9201..1774faf 100644
--- a/pages/public-page/forward/forward.vue
+++ b/pages/public-page/forward/forward.vue
@@ -9,14 +9,17 @@
 		</view>
 		<view v-if="roleType == 1" class="notice-bar">
 			<u-notice-bar :text="text" :fontSize="30"></u-notice-bar>
-			<view class="notice-icon" style="background: url('../../../static/image/banner/notice.png') no-repeat;background-size: cover; width: 42rpx;height: 42rpx;"></view>
+			<view
+				class="notice-icon"
+				style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/notice.png') no-repeat;background-size: cover; width: 42rpx;height: 42rpx;"
+			></view>
 		</view>
 		<view v-else-if="roleType == 2" class="notice-bar"><u-notice-bar :text="text1" :fontSize="30"></u-notice-bar></view>
 		<view class="card-main">
 			<view class="card-block">
 				<view class="forward-card" v-for="(val, index) in jhOrderPlanForwardList" :key="index">
 					<u-swipe-action>
-						<u-swipe-action-item :options="options1" @click="deleteGroup(index, val)">
+						<u-swipe-action-item :options="options1" @click="deleteGroup(index, val)" :index="index" :name="val.xsUserId || val.fleetId">
 							<view class="card-content">
 								<u--form labelPosition="left" :model="forwardForm" ref="form1">
 									<u-form-item label="杞彂瀵硅薄" labelWidth="21%" ref="item1" @click="forwardObjectClick(index)">
@@ -373,6 +376,16 @@
 			let time;
 			let that = this;
 			that.$set(that.jhOrderPlanForwardList[index], 'carNum', Number(value));
+			if (that.roleType == 1) {
+				if (that.jhOrderPlanForwardList[index].carNum < that.carNumSurplus1) {
+					that.jhOrderPlanForwardList[index].checkboxValue1 = '';
+				}
+			}
+			if (that.roleType == 2) {
+				if (that.jhOrderPlanForwardList[index].carNum < that.carNumSurplusHuodai) {
+					that.jhOrderPlanForwardList[index].checkboxValue1 = '';
+				}
+			}
 			return (function() {
 				if (!time) {
 					time = setTimeout(() => {

--
Gitblit v1.9.1