| | |
| | | // import request from "@/common/untils/request.js" |
| | | // import axios from "axios" |
| | | import axios from "axios" |
| | | |
| | | // 负责人 |
| | | export const getMemberList = async (data) => { |
| | | return await axios.get(`/api/m/getMemberList`, { |
| | | params: data |
| | | }) |
| | | } |
| | |
| | | </div> |
| | | <div class="business_scope"> |
| | | <div class="content-title">{{ "备注信息:" }}</div> |
| | | <div class="content-data">{{ record ? record : "--" }}</div> |
| | | <div class="content-data">{{ remark ? remark : "--" }}</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | record: "", // 最新进展 |
| | | noContactDays: 0, |
| | | newContactDays: "", |
| | | valueUrl: "" |
| | | valueUrl: "", |
| | | remark: this.commonDetail.infomation.remark |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | }, |
| | | { |
| | | leftStr: "产品类别", |
| | | leftValue: item.contact_name, |
| | | leftValue: item.productType, |
| | | rightStr: "供应商", |
| | | rightValue: item.contact_position |
| | | rightValue: item.supplier.name |
| | | }, |
| | | { |
| | | leftStr: "规格", |
| | | leftValue: item.contact_phone, |
| | | leftValue: item.specifications, |
| | | rightStr: "型号", |
| | | rightValue: "18513375588" |
| | | rightValue: item.modelNumber |
| | | }, |
| | | { |
| | | leftStr: "单位", |
| | | leftValue: item.sales_resources, |
| | | leftValue: item.unit, |
| | | rightStr: "价格", |
| | | rightValue: item.member_name |
| | | rightValue: item.purchasePrice |
| | | }, |
| | | { |
| | | leftStr: "最低库存", |
| | | leftValue: item.sales_resources, |
| | | leftValue: item.minimumStock, |
| | | rightStr: "最高库存", |
| | | rightValue: "" |
| | | rightValue: item.maximumStock |
| | | } |
| | | ] |
| | | }, |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="销售负责人" prop="responsiblePersonId"> |
| | | <el-form-item label="销售负责人" prop="responsiblePersonName"> |
| | | <!-- <el-input v-model="editConfig.infomation.responsiblePersonId"></el-input> --> |
| | | <el-select |
| | | v-model="editConfig.infomation.responsiblePersonId" |
| | | v-model="editConfig.infomation.responsiblePersonName" |
| | | placeholder="请选择" |
| | | size="mini" |
| | | style="width: 63%" |
| | | > |
| | | <el-option v-for="item in memberOptions" :key="item.id" :label="item.username" :value="item.id"> |
| | | <el-option |
| | | v-for="item in memberOptions" |
| | | :key="item.id" |
| | | :label="item.username" |
| | | :value="item.userName" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | import { createSupplier, createContract, updateSupplier, getIndustryList } from "@/api/supplierManage/supplier" |
| | | import EditDropdownDialog from "@/views/other/commonDialog/EditDropdownDialog" |
| | | import { getSupplierTypeList } from "@/api/supplierManage/supplier" |
| | | import { getMemberList } from "@/api/common/other" |
| | | export default { |
| | | name: "AddSupplierDialog", |
| | | props: { |
| | |
| | | created() { |
| | | this.getSupplierTypeList() |
| | | this.getIndustryList() |
| | | this.getMemberList() |
| | | }, |
| | | methods: { |
| | | // 销售负责人 |
| | | async getMemberList() { |
| | | await getMemberList({ |
| | | page: 1, |
| | | pageSize: 100 |
| | | }).then((res) => { |
| | | console.log(res) |
| | | this.memberOptions = res.data.data.list |
| | | }) |
| | | }, |
| | | // 供应商类型 |
| | | async getSupplierTypeList() { |
| | | await getSupplierTypeList({ |
| | |
| | | }, |
| | | { |
| | | leftStr: "供应商类型", |
| | | leftValue: item.contact_name, |
| | | leftValue: item.supplierType, |
| | | rightStr: "所属行业", |
| | | rightValue: item.contact_position |
| | | rightValue: item.industry |
| | | }, |
| | | { |
| | | leftStr: "联系人", |
| | | leftValue: item.contact_phone, |
| | | leftValue: item.contact, |
| | | rightStr: "联系电话", |
| | | rightValue: "18513375588" |
| | | rightValue: item.phone |
| | | }, |
| | | { |
| | | leftStr: "采购负责人", |
| | | leftValue: item.sales_resources, |
| | | leftValue: item.responsiblePersonName, |
| | | rightStr: "网址", |
| | | rightValue: item.member_name |
| | | rightValue: item.url |
| | | }, |
| | | { |
| | | leftStr: "邮箱", |
| | | leftValue: item.sales_resources, |
| | | leftValue: item.email, |
| | | rightStr: "", |
| | | rightValue: "" |
| | | } |