111
This commit is contained in:
parent
8d2169d2bb
commit
581dc8e385
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
|
||||
<div>
|
||||
<el-tabs v-model="activeName" @tab-click="handleClick" style="margin-left: 15px; margin-right: 15px;">
|
||||
<el-tab-pane label="库位查看" name="locationShow">
|
||||
<el-row :gutter="10" style="letter-spacing: 5px;">
|
||||
|
@ -21,7 +21,7 @@
|
|||
<template slot="label">
|
||||
库位
|
||||
</template>
|
||||
<span class="kw">{{item.materialBh}}</span>
|
||||
<el-link class="kw" :underline="false" type="primary" @click="operlogdialog(item.materialBh)">{{item.materialBh}}</el-link>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item :contentStyle='contentStyle' :labelStyle='labelStyle'>
|
||||
<template slot="label">
|
||||
|
@ -31,7 +31,7 @@
|
|||
<el-tag size="mini" type="success">空闲</el-tag>
|
||||
</span>
|
||||
<span v-if = "item.materialState=='1'">
|
||||
<el-tag size="mini" type="danger" @click="selectLocation(item)">占用</el-tag>
|
||||
<el-tag size="mini" type="danger" @click="selectLocation(item)">可用</el-tag>
|
||||
</span>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item :span="2" :contentStyle='contentStyle' :labelStyle='labelStyle'>
|
||||
|
@ -74,7 +74,7 @@
|
|||
<template slot="label">
|
||||
库位
|
||||
</template>
|
||||
<span class="kw">{{item.materialBh}}</span>
|
||||
<el-link class="kw" :underline="false" type="primary" @click="operlogdialog(item.materialBh)">{{item.materialBh}}</el-link>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item :contentStyle='contentStyle' :labelStyle='labelStyle'>
|
||||
<template slot="label">
|
||||
|
@ -84,7 +84,7 @@
|
|||
<el-tag size="mini" type="success">空闲</el-tag>
|
||||
</span>
|
||||
<span v-if = "item.materialState=='1'">
|
||||
<el-tag size="mini" type="danger" @click="selectLocation(item)">占用</el-tag>
|
||||
<el-tag size="mini" type="danger" @click="selectLocation(item)">可用</el-tag>
|
||||
</span>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item :span="2" :contentStyle='contentStyle' :labelStyle='labelStyle'>
|
||||
|
@ -127,7 +127,7 @@
|
|||
<template slot="label">
|
||||
库位
|
||||
</template>
|
||||
<span class="kw">{{item.materialBh}}</span>
|
||||
<el-link class="kw" :underline="false" type="primary" @click="operlogdialog(item.materialBh)">{{item.materialBh}}</el-link>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item :contentStyle='contentStyle' :labelStyle='labelStyle'>
|
||||
<template slot="label">
|
||||
|
@ -137,7 +137,7 @@
|
|||
<el-tag size="mini" type="success">空闲</el-tag>
|
||||
</span>
|
||||
<span v-if = "item.materialState=='1'">
|
||||
<el-tag size="mini" type="danger" @click="selectLocation(item)">占用</el-tag>
|
||||
<el-tag size="mini" type="danger" @click="selectLocation(item)">可用</el-tag>
|
||||
</span>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item :span="2" :contentStyle='contentStyle' :labelStyle='labelStyle'>
|
||||
|
@ -387,7 +387,11 @@
|
|||
</el-container>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
|
||||
<!-- 操作详情对话框 -->
|
||||
<el-dialog :title="operlogTitle" :visible.sync="operlogOpen" width="1000px" append-to-body>
|
||||
<operlog :materialBhProp="materialBhProp"></operlog>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
<style>
|
||||
/*库位号样式*/
|
||||
|
@ -436,9 +440,11 @@
|
|||
</style>
|
||||
<script>
|
||||
import { listStorageLocation, checkStorageLocation,clearLocationLyCacheKey, confirmStorageLocation } from "@/api/storageLocation/storageConsuming";
|
||||
import operlog from "@/views/storageLocation/operlog.vue";
|
||||
|
||||
export default {
|
||||
name: "locationConsuming.vue",
|
||||
components: {operlog},
|
||||
data() {
|
||||
return {
|
||||
activeName: 'locationShow',
|
||||
|
@ -473,6 +479,13 @@
|
|||
selMaterialDetailA:[],
|
||||
selMaterialDetailB:[],
|
||||
selMaterialDetailC:[],
|
||||
|
||||
// 操作记录弹出层标题
|
||||
operlogTitle: "",
|
||||
// 操作记录是否显示弹出层
|
||||
operlogOpen: false,
|
||||
materialBhProp: "",
|
||||
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
|
@ -700,6 +713,12 @@
|
|||
this.activeName = 'locationShow';
|
||||
this.getStorageLocation();
|
||||
});
|
||||
},
|
||||
//操作详情
|
||||
operlogdialog(materialBh){
|
||||
this.operlogTitle = "操作记录";
|
||||
this.operlogOpen = true;
|
||||
this.materialBhProp = materialBh;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
<el-tag size="mini" type="success" @click="openDialog(item)">空闲</el-tag>
|
||||
</span>
|
||||
<span v-if = "item.materialState=='1'">
|
||||
<el-tag size="mini" type="danger">占用</el-tag>
|
||||
<el-tag size="mini" type="danger">已用</el-tag>
|
||||
</span>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item :span="2" :contentStyle='contentStyle' :labelStyle='labelStyle'>
|
||||
|
@ -83,7 +83,7 @@
|
|||
<el-tag size="mini" type="success" @click="openDialog(item)">空闲</el-tag>
|
||||
</span>
|
||||
<span v-if = "item.materialState=='1'">
|
||||
<el-tag size="mini" type="danger">占用</el-tag>
|
||||
<el-tag size="mini" type="danger">已用</el-tag>
|
||||
</span>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item :span="2" :contentStyle='contentStyle' :labelStyle='labelStyle'>
|
||||
|
@ -136,7 +136,7 @@
|
|||
<el-tag size="mini" type="success" @click="openDialog(item)">空闲</el-tag>
|
||||
</span>
|
||||
<span v-if = "item.materialState=='1'">
|
||||
<el-tag size="mini" type="danger">占用</el-tag>
|
||||
<el-tag size="mini" type="danger">已用</el-tag>
|
||||
</span>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item :span="2" :contentStyle='contentStyle' :labelStyle='labelStyle'>
|
||||
|
|
Loading…
Reference in New Issue