| | |
| | | <u-tr> |
| | | <u-td width="30%">杞存壙鏉$爜</u-td> |
| | | <u-td> |
| | | <u-input v-model="value_qrcode" :border="true" :focus="qrcodeFocus" @input="barcodeChange" |
| | | <u-input v-model="value_qrcode" :border="true" :focus="qrcodeFocus" |
| | | placeholder="杞存壙鏉$爜" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">杞存壙鍨嬪彿</u-td> |
| | | <u-td> |
| | | <u-input v-model="materielType" :border="false" :disabled="true" placeholder="" /> |
| | | <u-input v-model="materielType" :border="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">鍘傚</u-td> |
| | | <u-td> |
| | | <u-input v-model="madeUnit" :border="false" :disabled="true" placeholder="" /> |
| | | <u-input v-model="madeUnit" :border="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">杞﹀瀷</u-td> |
| | | <u-td> |
| | | <u-input v-model="materielId" :border="false" :disabled="true" placeholder="" /> |
| | | <u-input v-model="materielId" :border="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">杞存壙绫诲埆</u-td> |
| | | <u-td> |
| | | <u-input v-model="NewOrOld" :border="false" :disabled="true" placeholder="" /> |
| | | <u-input v-model="NewOrOld" :border="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">杞存壙鍗曞彿</u-td> |
| | | <u-td> |
| | | <u-input v-model="LotNumber" :border="false" :disabled="true" placeholder="" /> |
| | | <u-input v-model="LotNumber" :border="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | |
| | | if (_this.value_rfid.length == 6) { |
| | | _this.qrcodeFocus = true; |
| | | } |
| | | }, |
| | | barcodeChange() { |
| | | if (_this.value_qrcode == '') { |
| | | _this.initInfo(); |
| | | return; |
| | | } |
| | | let data = { |
| | | MainData: { |
| | | barcode: _this.value_qrcode |
| | | }, |
| | | }; |
| | | _this.$AjaxRequest.Params('post', 'ToMes/Mes_GetBearingInfo', data, _user.token); |
| | | _this.$AjaxRequest.Request().then(function(result) { |
| | | if (result.data.status) { |
| | | let obj = JSON.parse(JSON.stringify(result.data.data)); |
| | | _this.madeUnit = obj.manufactor; |
| | | _this.materielId = obj.traintype; |
| | | _this.materielType = obj.beartype; |
| | | _this.NewOrOld = obj.mainfreq; |
| | | _this.LotNumber = obj.rkdh; //鎵规RKDH |
| | | _this.ProductDate = obj.productDate //鐢熶骇鏃ユ湡 |
| | | |
| | | } else { |
| | | uni.showToast({ |
| | | icon: 'none', |
| | | title: "璇锋眰閿欒:" + result.data.message, |
| | | duration: 2000 |
| | | }); |
| | | _this.initInfo(); |
| | | } |
| | | }).catch(function(err) { |
| | | uni.showToast({ |
| | | icon: 'none', |
| | | title: "璇锋眰鍚庡彴寮傚父,閿欒淇℃伅." + err.errMsg, |
| | | duration: 2000 |
| | | }); |
| | | _this.initInfo(); |
| | | }); |
| | | }, |
| | | initInfo() { |
| | | _this.madeUnit = ''; |