Quellcode durchsuchen

宝时快上-区分是否退货上架

zhaohuanhuan vor 2 Tagen
Ursprung
Commit
aefda88778
2 geänderte Dateien mit 8 neuen und 0 gelöschten Zeilen
  1. 4 0
      src/types/haikang.ts
  2. 4 0
      src/views/inbound/putaway/task/index.vue

+ 4 - 0
src/types/haikang.ts

@@ -93,6 +93,10 @@ export interface getRecommendedLocationTypeNew {
    * 上架区域
    * 上架区域
    */
    */
   locationUse?: string;
   locationUse?: string;
+  /**
+   * 是否退货上架,挂装区时传,容器号含 TH- 为 true
+   */
+  returnPutaway?: boolean;
   /**
   /**
    * 库位类型名称,如 0.3-0.4-0.3
    * 库位类型名称,如 0.3-0.4-0.3
    */
    */

+ 4 - 0
src/views/inbound/putaway/task/index.vue

@@ -737,6 +737,10 @@ const _getRecommendedLocation = async (item, options = {}) => {
     const total = barcodeQuantity(barcodeActiveList.value)
     const total = barcodeQuantity(barcodeActiveList.value)
     const params = { warehouse, lotNum: lotNumber, owner, sku, qty: total, lotAtt08}
     const params = { warehouse, lotNum: lotNumber, owner, sku, qty: total, lotAtt08}
     if (locationType.value) params.locationUse = locationType.value
     if (locationType.value) params.locationUse = locationType.value
+    // 挂装区:根据容器号是否含 TH- 判断是否退货上架
+    if (locationType.value === 'HANGING') {
+      params.returnPutaway = containerNo.value?.includes('TH-') ?? false
+    }
     //换一换参数
     //换一换参数
     if (fromChangeLocation) {
     if (fromChangeLocation) {
       const { taskNo, businessNo, lotNum } = item
       const { taskNo, businessNo, lotNum } = item