|
批号
|
生产日期
|
过期日期
@@ -66,13 +63,13 @@
|
{{ detail.areaName || '-' }}
|
-
+ |
{{ detail.batchNo || '-' }}
|
-
+ |
{{ formatNullableDate(detail.productionDate, 'YYYY-MM-DD') }}
|
-
+ |
{{ formatNullableDate(detail.expirationDate, 'YYYY-MM-DD') }}
|
@@ -101,7 +98,7 @@
import { formatNullableDate } from '@/utils/formatTime'
import { DICT_TYPE, getDictLabel } from '@/utils/dict'
import { ReceiptOrderApi, ReceiptOrderVO } from '@/api/wms/order/receipt'
-import { AREA_ENABLE, BATCH_ENABLE } from '@/views/wms/utils/config'
+import { AREA_ENABLE } from '@/views/wms/utils/config'
import { formatPrice, formatQuantity } from '@/views/wms/utils/format'
/** WMS 入库单打印 */
@@ -109,7 +106,7 @@ defineOptions({ name: 'WmsReceiptOrderPrint' })
const printData = ref({}) // 打印数据
const printButtonRef = ref() // 打印按钮
-const tableColumnCount = computed(() => 5 + (AREA_ENABLE ? 1 : 0) + (BATCH_ENABLE ? 3 : 0))
+const tableColumnCount = computed(() => 8 + (AREA_ENABLE ? 1 : 0))
const printObj = ref({
id: 'wmsReceiptOrderPrint',
popTitle: ' ',
diff --git a/src/views/wms/order/receipt/index.vue b/src/views/wms/order/receipt/index.vue
index aa05dbf26..2c8111069 100644
--- a/src/views/wms/order/receipt/index.vue
+++ b/src/views/wms/order/receipt/index.vue
@@ -244,14 +244,8 @@
min-width="140"
prop="areaName"
/>
-
-
+
+
生产日期:{{ formatNullableDate(detailScope.row.productionDate, 'YYYY-MM-DD') }}
@@ -428,7 +422,7 @@ import { ReceiptOrderApi, ReceiptOrderVO } from '@/api/wms/order/receipt'
import { ReceiptOrderDetailVO } from '@/api/wms/order/receipt/detail'
import MerchantSelect from '@/views/wms/md/merchant/components/MerchantSelect.vue'
import WarehouseSelect from '@/views/wms/md/warehouse/components/WarehouseSelect.vue'
-import { AREA_ENABLE, BATCH_ENABLE } from '@/views/wms/utils/config'
+import { AREA_ENABLE } from '@/views/wms/utils/config'
import {
OrderDeleteStatusList,
OrderStatusEnum,
diff --git a/src/views/wms/order/shipment/ShipmentOrderDetail.vue b/src/views/wms/order/shipment/ShipmentOrderDetail.vue
index ddc0c6a14..8ec9e682d 100644
--- a/src/views/wms/order/shipment/ShipmentOrderDetail.vue
+++ b/src/views/wms/order/shipment/ShipmentOrderDetail.vue
@@ -75,13 +75,13 @@
-
-
+
+
{{ formatNullableDate(scope.row.productionDate, 'YYYY-MM-DD') }}
-
+
{{ formatNullableDate(scope.row.expirationDate, 'YYYY-MM-DD') }}
@@ -112,7 +112,7 @@ import { formatNullableDate } from '@/utils/formatTime'
import { DICT_TYPE } from '@/utils/dict'
import { ShipmentOrderApi, ShipmentOrderVO } from '@/api/wms/order/shipment'
import { ShipmentOrderDetailVO } from '@/api/wms/order/shipment/detail'
-import { AREA_ENABLE, BATCH_ENABLE } from '@/views/wms/utils/config'
+import { AREA_ENABLE } from '@/views/wms/utils/config'
import {
formatPrice,
formatQuantity,
diff --git a/src/views/wms/order/shipment/ShipmentOrderForm.vue b/src/views/wms/order/shipment/ShipmentOrderForm.vue
index 90a3319d1..12478fb35 100644
--- a/src/views/wms/order/shipment/ShipmentOrderForm.vue
+++ b/src/views/wms/order/shipment/ShipmentOrderForm.vue
@@ -121,17 +121,17 @@
{{ scope.row.areaName || '-' }}
-
+
{{ scope.row.batchNo || '-' }}
-
+
{{ formatNullableDate(scope.row.productionDate, 'YYYY-MM-DD') }}
-
+
{{ formatNullableDate(scope.row.expirationDate, 'YYYY-MM-DD') }}
@@ -229,7 +229,7 @@ import MerchantSelect from '@/views/wms/md/merchant/components/MerchantSelect.vu
import WarehouseAreaSelect from '@/views/wms/md/warehouse/components/WarehouseAreaSelect.vue'
import WarehouseSelect from '@/views/wms/md/warehouse/components/WarehouseSelect.vue'
import { formatNullableDate } from '@/utils/formatTime'
-import { AREA_ENABLE, BATCH_ENABLE } from '@/views/wms/utils/config'
+import { AREA_ENABLE } from '@/views/wms/utils/config'
import { OrderStatusEnum, OrderUpdateStatusList } from '@/views/wms/utils/constants'
import {
formatQuantity,
@@ -320,7 +320,6 @@ const buildDetail = (inventory: InventorySelectRow): ShipmentOrderDetailVO => ({
skuId: inventory.skuId,
skuCode: inventory.skuCode,
skuName: inventory.skuName,
- inventoryDetailId: inventory.inventoryDetailId,
warehouseId: inventory.warehouseId,
warehouseName: inventory.warehouseName,
areaId: inventory.areaId,
@@ -357,9 +356,6 @@ const handleSelectInventory = (inventories: InventorySelectRow[]) => {
/** 判断库存是否已选择 */
const isInventorySelected = (inventory: InventorySelectRow) => {
return (formData.value.details || []).some((detail) => {
- if (BATCH_ENABLE) {
- return detail.inventoryDetailId === inventory.inventoryDetailId
- }
return (
detail.skuId === inventory.skuId &&
detail.warehouseId === inventory.warehouseId &&
diff --git a/src/views/wms/order/shipment/ShipmentOrderPrint.vue b/src/views/wms/order/shipment/ShipmentOrderPrint.vue
index ce3e39052..da2310510 100644
--- a/src/views/wms/order/shipment/ShipmentOrderPrint.vue
+++ b/src/views/wms/order/shipment/ShipmentOrderPrint.vue
@@ -31,19 +31,16 @@
库区
批号
|
生产日期
|
过期日期
@@ -66,13 +63,13 @@
|
{{ detail.areaName || '-' }}
|
-
+ |
{{ detail.batchNo || '-' }}
|
-
+ |
{{ formatNullableDate(detail.productionDate, 'YYYY-MM-DD') }}
|
-
+ |
{{ formatNullableDate(detail.expirationDate, 'YYYY-MM-DD') }}
|
@@ -101,7 +98,7 @@
import { formatNullableDate } from '@/utils/formatTime'
import { DICT_TYPE, getDictLabel } from '@/utils/dict'
import { ShipmentOrderApi, ShipmentOrderVO } from '@/api/wms/order/shipment'
-import { AREA_ENABLE, BATCH_ENABLE } from '@/views/wms/utils/config'
+import { AREA_ENABLE } from '@/views/wms/utils/config'
import { formatPrice, formatQuantity } from '@/views/wms/utils/format'
/** WMS 出库单打印 */
@@ -109,7 +106,7 @@ defineOptions({ name: 'WmsShipmentOrderPrint' })
const printData = ref({}) // 打印数据
const printButtonRef = ref() // 打印按钮
-const tableColumnCount = computed(() => 5 + (AREA_ENABLE ? 1 : 0) + (BATCH_ENABLE ? 3 : 0))
+const tableColumnCount = computed(() => 8 + (AREA_ENABLE ? 1 : 0))
const printObj = ref({
id: 'wmsShipmentOrderPrint',
popTitle: ' ',
diff --git a/src/views/wms/order/shipment/index.vue b/src/views/wms/order/shipment/index.vue
index 289405f22..3a8587e19 100644
--- a/src/views/wms/order/shipment/index.vue
+++ b/src/views/wms/order/shipment/index.vue
@@ -244,14 +244,8 @@
min-width="140"
prop="areaName"
/>
-
-
+
+
生产日期:{{ formatNullableDate(detailScope.row.productionDate, 'YYYY-MM-DD') }}
@@ -428,7 +422,7 @@ import { ShipmentOrderApi, ShipmentOrderVO } from '@/api/wms/order/shipment'
import { ShipmentOrderDetailVO } from '@/api/wms/order/shipment/detail'
import MerchantSelect from '@/views/wms/md/merchant/components/MerchantSelect.vue'
import WarehouseSelect from '@/views/wms/md/warehouse/components/WarehouseSelect.vue'
-import { AREA_ENABLE, BATCH_ENABLE } from '@/views/wms/utils/config'
+import { AREA_ENABLE } from '@/views/wms/utils/config'
import {
OrderDeleteStatusList,
OrderStatusEnum,
diff --git a/src/views/wms/utils/config.ts b/src/views/wms/utils/config.ts
index 7a6f79260..96ccf0cdc 100644
--- a/src/views/wms/utils/config.ts
+++ b/src/views/wms/utils/config.ts
@@ -8,10 +8,3 @@
/** 是否启用库区模式(对齐 yudao.wms.area-enable) */
export const AREA_ENABLE = true
-
-/**
- * 是否启用批次/效期/库存明细模式(对齐 yudao.wms.batch-enable)
- *
- * 依赖 AREA_ENABLE = true
- */
-export const BATCH_ENABLE = true
| |