#
whycq
2023-09-15 2b94c7e54b5ce6f094b58aa3dc7142fb037f64f7
pages/pakin/pakin.vue
@@ -29,16 +29,16 @@
               <view class="list-left-item">
                  <view class="desc">编码:</view>
                  <view class="left-item">
                     <uni-tag :text="item.matnr" type="primary"></uni-tag>
                     <uni-tag :text="item.matNo" type="primary"></uni-tag>
                  </view>
               </view>
               <view class="list-left-item">
                  <view class="desc">品名:</view>
                  <view class="left-item">{{item.maktx}}</view>
                  <view class="left-item">{{item.matName}}</view>
               </view>
               <view class="list-left-item">
                  <view class="desc">规格:</view>
                  <view class="left-item">{{item.specs}}</view>
                  <view class="left-item">{{item.str2}}</view>
               </view>
               <view class="list-left-item">
                  <view class="desc">批号:</view>
@@ -208,9 +208,9 @@
         findMat() {
            let that = this
            uni.request({
               url: that.baseUrl + '/mat/auth',
               url: that.baseUrl + '/matCode/list/auth',
               data: {
                  matnr: that.matnr
                  mat_no: that.matnr
               },
               header: {
                  'token': uni.getStorageSync('token')
@@ -226,7 +226,7 @@
                        // 通过eventChannel向被打开页面传送数据
                        success: function(res) {
                           res.eventChannel.emit('mat', {
                              data: result.data
                              data: result.data.records[0]
                           })
                        },
                        // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据