yangfeng
2023-08-28 c34ac626594536c011d14798277fb118a2d28803
src/views/supplierManage/supplier/AddSupplier.vue
@@ -203,10 +203,16 @@
</template>
<script>
import { createSupplier, createContract, updateSupplier, getIndustryList } from "@/api/supplierManage/supplier"
import {
  createSupplier,
  createContract,
  updateSupplier,
  getIndustryList,
  previewContract
} from "@/api/supplierManage/supplier"
import EditDropdownDialog from "@/views/other/commonDialog/EditDropdownDialog"
import { getSupplierTypeList } from "@/api/supplierManage/supplier"
import { getMemberList } from "@/api/common/other"
import { getMemberListFromGrpc } from "@/api/common/other"
export default {
  name: "AddSupplierDialog",
  props: {
@@ -265,11 +271,14 @@
    this.getSupplierTypeList()
    this.getIndustryList()
    this.getMemberList()
    if (this.editConfig.title === "修改") {
      this.previewContract()
    }
  },
  methods: {
    // 销售负责人
    async getMemberList() {
      await getMemberList({
      await getMemberListFromGrpc({
        page: 1,
        pageSize: 100
      }).then((res) => {
@@ -295,6 +304,14 @@
        this.industryOptions = res.data.data.list
      })
    },
    // 合同附件信息
    async previewContract() {
      await previewContract({
        id: 1
      }).then((res) => {
        console.log(res.data)
      })
    },
    handleClose() {
      this.editConfig.visible = false
    },