|
|
@@ -337,7 +337,7 @@
|
|
|
:show-message="false"
|
|
|
>
|
|
|
<el-table
|
|
|
- ref="multipleTable"
|
|
|
+ ref="warehousingMaterialListTable"
|
|
|
:data="warehousingMaterialList"
|
|
|
tooltip-effect="dark"
|
|
|
style="width: 100%"
|
|
|
@@ -350,12 +350,14 @@
|
|
|
<el-table-column
|
|
|
label="编码"
|
|
|
prop="assetCode"
|
|
|
+ width="150"
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
></el-table-column>
|
|
|
-
|
|
|
<el-table-column
|
|
|
label="名称"
|
|
|
width="200"
|
|
|
prop="assetName"
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
></el-table-column>
|
|
|
|
|
|
<el-table-column
|
|
|
@@ -363,8 +365,9 @@
|
|
|
:key="index"
|
|
|
align="center"
|
|
|
:label="item.label"
|
|
|
- width="150"
|
|
|
+ :width="item.width"
|
|
|
:prop="item.prop"
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
>
|
|
|
<template slot-scope="{ row }">
|
|
|
<template v-if="item.formatter">{{
|
|
|
@@ -406,6 +409,7 @@
|
|
|
label="仓库"
|
|
|
width="300"
|
|
|
prop="pathName"
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
></el-table-column>
|
|
|
<!-- <el-table-column
|
|
|
label="出库数量"
|
|
|
@@ -430,7 +434,7 @@
|
|
|
</el-row>
|
|
|
</template>
|
|
|
</el-table-column> -->
|
|
|
- <el-table-column label="操作" width="200">
|
|
|
+ <el-table-column fixed="right" label="操作" width="200">
|
|
|
<template slot-scope="{ row, $index }">
|
|
|
<el-button type="text" @click="listDel(row, $index)"
|
|
|
>删除</el-button
|
|
|
@@ -480,8 +484,14 @@
|
|
|
:label="`编码`"
|
|
|
min-width="100"
|
|
|
prop="assetCode"
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
></el-table-column>
|
|
|
- <el-table-column label="名称" prop="name" width="200">
|
|
|
+ <el-table-column
|
|
|
+ label="名称"
|
|
|
+ prop="name"
|
|
|
+ width="200"
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
+ >
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column label="批次号" prop="batchNo">
|
|
|
@@ -491,14 +501,16 @@
|
|
|
label="包装编码"
|
|
|
min-width="100"
|
|
|
prop="onlyCode"
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
|
v-for="(item, index) in tableHeader"
|
|
|
:key="index"
|
|
|
align="center"
|
|
|
:label="item.label"
|
|
|
- width="150"
|
|
|
+ :width="item.width"
|
|
|
:prop="item.prop"
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
>
|
|
|
<template slot-scope="{ row }">
|
|
|
<template v-if="item.formatter">{{
|
|
|
@@ -511,6 +523,7 @@
|
|
|
label="物料编码"
|
|
|
width="250"
|
|
|
prop="no"
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
></el-table-column>
|
|
|
|
|
|
<!-- <el-table-column label="生产日期" width="200">
|
|
|
@@ -630,6 +643,7 @@
|
|
|
import eom from './components/eom.vue';
|
|
|
|
|
|
import BatchDetail from './components/batchDetail.vue';
|
|
|
+ import { watch } from 'ele-admin/lib/ele-pro-table';
|
|
|
export default {
|
|
|
components: {
|
|
|
BatchDetail,
|
|
|
@@ -1496,6 +1510,17 @@
|
|
|
this.formData.deptName = data?.name;
|
|
|
this.formData.deptCode = data?.code;
|
|
|
}
|
|
|
+ },
|
|
|
+ watch: {
|
|
|
+ // 解决右侧悬浮操作栏不对称问题
|
|
|
+ warehousingMaterialList: {
|
|
|
+ handler() {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.warehousingMaterialListTable.doLayout();
|
|
|
+ });
|
|
|
+ },
|
|
|
+ deep: true
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
</script>
|