From b6946b9a0219284f48cc0d3a196ae4cc953ecb5e Mon Sep 17 00:00:00 2001
From: zhangc <zc@123>
Date: 星期二, 11 三月 2025 09:50:16 +0800
Subject: [PATCH] 正在作业数量
---
pages/phyz/orderOut/orderCheck.vue | 59 ++++++++++++++++++++++++++++++++++++++++++++++-------------
1 files changed, 46 insertions(+), 13 deletions(-)
diff --git a/pages/phyz/orderOut/orderCheck.vue b/pages/phyz/orderOut/orderCheck.vue
index bd47f2c..7cea021 100644
--- a/pages/phyz/orderOut/orderCheck.vue
+++ b/pages/phyz/orderOut/orderCheck.vue
@@ -1,6 +1,6 @@
<template>
<view>
- <view class="list shop-car" v-for="item in dataList">
+ <view class="list shop-car" v-for="(item,index) in dataList" :key="index">
<view class="list-left">
<view class="detl-threeCode" style="padding: 16rpx 0;">{{item.csocode}}</view>
<view>搴撲綅锛歿{item.locNo}}</view>
@@ -17,14 +17,16 @@
</view>
</view>
- <view class="detl-threeCode" style="display: flex;padding: 0 0 32rpx 0;font-size: 24px;">鍑哄簱绔欙細
- <view class="dropdown" @click="toggleDropdown(item)">
+ <view class="detl-threeCode" style="display: flex;padding: 0 0 32rpx 0;font-size: 20px;">鍑哄簱绔欙細
+ <!-- @click="toggleDropdown(item)" -->
+ <view class="dropdown" >
<!-- <view style="height: 100%;width: 100%; position: fixed;background-color: rgba(0,0,0,.4);left:0;top:0" v-if = "item.isOpen"></view> -->
- <input type="text" style="width: 270rpx;font-size: 20px;" v-model="item.agvStaNo" placeholder="璇烽�夋嫨鍑哄簱绔�" placeholder-style="color: #fff">
- <uni-icons :type="item.isOpen ? 'top' : 'bottom'" color="#fff" style="margin-left: 10rpx;"></uni-icons>
- <scroll-view scroll-y="ture" class="dropdown-content" v-if="item.isOpen">
+ <input @input="staInput(item.agvStaNo,item.agvStaNos,index)" type="text" style="width: 270rpx;font-size: 16px;" v-model="item.agvStaNo" placeholder=" 璇烽�夋嫨鍑哄簱绔�" placeholder-style="color: #fff">
+ <!-- <uni-icons :type="item.isOpen ? 'top' : 'bottom'" color="#fff" style="margin-left: 10rpx;"></uni-icons> -->
+ <view style="font-size: 10px;">鍙敮鎸佹壂鐮�</view>
+ <!-- <scroll-view scroll-y="ture" class="dropdown-content" v-if="item.isOpen">
<view class="dropdown-item" v-for="option in options" @click="selected(option,item)">{{option}}</view>
- </scroll-view>
+ </scroll-view> -->
</view>
</view>
<button @click="combConfirm(item)" :disabled="combDis">绔嬪嵆鍑哄簱</button>
@@ -38,7 +40,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 +77,8 @@
option: '',
options: [],
combDis: false,
- maxCount: 0
+ maxCount: 0,
+ orderType: ''
}
},
onShow() {
@@ -91,7 +94,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: {
@@ -108,11 +122,24 @@
selected(option,item) {
item.agvStaNo = option
},
+ staInput(item,items,index) {
+ var flag = false
+ for (let k of items) {
+ if (k == item) flag = true
+ }
+ console.log(item);
+ if(!flag) {
+ uni.showToast({ title: '褰撳墠绔欑偣鏃犳硶浣跨敤锛屽凡澶嶄綅', icon: "error", position: 'top' })
+ setTimeout(() => {
+ this.dataList[index].agvStaNo = ''
+ }, 100);
+ }
+ },
// 璁㈠崟鏄庣粏
- 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',
@@ -123,7 +150,13 @@
if (k.locNo != null) {
k['isOpen'] = false
k['count'] = k.anfme
+ k.agvStaNo = ''
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 +200,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