|
|
@ -154,7 +154,11 @@ |
|
|
|
<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"> |
|
|
|
{{getUomLabel(scope.row.uom)}} |
|
|
|
</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 +184,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,9 +594,13 @@ const blurThree = (oneRow, twoRow, thereeRow) => { |
|
|
|
}) |
|
|
|
twoRow.qtyOne = num |
|
|
|
} |
|
|
|
const getUomLabel = (uom) =>{ |
|
|
|
return getStrDictOptions(DICT_TYPE.UOM)?.find(item=>item.value == uom)?.label |
|
|
|
} |
|
|
|
// 传递给父类 |
|
|
|
const emit = defineEmits(['submitForm']) |
|
|
|
defineExpose({ openLabel, dialogTableVisible, isLoading }) // 提供 open 方法,用于打开弹窗 |
|
|
|
|
|
|
|
</script> |
|
|
|
<style lang="scss" scoped> |
|
|
|
::v-deep .row-expand-cover td .el-table__expand-icon { |
|
|
|