From 7eb8afbac2b3b6c66c5282521547a57f04a1b684 Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期五, 19 八月 2022 14:25:27 +0800 Subject: [PATCH] # --- pages/basics/matQuery.vue | 20 +++++++++----------- 1 files changed, 9 insertions(+), 11 deletions(-) diff --git a/pages/basics/matQuery.vue b/pages/basics/matQuery.vue index 0e48142..9294683 100644 --- a/pages/basics/matQuery.vue +++ b/pages/basics/matQuery.vue @@ -15,14 +15,14 @@ <view class="text-title">{{matData.str2}}</view> </view> <view class="text-box"> - <view class="text-title"><text>鍗曚綅</text></view> - <view class="text-title"><input type="text" v-model="matData.str1"></view> + <view class="text-title"><text>鎵瑰彿</text></view> + <view class="text-title"><input type="text" v-model="matData.batch"></view> </view> <view class="text-box"> <view class="text-title"><text>鏁伴噺</text></view> <view class="text-title"> <view> - <uni-number-box v-model="matData.count" :max="99999" color="#747474" @change="changeValue"/> + <uni-number-box :value="matData.count" :max="99999" color="#747474" @change="changeValue"/> </view> </view> </view> @@ -44,7 +44,7 @@ matNo: null, matName: null, str2: null, - anfme: null, + count: null, }, baseIP:'', basePORT:'', @@ -62,12 +62,10 @@ // 鐩戝惉acceptDataFromOpenerPage浜嬩欢锛岃幏鍙栦笂涓�椤甸潰閫氳繃eventChannel浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹� eventChannel.on('matData', function(data) { that.matData = data.data - console.log(that.matData) + that.matData.count = 0 }) - }, - onShow() { - this.matData.count = 0 + }, methods: { blur() { @@ -76,11 +74,11 @@ focus() { }, - changeValue() { - + changeValue(value) { + this.matData.count = value }, back() { - if (this.matData.anfme === 0) { + if (this.matData.count === 0) { uni.showToast({title: '璇疯緭鍏ユ暟閲�', icon: "none", position: 'top'}); return; } -- Gitblit v1.9.1