| | |
| | | </view> --> |
| | | <view style="padding: 5%;"> |
| | | <uni-forms label-width="120"> |
| | | <uni-forms-item label="é¶ä»¶ç¼å·:"> |
| | | <uni-easyinput type="text" placeholder="è¯·æ«æé¶ä»¶å·" ref='midInput' :focus="focus" v-model="materSn" @blur="inputChangebarcode" /> |
| | | </uni-forms-item> |
| | | <uni-forms-item label="è½½å
·ç¼å·"> |
| | | <uni-easyinput type="text" :focus="barcodefocus" @input="inputChangebarcode" |
| | | <uni-easyinput type="text" :focus="barcodefocus1" |
| | | v-model="VehicleNumber" placeholder="请è¾å
¥è½½å
·ç¼å·" ref='midInput' /> |
| | | </uni-forms-item> |
| | | <uni-forms-item label="é¶ä»¶ç¼å·:"> |
| | | <uni-easyinput type="text" placeholder="è¯·æ«æé¶ä»¶å·" ref='midInput' :focus="focus" v-model="materSn" /> |
| | | <uni-forms-item label="车åä¿¡æ¯"> |
| | | <uni-easyinput type="text" |
| | | v-model="Carmodel" placeholder="èªå¨è·å车å(é¤å¼æå¨è¾å
¥é¶ä»¶å·)" ref='midInput' /> |
| | | </uni-forms-item> |
| | | <uni-forms-item label="å½åä½ç½®:"> |
| | | <uni-easyinput type="text" placeholder="请è¾å
¥å¤æç¹ä½" ref='midInput' :focus="focus2" v-model="Position"/> |
| | |
| | | istrue: false, |
| | | addressFocus:false, |
| | | barcodefocus: false, |
| | | barcodefocus1:false, |
| | | range: [], |
| | | rangethree:[], |
| | | group: [{ |
| | |
| | | items: ['ç©æç»å®', 'ç©æè§£ç»'], |
| | | current: 0, |
| | | Position: '', //容卿å¨ä½ç½® |
| | | Carmodel:'', // 车å |
| | | } |
| | | }, |
| | | onLoad(res) { |
| | |
| | | // }) |
| | | // return; |
| | | // } |
| | | if (this.VehicleNumber.length <= 0 || this.materSn.length <= 0 || this.Position.length <= 0) { |
| | | if (this.VehicleNumber.length <= 0 |
| | | || this.materSn.length <= 0 |
| | | || this.Position.length <= 0 |
| | | || this.Carmodel.length <= 0) { |
| | | this.$refs.luToast.show({ |
| | | title: "æ°æ®è¾å
¥ä¸å®æ´!", |
| | | type: "error" |
| | |
| | | var param = { |
| | | "VehicleNumber": this.VehicleNumber, |
| | | "materSn":this.materSn, |
| | | "Position": this.Position |
| | | "Position": this.Position, |
| | | "Carmodel":this.Carmodel |
| | | } |
| | | console.log(param) |
| | | |
| | |
| | | title: res.message, |
| | | type: "success" |
| | | }) |
| | | this.PalletCode2 = ""; |
| | | this.group = []; |
| | | this.barcodefocus = false; |
| | | this.Init(); |
| | | } else { |
| | | this.$refs.luToast.show({ |
| | | title: res.message, |
| | |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | Init(){ |
| | | this.VehicleNumber = ''; |
| | | this.materSn = ''; |
| | | this.Position = ''; |
| | | this.Carmodel = ''; |
| | | }, |
| | | SolvePlate() { |
| | | if (this.PalletCode3.length <= 0) { |
| | | this.$refs.luToast.show({ |
| | |
| | | }, |
| | | updateFocus() { |
| | | this.$nextTick(() => { |
| | | this.materSn = ''; |
| | | if (!this.focus) { |
| | | this.focus = true; |
| | | this.VehicleNumber = ''; |
| | | if (!this.barcodefocus1) { |
| | | this.barcodefocus1 = true; |
| | | } |
| | | }); |
| | | }, |
| | |
| | | }) |
| | | }, |
| | | inputChangebarcode() { |
| | | var materSns = this.materSn; |
| | | console.log(materSns) |
| | | this.barcodefocus1 = true; |
| | | if(materSns.indexOf(',') === -1){ |
| | | return; |
| | | } |
| | | |
| | | // 1. å¤çé¶ä»¶å·ï¼åæå䏿®µ |
| | | this.materSn = materSns.split(',').pop(); |
| | | // // 2. å¤ç车åï¼åç¬¬ä¸æ®µ |
| | | this.Carmodel = materSns.split(',')[0]; |
| | | |
| | | // 3. å
³é®ï¼è¿åå¤çåçå¼ï¼uni-easyinputä¼èªå¨æ´æ°v-modelåçé¢ |
| | | console.log('å¤çåçé¶ä»¶å·:', this.materSn); |
| | | |
| | | // this.$nextTick(() => { |
| | | // this.$u.post('/api/BoxingInfo/GetPalletCodeInfo?palletCode=' + this.PalletCode2, "").then( |
| | | // res => { |
| | |
| | | // } |
| | | // }) |
| | | // }) |
| | | setTimeout(this.updateFocus, 200); |
| | | |
| | | }, |
| | | removeScanItem(orderNo) { |
| | | this.group = this.group.filter(item => item.orderNo !== orderNo); |