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

fix(采购管理): 修复查询条件中planId和planIds的逻辑错误

liujt 6 месяцев назад
Родитель
Сommit
0e6e59b5f2
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      src/views/purchasingManage/inquiryManage/indexView.vue

+ 4 - 2
src/views/purchasingManage/inquiryManage/indexView.vue

@@ -205,10 +205,12 @@
       /* 表格数据源 */
       datasource({ page, limit, where, order }) {
         if (this.purchasePlanId) {
-          where['planId'] = this.purchasePlanId;
+          // where['planId'] = this.purchasePlanId;
+          where['planIds'] = this.purchasePlanId;
         }
+        console.log('where', where, this.sonPurchasePlanIds);
         if (this.sonPurchasePlanIds) {
-          where['planIds'] = this.sonPurchasePlanIds;
+          where['planIds'] = [...this.sonPurchasePlanIds, this.purchasePlanId];
         }
         return getTableList({
           pageNum: page,