Jelajahi Sumber

feat(库存调拨): 添加对账状态筛选和展示功能

liujt 3 bulan lalu
induk
melakukan
27054700ac

+ 25 - 2
src/views/warehouseManagement/inventoryAllocation/components/inventory-search.vue

@@ -199,6 +199,24 @@
           ></el-input>
         </el-form-item>
       </el-col>
+      <el-col v-bind="styleResponsive ? { lg: 6, md: 12 } : { span: 6 }">
+        <el-form-item label="对账状态:" prop="isReconciliation">
+          <el-select
+            filterable
+            placeholder="请选择"
+            v-model="where.isReconciliation"
+            clearable
+            class="w100"
+          >
+            <el-option
+              v-for="item in isReconciliationOp"
+              :key="item.value"
+              :label="item.label"
+              :value="item.value"
+            ></el-option>
+          </el-select>
+        </el-form-item>
+      </el-col>
       <el-col v-bind="styleResponsive ? { lg: 18, md: 12 } : { span: 18 }">
         <div class="ele-form-actions">
           <el-button
@@ -241,7 +259,8 @@
         categoryName: '',
         categoryCode: '',
         targetWarehouse: '',
-        sourceWarehouse: ''
+        sourceWarehouse: '',
+        isReconciliation: ''
       };
       return {
         // 表单数据
@@ -265,7 +284,11 @@
             value: 2,
             label: '已完成'
           }
-        ]
+        ],
+        isReconciliationOp: [
+          { value: 0, label: '未对账' },
+          { value: 1, label: '已对账' },
+        ],
       };
     },
     computed: {

+ 14 - 0
src/views/warehouseManagement/inventoryAllocation/index.vue

@@ -116,6 +116,10 @@
         allocationType,
         groupName: '',
         saveLoading: false,
+        isReconciliationOp: [
+          { value: 0, label: '未对账' },
+          { value: 1, label: '已对账' },
+        ],
         inventoryDimensionOp: [{
           code: '1',
           label: '物品维度'
@@ -179,6 +183,16 @@
               )[0].label;
             }
           },
+          {
+            prop: 'isReconciliation',
+            label: '对账状态',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 110,
+            formatter: (_row, _column, cellValue) => {
+            return this.isReconciliationOp.find(item => item.value == cellValue)?.label || '';
+          }
+          },
           {
             prop: 'saleOrderNos',
             label: '销售订单号',