| | |
| | | <vol-box v-model="show" title="空æåºåº" :width="800" :height="600"> |
| | | <template #content> |
| | | <el-form ref="form" :model="form" label-width="90px"> |
| | | <el-form-item label="åºåºæ°é"> |
| | | <el-input type="text" v-model="this.form.remark"></el-input> |
| | | <el-form-item label="åºåºåºå:"> |
| | | <el-select v-model="locationType" placeholder="è¯·éæ©åºåºåºå"> |
| | | <el-option v-for="item in locationTypes" :key="item.locationType" :label="item.locationTypeDesc.toString()" :value="item.locationType"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-form ref="form" :model="form" label-width="90px"> |
| | | <el-form-item label="åºåºæ°é:"> |
| | | <el-select v-model="num" placeholder="è¯·éæ©åºåºæ°é"> |
| | | <el-option v-for="item in 6" :key="item" :label="item.toString()" :value="item"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-form> |
| | | </template> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | form: { |
| | | remark: '' |
| | | }, |
| | | palletCode: '', |
| | | show: false |
| | | num: 1, |
| | | show: false, |
| | | locationTypes: [], |
| | | locationType:"", |
| | | } |
| | | }, |
| | | methods: { |
| | | open(palletCode) { |
| | | open() { |
| | | this.show = true |
| | | this.palletCode = palletCode |
| | | this.getData(); |
| | | }, |
| | | submit() { |
| | | this.$emit('parentCall', ($vue) => { |
| | | console.log(this.form.remark, this.palletCode) |
| | | if ( |
| | | !this.palletCode || |
| | | this.palletCode == '' |
| | | ) { |
| | | this.$message.error('åæ°é误') |
| | | return |
| | | } |
| | | this.http.post(`/api/Task/OutBoundTaskAsync?palletCode=${this.palletCode}&remark=${this.form.remark}`, {}, 'æ°æ®å¤çä¸...') |
| | | this.http.post(`/api/Task/PalletOutboundTask?num=${this.num}&locationType=${this.locationType}`, {}, 'æ°æ®å¤çä¸...') |
| | | .then((x) => { |
| | | if (!x.status) { |
| | | this.$message.error(x.message) |
| | | } else { |
| | | console.log(x); |
| | | this.show = false |
| | | this.$Message.success(this.palletCode + 'åºåºæå') |
| | | this.$Message.success(x.message) |
| | | $vue.refresh(); |
| | | } |
| | | }) |
| | | }) |
| | | } |
| | | }, |
| | | |
| | | getData() { |
| | | this.http.post("api/LocationInfo/GetLocationTypes",null, "æ¥è¯¢ä¸") |
| | | .then((x) => { |
| | | this.locationTypes = x.data; |
| | | }) |
| | | }, |
| | | } |
| | | } |
| | | </script> |