From 3fcc9866d0c08f8b2c983a792a60c760891fc986 Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期三, 01 十一月 2023 23:48:11 +0800
Subject: [PATCH] #

---
 pages/project/pakin/pakin.vue |  124 ++++++-----------------------------------
 1 files changed, 18 insertions(+), 106 deletions(-)

diff --git a/pages/project/pakin/pakin.vue b/pages/project/pakin/pakin.vue
index e07fa62..042f428 100644
--- a/pages/project/pakin/pakin.vue
+++ b/pages/project/pakin/pakin.vue
@@ -1,7 +1,7 @@
 <template>
 	<view>
 		<view class="head">
-			<z-input v-for="it in page"
+			<z-input v-for="it in input"
 			:desc="it.title"
 			:name="it.name" 
 			:btn="it.btn" 
@@ -21,13 +21,18 @@
 		<z-data-list class="data-list"
 			v-for="(it,i) in zDataList" 
 			:key="i"  
-			:list="it.detl" 
+			:list="list" 
 			:index="i+1"
 			@goDetail='goDetail(it.detl,i)' 
 		></z-data-list>
 		
 		<!-- 鍨珮 -->
 		<view style="height: 100rpx;"></view>
+		
+		<view class="z-floor">
+			<view class="z-default">閲嶇疆</view>
+			<view class="z-primary">缁勬墭</view>
+		</view>
 		
 	</view>
 </template>
@@ -46,110 +51,20 @@
 							{key: '瑙勬牸',value: '700*699*80'},
 							{key: '鎵瑰彿',value: '20231007204944',type: 'input'},
 							{key: '鏁伴噺',value: 951326478,type: 'number-box',valText: 'val-num'},
-							{key: '搴忓彿',value: 1},
 						]
 					},
