| | |
| | | <uni-easyinput type="text" :focus="addressFocus" v-model="SourceAddress" placeholder="请è¾å
¥å
¥åºèµ·ç¹" |
| | | ref='midInput' /> |
| | | </uni-forms-item> |
| | | <!-- <uni-forms-item label="å
¥åºç»ç¹"> |
| | | <uni-easyinput type="text" :focus="istrue" v-model="TargetAddress" placeholder="请è¾å
¥å
¥åºç»ç¹" |
| | | ref='midInput' /> |
| | | </uni-forms-item> --> |
| | | <uni-forms-item label="ç»ç¹åºå"> |
| | | <uni-data-select :focus="!istrue" v-model="AreaId" :localdata="range" |
| | | placeholder="请è¾éæ©å
¥åºç»ç¹åºå"></uni-data-select> |
| | | </uni-forms-item> |
| | | </uni-forms> |
| | | <button @click="InboundTask" type="primary" size="default" style="margin-top: 2%;">å
¥åº</button> |
| | | |
| | | </view> |
| | | </view> |
| | | <view v-show="current === 1"> |
| | |
| | | <button @click="SolvePlate" type="primary" size="default" style="margin-top: 2%;">è§£ç</button> |
| | | </view> |
| | | </view> |
| | | <view v-show="current === 3"> |
| | | <view style="padding: 5%;"> |
| | | <uni-forms label-width="120"> |
| | | <uni-forms-item label="æçç¼ç "> |
| | | <uni-easyinput type="text" :focus="barcodeFocus" v-model="PalletCode3" placeholder="请è¾å
¥æçç¼ç " |
| | | ref='midInput' @input="Changebarcode()"/> |
| | | </uni-forms-item> |
| | | <uni-forms-item label="å
¥åºèµ·ç¹"> |
| | | <uni-easyinput type="text" :focus="addressFocus" v-model="SourceAddress3" placeholder="请è¾å
¥å
¥åºèµ·ç¹" |
| | | ref='midInput' /> |
| | | </uni-forms-item> |
| | | <uni-forms-item label="ç»ç¹åºå"> |
| | | <uni-data-select :focus="!istrue" v-model="acrossFloor" :localdata="rangethree" |
| | | placeholder="请è¾éæ©å
¥åºç»ç¹åºå"></uni-data-select> |
| | | </uni-forms-item> |
| | | </uni-forms> |
| | | <button @click="SendTask" type="primary" size="default" style="margin-top: 2%;">åéä»»å¡</button> |
| | | </view> |
| | | </view> |
| | | <u-toast ref="luToast" /> |
| | | </view> |
| | | </template> |
| | |
| | | addressFocus:false, |
| | | barcodefocus: false, |
| | | range: [], |
| | | rangethree:[], |
| | | group: [], |
| | | AreaId: 0, |
| | | acrossFloor:0, |
| | | quantity: "", |
| | | SourceAddress: "", |
| | | TargetAddress: "", |
| | |
| | | PalletCode2: "", |
| | | PalletCode3: "", |
| | | materSn: "", |
| | | items: ['å
¥åº', 'ç»ç', 'è§£ç'], |
| | | items: ['å
¥åº', 'ç»ç', 'è§£ç','åæè·¨æ¥¼å±'], |
| | | current: 0 |
| | | } |
| | | }, |
| | | onLoad(res) { |
| | | this.range = config.AreaId; |
| | | this.rangethree = config.AcrossFloor; |
| | | }, |
| | | methods: { |
| | | onClickItem(e) { |
| | |
| | | this.SourceAddress = ""; |
| | | this.TargetAddress = ""; |
| | | this.AreaId = ""; |
| | | this.istrue = false; |
| | | } else { |
| | | this.$refs.luToast.show({ |
| | | title: res.message, |
| | | type: "error" |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | SendTask() { |
| | | if (this.PalletCode3.length <= 0 && this.SourceAddress3.length) { |
| | | this.$refs.luToast.show({ |
| | | title: "æçç¼ç è·ç»å®è´§ä½ä¸è½ä¸ºç©º", |
| | | type: "error" |
| | | }) |
| | | return; |
| | | } |
| | | var param = { |
| | | "PalletCode": this.PalletCode3, |
| | | "Position": this.SourceAddress3, |
| | | "AreaId": this.acrossFloor, |
| | | "DoubleTray":1, |
| | | } |
| | | this.$u.post('/api/Task/RequestInboundTaskAsync', param).then(res => { |
| | | if (res.status) { |
| | | this.$refs.luToast.show({ |
| | | title: res.message, |
| | | type: "success" |
| | | }) |
| | | this.PalletCode3 = ""; |
| | | this.SourceAddress3 = ""; |
| | | this.acrossFloor = ""; |
| | | this.istrue = false; |
| | | } else { |
| | | this.$refs.luToast.show({ |
| | |
| | | var param = { |
| | | "PalletCode": this.PalletCode3, |
| | | } |
| | | this.$u.post('/api/StockInfo/DeleteGroupPlateAsync', param).then(res => { |
| | | this.$u.post('/api/BoxingInfo/DeleteGroupPlateAsync', param).then(res => { |
| | | if (res.status) { |
| | | this.$refs.luToast.show({ |
| | | title: res.message, |