#
whycq
2023-07-07 1e1c501062b84e1bbb4b41a0c06d78952ba66dd8
pages/stock/stockQuery.vue
@@ -3,15 +3,19 @@
      <!-- 搜索框 -->
      <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="item">
            <view class="code-decs">托盘码:</view>
            <input type="text" placeholder=" 扫码 / 输入" v-model="barcode">
         </view>
         <view class="item">
            <view class="code-decs">物料号:</view>
            <input type="text" placeholder=" 扫码 / 输入" v-model="matnr">
            <view class="item-right">
            </view>
         </view> -->
         </view>
      </view>
      <view class="mat-list-title">
         商品列表
@@ -88,6 +92,7 @@
            baseUrl: '',
            token: '',
            locNo: null,
            barcode: null,
            matnr: null,
            dataList: [],
            msgType: '',
@@ -110,18 +115,17 @@
               data: {
                  curr: 1,
                  limit: 100,
                  zpallet: that.locNo,
                  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')
         },
@@ -213,7 +218,7 @@
      width: 100%;
      background-color: white;
      position: fixed;
      margin-top: 100rpx;
      margin-top: 300rpx;
      z-index: 9;
      /* border-top: 1px solid #DCDFE6; */
      text-align: center;