#
whycq
2023-09-26 684a71888842924e8e954a12f10ee364f627e8a0
pages/basics/matQuery.vue
@@ -28,7 +28,9 @@
            </view>
            <view class="text-box">
               <view class="text-title text-desc"><text>客户信息</text></view>
               <view class="text-title"><input type="text" v-model="matData.cstmr"></view>
               <uni-combox :candidates="owners" placeholder="请选择客户类别"
               v-model="matData.owner"></uni-combox>
               <!-- <view class="text-title"><input type="text" v-model="matData.cstmr"></view> -->
            </view>
            <view class="text-box">
               <view class="text-title text-desc"><text>数量</text></view>
@@ -57,9 +59,13 @@
               maktx: null,
               batch: null,
               anfme: null,
               owner: null
            },
            owners: [],
            owner: '',
            baseIP:'',
            basePORT:'',
            commonUrl: ''
         }
      },
      onLoad(option) {
@@ -77,9 +83,30 @@
         that.matData.anfme = 0
         })
         
         eventChannel.on('url', function(data) {
            that.commonUrl = data.data
         })
         this.locOwner()
         
      },
      methods: {
         locOwner() {
            let _this = this
            uni.request({
               url: _this.commonUrl + '/locOwner/list/auth',
               data:{curr:1,limit:15},
               header: { 'token':uni.getStorageSync('token') },
               success(res) {
                  res = res.data
                  if (res.code === 200) {
                     _this.owner = res.data.records
                     for (let k of res.data.records) {
                        _this.owners.push(k.owner)
                     }
                  }
               }
            })
         },
         blur() {
            
         },
@@ -95,6 +122,7 @@
               return;
            }
            this.getOpenerEventChannel().emit('matList', {data: this.matData});
            this.getOpenerEventChannel().emit('owner', {data: this.owner});
            uni.vibrateShort();
            uni.navigateBack({