#
whycq
2024-04-06 9dba76a130bf214aa540c8c5ffbd781590afe4f1
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">
@@ -65,6 +65,25 @@
         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: 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
@@ -116,7 +135,7 @@
               header: {'token': uni.getStorageSync('token')},
               data: {
                  curr: 1,
                  limit: 1000,
                  limit: 30,
               },
               method: 'GET',
               success(res) {