Junjie
2024-10-08 cdc490658e982241e295078ed4ec4f0777d9ef0f
pages/order/orderList.vue
@@ -3,7 +3,7 @@
      <view class="status_bar">
         <!-- 这里是状态栏 -->
      </view>
      <uni-nav-bar left-icon="left" background-color="#f8f8f8" title="组托上架" @clickLeft="back"  :fixed="true"
      <uni-nav-bar left-icon="left" background-color="#f8f8f8" title="平库订单下架" @clickLeft="back"  :fixed="true"
         :border="false" rightWidth="160rpx" leftWidth="160rpx"
         >
         <block slot="right">
@@ -14,12 +14,15 @@
            </view>
         </block>
       </uni-nav-bar>
      <!-- 搜索框 -->
      <view class="search-bar">
         <uni-search-bar v-model="orderNo" placeholder=" 输入订单号" bgColor="#EEEEEE" @input="search" />
      </view>
      <view class="card" v-for="item in menuList" @click="chose(item)">
         {{item}}
      </view>
   </view>
</template>
<script>
   export default {
      data() {
@@ -28,6 +31,7 @@
            token: '',
            storeId: 0,
            store: '',
            orderNo: '',
            menuList: []
         }
      },
@@ -44,11 +48,29 @@
         this.getOrderNoList()
      },
      methods: {
         back() { uni.navigateBack({}) },
         back() {
            uni.navigateBack({})
         },
         getOrderNoList() {
            let that = this
            uni.request({
               url: this.baseUrl + '/outOrder/list/all',
               data: "",
               header: {
                  'token': uni.getStorageSync('token')
               },
               method: 'POST',
               success(res) {
                  res = res.data
                  that.menuList = res.data
               }
            })
         },
         search() {
            let that = this
            uni.request({
               url: this.baseUrl + '/outOrder/list/all',
               data: that.orderNo,
               header: {
                  'token': uni.getStorageSync('token')
               },
@@ -76,8 +98,6 @@
                     that.input(that.matnr)
                  },
               },
            });
         }
      }