| | |
| | | <view style="padding: 0rpx 0rpx"> |
| | | <u-table> |
| | | <u-tr> |
| | | <u-td width="30%">è½´æ¿ç¼å·</u-td> |
| | | <u-td width="30%">æè¾è½´æ¿ç¼å·</u-td> |
| | | <u-td> |
| | | <u-input v-model="recordInfo.record_materielNumber" :border="true" placeholder="å¦éå¯ä»¥æå¨è¾å
¥" |
| | | :focus="qrcodeFocus" /> |
| | | </u-td> |
| | | <u-td style="width:80px"> |
| | | <u-button style="width:100px" type="primary" @click="SelectZCXP">æ¥è¯¢</u-button> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">æ«æè½´æ¿ç¼å·</u-td> |
| | | <u-td> |
| | | <u-input v-model="recordInfo.record_materielNumber" :border="true" placeholder="è¯·æ«æè½´æ¿ç¼å·" |
| | | @input="barcodeChange" :focus="qrcodeFocus" /> |
| | |
| | | } |
| | | |
| | | }, |
| | | SelectZCXP(){ |
| | | if (_this.recordInfo.record_materielNumber == '' || _this.recordInfo.record_materielNumber == null) { |
| | | _this.initAVG(); |
| | | return; |
| | | } |
| | | let data = { |
| | | MainData: { |
| | | record_materielNumber: _this.recordInfo.record_materielNumber |
| | | }, |
| | | }; |
| | | //console.log(data); |
| | | _this.$AjaxRequest.Params('post', 'ToAPP/QuerySelecttionInfo', |
| | | data, _user.token); |
| | | _this.$AjaxRequest.Request().then(function(result) { |
| | | if (result.data.status) { |
| | | _this.recordInfo = result.data.data; |
| | | _this.aaabb(); |
| | | } else { |
| | | uni.showToast({ |
| | | icon: 'none', |
| | | title: "请æ±é误:" + result.data.message, |
| | | duration: 2000 |
| | | }); |
| | | _this.initAVG(); |
| | | } |
| | | }).catch(function(err) { |
| | | uni.showToast({ |
| | | icon: 'none', |
| | | title: "请æ±åå°å¼å¸¸,é误信æ¯." + err.errMsg, |
| | | duration: 2000 |
| | | }); |
| | | _this.initAVG(); |
| | | }); |
| | | }, |
| | | aaabb(){ |
| | | var dict1 = {"2å·åè£
ä½":"3线åºåè£
å°","1å·åè£
ä½":"2线åºåè£
å°"} |
| | | var dict2 = {"R0":"æ°é ","R1":"æ£ä¿®"} |
| | | _this.recordInfo.record_outstation = dict1[_this.recordInfo.record_outstation] ?? _this.recordInfo.record_outstation; |
| | | _this.recordInfo.record_standa = dict2[_this.recordInfo.record_standa] ?? _this.recordInfo.record_standa; |
| | | }, |
| | | barcodeChange() { |
| | | if (_this.recordInfo.record_materielNumber == '' || _this.recordInfo.record_materielNumber == null) { |
| | | _this.initAVG(); |
| | | return; |
| | | } |
| | | alert('111') |
| | | //alert('111') |
| | | if(this.recordInfo.record_materielNumber.length > 20){ |
| | | const rawStr = _this.recordInfo.record_materielNumber; |
| | | // 2. ä¿®å¤æ ¼å¼ï¼åå¼å·âåå¼å· + å å°¾éå·ï¼ |
| | |
| | | _this.$AjaxRequest.Request().then(function(result) { |
| | | if (result.data.status) { |
| | | _this.recordInfo = result.data.data; |
| | | _this.aaabb(); |
| | | } else { |
| | | uni.showToast({ |
| | | icon: 'none', |