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/stationManage/confirmProcessed.vue | 37 ++++++++++++++++++++++++++++++++++---
1 files changed, 34 insertions(+), 3 deletions(-)
diff --git a/pages/phyz/stationManage/confirmProcessed.vue b/pages/phyz/stationManage/confirmProcessed.vue
index 4a33e24..a855721 100644
--- a/pages/phyz/stationManage/confirmProcessed.vue
+++ b/pages/phyz/stationManage/confirmProcessed.vue
@@ -45,7 +45,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>
@@ -120,13 +120,43 @@
const eventChannel = this.getOpenerEventChannel();
// 鐩戝惉acceptDataFromOpenerPage浜嬩欢锛岃幏鍙栦笂涓�椤甸潰閫氳繃eventChannel浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹�
eventChannel.on('item', function(data) {
+ console.log(data);
for (let k of data.item) {
k['maxCount'] = k.anfme
+ _this.getWrkDetl(k.wrkNo)
}
- _this.dataList = require('lodash').cloneDeep(data.item)
+ // _this.dataList = require('lodash').cloneDeep(data.item)
})
},
methods: {
+ // 鑾峰彇宸ヤ綔鏄庣粏
+ getWrkDetl(wrkNo) {
+ let _this = this
+ uni.request({
+ url: `${_this.baseUrl}/agv/wrkDetl/list/auth`,
+ header: {'token': uni.getStorageSync('token')},
+ data: {
+ curr: 1,
+ limit: 1000,
+ wrk_no: wrkNo
+ },
+ method: 'GET',
+ success(res) {
+ res = res.data
+ if (res.code === 200) {
+ for (let k of res.data.records) {
+ k['maxCount'] = k.anfme
+ }
+ _this.dataList = res.data.records
+ } else if (res.code == 403) {
+ uni.showToast({ title: res.msg, icon: "error", position: 'top' })
+ setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000);
+ } else {
+ uni.showToast({ title: res.msg, icon: "error", position: 'top' })
+ }
+ }
+ })
+ },
processed() {
this.$refs.process.open()
},
@@ -295,7 +325,7 @@
justify-content: center;
}
.popup-item-left {
- width: 16vw;
+ /* width: 16vw; */
padding-right: 20rpx;
text-align: right;
color: #606266;
@@ -332,6 +362,7 @@
.btn-right {
display: flex;
flex: 1;
+ height: 100%;
justify-content: center;
align-items: center;
color: #409EFF;
--
Gitblit v1.9.1