pang.jiabao
15 小时以前 c92e539cd1ceeecc851bddf9c7468081c16dd45e
pages/pakin/pakin.vue
@@ -34,7 +34,7 @@
               <uni-icons type="right" color="#c1c1c1"></uni-icons>
            </view>
         </view>
         <view class="item">
<!--          <view class="item">
            <view class="code-decs" style="width: 25vw;">是否满板:</view>
            <radio-group @change="isFullPlt">
               <label>
@@ -44,7 +44,7 @@
                  <radio :checked="ck2" style="margin-left: 50rpx;"/><text>否</text>
               </label>
            </radio-group>
         </view>
         </view> -->
      </view>
      <!-- ----------------------------------------------  输入框  ----------------------------------------------------------- -->
      <view class="mat-list-title">
@@ -124,7 +124,7 @@
               <view class="popup-item">
                  <view class="popup-item-left">数量:</view>
                  <view class="popup-item-right" style="border: none;justify-content: center;">
                     <uni-number-box :value="count" :step='0.01' :max="9999999" color="#747474" @change="changeValue" />
                     <uni-number-box :value="count" :step='1' :max="9999999" color="#747474" @change="changeValue" />
                  </view>
               </view>
               <view class="btn">
@@ -195,7 +195,10 @@
         }
      },
      onLoad() {
         this.dataList = uni.getStorageSync('pakinDataList')
         if (this.dataList === '') {
            this.dataList = []
         }
      },
      onShow() {
         this.baseUrl = uni.getStorageSync('baseUrl');
@@ -359,6 +362,7 @@
            if (add) {
               this.dataList.unshift(mat)
            }
            uni.setStorageSync('pakinDataList', this.dataList);
         },
         // 修改批号
         revise(item, i) {
@@ -451,6 +455,8 @@
                     const innerAudioContext = uni.createInnerAudioContext();
                     innerAudioContext.src = '/static/music/pakinOk.mp3';
                     innerAudioContext.play()
                     that.dataList = []
                     uni.setStorageSync('pakinDataList', that.dataList);
                  } else if (res.code == 403) {
                     uni.showToast({ title: res.msg, icon: "error", position: 'top' });
                     setTimeout(() => {