| | |
| | | |
| | | </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> |
| | |
| | | },{ |
| | | label: 'R1', |
| | | value: 'æ£ä¿®' |
| | | }] |
| | | }], |
| | | Standard_value:'', // ç§°éæ åå¼ |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | // 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) |
| | |
| | | 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["车å"]) |
| | |
| | | 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 |
| | |
| | | materielType: _this.materielType, |
| | | NewOrOld: _this.NewOrOld, |
| | | LotNumber: _this.LotNumber, |
| | | ProductDate: _this.ProductDate |
| | | ProductDate: _this.ProductDate, |
| | | Standard_value: _this.Standard_value, |
| | | }, |
| | | }; |
| | | console.log("æåæäº¤çç»çä¿¡æ¯",data) |
| | |
| | | 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({ |
| | |
| | | materielType: _this.materielType, |
| | | NewOrOld: _this.NewOrOld, |
| | | LotNumber: _this.LotNumber, |
| | | ProductDate: _this.ProductDate |
| | | ProductDate: _this.ProductDate, |
| | | Standard_value: _this.Standard_value, |
| | | }, |
| | | }; |
| | | console.log("æåæäº¤çç»çä¿¡æ¯",data) |
| | |
| | | }); |
| | | _this.value_rfid = ""; |
| | | _this.value_qrcode = ""; |
| | | _this.Standard_value = ""; |
| | | _this.initInfo(); |
| | | _this.rfidFocus = true; |
| | | |