|
|
@ -154,7 +154,9 @@ |
|
|
|
<el-table-column label="物料代码" width="150" prop="itemCode" align="center" /> |
|
|
|
<el-table-column label="批次" width="150" prop="batch" align="center" /> |
|
|
|
<el-table-column label="数量" width="100" prop="qty" align="center" /> |
|
|
|
<el-table-column label="计量单位" width="100" prop="uom" align="center" /> |
|
|
|
<el-table-column label="计量单位" width="100" prop="uom" align="center"> |
|
|
|
<template #default="scope"> {{ uomLabel(scope.row) }}</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="托个数" width="100" prop="allTuoQty" align="center" /> |
|
|
|
<el-table-column label="托规格" width="100" prop="secondPackUnit" align="center" /> |
|
|
|
<el-table-column label="托数量" width="100" prop="secondPackQty" align="center" /> |
|
|
@ -180,6 +182,7 @@ |
|
|
|
<script setup lang="ts"> |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import * as accuracyFun from '@/utils/calculate' |
|
|
|
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
|
const { t } = useI18n() // 国际化 |
|
|
|
|
|
|
@ -589,6 +592,12 @@ const blurThree = (oneRow, twoRow, thereeRow) => { |
|
|
|
}) |
|
|
|
twoRow.qtyOne = num |
|
|
|
} |
|
|
|
// 获取单位 |
|
|
|
const uomLabel = (row) => { |
|
|
|
const obj = getStrDictOptions(DICT_TYPE.UOM).find((item) => item.value == row.uom) |
|
|
|
return obj.label |
|
|
|
} |
|
|
|
|
|
|
|
// 传递给父类 |
|
|
|
const emit = defineEmits(['submitForm']) |
|
|
|
defineExpose({ openLabel, dialogTableVisible, isLoading }) // 提供 open 方法,用于打开弹窗 |
|
|
|