From 8c3b2fb69cb5f30db9f7e26bd09efb8e0e1bb444 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期五, 23 二月 2024 17:01:45 +0800
Subject: [PATCH] #
---
pages/project/ps/pakin/pakin.vue | 156 ++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 152 insertions(+), 4 deletions(-)
diff --git a/pages/project/ps/pakin/pakin.vue b/pages/project/ps/pakin/pakin.vue
index d09a56e..70b9b77 100644
--- a/pages/project/ps/pakin/pakin.vue
+++ b/pages/project/ps/pakin/pakin.vue
@@ -14,7 +14,21 @@
@inputVal='input2'>
</z-input>
</view>
- <view style="text-align: center;">鍟嗗搧鍒楄〃</view>
+
+ <u-sticky >
+ <view class="sticky">鍟嗗搧鍒楄〃</view>
+ </u-sticky>
+
+ <z-data-list class="data-list"
+ v-for="(it,i) in zDataList"
+ :key="i"
+ :list="it.detl"
+ :index="i+1"
+ @goDetail='goDetail(it.detl,i)'
+ ></z-data-list>
+
+ <!-- 鍨珮 -->
+ <view style="height: 100rpx;"></view>
</view>
</template>
@@ -23,9 +37,110 @@
data() {
return {
zInputList: [
- {id:0,name: 'orderNo',desc: '璁㈠崟鍙�',val: '',focus: true},
- {id:1,name: 'barcode',desc: '鎵樼洏鐮�',val: '2',lenCheck: 8,focus: false},
+ {id:1,name: 'barcode',desc: '鎵樼洏鐮�',val: '2',lenCheck: 8,focus: true},
{id:2,name: 'matnr',desc: '鐗╂枡鐮�',val: '',btn: true,btnName: '鎻愬彇',placeholder: '',focus: false}
+ ],
+ zDataList: [
+ {
+ 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},
+ ]
+ },
+ {
+ 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},
+ ]
+ }
],
}
},
@@ -39,6 +154,28 @@
},
getMat(matnr) {
console.log(matnr);
+ },
+ goDetail(param,index) {
+ let _this = this
+ uni.navigateTo({
+ url: '/pages/common/data-list/dataDetail',
+ // 浼�
+ success: function(data) {
+ data.eventChannel.emit('param', {
+ param: param,
+ index: index
+ })
+ },
+ // 鎺�
+ events: {
+ dataList: function(data) {
+ console.log(data);
+ },
+ del: function(data) {
+ _this.zDataList.splice(data.data,1)
+ }
+ },
+ })
}
}
@@ -46,5 +183,16 @@
</script>
<style>
-
+ .sticky {
+ height: 70rpx;
+ margin-top: -1px;
+ text-align: center;
+ background-color: #fff;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+ .data-list:last-child {
+ margin-bottom: 100rpx;
+ }
</style>
--
Gitblit v1.9.1