From 1993035ea06afad17e49aa3b078c5d2805c7d451 Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期四, 18 一月 2024 13:35:26 +0800
Subject: [PATCH] #
---
pages/order/orderPakin.vue | 36 ++++++++++++++++++++++++++----------
1 files changed, 26 insertions(+), 10 deletions(-)
diff --git a/pages/order/orderPakin.vue b/pages/order/orderPakin.vue
index bda94f7..af5f346 100644
--- a/pages/order/orderPakin.vue
+++ b/pages/order/orderPakin.vue
@@ -53,6 +53,12 @@
</view>
</view>
<view class="list-left-item">
+ <view class="desc">閲嶉噺锛�</view>
+ <view class="left-item">
+ <uni-tag :text="item.weight" type="warning"></uni-tag>
+ </view>
+ </view>
+ <view class="list-left-item">
<view class="desc">鏁伴噺锛�</view>
<view class="left-item">{{item.anfme}}</view>
</view>
@@ -87,9 +93,13 @@
<view class="popup-item-right"><input type="text" v-model="batch"></view>
</view> -->
<view class="popup-item">
+ <view class="popup-item-left">閲嶉噺:</view>
+ <view class="popup-item-right"><input type="text" v-model="weight"></view>
+ </view>
+ <view class="popup-item">
<view class="popup-item-left">鏁伴噺:</view>
<view class="popup-item-right" style="border: none;justify-content: center;">
- <uni-number-box :value="count" :max="9999999" color="#747474" @change="changeValue" />
+ <uni-number-box :value="count" :step='0.01' :max="9999999" color="#747474" @change="changeValue" />
</view>
</view>
<view class="btn">
@@ -150,6 +160,7 @@
matnr: '',
matnr1: '',
batch: '',
+ weight: '',
msgType1: 'success',
msgType: 'success',
messageText: '',
@@ -173,17 +184,12 @@
// 鎼滅储鐗╂枡
findMat() {
let that = this
- var matnr = that.matnr.split(";")
+ let matnr = that.matnr.split(";")
that.order = matnr[0]
- that.matnr = matnr[1]
uni.request({
- url: that.baseUrl + '/mat/auth',
- data: {
- matnr: that.matnr
- },
- header: {
- 'token': uni.getStorageSync('token')
- },
+ url: `${that.baseUrl}/mat/auth`,
+ data: { matnr: matnr[1] },
+ header: { 'token': uni.getStorageSync('token') },
success(result) {
result = result.data
if (result.code === 200 && result.data) {
@@ -194,6 +200,7 @@
// matnr[2] = ''
// }
result.data.batch = matnr[2]
+ matnr = ''
uni.navigateTo({
url: "../mat/matSelected",
// 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹�
@@ -351,6 +358,7 @@
this.matnr1 = this.dataList[i].matnr
this.count = this.dataList[i].anfme
this.batch = this.dataList[i].batch
+ this.weight = this.dataList[i].weight
this.rowNum = i
this.eject()
},
@@ -375,6 +383,7 @@
reviseConfirm() {
this.dataList[this.rowNum].anfme = this.count
this.dataList[this.rowNum].batch = this.batch
+ this.dataList[this.rowNum].weight = this.weight
this.messageText = "淇敼鎴愬姛"
this.messageToggle('success')
this.$refs.revise.close()
@@ -392,6 +401,13 @@
this.barcode = ''
this.barcodeFocuss()
},
+ combClose() {
+ this.$refs.combConfirm.close()
+ },
+ // 鍙栨秷绉婚櫎
+ removeClose() {
+ this.$refs.alertDialog.close()
+ },
}
}
</script>
--
Gitblit v1.9.1