| | |
| | | <u-td width="30%">轮对æ¡ç </u-td> |
| | | <u-td> |
| | | <u-input v-model="barcode" :focus="qrcodeFocus" :border="true" placeholder="è¯·æ«æè½®å¯¹æ¡ç " |
| | | /> |
| | | @input="barcodeChange" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">车å</u-td> |
| | | <u-td> |
| | | <u-input v-model="materiel" :border="true" placeholder="请æå¨è¾å
¥è½¦å" /> |
| | | <!-- <u-input v-model="materiel" :border="true" placeholder="请æå¨è¾å
¥è½¦å" /> --> |
| | | <xfl-select :list="CxTypes" :initValue="stateInitValueCarmodel" :clearable="false" @change="Get_VehicleType_Alls" |
| | | ref="Get_VehicleType_All" :key="CarmodelKey"> |
| | | </xfl-select> |
| | | </u-td> |
| | | |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">å·¦é²å°æ¿å¹³åå¼</u-td> |
| | |
| | | </u-td> |
| | | </u-tr> |
| | | |
| | | <u-tr> |
| | | <!-- <u-tr> |
| | | <u-td width="30%">å·¦æ¡æ²¹ç¯å¹³åå¼</u-td> |
| | | <u-td> |
| | | <u-input v-model="zydAVG" :border="true" placeholder="请è¾å
¥..." /> |
| | |
| | | <u-td> |
| | | <u-input v-model="yydAVG" :border="true" placeholder="请è¾å
¥..." /> |
| | | </u-td> |
| | | </u-tr> |
| | | </u-tr> --> |
| | | <u-tr> |
| | | <u-td width="30%">è½´æ¿ç±»å«:</u-td> |
| | | <u-td> |
| | |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">åå®¶:</u-td> |
| | | <u-td width="30%">è½´æ¿åç:</u-td> |
| | | <u-td> |
| | | <!-- <xfl-select :list="ManufacturerArray" :initValue="'è¯·éæ©'" :clearable="false" |
| | | @change="ManufacturerChange" ref="ManufacturerSelect"> |
| | | </xfl-select> --> |
| | | <u-td> |
| | | <u-input v-model="Manufacturer" :border="true" placeholder="请è¾å
¥åå®¶" /> |
| | | <u-input v-model="Manufacturer" :border="true" placeholder="请è¾å
¥è½´æ¿åç" /> |
| | | </u-td> |
| | | </u-td> |
| | | </u-tr> |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | CxTypes:[], //ææè½¦å |
| | | stateInitValueCarmodel:'è¯·éæ©', // ã车åã |
| | | CarmodelKey: 0, //ã车åã |
| | | |
| | | date: '', |
| | | CurrentUser: '', //å½åç¨æ· |
| | | barcode: '', |
| | |
| | | }, |
| | | StateChange(value) { |
| | | this.zcState = value.orignItem.label; |
| | | console.log(this.zcState) |
| | | }, |
| | | StationChange(value) { |
| | | this.targetStation = value.orignItem.label; |
| | |
| | | barcode: _this.barcode |
| | | }, |
| | | }; |
| | | |
| | | // let data = { |
| | | // barcode: _this.barcode |
| | | // }; |
| | | _this.$AjaxRequest.Params('post', 'ToMes/Mes_GetBearingNeckSizeInfo', |
| | | data, _user.token); |
| | | _this.$AjaxRequest.Request().then(function(result) { |
| | | //console.log(result); |
| | | console.log('è·åçæ¥å£æ°æ®'); |
| | | console.log(result); |
| | | if (result.data.status) { |
| | | let obj = JSON.parse(JSON.stringify(result.data.data)); |
| | | _this.yfcbAVG = obj.yfcbAVG; |
| | | _this.zfcbAVG = obj.zfcbAVG; |
| | | _this.zydAVG = obj.zydAVG; |
| | | _this.yydAVG = obj.yydAVG; |
| | | //_this.zydAVG = obj.zydAVG; |
| | | // _this.yydAVG = obj.yydAVG; |
| | | _this.zzjAVG = obj.zzjAVG; |
| | | _this.yzjAVG = obj.yzjAVG; |
| | | _this.materiel = obj.materiel; |
| | | //_this.materiel = obj.materiel; |
| | | _this.ldCode = obj.ldCode; |
| | | _this.ortherData = obj.ortherData; |
| | | if (null != obj.manufacturerArray) |
| | |
| | | initAVG() { |
| | | _this.yfcbAVG = ''; |
| | | _this.zfcbAVG = ''; |
| | | _this.zydAVG = ''; |
| | | _this.yydAVG = ''; |
| | | // _this.zydAVG = ''; |
| | | // _this.yydAVG = ''; |
| | | _this.zzjAVG = ''; |
| | | _this.yzjAVG = ''; |
| | | _this.materiel = ''; |
| | | _this.Manufacturer = ''; |
| | | _this.zcState = ''; |
| | | _this.StateArray = []; |
| | | //_this.StateArray = []; |
| | | _this.ldCode = ''; |
| | | _this.ortherData = ''; |
| | | _this.ManufacturerArray = []; |
| | | _this.$refs.StateSelect.setInput("è¯·éæ©"); |
| | | _this.$refs.StateSelect.clearItemActive(); |
| | | _this.$refs.ManufacturerSelect.setInput("è¯·éæ©"); |
| | | _this.$refs.ManufacturerSelect.clearItemActive(); |
| | | //_this.$refs.ManufacturerSelect.setInput("è¯·éæ©"); |
| | | //_this.$refs.ManufacturerSelect.clearItemActive(); |
| | | }, |
| | | SaveInfomation() { |
| | | var _this = this; |
| | | if (_this.barcode == '' || _this.Manufacturer == '' || |
| | | _this.zcState == '' || _this.targetStation == '') { |
| | | _this.zcState == '' || _this.targetStation == '' || _this.materiel == '') { |
| | | uni.showToast({ |
| | | title: "è¯·éæ©åå®¶ã工使è
éé
æ åä¿¡æ¯.", |
| | | duration: 2000 |
| | | }); |
| | | alert(_this.Manufacturer) |
| | | alert(_this.materiel) |
| | | alert(_this.barcode) |
| | | alert(_this.zcState) |
| | | alert(_this.targetStation) |
| | | return; |
| | | } |
| | | if (_this.yfcbAVG == '' && _this.zfcbAVG == '' && |
| | |
| | | } |
| | | }); |
| | | }, |
| | | VehicleType(){ |
| | | let data = {}; |
| | | _this.$AjaxRequest.Params('post', 'Dt_materielinfo/Get_VehicleType_All', |
| | | data, _user.token); |
| | | _this.$AjaxRequest.Request().then(function(result) { |
| | | if (result.data.status) { |
| | | _this.CxTypes = result.data.data |
| | | } else { |
| | | uni.showToast({ |
| | | icon: 'none', |
| | | title: "请æ±é误:" + result.data.message, |
| | | duration: 2000 |
| | | }); |
| | | } |
| | | console.log("车åçæææ°æ®",result) |
| | | }).catch(function(err) { |
| | | uni.showToast({ |
| | | icon: 'none', |
| | | title: "请æ±åå°å¼å¸¸,é误信æ¯." + err.errMsg, |
| | | duration: 2000 |
| | | }); |
| | | }); |
| | | }, |
| | | Get_VehicleType_Alls(value){ |
| | | _this = this; |
| | | _this.materiel = value.orignItem; // ç»è½¦åèµå¼ |
| | | console.log(_this.materiel) |
| | | }, |
| | | }, |
| | | created: function() { |
| | | // æ¯æ¬¡è¿å
¥ç颿¶ï¼å
æ¸
é¤ä¹åçææå®æ¶å¨ï¼ç¶åå¯å¨æ°ç宿¶å¨ |
| | |
| | | _this = this; |
| | | _this.qrcodeFocus = true; |
| | | //_this.queryOrder(); |
| | | this.VehicleType(); |
| | | }, |
| | | |
| | | |