#
whycq
2022-05-16 4933d95524abb076b16ff10585460e119634f4d1
pages/basics/outPakin.vue
@@ -21,7 +21,7 @@
            </view>
            <view class="square-content">
               <view class="content-input">
                  <input v-model="matnr" type="text" placeholder="扫码 / 输入" @input="findMat()"
                  <input v-model="matnrId" type="text" placeholder="扫码 / 输入" @input="findMat()"
                  :focus="focus" @focus="focuss" >
                  <!-- @focus="focuss" -->
                  <uni-icons type="closeempty" size="20" color="#dadada" @click="removeMatnr()"></uni-icons>
@@ -77,7 +77,7 @@
            type: 'center',
            searchBox: 'hide',
            pick:'hide',
            matnr:'',
            matnrId:'',
            // matList:[{matnr:'1101842-10000',batch:'22047515999'}],
            matList:[],
            result: '',
@@ -108,7 +108,7 @@
         resst() {
            this.matList = []
            this.barcode = ''
            this.matnr = ''
            this.matnrId = ''
            uni.vibrateShort();
         },
         removeBarcode() {
@@ -125,7 +125,7 @@
            this.$nextTick(function() {
               this.focus = true;
            });
            this.matnr = ''
            this.matnrId = ''
            uni.vibrateShort();
         },
         remove(item,index) {
@@ -185,13 +185,14 @@
         
         findMat() {
            let that = this
            let str = that.matnr.split('-')
            that.matnr = str[0]+'-'+str[1]
            let str = that.matnrId.split('-')
            let matnr = str[0]+'-'+str[1]
            // that.matnr = str[0]+'-'+str[1]
            uni.showLoading();
            uni.request({
                url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mat/auth',
                data: {
                  matnr:that.matnr
                  matnr:matnr
                },
                header: {
                  'token':uni.getStorageSync('token')
@@ -228,7 +229,7 @@
                        // uni.hideKeyboard();
                        that.matList.unshift(res.data)
                     }
                     that.matnr = ''
                     that.matnrId = ''
                     that.listLen = that.matList.length;
                     uni.hideLoading();
                  } else if (res.code == 403) {