#
whycq
2022-02-23 8edcbd986b0fee1e7d94fcfd69e619d4ab58ded2
pages/basics/stockQuery.vue
@@ -25,8 +25,8 @@
         </uni-table>
         
      </view>
      <view>
         <button class="cu-btn bg-grey pda-btn" @click="reset">重置</button>
      <view class="reset">
         <button class="cu-btn bg-grey pda-btn1" @click="reset">重 置</button>
      </view>
   </view>
</template>
@@ -39,6 +39,10 @@
            matNo:'',
            locDetlData:[],
         }
      },
      mounted(){
         const UIP = uni.getStorageSync('UIP');
         this.baseIP = UIP
      },
      methods: {
         reset:function() {
@@ -66,7 +70,7 @@
         find(){
            let that = this
            uni.request({
               url: that.baseUrl + "/mobile/locDetl/stockQuery",
               url: that.baseHttp + that.baseIP + that.baseUrl + "/mobile/locDetl/stockQuery",
               header:{
                  'content-type':'application/x-www-form-urlencoded',
                  'token':uni.getStorageSync('token')
@@ -81,9 +85,12 @@
                     if(res.data.data != null){
                        that.locDetlData = res.data.data
                     } else if (res.data.code ===403){
                        uni.navigateBack({
                            delta: 1
                        })
                     } else {
                        this.messageToggle('error')
                        this.messageText = res.data.msg
                     }
                  }
               }
@@ -95,5 +102,16 @@
</script>
<style>
   .reset {
      position: absolute;
      width: 750upx;
      bottom: 80upx;
   }
   .pda-btn1 {
      display: flex;
      flex-direction:row;
      justify-content: center;
      width: 150upx;
   }
</style>