<template>
|
<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.palletCode" readonly></el-input>
|
</el-form-item>
|
<el-form-item label="出库站台" prop="TargetAddress">
|
<el-select v-model="form.TargetAddress" placeholder="请选择出库站台">
|
<el-option label="站台1" value="001-000-001" />
|
<el-option label="站台2" value="001-022-001" />
|
<el-option label="站台3" value="004-000-001" />
|
<el-option label="站台4" value="004-022-001" />
|
</el-select>
|
</el-form-item>
|
<el-form-item label="库区" prop="SCNo">
|
<el-select v-model="form.SCNo" placeholder="请选择库区">
|
<el-option label="正极库" value="SC01" />
|
<el-option label="负极库" value="SC02" />
|
</el-select>
|
</el-form-item>
|
</el-form>
|
</template>
|
<template #footer>
|
<div>
|
<el-button type="danger" size="small" plain @click="submit">
|
<i class="el-icon-check">出库</i>
|
</el-button>
|
<el-button size="small" type="primary" plain @click="() => {
|
this.show = false;
|
}
|
">
|
<i class="el-icon-close">关闭</i>
|
</el-button>
|
</div>
|
</template>
|
</vol-box>
|
</template>
|
|
<script>
|
import VolBox from "@/components/basic/VolBox.vue";
|
export default {
|
components: {
|
"vol-box": VolBox,
|
},
|
data() {
|
return {
|
form:{
|
TargetAddress:"",
|
locationID:"",
|
SCNo:"",
|
palletCode:""
|
},
|
show: false,
|
};
|
},
|
methods: {
|
open(locationID,palletCode) {
|
this.show = true;
|
this.form.locationID=locationID;
|
this.form.palletCode=palletCode;
|
},
|
submit() {
|
this.$emit("parentCall", ($vue) => {
|
if (
|
!this.form.TargetAddress ||
|
!this.form.locationID ||
|
!this.form.SCNo ||
|
this.form.TargetAddress==""||
|
this.form.locationID==""||
|
this.form.SCNo==""
|
) {
|
this.$message.error("参数错误");
|
return;
|
}
|
this.http.post("api/Dt_LocationInfo/HandOutbound", this.form, "").then((x) => {
|
if (!x.status) {
|
this.$message.error(x.message);
|
} else {
|
this.$Message.success("新建出库任务");
|
// $vue.success("成功.");
|
this.show = false;
|
$vue.refresh();
|
}
|
});
|
});
|
},
|
},
|
|
};
|
</script>
|