songshankun
2023-11-03 cf6a4b874aed82592eea78294715c7c688f9b248
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: {
@@ -365,8 +365,8 @@
    async getCompanyList() {
      await getCompanyList().then((res) => {
        console.log(res)
        if (res.data.code === 200) {
          this.companyOptions = res.data.data
        if (res.code === 200) {
          this.companyOptions = res.data
        }
      })
    },
@@ -385,15 +385,15 @@
      })
    },
    // 获取仓库类型
    async getOperationType() {
      await getOperationType({
    async getListTransfer() {
      await getListTransfer({
        keyword: "",
        page: 0,
        pageSize: 0
      }).then((res) => {
        console.log(res.data.data)
        if (res.data.code === 200) {
          const list = res.data.data.map((item) => {
        console.log(res.data)
        if (res.code === 200) {
          const list = res.data.map((item) => {
            return {
              name: item.name,
              id: item.id