| | |
| | | import axios from "axios" |
| | | |
| | | // 负责人 |
| | | export const getMemberList = async (data) => { |
| | | return await axios.get(`/api/m/getMemberList`, { |
| | | export const getMemberListFromGrpc = async (data) => { |
| | | return await axios.get(`/api/m/getMemberListFromGrpc`, { |
| | | params: data |
| | | }) |
| | | } |
| | |
| | | data |
| | | }) |
| | | } |
| | | // 预览合同 |
| | | export const previewContract = async (data) => { |
| | | return await axios.get(`/api/con/previewContract`, { |
| | | params: data |
| | | }) |
| | | } |
| | | |
| | | // 更新所属行业 |
| | | export function updateIndustry(data) { |
| | |
| | | </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 |
| | | }, |
| | |
| | | this.dynamicInfoList = [ |
| | | { |
| | | leftStr: "户名", |
| | | leftValue: this.noContactDays, |
| | | leftValue: this.accountName, |
| | | rightStr: "开户行", |
| | | rightValue: this.newContactDays |
| | | rightValue: this.bank |
| | | }, |
| | | { |
| | | leftStr: "账号", |
| | | leftValue: "", |
| | | leftValue: item.account, |
| | | rightStr: "", |
| | | rightValue: "" |
| | | } |
| | |
| | | selCommonClick(row) { |
| | | console.log(row) |
| | | this.commonDetail.visible = true |
| | | this.commonDetail.infomation = { ...row } |
| | | this.commonDetail.infomation = { ...row.supplier } |
| | | } |
| | | } |
| | | } |