陶杰
2025-01-19 87a56274d598af9842b593ec972f517161f60707
pages/order/order-delivery-detail.vue
@@ -25,7 +25,7 @@
         // // #ifdef PUB_CUSTOMER
         // // #endif
         this.listApi = '/api/supplier/delivery/list/items'
         await this.getList()
      },
@@ -60,6 +60,7 @@
                     }).catch(res => {
                        that.$message.hideLoading()
                        console.error(res)
                        that.$message.showToast('文件上传失败,请联系管理员')
                     })
                  }
               }
@@ -67,7 +68,7 @@
         },
         async submit(status) {
            if (!this.dto.arriveImageList || this.dto.arriveImageList.length < 0) {
            if (!this.dto.arriveImageList || this.dto.arriveImageList.length <= 0) {
               this.$message.showToast('未上传图片')
               return
            }
@@ -90,9 +91,11 @@
         },
         printDeliveryOrder(item) {
            // this.$message.showToast('敬请期待')
            this.$storage.setItem('cache_delivery_order_print', JSON.stringify(item))
            var arr = []
            arr.push(item)
            this.$storage.setItem('cache_delivery_order_print', JSON.stringify(arr))
            uni.navigateTo({
               url: '/sub_pages/supplier/print/print-list'
               url: '/sub_pages/supplier/print/print-list?source=detail'
            })
         }
@@ -167,45 +170,46 @@
            </view>
         </view>
      </view>
      <view v-if="status=='PENDING'">
         <!-- 提交图片 -->
         <view class="delivery-form p20 bg-white br-4">
            <view class="form-item flex before-line bottom-border-no">
               <view class="label required" style="width: 400rpx;">图片</view>
               <view class="m-l-a m-r-0 flex">
                  <view class="component-button-upload" @click="uploadIcon('arriveImageList')">
         <view v-if="status=='PENDING'">
            <!-- 提交图片 -->
            <view class="delivery-form p20 bg-white br-4">
               <view class="form-item flex before-line bottom-border-no">
                  <view class="label required" style="width: 400rpx;">图片</view>
                  <view class="m-l-a m-r-0 flex">
                     <view class="component-button-upload" @click="uploadIcon('arriveImageList')">
                     </view>
                  </view>
               </view>
            </view>
            <view class="flex p20" style="padding-top: 0rpx;padding-bottom: 10rpx"
               v-if="dto.arriveImageList&&dto.arriveImageList.length>0">
               <view class="m-t-12 m-r-10 " v-for="(tBanner,index) of dto.arriveImageList" :key="index">
                  <image class="banner-img" :src="tBanner" @click.stop="previewImg(tBanner)">
               <view class="flex p20" style="padding-top: 0rpx;padding-bottom: 10rpx"
                  v-if="dto.arriveImageList&&dto.arriveImageList.length>0">
                  <view class="m-t-12 m-r-10 " v-for="(tBanner,index) of dto.arriveImageList" :key="index">
                     <image class="banner-img" :src="tBanner" @click.stop="previewImg(tBanner)">
                  </image>
                  <view class="t-red text-center" @click.stop="deleteBanner(index)">删除</view>
                     </image>
                     <view class="t-red text-center" @click.stop="deleteBanner(index)">删除</view>
                  </view>
               </view>
            </view>
            <view class="form-item flex m-t-12 ">
               <view class="label m-r-20">备注</view>
               <view class="m-l-a m-r-0 flex1">
                  <view class="m-t-12 m-b-12">
                     <u-textarea v-model="dto.arriveRemarks" clearable placeholder="请输入备注">
               <view class="form-item flex m-t-12 ">
                  <view class="label m-r-20">备注</view>
                  <view class="m-l-a m-r-0 flex1">
                     <view class="m-t-12 m-b-12">
                        <u-textarea v-model="dto.arriveRemarks" clearable placeholder="请输入备注">
                     </u-textarea>
                        </u-textarea>
                     </view>
                  </view>
               </view>
            </view>
         </view>
      </view>
      <view class="button-space">
         <view class="button-space" style="min-height: 190rpx;">
      </view>
      <view class="button-green-1  button-fixed-bottom" v-if="status=='PENDING'" @click="submit('ARRIVED')">
         确认入位
         </view>
         <view class="button-green-1  button-fixed-bottom" v-if="status=='PENDING'" @click="submit('ARRIVED')">
            确认入位
         </view>
      </view>
   </view>
</template>