haoxuan
2023-12-27 7924087566a4cbfc942b1d636b590edf4874efb0
库存信息请求接口增加限制条件
1个文件已修改
18 ■■■■■ 已修改文件
src/views/sales/salesDetails/index.vue 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sales/salesDetails/index.vue
@@ -477,14 +477,16 @@
      if (this.TabsIndex == 0||row.status==1) {
        this.productTableList.tableInfomation = row.products || []
      } else {
        this.loading = true
        await getProductInventoryInfo(row.number).then((res) => {
          this.productTableList.tableInfomation = res.data?.length > 0 ? res.data : []
          this.loading = false
        }).catch(() => {
          this.productTableList.tableInfomation = []
          this.loading = false
        })
        if(row.number){
          this.loading = true
          await getProductInventoryInfo(row.number).then((res) => {
            this.productTableList.tableInfomation = res.data?.length > 0 ? res.data : []
            this.loading = false
          }).catch(() => {
            this.productTableList.tableInfomation = []
            this.loading = false
          })
        }
      }
    },
    // 获取制造信息