This commit is contained in:
xd 2024-03-18 20:34:41 +08:00
parent 8d2169d2bb
commit 581dc8e385
2 changed files with 269 additions and 250 deletions

View File

@ -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;
}
}
}

View File

@ -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'>