Commit db780fc3 by zhangxw

调拨发货列表单位修改

1 parent 0bced492
...@@ -81,6 +81,7 @@ import shipmentDialog from './components/shipmentDialog.vue' ...@@ -81,6 +81,7 @@ import shipmentDialog from './components/shipmentDialog.vue'
import { mapState, mapActions } from 'vuex' import { mapState, mapActions } from 'vuex'
import RejectDialog from "./components/rejectDialog.vue" import RejectDialog from "./components/rejectDialog.vue"
import transferDetailDialog from '../components/transferDetailDialog.vue' import transferDetailDialog from '../components/transferDetailDialog.vue'
import { baseConfig } from "@/main"
export default { export default {
name: 'TransferShipment', name: 'TransferShipment',
components: { components: {
...@@ -181,7 +182,9 @@ export default { ...@@ -181,7 +182,9 @@ export default {
label: '调拨数量', label: '调拨数量',
prop: 'allocateNumber', prop: 'allocateNumber',
formatter: (cellValue) => { formatter: (cellValue) => {
return !((cellValue.allocateNumber ?? '') === '') ? `${cellValue.allocateNumber}${cellValue.conversionValue ? '米': '件'}` : '-' const qty = cellValue.allocateNumber ?? '-'
const unit = baseConfig.membraneTypeList.includes(cellValue.goodsType) ? '米' : '件'
return qty === '-' ? '-' : `${qty}${unit}`
} }
}, },
{ {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!