pang.jiabao
2024-12-02 65256395588a29f150b41576fbeece0de533e288
pages/pakin/pakin.vue
@@ -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(() => {