#
whycq
2022-02-26 98945badb71cd48e66fd64af2c8f3528f19a18ad
pages/basics/stockQuery.vue
@@ -6,7 +6,7 @@
      </view>
      <view class="cu-form-group margin-top">
         <view class="title">产品</view>
         <input v-model="matNo" placeholder="产品信息" name="input" @input="findByMatNo()"></input>
         <input v-model="matNo" placeholder="产品ID" name="input" @input="findByMatNo()"></input>
      </view>
      <view class="margin-top">
         <uni-table border stripe emptyText="暂无更多数据">
@@ -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>
@@ -40,11 +40,16 @@
            locDetlData:[],
         }
      },
      mounted(){
         const UIP = uni.getStorageSync('UIP');
         this.baseIP = UIP
      },
      methods: {
         reset:function() {
            let that = this;
            that.locNo = '';
            that.matNo = '';
            that.locDetlData = [];
         },
         // 根据库位号查找库存明细
         findByLocNo(){
@@ -66,10 +71,10 @@
         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': localStorage.getItem('token')
                  'token':uni.getStorageSync('token')
               },
               data:{
                  locNo: that.locNo,
@@ -95,5 +100,19 @@
</script>
<style>
   /* .reset {
      position: absolute;
      width: 750upx;
      bottom: 280upx;
   } */
   .pda-btn1 {
      margin-left:260rpx;
      margin-right: auto;
      margin-top: 150rpx;
      width: 200rpx;
      height: 80rpx;
      font-size: 30upx;
      font-weight: bold;
   }
</style>