#
zjj
2024-08-21 54fce333aae7d6f596616a6eb5e65c27c28a9994
pages/basics/stockQuery.vue
@@ -44,22 +44,24 @@
      </checkbox-group> -->
      <checkbox-group @change="checkbox">
         <view v-for="(item,index) in matList" :key="index" class="data-list bg-false" :class="'bg-'+item.checked" >
            <label class="left-check-box">
            <!-- <label class="left-check-box">
               <checkbox :value="item.id+''" :checked="item.checked" style="display: block;" />
            </label>
            </label> -->
            <view class="data-list-left">
               <view class="matnr"><text style="width: 700rpx;">编码:{{item.matnr}}</text></view>
               <view class="matnr"><text style="width: 700rpx;">库位:{{item.locNo}}</text></view>
               <view class="matnr"><text style="width: 700rpx;">料号:{{item.matnr}}</text></view>
               <view class="matnr"><text style="width: 700rpx;">规格:{{item.specs}}</text></view>
               <view><text style="width: 700rpx;">品名:{{item.maktx}}</text></view>
               <view><text style="width: 700rpx;">批号:{{item.batch}}</text></view>
               <view>
                  <text style="width: 700rpx;">数量:{{item.anfme}}</text>
               </view>
            </view>
            <view class="data-list-right">
            <!-- <view class="data-list-right">
               <label><uni-icons type="compose" size="20" color="#a5a5a5" @click="revise(item,index)"></uni-icons></label>
               <!-- list中删除键 -->
               <!-- <label><uni-icons type="trash" size="25" color="#a5a5a5" @click="remove(item,index)"></uni-icons></label> -->
            </view>
               list中删除键
               <label><uni-icons type="trash" size="25" color="#a5a5a5" @click="remove(item,index)"></uni-icons></label>
            </view> -->
         </view>
      </checkbox-group>
      <!-- 无数据显示 -->
@@ -73,6 +75,7 @@
   export default {
      data () {
         return {
            commonUrl:null,
            matList: [],
            locNo: null,
            matnr: null
@@ -84,8 +87,15 @@
         this.baseIP = UIP;
         const UPORT = uni.getStorageSync('UPORT');
         this.basePORT = UPORT
         const PROJ = uni.getStorageSync('UPROJ');
         this.baseUrl = PROJ
         this.getUrl()
      },
      methods: {
         // 获取url
         getUrl() {
            this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl
         },
         checkbox: function () {
            
         },
@@ -100,7 +110,7 @@
         request() {
            let that = this
            uni.request({
               url:that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/locDetl/list/auth',
               url:that.commonUrl + '/locDetl/list/auth',
               header:{'token':uni.getStorageSync('token')},
               data: {
                  curr: 1,
@@ -146,6 +156,9 @@
         searchByMatnr() {
            let that = this
            that.request()
         },
         revise() {
         }
      },
   }
@@ -160,7 +173,7 @@
   }
   .data-list {
      border-bottom: 1px solid #d8d8d8;
      height: 180rpx;
      height: 250rpx;
      margin: 15rpx;
      border-radius: 20rpx;
   }
@@ -185,13 +198,13 @@
      height: 100%;
      width: 100rpx;
      text-align: center;
      line-height: 170rpx;
      line-height: 230rpx;
   }
   .data-list-left {
      /* background-color: #ffff7f; */
      display: inline-block;
      float: left;
      height: 180rpx;
      height: 240rpx;
      width: 500rpx;
      color: #676767;
   }
@@ -203,8 +216,8 @@
      display: inline-block;
      float: right;
      width: 100rpx;
      height: 180rpx;
      line-height: 180rpx;
      height: 230rpx;
      line-height: 230rpx;
   }
   .data-list-right label {
      display: inline-block;