emis-frontend/src/views/wms/wmsPlatform/view.vue
2023-11-27 16:29:42 +08:00

87 lines
2.6 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<div class="">
<el-row>
<el-button icon="el-icon-arrow-left" size="small" @click="backClick">返回</el-button>
<el-button size="small" @click="successOrder">操作</el-button>
</el-row>
<el-descriptions title="基本信息:" class="margin-top" :column="1" border>
<el-descriptions-item label="序号">{{ wmsPlatform.id }}</el-descriptions-item>
<el-descriptions-item label="月台代码">{{ wmsPlatform.platformCode }}</el-descriptions-item>
<el-descriptions-item label="月台名称">{{ wmsPlatform.platformName }}</el-descriptions-item>
<el-descriptions-item label="所属仓库">{{ wmsPlatform.warehouseId }}</el-descriptions-item>
<el-descriptions-item label="0-初始">{{ wmsPlatform.status }}</el-descriptions-item>
<el-descriptions-item label="备注">{{ wmsPlatform.remark }}</el-descriptions-item>
<el-descriptions-item label="租户ID">{{ wmsPlatform.tenantId }}</el-descriptions-item>
<el-descriptions-item label="删除标志(0代表存在">{{ wmsPlatform.delFlag }}</el-descriptions-item>
<el-descriptions-item label="创建者">{{ wmsPlatform.createBy }}</el-descriptions-item>
<el-descriptions-item label="创建时间">{{ wmsPlatform.createTime }}</el-descriptions-item>
<el-descriptions-item label="更新者">{{ wmsPlatform.updateBy }}</el-descriptions-item>
<el-descriptions-item label="更新时间">{{ wmsPlatform.updateTime }}</el-descriptions-item>
</el-descriptions>
</div>
</template>
<script>
import { getWmsPlatform } from "@/api/wms/wmsPlatform";
export default {
name: "wmsPlatform",
props:{
id:undefined
},
dicts: [],
data() {
return {
// 遮罩层
loading: true,
// 仓库月台表格数据
wmsPlatform: {}
};
},
created() {
this.initData();
},
watch: {
"id": {
handler (newValue, oldValue) {
this.id = newValue;
this.initData();
},
deep: true
}
},
methods: {
/** 查询仓库月台列表 */
initData() {
this.loading = true;
getWmsPlatform(this.id).then(response => {
this.wmsPlatform = response.data;
this.loading = false;
});
},
}
};
</script>
<style rel="stylesheet/scss" lang="scss">
.margin-top{
margin-top: 20px;
}
.el-descriptions-item__label.is-bordered-label {
min-width: 80px;
}
.printMeClass {
font-family: SimHei;
label {
font-weight: normal;
}
}
</style>