Files
WMS/HHWMS.Web/Areas/Receipt/Views/ReceiptIn/Index.cshtml
T
zhougf 70e6866e20 现场初始调试完成,
入库(有货/空容器)
出库,库存出库
AGV任务对接
2024-04-24 10:51:58 +08:00

76 lines
1.8 KiB
Plaintext

<div id="receiptin">
<a-space direction="vertical" fill>
<a-space>
<template #split>
<a-divider direction="vertical"/>
</template>
<a-input :style="{width:'150px'}" placeholder="扫描箱号" v-model="ContainerCode" allow-clear/>
<a-switch v-model="inv">
<template #checked>
载货
</template>
<template #unchecked>
空箱
</template>
</a-switch>
</a-space>
<a-space>
<a-button @@click="handleClick"
:loading="loading1"
type="primary" size="large">
入库
</a-button>
</a-space>
</a-space>
</div>
<script>
const { createApp, reactive, ref } = Vue
const app = createApp({
data() {
return {
ContainerCode: '',
loading1:false,
inv:false,
data: reactive([])
}
},
methods: {
handleClick() {
var _this = this;
if (_this.ContainerCode == ""){
_this.$message.error("请扫描箱号!");
return;
}
_this.loading1 = !_this.loading1
let postData = new URLSearchParams();
postData.append('containerCode', _this.ContainerCode);
postData.append('inv', _this.inv);
axios.post("/receipt/ReceiptIn/TaskIn", postData)
.then(function (json) {
_this.loading1 = !_this.loading1;
if (json.data.Code == 200){
_this.ContainerCode = '';
_this.$message.success("入库任务创建成功!");
}
else{
_this.$message.error(json.data.Msg);
}
})
.catch(function (error) {
_this.$message.error(error);
});
}
}
});
app.use(ArcoVue)
.use(ArcoVueIcon)
.mount('#receiptin');
</script>