Kaynağa Gözat

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

liujt 6 ay önce
ebeveyn
işleme
0e6e59b5f2

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

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