xiaojiao
2025-12-28 44b83f33ff3a35edced78d89927a734f19de81ba
ÏîÄ¿´úÂë/PDA/pages/Inbound/InboundBoxing_New.vue
@@ -131,7 +131,7 @@
            BearingModels:[], // å¯¹åº”车型下面的所有轴承型号
            templists:[], // ä¸´æ—¶ä¿å­˜ è½´æ‰¿åž‹å· å’Œ åނ家
            StateArray: [{
                  label: 'RO',
                  label: 'R0',
                  value: '新造'
               },{
                  label: 'R1',
@@ -244,20 +244,33 @@
            }
         },
         initInfo() {
            _this.madeUnit = '';
            _this.materielId = '';
            _this.materielType = '';
            _this.NewOrOld = '';
            //_this.madeUnit = '';
            //_this.materielId = '';
            //_this.materielType = '';
            //_this.NewOrOld = '';
            _this.LotNumber = '';
            _this.ProductDate = '';
            //_this.ProductDate = '';
         },
         SaveInfomation() {
            let data = {
               MainData: {
                  rfid: _this.value_rfid,
                  qrcode: _this.value_qrcode,
                  madeUnit: _this.madeUnit,
                  materielId: _this.materielId,
                  materielType: _this.materielType,
                  NewOrOld: _this.NewOrOld,
                  LotNumber: _this.LotNumber,
                  ProductDate: _this.ProductDate
               },
            };
            console.log("最后提交的组盘信息",data)
            //_this.LotNumber == '' ||
            if (_this.value_rfid.length == 0 || _this.value_qrcode.length == 0 ||
               _this.madeUnit == '' || _this.materielId == '' ||
               _this.materielType == '' || _this.NewOrOld == '' ||
                _this.ProductDate == '') {
               uni.showToast({
                  title: "组盘信息不能为空",
                  duration: 2000,
@@ -304,6 +317,7 @@
                           _this.value_qrcode = "";
                           _this.initInfo();
                           _this.rfidFocus = true;
                        } else {
                           uni.showToast({
                              icon: 'none',
@@ -322,6 +336,17 @@
               }
            });
         },
         getCurrentDate() {
               const now = new Date();
               // èŽ·å–å¹´ã€æœˆã€æ—¥ï¼ˆè¡¥0处理,确保月份/日期是两位数)
               const year = now.getFullYear();
               const month = String(now.getMonth() + 1).padStart(2, '0'); // æœˆä»½ä»Ž0开始,需+1
               const day = String(now.getDate()).padStart(2, '0');
               // æ‹¼æŽ¥æˆYYYY-MM-DD格式
               this.currentDate = `${year}-${month}-${day}`;
               // å¦‚果需要返回值(比如接口传参),可以return这个结果
               return `${year}-${month}-${day}`;
             },
      },
      created: function() {
         // æ¯æ¬¡è¿›å…¥ç•Œé¢æ—¶ï¼Œå…ˆæ¸…除之前的所有定时器,然后启动新的定时器
@@ -341,7 +366,9 @@
      mounted() {
         _this = this;
         _this.rfidFocus = true;
         _this.ProductDate = this.getCurrentDate();
         this.VehicleType();
      },