|  |  |  | 
|---|
|  |  |  | <uni-easyinput type="text" placeholder="请è¾å
¥æ°é" ref='midInput' :focus="!focus" v-model="qty" | 
|---|
|  |  |  | @input="barcodeInput" /> | 
|---|
|  |  |  | </uni-forms-item> | 
|---|
|  |  |  | <uni-forms-item label="æçæ¡ç :"> | 
|---|
|  |  |  | <uni-easyinput type="text" placeholder="è¯·æ«ææçæ¡ç " ref='midInput' :focus="focus" v-model="barcode" /> | 
|---|
|  |  |  | </uni-forms-item> | 
|---|
|  |  |  | <uni-forms-item> | 
|---|
|  |  |  | <button @click="OutEmpty" type="primary" size="default" style="margin-top: 2%;">空箱åºåº</button> | 
|---|
|  |  |  | </uni-forms-item> | 
|---|
|  |  |  | 
|---|
|  |  |  | focus: false, | 
|---|
|  |  |  | qty: "", | 
|---|
|  |  |  | address: "", | 
|---|
|  |  |  | barcode: "", | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | onShow() {}, | 
|---|
|  |  |  | onLoad(res) { | 
|---|
|  |  |  | this.WarehouseId = res.warehouseId; | 
|---|
|  |  |  | this.focus = false; | 
|---|
|  |  |  | this.qty = 1; | 
|---|
|  |  |  | if (res.warehouseId == 5) { | 
|---|
|  |  |  | this.address = "8001"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (this.qty < 1) { | 
|---|
|  |  |  | this.$refs.uToast.show({ | 
|---|
|  |  |  | title: "æ°éä¸è½å°äº1", | 
|---|
|  |  |  | type: 'error' | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | this.$u.post('/api/Task/OutEmpty?qty=' + this.qty + '&address=' + this.address + '&WarehouseId=' + | 
|---|
|  |  |  | this.WarehouseId).then( | 
|---|
|  |  |  | this.WarehouseId + '&barcode=' + this.barcode).then( | 
|---|
|  |  |  | res => { | 
|---|
|  |  |  | if (res.status) { | 
|---|
|  |  |  | this.$refs.uToast.show({ | 
|---|