From ffedc806f93a65de2159c569af64c3323e4ce17b Mon Sep 17 00:00:00 2001
From: yangan <yangan0921@163.com>
Date: 星期四, 13 二月 2025 16:21:46 +0800
Subject: [PATCH] feat:注册页面承运单位修改必填

---
 pages/sampling-page/index.vue |   47 ++++++++++++++++++++++++++++++++++-------------
 1 files changed, 34 insertions(+), 13 deletions(-)

diff --git a/pages/sampling-page/index.vue b/pages/sampling-page/index.vue
index f403c10..b31a572 100644
--- a/pages/sampling-page/index.vue
+++ b/pages/sampling-page/index.vue
@@ -13,17 +13,11 @@
 						v-if="CoalNameList.length == 0"></u-empty>
 				</view> -->
 				
-					
-				
-
                 <view class="title"><u-icon  size='26' color="#" name="order"></u-icon><i>寰呮鍖�</i></view>
 				<view class="body">
 					<!-- <selectTarget ref='selectTarget'></selectTarget> -->
                     <view class="collection-form">
-						<u-tabs :list="tabList" :activeStyle="{color:'#fff',fontSize:'26rpx'} " :itemStyle="{fontSize:'16px'
-						}" @click="tabClick"
-						lineWidth="50"
-						lineHeight="2"></u-tabs>
+						<u-tabs :list="tabList" :activeStyle="{fontSize:'26rpx'} " @click="tabClick"></u-tabs>
                         <view style="position: relative;">
 					<u-empty mode="data"
 						icon="http://cdn.uviewui.com/uview/empty/data.png"
@@ -81,7 +75,7 @@
 						<view class="third-line">
 							<view class="time-icon">
 								<view
-									style="width: 24rpx;height: 24rpx;li ne-height: 24rpx;background: url('https://mr1.res.jzeg.cn:9096/appimg/image/banner/clock.png') no-repeat;background-size: cover">
+									style="width: 24rpx;height: 24rpx;line-height: 24rpx;background: url('https://mr1.res.jzeg.cn:9096/appimg/image/banner/clock.png') no-repeat;background-size: cover">
 								</view>
 							</view>
 							<view class="send-date">{{ item.sendDate }}</view>
@@ -139,7 +133,11 @@
 						},
 						{
 							name:'澶栬喘'
-						}]
+						},
+						{
+							name:'鍐呰喘'
+						}
+					]
 			};
 		},
 		onLoad() {
@@ -150,9 +148,13 @@
 				this.$nextTick(() => {
 					if(this.tagName == '澶栬喘'){
 						this.getWaiData();
-					}else{
+					}else if(this.tagName == '鍐呰喘'){
+						this.getNeiData();
+					} else{
 						this.getListData();
 					}
+					
+					
 					
 				})
 			},
@@ -197,7 +199,10 @@
 					setTimeout(() => {
 						if(this.tagName == '澶栬喘'){
 							this.getWaiData()
-						}else{
+						}else if(this.tagName == '鍐呰喘'){
+							this.getNeiData();
+						}
+						else{
 							this.getListData() //璋冪敤鎺ュ彛鐨勬柟娉�
 						}
 						console.log(1111111111)
@@ -212,14 +217,30 @@
 					this.tagName = val.name;
 					if(val.name == '澶栬喘'){
 						this.getWaiData();
-					}else{
+					}else if(val.name === '鍐呰喘'){
+						this.getNeiData();
+					}
+					else{
 						this.getListData();
 					}
 				
 
 			},
 			getWaiData(){
-				this.$reqGet('inspectedTaskPage',{inspectionStatus:1,status:5,orderType:'澶栬喘'}).then(res=>{
+				this.$reqGet('inspectedTaskPage',{inspectionStatus:1,orderType:'澶栬喘'}).then(res=>{
+							if(res.code == 0){
+						if(res.data.records.length){
+							this.orderPlanData  = res.data.records;
+						}else{
+							this.orderPlanData = [];
+						}
+                     
+                    }
+						})
+			},
+			//鍐呰喘
+			getNeiData(){
+				this.$reqGet('inspectedTaskPage',{inspectionStatus:1,orderType:'鍐呰喘'}).then(res=>{
 							if(res.code == 0){
 						if(res.data.records.length){
 							this.orderPlanData  = res.data.records;

--
Gitblit v1.9.1