From 9b37d74d9e60a9117ff1611679682ecf2a3233ad Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期一, 13 一月 2025 11:16:19 +0800
Subject: [PATCH] #
---
pages/phyz/orderOut/orderCheck.vue | 29 +++++++++++++++++++++++------
1 files changed, 23 insertions(+), 6 deletions(-)
diff --git a/pages/phyz/orderOut/orderCheck.vue b/pages/phyz/orderOut/orderCheck.vue
index bd47f2c..8322a53 100644
--- a/pages/phyz/orderOut/orderCheck.vue
+++ b/pages/phyz/orderOut/orderCheck.vue
@@ -38,7 +38,7 @@
<view class="title">鍑哄簱鏁伴噺</view>
<view class="popup-item">
<view>
- <uni-number-box :value="data.anfme" :step='1' :min="0" :max="maxCount" color="#747474" @change="changeValue" />
+ <uni-number-box :value="data.anfme" :step='0.01' :min="0" :max="maxCount" color="#747474" @change="changeValue" />
</view>
</view>
@@ -75,7 +75,8 @@
option: '',
options: [],
combDis: false,
- maxCount: 0
+ maxCount: 0,
+ orderType: ''
}
},
onShow() {
@@ -91,7 +92,18 @@
// })
eventChannel.on('item', function(data) {
let ids = [data.item.id]
- _this.getPakoutList(ids)
+ if (data.item.orderType == 'bcp') {
+ _this.getPakoutList(ids,'bcp')
+ } else {
+ _this.getPakoutList(ids,null)
+ }
+
+ })
+ eventChannel.on('type', function(data) {
+ console.log(data);
+ if (data) {
+ _this.orderType = data.type
+ }
})
},
methods: {
@@ -109,10 +121,10 @@
item.agvStaNo = option
},
// 璁㈠崟鏄庣粏
- getPakoutList(ids,locNo) {
+ getPakoutList(ids,bcp) {
let _this = this
uni.request({
- url: `${_this.baseUrl}/out/pakout/preview/auth`,
+ url: `${_this.baseUrl}/bcp/out/pakout/preview/auth`,
header: {'token': uni.getStorageSync('token')},
data: ids,
method: 'POST',
@@ -124,6 +136,11 @@
k['isOpen'] = false
k['count'] = k.anfme
k.anfme = 0
+ if (_this.orderType == 'bcp') {
+ if (k.locNo.substring(k.locNo.length - 1, k.locNo.length) == 1) {
+ continue
+ }
+ }
_this.dataList.push(k)
}
}
@@ -167,7 +184,7 @@
data: combList,
method: 'POST',
success(res) {
- _this.combDis = true
+ _this.combDis = false
res = res.data
if (res.code === 200) {
uni.hideLoading({})
--
Gitblit v1.9.1