gjy 3 年 前
コミット
06cab99a77
1 ファイル変更12 行追加5 行削除
  1. 12 5
      pageB/contract/look.vue

+ 12 - 5
pageB/contract/look.vue

@@ -67,17 +67,15 @@
 						<image :src="item.unloadPoundImg" mode="" class="poundlist"></image>
 					</view>
 				</view>
-
+				<button v-if='item.confirmFlag!=3' class=" btn btns unload" style="background-color: #22C572; color: #FFFFFF ;width:80%;"
+					@click="confirmunload(item)" >确认卸货</button>
 			</view>
 		</view>
 		<view class="c-list">
-				<button class=" btn btns" style="background-color: #FFFFFF; "
+				<button class=" btn btns" style="background-color: #FFFFFF;"
 					@click="commit1(goods)">
 					<image src="../../static/img/jiaoyi/ic_fabu@2x.png" style="width: 24px; height: 24px;top: 7px;"></image>
 					添加发车信息</button>
-				<button class=" btn btns" style="background-color: #22C572; color: #FFFFFF ; "
-					@click="confirmunload(item)" >确认卸货</button>
-			
 		</view>
 		<view v-if='imgstatus' class='shade'>
 			<view class='shade-content'>
@@ -198,6 +196,11 @@
 						id: item.id
 					}).then(res => {
 						if (res.data.code == 200) {
+							uni.showToast({
+								title: '卸货成功',
+								icon: 'none',
+								duration: 2000
+							})
 							item.confirmFlag = 3
 						}
 					})
@@ -980,6 +983,7 @@
 		background-color: #FFFFFF;
 		margin-top: 20px;
 		border-radius: 20px;
+		padding-bottom:20px;
 		/* 	padding: 5px 10px; */
 	}
 
@@ -1032,4 +1036,7 @@
 		margin-left: 14px;
 		margin-top: 10px;
 	}
+	.unload{
+		
+	}
 </style>