From 750f856006af98dffb7918ab80fdc689781ea017 Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期三, 17 一月 2024 16:20:32 +0800 Subject: [PATCH] # --- pages/basics/matQuery.vue | 25 ++++++++++++++----------- 1 files changed, 14 insertions(+), 11 deletions(-) diff --git a/pages/basics/matQuery.vue b/pages/basics/matQuery.vue index 8648be5..8f46506 100644 --- a/pages/basics/matQuery.vue +++ b/pages/basics/matQuery.vue @@ -19,10 +19,14 @@ <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"><input type="text" v-model="matData.memo"></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="9999999" color="#747474" @change="changeValue"/> </view> </view> </view> @@ -60,15 +64,13 @@ // #endif // 鐩戝惉acceptDataFromOpenerPage浜嬩欢锛岃幏鍙栦笂涓�椤甸潰閫氳繃eventChannel浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹� - eventChannel.on('acceptDataFromOpenerPage', function(data) { - that.matData = data.data + eventChannel.on('matData', function(data) { + that.matData = data.data + that.matData.anfme = that.matData.fullQty + // that.matData.batch = that.matData.batch }) - }, - onShow() { - this.matData.anfme = 0 - console.log(this.matData) - // this.matData = this.matData + }, methods: { blur() { @@ -77,15 +79,16 @@ focus() { }, - changeValue() { - + changeValue(value) { + this.matData.anfme = value }, back() { if (this.matData.anfme === 0) { uni.showToast({title: '璇疯緭鍏ユ暟閲�', icon: "none", position: 'top'}); return; } - this.getOpenerEventChannel().emit('acceptDataFromOpenedPage', {data: this.matData}); + this.getOpenerEventChannel().emit('matList', {data: this.matData}); + uni.vibrateShort(); uni.navigateBack({ }) -- Gitblit v1.9.1