#
whycq
2024-07-08 c69b2a0ccd8ed4fe8f11b7bad34bc00b0aa2aaf7
pages/order/orderComb.vue
@@ -1,5 +1,19 @@
<template>
   <view>
      <view class="status_bar">
         <!-- 这里是状态栏 -->
      </view>
      <uni-nav-bar left-icon="left" background-color="#f8f8f8" title="订单组托" @clickLeft="back"  :fixed="true"
         :border="false" rightWidth="160rpx" leftWidth="160rpx"
         >
         <block slot="right">
            <view class="city">
               <view>
                  <text class="uni-nav-bar-text">{{store}}</text>
               </view>
            </view>
         </block>
       </uni-nav-bar>
      <view class="code">
         <view class="item">
            <view class="code-decs">托盘码:</view>
@@ -52,14 +66,14 @@
                     <uni-tag :text="item.batch" type="warning"></uni-tag>
                  </view>
               </view>
               <view class="list-left-item">
               <!-- <view class="list-left-item">
                  <view class="desc">重量:</view>
                  <view class="left-item">
                     <uni-tag :text="item.weight" type="warning"></uni-tag>
                  </view>
               </view>
               </view> -->
               <view class="list-left-item">
                  <view class="desc">数量:</view>
                  <view class="desc">剩余数量:</view>
                  <view class="left-item">{{item.anfme}}</view>
               </view>
            </view>
@@ -72,7 +86,7 @@
      <!-- 底部操作按钮 -->
      <view class="buttom">
         <button size="mini" @click="reset('warn')">重置</button>
         <button size="mini" type="primary" @click="combConfirm('warn')">上架</button>
         <button size="mini" type="primary" @click="combConfirm('warn')">组托</button>
      </view>
      <!-- 弹窗 -->
      <!-- 修改数量 -->
@@ -153,6 +167,8 @@
         return {
            baseUrl: '',
            token: '',
            storeId: 0,
            store: '',
            order: '',
            barcode: '',
            barcodeFocus: '',
@@ -178,11 +194,19 @@
         }
      },
      onShow() {
               this.baseUrl = uni.getStorageSync('baseUrl');
               this.token = uni.getStorageSync('token');
               this.getOrderNoList()
            },
         this.baseUrl = uni.getStorageSync('baseUrl');
         this.token = uni.getStorageSync('token');
         this.getOrderNoList()
         this.storeId = uni.getStorageSync('store')
         if (this.storeId == 1) {
            this.store = '宁波仓'
         }
         if (this.storeId == 2) {
            this.store = '新昌仓'
         }
      },
      methods: {
         back() { uni.navigateBack({}) },
         set(e) {
            var ck = this.dataList[e].checked
            this.dataList[e].checked = ck ? false:true
@@ -220,6 +244,9 @@
            let that = this
            uni.request({
               url: this.baseUrl + '/order/list/all',
               header: {
                  'token': uni.getStorageSync('token')
               },
               method: 'POST',
               success(res) {
                  res = res.data
@@ -386,6 +413,7 @@
            uni.request({
               url: that.baseUrl + '/mobile/comb/auth',
               data: JSON.stringify({
                  orderNo: that.orderNo,
                  barcode: that.barcode,
                  combMats: that.dataList
               }),
@@ -478,6 +506,7 @@
         resst() {
            this.dataList = []
            this.barcode = ''
            this.orderNo = ''
            this.barcodeFocuss()
         },
         combClose() {