|  |  |  | 
|---|
|  |  |  | <uni-forms-item :label="label" style="margin-top: -20px;"></uni-forms-item> | 
|---|
|  |  |  | <!-- <uni-forms-item label="åæ®ç±»åï¼çäº§é¢æå" style="margin-top: -20px;"></uni-forms-item> --> | 
|---|
|  |  |  | <uni-forms-item label="å
ç®±ç ï¼" style="margin-top: -20px;"> | 
|---|
|  |  |  | <uni-easyinput type="text" placeholder="è¯·æ«æå
ç®±ç " ref='midInput' :focus="focus" | 
|---|
|  |  |  | <uni-easyinput type="text" placeholder="è¯·æ«æå
ç®±ç " ref='midInput' :focus="!focus" | 
|---|
|  |  |  | v-model="innerCode" @input="innercodeInput" /> | 
|---|
|  |  |  | </uni-forms-item> | 
|---|
|  |  |  | <uni-forms-item :label="PurchaseOrderNo" style="margin-top: -20px;"></uni-forms-item> | 
|---|
|  |  |  | 
|---|
|  |  |  | </uni-forms-item> | 
|---|
|  |  |  | </uni-forms> | 
|---|
|  |  |  | <uni-forms-item> | 
|---|
|  |  |  | <button @click="submit" type="primary" size="default" style="margin-top: 2%;">确认æ¶è´§</button> | 
|---|
|  |  |  | <view class="uni-flex uni-row" style="justify-content: space-between;margin-top: 2%;height: 45px;width: 520rpx;margin: 0px auto;"> | 
|---|
|  |  |  | <view> | 
|---|
|  |  |  | <button @click="resetReceive" type="default" size="default" style="width: 200rpx;border: 1rpx solid #007aff;color: #007aff;">éç½®</button> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | <view> | 
|---|
|  |  |  | <button @click="submit" type="primary" size="default" style="width: 220rpx;">确认æ¶è´§</button> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | </uni-forms-item> | 
|---|
|  |  |  | <uni-forms-item> | 
|---|
|  |  |  | <button @click="submit1" type="primary" size="default" style="margin-top: 2%;">宿æ¶è´§</button> | 
|---|
|  |  |  | <view style="margin-top: 2%;height: 45px;width: 520rpx;margin: 0px auto;"> | 
|---|
|  |  |  | <button @click="submit1" type="primary" size="default" style="margin-top: 2%;backgroundColor:#1AAD19;borderColor:#1AAD19">宿æ¶è´§</button> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | </uni-forms-item> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | 
|---|
|  |  |  | remaindQty: "å®é
æ°éï¼", | 
|---|
|  |  |  | tagFocus: true, | 
|---|
|  |  |  | numberFocus: false, | 
|---|
|  |  |  | focus: true, | 
|---|
|  |  |  | focus: false, | 
|---|
|  |  |  | tag: "", | 
|---|
|  |  |  | number: "", | 
|---|
|  |  |  | tagmatCode: "ç©æç¼ç ï¼", | 
|---|
|  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | search() { | 
|---|
|  |  |  | this.getData(); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | resetReceive(){ | 
|---|
|  |  |  | this.PurchaseOrderNo="éè´åå·ï¼"; | 
|---|
|  |  |  | this.matCode="ç©æç¼ç ï¼"; | 
|---|
|  |  |  | this.LotNo="ç©ææ¹æ¬¡ï¼"; | 
|---|
|  |  |  | this.orderQty="è®¢åæ°éï¼"; | 
|---|
|  |  |  | this.ProductionDate="çäº§æ¥æï¼"; | 
|---|
|  |  |  | this.EffectiveDate="æææ¥æï¼"; | 
|---|
|  |  |  | this.Quantity=""; | 
|---|
|  |  |  | setTimeout(() => { | 
|---|
|  |  |  | this.innerCode=""; | 
|---|
|  |  |  | this.focus=false; | 
|---|
|  |  |  | }, 10); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | releasebox() { | 
|---|
|  |  |  | if (this.releasevalue.length == 0) { | 
|---|
|  |  |  | 
|---|
|  |  |  | this.$u.post('/api/ReceiveOrderDetail/AddReceiveOrderDetail?serNum=' + this.sns + '&orderNo=' + this | 
|---|
|  |  |  | .orderNo, {}).then(res => { | 
|---|
|  |  |  | if (res.status) { | 
|---|
|  |  |  | this.PurchaseOrderNo="éè´åå·ï¼"; | 
|---|
|  |  |  | this.matCode="ç©æç¼ç ï¼"; | 
|---|
|  |  |  | this.LotNo="ç©ææ¹æ¬¡ï¼"; | 
|---|
|  |  |  | this.orderQty="è®¢åæ°éï¼"; | 
|---|
|  |  |  | this.ProductionDate="çäº§æ¥æï¼"; | 
|---|
|  |  |  | this.EffectiveDate="æææ¥æï¼"; | 
|---|
|  |  |  | this.Quantity=""; | 
|---|
|  |  |  | setTimeout(() => { | 
|---|
|  |  |  | this.innerCode=""; | 
|---|
|  |  |  | this.focus=false; | 
|---|
|  |  |  | }, 100); | 
|---|
|  |  |  | this.orderInfo=[]; | 
|---|
|  |  |  | this.sns = ""; | 
|---|
|  |  |  | this.$refs.uToast.show({ | 
|---|
|  |  |  | title: "确认æ¶è´§æå", | 
|---|
|  |  |  | type: "success" | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | this.orderInfo=[]; | 
|---|
|  |  |  | this.sns = ""; | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | this.$refs.uToast.show({ | 
|---|
|  |  |  | title: res.message, | 
|---|
|  |  |  | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | onClickItem(e) { | 
|---|
|  |  |  | console.log(1) | 
|---|
|  |  |  | this.focus = false; | 
|---|
|  |  |  | this.addressFocus = false; | 
|---|
|  |  |  | if (this.current !== e.currentIndex) { | 
|---|
|  |  |  | 
|---|
|  |  |  | var innerCode = this.innerCode; | 
|---|
|  |  |  | setTimeout(() => { | 
|---|
|  |  |  | this.innerCode = ""; | 
|---|
|  |  |  | }, 10); | 
|---|
|  |  |  | this.focus=true; | 
|---|
|  |  |  | }, 1); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | this.$u.post('/api/MaterielInfo/CodeAnalysis?serNum=' + innerCode, {}).then((res) => { | 
|---|
|  |  |  | if (res.status) { | 
|---|
|  |  |  | 
|---|
|  |  |  | this.ProductionDate = "çäº§æ¥æï¼" + res.data.productionDate; | 
|---|
|  |  |  | this.orderQty = "è®¢åæ°éï¼" + res.data.quantity; | 
|---|
|  |  |  | this.Quantity = res.data.quantity; | 
|---|
|  |  |  | if (!res.status) { | 
|---|
|  |  |  | this.$refs.uToast.show({ | 
|---|
|  |  |  | title: res.message, | 
|---|
|  |  |  | type: "error" | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | setTimeout(() => { | 
|---|
|  |  |  | this.voiceSpeech('../../static/fail.mp3'); | 
|---|
|  |  |  | }, 100); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | setTimeout(() => { | 
|---|
|  |  |  | this.voiceSpeech('../../static/success.mp3'); | 
|---|
|  |  |  | }, 100); | 
|---|