#
whycq
2023-04-17 4aa1546dda1adf637a8d612c6dc0a535532294b4
pages/basics/outPakin.vue
@@ -29,7 +29,7 @@
               </view>
            </view>
         </view>
         <!-- <view class="square-1">
         <view class="square-1">
            <view class="square-title" style="display: flex;">
               <view class="title-sign"><view class="sign"></view></view>
               <view class="title-text" style="width: 200rpx;"><text>拥有者</text></view>
@@ -37,7 +37,7 @@
                  <uni-combox :candidates="ownerList" placeholder="请选择拥有者" v-model="owner"></uni-combox>
               </view>
            </view>
         </view> -->
         </view>
         <view class="square-1">
            <view class="square-title">
               <view class="title-sign"><view class="sign"></view></view>
@@ -148,8 +148,8 @@
            hide:true,
            ownerList: [],
            ownerList2: '',
            owner: '',
            ownerId: 0
            owner: '亚和',
            ownerId: 2
            
         }
      },
@@ -186,6 +186,9 @@
               header: {'token':uni.getStorageSync('token')},
               success(result) {
                  for (var i = 0; i < result.data.data.records.length; i++) {
                     if(result.data.data.records[i].id == 1){
                        break
                     }
                     that.ownerList.push(result.data.data.records[i].owner)
                  }
                  that.ownerList2 = result.data.data.records
@@ -203,7 +206,6 @@
                  this.ownerId = this.ownerList2[key].id
               }
            }
            console.log(this.ownerId);
         },
         radioChange(evt) {
            for (let i = 0; i < this.origins.length; i++) {
@@ -227,7 +229,7 @@
                data: JSON.stringify({
                  barcode: that.barcode,
                  origin: that.origin,
                  owner: 1,
                  owner: 2,
                  combMats: that.matList
               }),
               method: 'POST',