| | |
| | | </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: { |
| | |
| | | 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) => { |
| | |
| | | this.industryOptions = res.data.data.list |
| | | }) |
| | | }, |
| | | // 合同附件信息 |
| | | async previewContract() { |
| | | await previewContract({ |
| | | id: 1 |
| | | }).then((res) => { |
| | | console.log(res.data) |
| | | }) |
| | | }, |
| | | handleClose() { |
| | | this.editConfig.visible = false |
| | | }, |