#
whycq
2022-08-19 7eb8afbac2b3b6c66c5282521547a57f04a1b684
pages/basics/pakin.vue
@@ -99,7 +99,7 @@
            </view>
            <view class="changeBox">
               <view class="num-box">
                  <uni-number-box v-model="counts" :min="0" :max="99999" color="#747474" />
                  <uni-number-box :value="count" :max="99999" color="#747474" @change="changeValue" />
               </view> 
            </view>
            <view class="revise-box-buttom">
@@ -274,7 +274,7 @@
               },
               success: function(res) {
                   // 通过eventChannel向被打开页面传送数据   向另外一个页面传递值的
                   res.eventChannel.emit('acceptDataFromOpenerPage', {baseIP:that.baseIP, basePORT:that.basePORT })
                   res.eventChannel.emit('matData', {baseIP:that.baseIP, basePORT:that.basePORT })
               },
               
            });
@@ -324,9 +324,8 @@
            var len = this.matList.length
            var add = true
            for (var i = 0; i < len; i++) {
               console.log(mat.matnr === this.matList[i].matnr);
               if (mat.matnr === this.matList[i].matnr) {
                  this.matList[i].anfme += mat.anfme
               if (mat.matNo === this.matList[i].matNo) {
                  this.matList[i].count += mat.count
                  this.$forceUpdate() // 强制刷新
                  add = false
               }
@@ -366,17 +365,21 @@
         },
         revise(index) {
            this.rowNum = index
            this.count = this.matList[this.rowNum].count
            this.$refs.revise.open()
            
         },
         changeCount(e) {
            
         },
         changeValue(value) {
            this.count = value
         },
         // 确认组托数量
         confirm() {
            this.matList[this.rowNum].count = this.counts
            this.$forceUpdate() // 强制刷新
            this.matList[this.rowNum].count = this.count
            this.$refs.revise.close()
            this.$forceUpdate() // 强制刷新
         },
         // 列表反选
         reChecked() {