yangfeng
2023-11-03 0d1de72422f706518603634778bb8dd32a3721a0
重新订购搜索修改
1个文件已修改
14 ■■■■ 已修改文件
src/views/operate/orderPoint/index.vue 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/orderPoint/index.vue
@@ -7,9 +7,11 @@
        :show-apply="false"
        :placeholder="'请输入位置/产品'"
        :amount-view="false"
        :search-task-map="searchTaskMap"
        @addCommonClick="addProductClick"
        @searchClick="getList"
        @discardBtnClick="discardBtnClick"
        @delSelectClick="delSelectClick"
      />
    </div>
    <div class="content_wrap">
@@ -136,11 +138,14 @@
      maxInventory: 0,
      orderNumber: 0,
      unit: "",
      reorderId: 0
      reorderId: 0,
      searchTaskMap: [],
      type: "bh"
    }
  },
  created() {
    this.setTable()
    this.searchTaskMap = [{ type: this.type, title: "重新订购" }]
    this.getData()
    this.getLocationList()
  },
@@ -167,7 +172,7 @@
    async getData(data) {
      await getReorderRuleList({
        locationId: data?.id,
        type: "bh",
        type: this.type,
        keyWord: data?.jointName,
        page: this.pagerOptions.currPage,
        pageSize: this.pagerOptions.pageSize
@@ -401,6 +406,11 @@
        ]
        console.log(res, "res666")
      })
    },
    // 删除type
    delSelectClick() {
      this.type = ""
      this.getData()
    }
  }
}