xuxueyang
2024-08-29 b37bca8f7a6cdae798e74f14b51936e3a6a9637c
sub_pages/partner/delivery/delivery-detail.vue
@@ -44,6 +44,12 @@
            target_levels: [],
         };
      },
      async onShow() {
         if (this.sign['delivery']) {
            await this.$store.dispatch('sign_clear', 'delivery');
            this.refreshList()
         }
      },
      async onLoad(options) {
         this.id = options.id || ''
@@ -180,11 +186,15 @@
            })
            this.$message.hideLoading()
            if (code === 0) {
               this.$message.showToast('操作成功')
               this.$refs.popup_form.close()
               setTimeout(() => {
                  this.init()
               }, 500)
               await this.$store.dispatch('sign_add', 'delivery')
               await this.$message.showToast('操作成功')
               this.init()
               // setTimeout(() => {
               //    this.init()
               // }, 500)
            }
         },
         async init() {
@@ -303,10 +313,27 @@
                        <view class="value">{{ item.num || 0 }}</view>
                     </view>
                     <!--    <view class="each-item">
                  </view>
                  <view class="each-list">
                     <view class="each-item">
                        <view class="label">价格</view>
                        <view class="value">{{ item.price || '-' }}</view>
                     </view> -->
                        <view class="value">¥{{ item.price || '-' }}</view>
                     </view>
                     <view class="each-item">
                        <view class="label">降级</view>
                        <view class="value">{{ item.reduceNum || 0 }}</view>
                     </view>
                     <view class="each-item">
                        <view class="label">缺货</view>
                        <view class="value">{{ item.lackNum || 0 }}</view>
                     </view>
                     <view class="each-item">
                        <view class="label">补货</view>
                        <view class="value">{{ item.replaceNum || 0 }}</view>
                     </view>
                  </view>
               </view>
            </view>