From c299f99d637eb8f30b7571979bf710c3bcd74ee8 Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期四, 12 十二月 2024 13:46:10 +0800 Subject: [PATCH] # --- pages/basics/matQuery.vue | 31 ++++++++++++++++++++++++------- 1 files changed, 24 insertions(+), 7 deletions(-) diff --git a/pages/basics/matQuery.vue b/pages/basics/matQuery.vue index 091f889..86c4a45 100644 --- a/pages/basics/matQuery.vue +++ b/pages/basics/matQuery.vue @@ -3,11 +3,11 @@ <view> <view class="container"> <view class="text-box"> - <view class="text-title"><text>鍟嗗搧缂栫爜</text></view> + <view class="text-title"><text>鐗╂枡鍙�</text></view> <view class="text-title"><text>{{matData.matnr}}</text></view> </view> <view class="text-box"> - <view class="text-title"><text>鍟嗗搧鍚嶇О</text></view> + <view class="text-title"><text>鐗╂枡鍚�</text></view> <view class="text-title">{{matData.maktx}}</view> </view> <view class="text-box"> @@ -18,11 +18,23 @@ <view class="text-title"><text>鎵瑰彿</text></view> <view class="text-title"><input type="text" v-model="matData.batch"></view> </view> + <view class="text-box" style="display: flex;line-height: normal;align-items: center;"> + <view><text>寮�濮嬫椂闂�</text></view> + <view class="text-title"> + <uni-datetime-picker type="datetime" v-model="matData.startTime" @change="changeLog" /> + </view> + </view> + <view class="text-box" style="display: flex;line-height: normal;align-items: center;"> + <view><text>缁撴潫鏃堕棿</text></view> + <view class="text-title" > + <uni-datetime-picker type="datetime" v-model="matData.endTime" @change="changeLog" /> + </view> + </view> <view class="text-box"> <view class="text-title"><text>鏁伴噺</text></view> <view class="text-title"> <view> - <uni-number-box v-model="matData.anfme" :max="9999" color="#747474" @change="changeValue"/> + <uni-number-box :value="matData.anfme" :max="999999999" :step="1" color="#747474" @change="changeValue"/> </view> </view> </view> @@ -45,6 +57,9 @@ maktx: null, batch: null, anfme: null, + unit: null, + startTime: '', + endTime: '' }, baseIP:'', basePORT:'', @@ -62,11 +77,10 @@ // 鐩戝惉acceptDataFromOpenerPage浜嬩欢锛岃幏鍙栦笂涓�椤甸潰閫氳繃eventChannel浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹� eventChannel.on('matData', function(data) { that.matData = data.data + that.matData.anfme = 1 }) - }, - onShow() { - this.matData.anfme = 0 + }, methods: { blur() { @@ -75,9 +89,12 @@ focus() { }, - changeValue() { + changeLog() { }, + changeValue(value) { + this.matData.anfme = value + }, back() { if (this.matData.anfme === 0) { uni.showToast({title: '璇疯緭鍏ユ暟閲�', icon: "none", position: 'top'}); -- Gitblit v1.9.1