oyq28 1 месяц назад
Родитель
Сommit
c7e2141e14

+ 12 - 12
pages/work/record/RecordList.uvue

@@ -67,7 +67,7 @@
 
 			</view>
 			<view class="my-page">
-				<swiper class="swiper-box my-swiper" :current="0" :indicator-dots="true" v-if="item.urlpdt.length>0" :key="'photo-'+item.sxid">
+				<swiper class="swiper-box my-swiper" :current="0" :indicator-dots="true" :key="'photo-'+item.sxid" v-if="item.urlpdt.length>0">
 					<swiper-item v-for="(url, index) in item.urlpdt" :key="index" @tap="preview(uni.env.USER_DATA_PATH+url)">
 						<view class="swiper-item ">
 							<image class="my-image" :src="uni.env.USER_DATA_PATH+url" mode="aspectFill" />
@@ -77,8 +77,9 @@
 						</view>
 					</swiper-item>
 				</swiper>
+				
 				<view v-if="item.urlspl.length>0"><text class="info-tips">—— 以下为示例图像 ——</text></view>
-				<swiper class="swiper-box my-swiper mg-top" :current="0" :indicator-dots="true"
+				 <swiper class="swiper-box my-swiper mg-top" :current="0" :indicator-dots="true"
 					v-if="item.urlspl.length>0" :key="'example-'+item.sxid">
 					<swiper-item v-for="(url, index) in item.urlspl" :key="index" @tap="preview(url)" >
 						<view class="swiper-item ">
@@ -199,15 +200,14 @@
 		pid = options?.pid ?? "1"
 		senum = options?.senum ?? "1"
 		maxcount = parseInt(num)
-
 		// 加载初始数据
 		refreshRecords(parseInt(senum));
 	});
 
 
 	const tabsClick = (obj : number) => {
-		current.value = obj
-		records.value = initRecords.filter(item => item['senum'] == current.value)
+		current.value = obj		
+		records.value = initRecords.filter(item => item['senum'] == current.value)	    
 	}
 	const closeTag = (index : number) => {
 		let record = records.value[0]
@@ -345,7 +345,7 @@
 		display: flex;
 		flex-direction: row;
 		justify-content: space-between;
-		align-items: center;
+		text-align: center;
 	}
 
 	.department {
@@ -375,7 +375,7 @@
 		font-size: 28rpx;
 		color: #33475b;
 		/* #endif */
-		align-items: center;
+		text-align: center;
 	}
 
 	.label {
@@ -459,7 +459,7 @@
 	}
 
 	.demo-view-label {
-		text-align: center;
+		align-items: center;
 		color: #102a43;
 		line-height: 1.5;
 		margin-top: 5rpx;
@@ -471,7 +471,7 @@
 		margin: 0 10rpx;
 		display: flex;
 		justify-content: center;
-		align-items: center;
+		text-align: center;
 		flex-shrink: 0;
 	}
 
@@ -562,7 +562,7 @@
 		height: 50rpx;
 		width: 100%;
 		background-color: #004a99;
-		text-align: center;
+		align-items: center;
 		color: #fff;
 		line-height: 50rpx;
 		border-radius: 10rpx;
@@ -586,11 +586,11 @@
 		width: 120rpx;
 		min-width: 120rpx;
 		border-radius: 10rpx;
-		text-align: center;
+		align-items: center;
 	}
 	
 	.info-tips {
-		text-align: center;
+		align-items: center;
 		color: #999;
 		font-size: 20rpx;
 		margin-top: 20rpx;

+ 1 - 1
uni_modules/uni-sqlContext/utssdk/app-android/index.uts

@@ -366,7 +366,7 @@ class SQLiteContext extends SQLiteOpenHelper {
 		];
 		let testBizData = [
 			`INSERT INTO "app_media_info" ("pdid", "workorder", "invname", "productno", "cardno", "model", "graphid", "ver", "phase", "processno", "progress", "status", "createtime", "createuser", "updatetime", "updateuser", "uploadFlag", "uploadtime") VALUES (1, '632-P-01', '箱间段', 'YH0001', 'LK20230707070012', NULL, '1CFA1040-02', NULL, NULL, 'Pb/XXX-E11', '0/2', 1, NULL, '1', '2025-06-23', '1', 0, NULL);`,
-			`INSERT INTO "app_media_record" ("sxid", "senum", "photoitem", "productno", "part", "partno", "pk", "exampleid", "descb", "num", "status", "date", "urlspl", "imgname", "urlpdt", "createtime", "createuser", "updatetime", "updateuser", "pid", "uploadFlag") VALUES (1, '1', '前底-外侧', 'YH0001', '角焊缝', 'TD10-01', '1', NULL, '角片角焊缝', 2, 1, '2025-06-05', '/static/images/demo.png,/static/images/demo.png', '', '', NULL, '1', NULL, '1', 1, 0);`,
+			`INSERT INTO "app_media_record" ("sxid", "senum", "photoitem", "productno", "part", "partno", "pk", "exampleid", "descb", "num", "status", "date", "urlspl", "imgname", "urlpdt", "createtime", "createuser", "updatetime", "updateuser", "pid", "uploadFlag") VALUES (1, '1', '前底-外侧', 'YH0001', '角焊缝', 'TD10-01', '1', NULL, '角片角焊缝', 1, 1, '2025-06-05', '/static/images/demo.png,/static/images/demo.png', '', '', NULL, '1', NULL, '1', 1, 0);`,
 			`INSERT INTO "app_media_record" ("sxid", "senum", "photoitem", "productno", "part", "partno", "pk", "exampleid", "descb", "num", "status", "date", "urlspl", "imgname", "urlpdt", "createtime", "createuser", "updatetime", "updateuser", "pid", "uploadFlag") VALUES (2, '1', '后底-外侧', 'YH0001', '角焊缝', 'TD10-02', '2', NULL, '角片角焊缝', 3, 1, '2025-06-05', '/static/images/demo.png,/static/images/demo.png,/static/images/demo.png', '', '', NULL, '1', NULL, '1', 1, 0);`,
 			`INSERT INTO "app_task_info" ("pdid", "gxpk", "pk_serial", "cardno", "productcode", "model", "workorder", "invname", "graphid", "processno", "gxno", "ver", "lastupdatetime", "updateuser", "uploadFlag", "uploadtime") VALUES (1, 'PI02297172', '1b93d201-8430-41a4-b462-4bbedef28cab', 'LK202407290121G01', 'YHZJ240442TD', '718', '718-SY-YZ-03', '一层段', '1020#S', 'Pb/1020-E7', '230检验', 'B.1', NULL, NULL, 0, NULL);`,
 			`INSERT INTO "app_task_record" ("sxid", "pdid", "pk", "fk_invcode", "no", "invcode", "invname", "processStep", "fk_processTask", "checkTarget", "checknum", "oknum", "ngnum", "status", "result", "checkTime", "fk_creator", "cs", "ts") VALUES (1, 1, 'af90ef8a-9979-42d7-9a2e-3b3a6ecfe3cb', '1002N11000000012X3K8', '检验工序_LK202407290121G01_23', '1020', '一层段', '230检验', 'PI02297172', '检验工序', 1, 1, 0, '已检验', '合格', '2024-09-29 09:45:21', '060080000199', '2024-09-29 09:41:56', '2024-09-29 09:45:21');`,