yangfeng
2023-09-27 482c8fcf03bfbeddc843e4ea7fbb53c74485e2e5
出入库搜索去掉sourceNumber及bug修复
7个文件已修改
63 ■■■■■ 已修改文件
src/api/operate/inventoryAdjustment.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/makepager/FormBtnsView.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/router/index.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/allot/index.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/scrap/index.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/overview/OverviewListView.vue 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/reportForm/inboundOutboundDetail/index.vue 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/operate/inventoryAdjustment.js
@@ -25,3 +25,11 @@
    data
  })
}
// 上架规则获取位置和产品
export function getRuleList(data) {
  return request({
    url: "/api-wms/v1/locationProductAmount/getRuleList",
    method: "post",
    data
  })
}
src/components/makepager/FormBtnsView.vue
@@ -173,11 +173,5 @@
  .left_border {
    border-left: 1px solid #e9e9e9;
  }
  .no-cursor {
    cursor: no-drop;
  }
  .yes-cursor {
    cursor: pointer;
  }
}
</style>
src/router/index.js
@@ -113,8 +113,8 @@
    console.log(from, next)
    to.meta.title = to.params.name
    document.title = to.meta.title
  } else if (to.name === "inOutboundDetail") {
    to.meta.title = to.params.name + "/出入库明细"
  } else if (to.path === "/reportForm/inOutboundDetail" && to.params.name) {
    to.meta.title = "出入库明细"
    document.title = to.meta.title
  }
})
src/views/operate/allot/index.vue
@@ -213,8 +213,7 @@
      await getAllList({
        number: this.keyword,
        page: this.pagerOptions.currPage,
        pageSize: this.pagerOptions.pageSize,
        sourceNumber: this.keyword
        pageSize: this.pagerOptions.pageSize
      }).then((res) => {
        if (res.code === 200) {
          const list = res.data.map((item) => {
src/views/operate/scrap/index.vue
@@ -139,7 +139,6 @@
    async getData() {
      await getDisuseList({
        number: this.keyword,
        sourceNumber: this.keyword,
        page: this.pagerOptions.currPage,
        pageSize: this.pagerOptions.pageSize
      }).then((res) => {
src/views/overview/OverviewListView.vue
@@ -60,13 +60,27 @@
        infomation: {}
      },
      workType: this.$route.params.workType,
      keyword: ""
      keyword: "",
      params: {}
    }
  },
  created() {
    this.setTable()
    var paramsData = sessionStorage.getItem("paramsData")
    let params = {}
    if (paramsData) {
      params = JSON.parse(sessionStorage.getItem("paramsData"))
    } else {
      params = this.$route.params
      sessionStorage.setItem("paramsData", JSON.stringify(params))
    }
    this.params = params
    this.getData()
    console.log(this.$route.params.workType)
    // console.log(this.$route.params.workType)
  },
  // 页面销毁之前
  beforeDestroy() {
    sessionStorage.removeItem("paramsData")
  },
  methods: {
    setTable() {
@@ -182,10 +196,9 @@
    async getData() {
      await getOperation({
        number: this.keyword,
        operationTypeId: this.$route.params.id,
        operationTypeId: this.params.id,
        page: this.pagerOptions.currPage,
        pageSize: this.pagerOptions.pageSize,
        sourceNumber: this.keyword
        pageSize: this.pagerOptions.pageSize
      }).then((res) => {
        console.log(res.data)
        if (res.code === 200) {
src/views/reportForm/inboundOutboundDetail/index.vue
@@ -52,12 +52,22 @@
        title: "新建",
        infomation: {}
      },
      productId: this.$route.params.id,
      productName: this.$route.params.name
      params: {}
    }
  },
  created() {
    this.setTable()
    console.log(this.$route.params)
    var paramsData = sessionStorage.getItem("paramsList")
    let params = {}
    if (paramsData) {
      params = JSON.parse(sessionStorage.getItem("paramsList"))
    } else {
      params = this.$route.params
      sessionStorage.setItem("paramsList", JSON.stringify(params))
    }
    this.params = params
    console.log(this.params)
    this.getData()
  },
  methods: {
@@ -149,7 +159,7 @@
    // 请求数据
    async getData() {
      await getProductOperatonList({
        productId: this.productId,
        productId: this.params.id,
        page: this.pagerOptions.currPage,
        pageSize: this.pagerOptions.pageSize
      }).then((res) => {
@@ -159,7 +169,7 @@
              ...item,
              from: item.fromLocation.name,
              to: item.toLocation.name,
              productName: this.productName
              productName: this.params.name
            }
          })
          this.tableList.tableInfomation = list || []