#
whycq
2024-04-10 e3b84d48cef3e024e4a17b4df35f47cf3e63e820
pages/phyz/order/outOrder.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">
@@ -57,6 +57,25 @@
      },
      
      methods: {
         searchValueInput2() {
            let _this = this
            uni.request({
               url: `${_this.baseUrl}/order/head/page/auth`,
               header: {'token': uni.getStorageSync('token')},
               data: {
                  curr: 1,
                  limit: 30,
                  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
@@ -108,14 +127,13 @@
               header: {'token': uni.getStorageSync('token')},
               data: {
                  curr: 1,
                  limit: 1000,
                  limit: 30,
               },
               method: 'GET',
               success(res) {
                  res = res.data
                  if (res.code === 200) {
                     _this.dataList = res.data
                     _this.oldDataList = [..._this.dataList]
                  } 
               }
            })