#
zjj
2024-04-17 e4dc67055ea0c21e72815054c044b56a76ec625e
pages/stock/stockQuery.vue
@@ -3,8 +3,12 @@
      <!-- 搜索框 -->
      <view class="code">
         <view class="item">
            <view class="code-decs">库位号:</view>
            <view class="code-decs">库位码:</view>
            <input type="text" placeholder=" 扫码 / 输入" v-model="locNo">
         </view>
         <view class="item">
            <view class="code-decs">托盘码:</view>
            <input type="text" placeholder=" 扫码 / 输入" v-model="barcode">
         </view>
         <view class="item">
            <view class="code-decs">物料号:</view>
@@ -88,6 +92,7 @@
            baseUrl: '',
            token: '',
            locNo: null,
            barcode: null,
            matnr: null,
            dataList: [],
            msgType: '',
@@ -111,17 +116,16 @@
                  curr: 1,
                  limit: 100,
                  loc_no: that.locNo,
                  zpallet: that.barcode,
                  matnr: that.matnr
               },
               method:"GET",
               success(result) {
                  console.log(result)
                  let res = result.data
                  let records = res.data.records
                  if (res.code == 200) {
                     if (records) {
                        that.dataList = records
                        console.log(that.dataList)
                     } else {
                        uni.showToast({
                           title: "暂无更多数据",
@@ -153,6 +157,7 @@
            this.dataList = []
            this.matnr = ''
            this.locNo = ''
            this.barcode = ''
            this.messageText = "重置完成"
            this.messageToggle('success')
         },
@@ -173,7 +178,7 @@
   .code {
      width: 100%;
      position: fixed;
      min-height: 200rpx;
      min-height: 100rpx;
      background-color: #FFF;
      z-index: 10;
   }
@@ -213,7 +218,7 @@
      width: 100%;
      background-color: white;
      position: fixed;
      margin-top: 200rpx;
      margin-top: 300rpx;
      z-index: 9;
      /* border-top: 1px solid #DCDFE6; */
      text-align: center;