zuozhengqing
2023-10-23 e4dc63eeeb30bf97e1767eb1da49031216ed24ac
库存调整,库存调拨,api修改
4个文件已修改
20 ■■■■ 已修改文件
src/api/overview/overview.js 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/inventoryAdjustment/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/inventoryAdjustment/inventoryAdjustmentHistory.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/overview/AddOverviewDialog.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/overview/overview.js
@@ -3,6 +3,12 @@
// 查询业务类型列表
export const getOperationType = async (data) => {
  return await axios.get(`/api-wms/v1/operationType/operationType`, {
    params: data
  })
}
// 查询业务类型列表--内部调拨
export const getListTransfer = async (data) => {
  return await axios.get(`/api-wms/v1/operationType/listTransfer`, {
    params: data
  })
src/views/operate/inventoryAdjustment/index.vue
@@ -243,7 +243,7 @@
        console.log("历史")
        this.$router.push({
          name: "inventoryAdjustmentHistory",
          params: { locationId: row.locationId, productId: row.productId }
          params: { locationId: row.locationId, productId: row.productId,baseOperationType:row.baseOperationType}
        })
      }
    },
src/views/operate/inventoryAdjustment/inventoryAdjustmentHistory.vue
@@ -38,6 +38,7 @@
    this.setTable()
    this.locationId = this.$route.params.locationId
    this.productId = this.$route.params.productId
    this.baseOperationType=this.$route.params.baseOperationType
    this.getData()
  },
  methods: {
@@ -132,7 +133,8 @@
        locationId: this.locationId,
        page: this.pagerOptions.currPage,
        pageSize: this.pagerOptions.pageSize,
        productId: this.productId
        productId: this.productId,
        baseOperationType:this.baseOperationType
      }).then((res) => {
        if (res.code === 200) {
          const list = res.data.map((item) => {
src/views/overview/AddOverviewDialog.vue
@@ -275,7 +275,7 @@
  updateOperation,
  updateStatus,
  deleteOperation,
  getOperationType
  getListTransfer
} from "@/api/overview/overview"
import { getCompanyList } from "@/api/common/other"
export default {
@@ -357,7 +357,7 @@
    this.getLocationList()
    this.receiptType = this.editConfig.title === "查看" ? this.editConfig.infomation.operationTypeName : this.addName
    if (this.showOperationType) {
      this.getOperationType()
      this.getListTransfer()
    }
  },
  methods: {
@@ -384,8 +384,8 @@
      })
    },
    // 获取仓库类型
    async getOperationType() {
      await getOperationType({
    async getListTransfer() {
      await getListTransfer({
        keyword: "",
        page: 0,
        pageSize: 0