#
zhou zhou
1 天以前 2e973a583b18e8546ae8f75990b7470ad7436b57
pages/AGV/StartInTask.vue
@@ -8,8 +8,8 @@
         </view>   
         <view class="cu-form-group">
            <view class="title">容器号</view>
            <input placeholder="请扫描容器编码" v-model="barcode" ></input>
            <text class='cuIcon-search text-blue' @click="search"></text>
            <input placeholder="请扫描容器编码" v-model="barcode" @input="search"></input>
            <!-- <text class='cuIcon-search text-blue' @click="search"></text> -->
         </view>   
<!--          <view class="flex solid-bottom padding-sm justify-between">
            <view class="text-blue margin-left">容器码:{{container}}</view>            
@@ -112,8 +112,8 @@
         ...mapState('user', ['dynamicFields']),
      },
      mounted() {
         this.getRece()
         this.whAreaId = uni.getStorageSync('whAreaId')
         // this.getRece()
         // this.whAreaId = uni.getStorageSync('whAreaId')
         
         // 获取按钮权限
         this.buttonPermissions = uni.getStorageSync('buttonPermissions') || [];
@@ -127,28 +127,32 @@
            uni.setStorageSync('whAreaId', val)
         },
         async search() {
            let that = this
            const {
               code,
               data,
               msg
            } = await request('/staBind/list', {
               sta: this.barcode
            })
            if (code === 200) {
               if(data.list.length >0){
                  that.container = data.barcode
                  that.list = data.list
            if (this.barcode === '' || this.barcode === null) {
               uni.showToast({
                  title: '容器码为空',
                  icon: 'none',
                  position: 'top'
               })
               return
            }
            const { code, data, msg } = await request(
               '/asnOrderItem/container',
               {
                  barcode: this.barcode
               }
               that.range = data.warehouseAreasList.map(item => ({
            )
            if (code === 200) {
               this.range = data.map((item) => ({
                  value: item.id,
                  text: item.name
               }));
               that.whAreaId = data.area
               }))
               this.whAreaId = this.range[0].value
            } else {
               uni.showToast({
                  title: msg,
                  icon: "none",
                  icon: 'none',
                  position: 'top'
               })
            }
         },