xiaojiao
7 天以前 b532ba8806996246ab7a0896bf34b884c47dee7e
ÏîÄ¿´úÂë/PDA/pages/Inbound/InboundBoxing_New.vue
@@ -74,13 +74,19 @@
               
            </u-tr>
            <u-tr>
               <u-td width="30%">轴承单号</u-td>
               <u-td width="30%">轴承批次号</u-td>
               <u-td>
                  <u-input v-model="LotNumber" :border="true"  placeholder="轴承单号" />
                  <u-input v-model="LotNumber" :border="true"  placeholder="轴承批次号" />
               </u-td>
            </u-tr>
            <u-tr>
               <u-td width="30%">生产日期</u-td>
               <u-td width="30%">轴承重量</u-td>
               <u-td>
                  <u-input v-model="Standard_value" :border="true"  placeholder="轴承重量" />
               </u-td>
            </u-tr>
            <u-tr>
               <u-td width="30%">生产/检修 æ—¥æœŸ</u-td>
               <u-td>
                  <u-input v-model="ProductDate" :border="true" :focus="prdateFocus" placeholder="生产日期" />
               </u-td>
@@ -144,7 +150,8 @@
               },{
                  label: 'R1',
                  value: '检修'
               }]
               }],
            Standard_value:'', // ç§°é‡æ ‡å‡†å€¼
         } 
      },
      methods: {
@@ -153,6 +160,7 @@
            // 1. æ‹¿åˆ°åŽŸå§‹çš„ç±»JSON字符串(如:{'轴承条码':'1','车型':'2',...})
            if(_this.value_qrcode.length > 60){
               const rawStr = _this.value_qrcode;
               console.log(_this.value_qrcode.length)
               // 2. ä¿®å¤æ ¼å¼ï¼ˆå•引号→双引号 + åˆ å°¾é€—号)
               const fixedStr = rawStr.replace(/'/g, '"').replace(/,\s*}/, '}');
               console.log(fixedStr)
@@ -163,8 +171,10 @@
               console.log(temp_dict['轴承条码']); // è¾“出:1(不再是undefined)
               
               _this.value_qrcode = temp_dict['轴承条码']; 
               _this.madeUnit = temp_dict["厂家"]
               _this.LotNumber = temp_dict["轴承单号"]
               _this.madeUnit = temp_dict["轴承品牌"]
               _this.LotNumber = temp_dict["轴承批次号"]
               _this.Standard_value = temp_dict["轴承重量"]
               _this.ProductDate = temp_dict["日期"]
               _this.Bearing_Category(temp_dict["轴承类别"])
               _this.BearingModel(temp_dict["轴承型号"])
               _this.Carmodel(temp_dict["车型"])
@@ -270,7 +280,7 @@
         BearingModelss(value){
            console.log("选择的轴承型号是",value.orignItem)
            // è¿™é‡Œèµ‹å€¼åނ家
            _this.templists.forEach(x => { // å…³é”®ï¼šforEach å°å†™e
            _this.templists.forEach(x => { // å…³é”®ï¼šforEach å°å†™
               if(value.orignItem == x.materiel_zc_id_list){
                  _this.madeUnit = x.materiel_zc_name_list
                  _this.materielType = value.orignItem
@@ -311,7 +321,8 @@
                  materielType: _this.materielType,
                  NewOrOld: _this.NewOrOld,
                  LotNumber: _this.LotNumber,
                  ProductDate: _this.ProductDate
                  ProductDate: _this.ProductDate,
                  Standard_value: _this.Standard_value,
               },
            };
            console.log("最后提交的组盘信息",data)
@@ -327,6 +338,9 @@
                  icon: 'none',
               });
               return;
            }
            if(_this.Standard_value == '' || _this.Standard_value == 0 || _this.Standard_value == "0"){
               _this.Standard_value = '0'
            }
            if (_this.value_rfid.length > 6) {
               uni.showToast({
@@ -351,7 +365,8 @@
                           materielType: _this.materielType,
                           NewOrOld: _this.NewOrOld,
                           LotNumber: _this.LotNumber,
                           ProductDate: _this.ProductDate
                           ProductDate: _this.ProductDate,
                           Standard_value: _this.Standard_value,
                        },
                     };
                     console.log("最后提交的组盘信息",data)
@@ -365,6 +380,7 @@
                           });
                           _this.value_rfid = "";
                           _this.value_qrcode = "";
                           _this.Standard_value = "";
                           _this.initInfo();
                           _this.rfidFocus = true;