|  |  |  | 
|---|
|  |  |  | this.Testlabel = "æ°é:"; | 
|---|
|  |  |  | this.Testplaceholder = "请è¾å
¥æ°é"; | 
|---|
|  |  |  | this.Initiallife = 16; | 
|---|
|  |  |  | } else if (this.warehouseId == 5) { //è¾
æä»åºåºID | 
|---|
|  |  |  | this.address = "8005"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | this.label = "åæ®ç¼å·ï¼" + this.orderNo; | 
|---|
|  |  |  | this.getData(); | 
|---|
|  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | snInput() { | 
|---|
|  |  |  | this.$nextTick(() => { | 
|---|
|  |  |  | if (this.warehouseId == 6) { | 
|---|
|  |  |  | if (this.warehouseId == 6 || this.warehouseId == 2) { | 
|---|
|  |  |  | if (this.sns.length > 0) { | 
|---|
|  |  |  | this.sns = []; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | this.Testcheck = false; | 
|---|
|  |  |  | if (res.status) { | 
|---|
|  |  |  | this.sns.push(res.data.serialNumber); | 
|---|
|  |  |  | if (this.warehouseId == 6) { | 
|---|
|  |  |  | if (this.warehouseId == 6 || this.warehouseId == 2) { | 
|---|
|  |  |  | if (this.matInfos.length > 0) { | 
|---|
|  |  |  | this.matInfos = []; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | this.$u.post('/api/Task/RequestInboundTask', postData).then(res => { | 
|---|
|  |  |  | if (res.status) { | 
|---|
|  |  |  | uni.$showMsg(res.message); | 
|---|
|  |  |  | this.inboundBarcode = ""; | 
|---|
|  |  |  | this.address = ""; | 
|---|
|  |  |  | if (this.warehouseId != 5) this.address = ""; | 
|---|
|  |  |  | setTimeout(() => { | 
|---|
|  |  |  | this.addressFocus = false; | 
|---|
|  |  |  | this.$refs.uToast.show({ | 
|---|
|  |  |  | title: "æå", | 
|---|
|  |  |  | type: "success" | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, 200); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | this.$refs.uToast.show({ | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (this.warehouseId == 2) { //油墨ä»åºåºID | 
|---|
|  |  |  | this.sn = this.sns[0]; | 
|---|
|  |  |  | debugger | 
|---|
|  |  |  | for (var i = 0; i < this.Initiallife - 1; i++) { | 
|---|
|  |  |  | this.sns.push(this.sn); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | debugger | 
|---|
|  |  |  | let url = 'palletCode=' + this.barcode + '&initiallife=' + this.Initiallife + '&warehouseId=' + this | 
|---|
|  |  |  | .warehouseId; | 
|---|
|  |  |  |  | 
|---|