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 | 83 +++++++++++++++++++++++++++++++++++++++--
1 files changed, 78 insertions(+), 5 deletions(-)
diff --git a/pages/project/pakin/pakin.vue b/pages/project/pakin/pakin.vue
index ddc6279..042f428 100644
--- a/pages/project/pakin/pakin.vue
+++ b/pages/project/pakin/pakin.vue
@@ -1,24 +1,97 @@
<template>
<view>
+ <view class="head">
+ <z-input v-for="it in input"
+ :desc="it.title"
+ :name="it.name"
+ :btn="it.btn"
+ :btn-name="it.btnName"
+ v-model="it.val"
+ :index="it.id"
+ :lenCheck="it.lenCheck"
+ :focus="it.focus"
+ @inputVal='input2'
+ ></z-input>
+ </view>
+
+ <u-sticky >
+ <view class="sticky">鍟嗗搧鍒楄〃</view>
+ </u-sticky>
+
+ <z-data-list class="data-list"
+ v-for="(it,i) in zDataList"
+ :key="i"
+ :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>
<script>
import { mapState } from 'vuex'
+ import addMat from '@/pages/api/addMat.js'
export default {
data() {
- return {}
+ return {
+ 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'},
+ ]
+ },
+ ],
+ // list: [
+ // {}
+ // ]
+ }
},
onShow() {
- console.log(this.page);
+ // console.log(this.page);
},
computed: mapState({
- page: state => state.project.menu
- })
+ input: state => state.project.menu[0].page.input,
+ list: state => state.project.menu[0].page.list
+ }),
+ methods: {
+ input2(arr) {
+ if(arr[1] == 'matnr') {
+ this.getMat(arr[0])
+ }
+ },
+ async getMat(matnr) {
+ let mat = await addMat.addMat(matnr)
+ this.zDataList.push(mat)
+ },
+ }
}
</script>
<style>
-
+ .head {
+ /* margin-top: -8px; */
+ }
+ .sticky {
+ height: 70rpx;
+ box-shadow: 0px 4px 4px #e2e2e2;
+ text-align: center;
+ background-color: #fff;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
</style>
+
--
Gitblit v1.9.1