pang.jiabao
2025-04-14 bad10e1f9e91992e5b8f9bed7892dca4c2db7181
pages/basics/offline.vue
@@ -34,7 +34,7 @@
            </view>
         </view>
         <view class="square-none" v-show="matList.length === 0">
            <view class="v-show">暂无更多数据...</view>
            <view class="v-show">Нет дополнительных данных...</view>
         </view>
         <checkbox-group>
            <view v-for="(item,index) in matList" :key="index" class="data-list bg-false"  >
@@ -50,10 +50,10 @@
      </scroll-view>
      <view class="footer flex justify-around">
         <view>
            <button class="cu-btn lg" @click="resst()">重置</button>
            <button class="cu-btn lg" @click="resst()">Сброс</button>
         </view>
         <view>
            <button class="cu-btn lg pakin-btn bg-blue" @click="comb()">组托</button>
            <button class="cu-btn lg pakin-btn bg-blue" @click="comb()">Группировка поддонов</button>
         </view>
      </view>
      <view>
@@ -95,6 +95,7 @@
   export default {
      data() {
         return {
            commonUrl:null,
            barcode: '',
            barcodeFocus:true,
            focus:false,
@@ -121,8 +122,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
         },
         focuss() {
            // uni.hideKeyboard()
         },
@@ -202,7 +210,7 @@
            }
            uni.showLoading();
            uni.request({
                url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mobile/pack/comb/auth',
                url: that.commonUrl + '/mobile/pack/comb/auth',
                data: JSON.stringify({
                  barcode: that.barcode,
                  combMats: that.matList
@@ -244,7 +252,7 @@
         findMat() {
            let that = this
            uni.request({
                url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mobile/pack/get/auth',
                url: that.commonUrl + '/mobile/pack/get/auth',
                data: {
                  barcode: that.matNo
                },