From 1880fd1498b69377b0f228913022c7bda2a1d629 Mon Sep 17 00:00:00 2001 From: zhang <zc857179121@qq.com> Date: 星期四, 12 六月 2025 14:31:31 +0800 Subject: [PATCH] 12 --- pages/basics/matQuery.vue | 26 +++++++++++++++++++------- 1 files changed, 19 insertions(+), 7 deletions(-) diff --git a/pages/basics/matQuery.vue b/pages/basics/matQuery.vue index 846cf75..1c77b27 100644 --- a/pages/basics/matQuery.vue +++ b/pages/basics/matQuery.vue @@ -14,23 +14,32 @@ <view class="text-title"><text>瑙勬牸</text></view> <view class="text-title">{{matData.specs}}</view> </view> - <view class="text-box"> + <!-- <view class="text-box"> <view class="text-title"><text>宸ュ簭</text></view> <view class="text-title">{{matData.sku}}</view> - </view> + </view> --> <view class="text-box"> <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-box"> <view class="text-title"><text>澶囨敞</text></view> <view class="text-title"><input type="text" v-model="matData.memo"></view> - </view> + </view> --> + <view class="text-box"> - <view class="text-title"><text>鏁伴噺</text></view> + <view class="text-title"><text>涓绘暟閲�</text></view> <view class="text-title"> <view> - <uni-number-box :value="matData.anfme" :max="99999999" color="#747474" @change="changeValue"/> + <uni-number-box v-model="matData.anfme" :value="matData.anfme" :max="99999999" color="#747474" @change="changeValue"/> + </view> + </view> + </view> + <view class="text-box"> + <view class="text-title"><text>杈呮暟閲�</text></view> + <view class="text-title"> + <view> + <uni-number-box v-model="matData.weight" :value="matData.weight" :max="99999999" color="#747474" @change="changeValue2"/> </view> </view> </view> @@ -53,6 +62,7 @@ maktx: null, batch: null, anfme: null, + anfme2: null, }, baseIP:'', basePORT:'', @@ -70,7 +80,6 @@ // 鐩戝惉acceptDataFromOpenerPage浜嬩欢锛岃幏鍙栦笂涓�椤甸潰閫氳繃eventChannel浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹� eventChannel.on('matData', function(data) { that.matData = data.data - that.matData.anfme = 0 }) @@ -85,6 +94,9 @@ changeValue(value) { this.matData.anfme = value }, + changeValue2(value) { + this.matData.weight = value + }, back() { if (this.matData.anfme === 0) { uni.showToast({title: '璇疯緭鍏ユ暟閲�', icon: "none", position: 'top'}); -- Gitblit v1.9.1