Browse Source

供应商发货生成标签单位显示

hella_online_20240815
zhang_li 4 months ago
parent
commit
a4806d71eb
  1. 11
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue

11
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue

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

Loading…
Cancel
Save