#
whycq
2024-11-26 719a7c31bcb1f09df5c4b44ebfd255a05fd9281e
pages/phyz/order/purchaseOrder.vue
@@ -1,7 +1,7 @@
<template>
   <view class="container">
      <view class="code">
         <uni-search-bar :focus="searchValueFocus" v-model="searchValue"  @input="searchValueInput()"
         <uni-search-bar :focus="searchValueFocus" v-model="searchValue"  @input="searchValueInput2()"
            maxlength="500" ancel="cancel" @clear="clear" placeholder="输入 / 扫描 订单号">
         </uni-search-bar>
         <view class="code-title">
@@ -31,6 +31,11 @@
         </view>
      </view>
      <view style="height: 100rpx;"></view>
      <view style="position: fixed;bottom: 40px;padding: 10rpx;border-radius: 50%;
         left: 20px;background-color: #55aaff;box-shadow: 0px 0px 5px 5px #c8c8c8;">
         <uni-icons type="refreshempty" size="30" color="#FFF"  @click="reload()"/>
      </view>
   </view>
</template>
@@ -57,6 +62,28 @@
      },
      
      methods: {
         reload() {
            this.getOrderList()
         },
         searchValueInput2() {
            let _this = this
            uni.request({
               url: `${_this.baseUrl}/order/head/page/auth`,
               header: {'token': uni.getStorageSync('token')},
               data: {
                  curr: 1,
                  limit: 999999,
                  order_no: _this.searchValue
               },
               method: 'GET',
               success(res) {
                  res = res.data
                  if (res.code === 200) {
                     _this.dataList = res.data.records
                  }
               }
            })
         },
         searchValueInput() {
            let count = 0
            let sign = 0
@@ -104,11 +131,11 @@
         getOrderList() {
            let _this = this
            uni.request({
               url: `${_this.baseUrl}/order/head/page/auth`,
               url: `${_this.baseUrl}/order/detls/in/page/auth`,
               header: {'token': uni.getStorageSync('token')},
               data: {
                  curr: 1,
                  limit: 1000,
                  limit: 30,
               },
               method: 'GET',
               success(res) {