#
whycq
2024-07-29 3d5efbc419d3ddff189d8d0c36cf743887d28eaa
pages/mat/matQuery.vue
@@ -2,13 +2,13 @@
   <view>
      <!-- 搜索框 -->
      <view class="search-bar">
         <uni-search-bar v-model="condition" placeholder=" 扫码 / 输入" bgColor="#EEEEEE" @confirm="search" />
         <uni-search-bar v-model="condition" placeholder=" 掃碼 / 輸入" bgColor="#EEEEEE" @confirm="search" />
      </view>
      <scroll-view>
         <view class="tag-list" v-for="(item,i) in tagList" :key="i" @click="showTag(item.id)">
            <view class="tag">
               <view style="display: flex;">
                  <view class="wms-tag" :style="baColor" >分类</view>
                  <view class="wms-tag" :style="baColor" >分類</view>
               </view>
            </view>
            <view class="tag-item">{{item.name}}</view>
@@ -21,9 +21,9 @@
                  <view class="wms-tag" :style="baColor" >商品</view>
               </view>
            </view>
            <view class="tag-item">商品编号: {{item.matnr}}</view>
            <view class="tag-item">商品名称: {{item.maktx  ? item.maktx : '--'}}</view>
            <view class="tag-item">商品规格: {{item.specs  ? item.specs : '--'}}</view>
            <view class="tag-item">商品編號: {{item.matnr}}</view>
            <view class="tag-item">商品名稱: {{item.maktx  ? item.maktx : '--'}}</view>
            <view class="tag-item">商品規格: {{item.specs  ? item.specs : '--'}}</view>
         </view>
      </view>
      <uni-load-more v-show="matList.length != 0" :status="status" :icon-size="16" :content-text="contentText" />
@@ -41,14 +41,14 @@
            curr:1,
            tag: '分类',
            baColor: "background-color: #0081ff;",
            desc: '商品编号:',
            desc: '商品編號:',
            baseUrl: '',
            token: '',
            status: 'more',
            contentText: {
               contentdown: '上拉加载更多',
               contentrefresh: '加载中',
               contentnomore: '没有更多'
               contentdown: '上拉加載更多',
               contentrefresh: '加載中',
               contentnomore: '沒有更多'
            },
            // 当前tagId
            tagIdNow: 1
@@ -91,7 +91,6 @@
                  'token':uni.getStorageSync('token'),
                },
               success(result) {
                  console.log(result);
                  var res = result.data
                  if (res.code === 200 ) {
                     that.matList = res.data
@@ -166,7 +165,6 @@
                  'token':uni.getStorageSync('token'),
                },
               success(result) {
                  console.log(result);
                  that.tagList = null
                  var res = result.data
                  if (res.code === 200) {