-					{
-						detl: [
-							{key: '鍟嗗搧鐮�',value: 'LSH90152025',valText: 'val-text'},
-							{key: '鍟嗗搧鍚嶇О',value: '灏奸緳澶达紙鐏扮櫧锛�5.2x25'},
-							{key: '瑙勬牸',value: '700*699*80'},
-							{key: '鎵瑰彿',value: '20231007204944',type: 'input'},
-							{key: '鏁伴噺',value: 951326478,type: 'number-box',valText: 'val-num'},
-							{key: '搴忓彿',value: 2},
-						]
-					},
-					{
-						detl: [
-							{key: '鍟嗗搧鐮�',value: 'LSH90152025',valText: 'val-text'},
-							{key: '鍟嗗搧鍚嶇О',value: '灏奸緳澶达紙鐏扮櫧锛�5.2x25'},
-							{key: '瑙勬牸',value: '700*699*80'},
-							{key: '鎵瑰彿',value: '20231007204944',type: 'input'},
-							{key: '鏁伴噺',value: 951326478,type: 'number-box',valText: 'val-num'},
-							{key: '搴忓彿',value: 3},
-						]
-					},
-					{
-						detl: [
-							{key: '鍟嗗搧鐮�',value: 'LSH90152025',valText: 'val-text'},
-							{key: '鍟嗗搧鍚嶇О',value: '灏奸緳澶达紙鐏扮櫧锛�5.2x25'},
-							{key: '瑙勬牸',value: '700*699*80'},
-							{key: '鎵瑰彿',value: '20231007204944',type: 'input'},
-							{key: '鏁伴噺',value: 951326478,type: 'number-box',valText: 'val-num'},
-							{key: '搴忓彿',value: 4},
-						]
-					},
-					{
-						detl: [
-							{key: '鍟嗗搧鐮�',value: 'LSH90152025',valText: 'val-text'},
-							{key: '鍟嗗搧鍚嶇О',value: '灏奸緳澶达紙鐏扮櫧锛�'},
-							{key: '瑙勬牸',value: '700*699*80'},
-							{key: '鎵瑰彿',value: '20231007204944',type: 'input'},
-							{key: '鏁伴噺',value: 951326478,type: 'number-box',valText: 'val-num'},
-							{key: '搴忓彿',value: 5},
-						]
-					},
-					{
-						detl: [
-							{key: '鍟嗗搧鐮�',value: 'LSH90152025',valText: 'val-text'},
-							{key: '鍟嗗搧鍚嶇О',value: '灏奸緳澶达紙鐏扮櫧锛�5.2x25'},
-							{key: '瑙勬牸',value: '700*699*80'},
-							{key: '鎵瑰彿',value: '20231007204944',type: 'input'},
-							{key: '鏁伴噺',value: 951326478,type: 'number-box',valText: 'val-num'},
-							{key: '搴忓彿',value: 1},
-						]
-					},
-					{
-						detl: [
-							{key: '鍟嗗搧鐮�',value: 'LSH90152025',valText: 'val-text'},
-							{key: '鍟嗗搧鍚嶇О',value: '灏奸緳澶达紙鐏扮櫧锛�5.2x25'},
-							{key: '瑙勬牸',value: '700*699*80'},
-							{key: '鎵瑰彿',value: '20231007204944',type: 'input'},
-							{key: '鏁伴噺',value: 951326478,type: 'number-box',valText: 'val-num'},
-							{key: '搴忓彿',value: 2},
-						]
-					},
-					{
-						detl: [
-							{key: '鍟嗗搧鐮�',value: 'LSH90152025',valText: 'val-text'},
-							{key: '鍟嗗搧鍚嶇О',value: '灏奸緳澶达紙鐏扮櫧锛�5.2x25'},
-							{key: '瑙勬牸',value: '700*699*80'},
-							{key: '鎵瑰彿',value: '20231007204944',type: 'input'},
-							{key: '鏁伴噺',value: 951326478,type: 'number-box',valText: 'val-num'},
-							{key: '搴忓彿',value: 3},
-						]
-					},
-					{
-						detl: [
-							{key: '鍟嗗搧鐮�',value: 'LSH90152025',valText: 'val-text'},
-							{key: '鍟嗗搧鍚嶇О',value: '灏奸緳澶达紙鐏扮櫧锛�5.2x25'},
-							{key: '瑙勬牸',value: '700*699*80'},
-							{key: '鎵瑰彿',value: '20231007204944',type: 'input'},
-							{key: '鏁伴噺',value: 951326478,type: 'number-box',valText: 'val-num'},
-							{key: '搴忓彿',value: 4},
-						]
-					},
-					{
-						detl: [
-							{key: '鍟嗗搧鐮�',value: 'LSH90152025',valText: 'val-text'},
-							{key: '鍟嗗搧鍚嶇О',value: '灏奸緳澶达紙鐏扮櫧锛�'},
-							{key: '瑙勬牸',value: '700*699*80'},
-							{key: '鎵瑰彿',value: '20231007204944',type: 'input'},
-							{key: '鏁伴噺',value: 951326478,type: 'number-box',valText: 'val-num'},
-							{key: '搴忓彿',value: 5},
-						]
-					}
 				],
-				list: [
-					{}
-				]
+				// list: [
+				// 	{}
+				// ]
 			}
 		},
 		onShow() {
-			console.log(this.page);
+			// console.log(this.page);
 		},
 		computed: mapState({
-			page: state => state.project.menu[0].page.input
+			input: state => state.project.menu[0].page.input,
+			list: state => state.project.menu[0].page.list
 		}),
 		methods: {
 			input2(arr) {
@@ -158,10 +73,8 @@
 				}
 			},
 			async getMat(matnr) {
-				let mat = await addMat.addMat()
-				if (!addMat.isEmpty(mat)) {
-					this.zDataList.push(mat)
-				}
+				let mat = await addMat.addMat(matnr)
+				this.zDataList.push(mat)
 			},
 		}
 	}
@@ -169,14 +82,13 @@
 
 <style>
 	.head {
-		background-color: #f8f8f8;
-		margin-top: -8px;
+		/* margin-top: -8px; */
 	}
 	.sticky {
 		height: 70rpx;
-		margin-top: -8px;
+		box-shadow:  0px 4px 4px #e2e2e2;
 		text-align: center;
-		background-color: #f8f8f8;
+		background-color: #fff;
 		display: flex;
 		align-items: center;
 		justify-content: center;

--
Gitblit v1.9.1