Просмотр исходного кода

feat(库存分配): 添加订单类型筛选和显示功能

liujt 4 месяцев назад
Родитель
Сommit
0014a4a5b7

+ 1 - 0
src/views/warehouseManagement/inventoryAllocation/accountstatement/generateStatement.vue

@@ -52,6 +52,7 @@
     <orderListDialog
       ref="orderListDialogRef"
       @changeParent="getOrderInfo"
+      needProduces="4"
     ></orderListDialog>
   </ele-modal>
 </template>

+ 29 - 0
src/views/warehouseManagement/inventoryAllocation/accountstatement/orderListDialog.vue

@@ -58,6 +58,10 @@ export default {
       default: () => {
         return {};
       }
+    },
+    needProduces: {
+      type: String,
+      default: ''
     }
   },
   data() {
@@ -95,6 +99,28 @@ export default {
           showOverflowTooltip: true,
           minWidth: 200
         },
+        {
+          prop: 'needProduce',
+          label: '订单类型',
+          align: 'center',
+          showOverflowTooltip: true,
+          minWidth: 150,
+
+          formatter: (_row, _column, cellValue) => {
+            let businessType =
+              cellValue == 1
+                ? '有客户生产性订单'
+                : cellValue == 2
+                ? '无客户生产性订单'
+                : cellValue == 4
+                ? '不定向订单'
+                : cellValue == 5
+                ? '委外订单'
+                : '库存式订单';
+
+            return businessType;
+          }
+        },
         {
           prop: 'contractName',
           label: '合同名称',
@@ -196,6 +222,9 @@ export default {
       if (this.contactData.id) {
         where['contactId'] = this.contactData.id;
       }
+      if (this.needProduces) {
+        where['needProduces'] = this.needProduces;
+      }
       return getTableList({
         pageNum: page,
         size: limit,