|  |  |  | 
|---|
|  |  |  | <uni-forms label-width="180"> | 
|---|
|  |  |  | <uni-forms-item label="æçæ¡ç :"> | 
|---|
|  |  |  | <uni-easyinput type="text" placeholder="è¯·æ«ææçæ¡ç " ref='midInput' :focus="!focus" | 
|---|
|  |  |  | v-model="barcode" @input="barcodeInput" /> | 
|---|
|  |  |  | v-model="barcode" @confirm="barcodeInput" /> | 
|---|
|  |  |  | </uni-forms-item> | 
|---|
|  |  |  | <uni-forms-item label="å
ç®±æ ç¾:"> | 
|---|
|  |  |  | <uni-easyinput type="text" placeholder="è¯·æ«æå
ç®±æ ç¾" ref='midInput' :focus="focus" | 
|---|
|  |  |  | v-model="materSn" @input="snInput" /> | 
|---|
|  |  |  | v-model="materSn" @confirm="snInput" /> | 
|---|
|  |  |  | </uni-forms-item> | 
|---|
|  |  |  | <uni-forms-item :label="Testlabel" v-if="Test"> | 
|---|
|  |  |  | <uni-easyinput type="text" :placeholder="Testplaceholder" ref='midInput' | 
|---|
|  |  |  | 
|---|
|  |  |  | <uni-forms label-width="120"> | 
|---|
|  |  |  | <uni-forms-item label="æçæ¡ç "> | 
|---|
|  |  |  | <uni-easyinput type="text" :focus="!addressFocus" v-model="inboundBarcode" | 
|---|
|  |  |  | placeholder="è¯·æ«ææçæ¡ç " ref='midInput' @input="inputChangebarcode" /> | 
|---|
|  |  |  | placeholder="è¯·æ«ææçæ¡ç " ref='midInput' @confirm="inputChangebarcode" /> | 
|---|
|  |  |  | </uni-forms-item> | 
|---|
|  |  |  | <uni-forms-item label="å°åæ¡ç "> | 
|---|
|  |  |  | <uni-easyinput type="text" v-model="address" :disabled="addressdisabled" | 
|---|
|  |  |  | 
|---|
|  |  |  | <uni-forms label-width="180"> | 
|---|
|  |  |  | <uni-forms-item label="å
ç®±æ ç¾:"> | 
|---|
|  |  |  | <uni-easyinput type="text" placeholder="è¯·æ«æå
ç®±æ ç¾" ref='midInput' :focus="pkfocus" | 
|---|
|  |  |  | v-model="pkmaterSn" @input="pksnInput" /> | 
|---|
|  |  |  | v-model="pkmaterSn" @confirm="pksnInput" /> | 
|---|
|  |  |  | </uni-forms-item> | 
|---|
|  |  |  | <uni-forms-item> | 
|---|
|  |  |  | <button @click="pksubmit" type="primary" size="default" style="margin-top: 2%;">å
¥å¹³åº</button> | 
|---|
|  |  |  | 
|---|
|  |  |  | this.getData(); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | methods: { | 
|---|
|  |  |  | voiceSpeech(src) { | 
|---|
|  |  |  | innerAudioContext.src = src; // '../../static/success.mp3'; | 
|---|
|  |  |  | innerAudioContext.play(); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // voiceSpeech(src) { | 
|---|
|  |  |  | //    innerAudioContext.src = src; // '../../static/success.mp3'; | 
|---|
|  |  |  | //    innerAudioContext.play(); | 
|---|
|  |  |  | // }, | 
|---|
|  |  |  | //wmså
¥å¹³åº | 
|---|
|  |  |  | pksubmit() { | 
|---|
|  |  |  | if (this.pkmatInfos.length == 0) { | 
|---|
|  |  |  | 
|---|
|  |  |  | title: res.message, | 
|---|
|  |  |  | type: "error" | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | setTimeout(() => { | 
|---|
|  |  |  | this.voiceSpeech('../../static/fail.mp3'); | 
|---|
|  |  |  | }, 100); | 
|---|
|  |  |  | // setTimeout(() => { | 
|---|
|  |  |  | //    this.voiceSpeech('../../static/fail.mp3'); | 
|---|
|  |  |  | // }, 100); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | setTimeout(() => { | 
|---|
|  |  |  | this.voiceSpeech('../../static/success.mp3'); | 
|---|
|  |  |  | }, 100); | 
|---|
|  |  |  | // setTimeout(() => { | 
|---|
|  |  |  | //    this.voiceSpeech('../../static/success.mp3'); | 
|---|
|  |  |  | // }, 100); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | this.$refs.uToast.show({ | 
|---|
|  |  |  | title: res.message, | 
|---|
|  |  |  | type: "error" | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | setTimeout(() => { | 
|---|
|  |  |  | this.voiceSpeech('../../static/fail.mp3'); | 
|---|
|  |  |  | }, 100); | 
|---|
|  |  |  | // setTimeout(() => { | 
|---|
|  |  |  | //    this.voiceSpeech('../../static/fail.mp3'); | 
|---|
|  |  |  | // }, 100); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (this.materSn != "") { | 
|---|
|  |  |  | this.focus = false; | 
|---|
|  |  |  | if(this.warehouseId==11){ | 
|---|
|  |  |  | this.materSn=this.materSn.replace(/,SC.*/, ''); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (this.materSn.split(',').length != 6) { | 
|---|
|  |  |  | this.materSn = ""; | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | 
|---|
|  |  |  | title: res.message, | 
|---|
|  |  |  | type: "error" | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | setTimeout(() => { | 
|---|
|  |  |  | this.voiceSpeech('../../static/fail.mp3'); | 
|---|
|  |  |  | }, 100); | 
|---|
|  |  |  | // setTimeout(() => { | 
|---|
|  |  |  | //    this.voiceSpeech('../../static/fail.mp3'); | 
|---|
|  |  |  | // }, 100); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | setTimeout(() => { | 
|---|
|  |  |  | this.voiceSpeech('../../static/success.mp3'); | 
|---|
|  |  |  | }, 100); | 
|---|
|  |  |  | // setTimeout(() => { | 
|---|
|  |  |  | //    this.voiceSpeech('../../static/success.mp3'); | 
|---|
|  |  |  | // }, 100); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | this.$refs.uToast.show({ | 
|---|
|  |  |  | title: res.message, | 
|---|
|  |  |  | type: "error" | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | setTimeout(() => { | 
|---|
|  |  |  | this.voiceSpeech('../../static/fail.mp3'); | 
|---|
|  |  |  | }, 100); | 
|---|
|  |  |  | // setTimeout(() => { | 
|---|
|  |  |  | //    this.voiceSpeech('../../static/fail.mp3'); | 
|---|
|  |  |  | // }, 100); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | } | 
|---|