#
whycq
2025-01-13 9b37d74d9e60a9117ff1611679682ecf2a3233ad
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;