From 086363406e7abae8b6debfa2381a998ce604c2c8 Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期四, 04 十二月 2025 14:13:42 +0800
Subject: [PATCH] #
---
pages/mat/matSelected.vue | 50 ++++++++++++++++++++++++++++++++------------------
1 files changed, 32 insertions(+), 18 deletions(-)
diff --git a/pages/mat/matSelected.vue b/pages/mat/matSelected.vue
index 55b5ff5..823e43d 100644
--- a/pages/mat/matSelected.vue
+++ b/pages/mat/matSelected.vue
@@ -1,27 +1,29 @@
<template>
<view>
<view class="form" v-for="mat in mats">
- <view class="form-item">
+ <!-- <view class="form-item">
<view class="form-item-desc"><text>璁㈠崟鍙�</text></view>
<view class="form-item-content"><text>{{mat.orderNo}}</text></view>
- </view>
+ </view> -->
<view class="form-item">
<view class="form-item-desc"><text>鍟嗗搧缂栫爜</text></view>
<view class="form-item-content"><text>{{mat.matnr}}</text></view>
</view>
<view class="form-item">
<view class="form-item-desc"><text>鍟嗗搧鍚嶇О</text></view>
- <view class="form-item-content" style="word-break: break-all;line-height: 1.5;"><text>{{mat.maktx}}</text></view>
+ <view class="form-item-content" style="word-break: break-all;line-height: 1.5;">
+ <text>{{mat.maktx}}</text>
+ </view>
</view>
<view class="form-item">
<view class="form-item-desc"><text>瑙勬牸</text></view>
<view class="form-item-content"><text>{{mat.specs}}</text></view>
</view>
<view class="form-item">
- <view class="form-item-desc"><text>鎵瑰彿</text></view>
+ <view class="form-item-desc"><text>渚涘簲鍟嗕唬鐮�</text></view>
<view class="form-item-content">
<view class="form-input">
- <input type="text" v-model="mat.batch">
+ <input type="text" v-model="mat.standby1">
</view>
</view>
</view>
@@ -52,8 +54,8 @@
},
selectNum: null,
mats: null,
- baseIP:'',
- basePORT:'',
+ baseIP: '',
+ basePORT: '',
}
},
onLoad(option) {
@@ -64,20 +66,20 @@
// #ifndef APP-NVUE
const eventChannel = this.getOpenerEventChannel();
// #endif
-
+
// 鐩戝惉acceptDataFromOpenerPage浜嬩欢锛岃幏鍙栦笂涓�椤甸潰閫氳繃eventChannel浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹�
eventChannel.on('mat', function(data) {
that.mats = data.data
})
-
-
+
+
},
methods: {
blur() {
-
+
},
focus() {
-
+
},
changeValue(value) {
this.mats[0].anfme = value
@@ -85,7 +87,11 @@
},
back() {
if (this.mats[0].anfme === 0) {
- uni.showToast({title: '璇疯緭鍏ユ暟閲�', icon: "none", position: 'top'});
+ uni.showToast({
+ title: '璇疯緭鍏ユ暟閲�',
+ icon: "none",
+ position: 'top'
+ });
return;
}
console.log("=======>");
@@ -95,9 +101,11 @@
} else {
this.mats[0].anfme = this.mats[0].enableQty
}
- this.getOpenerEventChannel().emit('matList', {data: this.mats[0]});
+ this.getOpenerEventChannel().emit('matList', {
+ data: this.mats[0]
+ });
uni.navigateBack({
-
+
})
}
}
@@ -106,13 +114,15 @@
<style>
@import url('../../static/css/wms.css/wms.css');
+
.form {
min-height: 80rpx;
background-color: #FFF;
margin-top: 10px;
color: #606266;
- box-shadow: 0px 0px 50px 0px rgba(0,0,0,0.2) ;
+ box-shadow: 0px 0px 50px 0px rgba(0, 0, 0, 0.2);
}
+
.form-item {
min-height: 100rpx;
line-height: 1;
@@ -121,16 +131,19 @@
display: flex;
align-items: center;
}
+
.form-item-desc {
width: 30%;
}
+
.form-item-content {
width: 60%;
}
-
+
.form-item:last-child {
border: none;
}
+
.form-input {
display: flex;
align-items: center;
@@ -140,7 +153,8 @@
border-bottom: 1px solid #E4E7ED;
border-radius: 5rpx;
}
- .form-input input{
+
+ .form-input input {
color: #606266;
}
</style>
\ No newline at end of file
--
Gitblit v1.9.1