yangfeng
2023-08-26 ee63845014b83854ffed9fa04ad7545b7cccae74
销售负责人接口联调
4个文件已修改
67 ■■■■■ 已修改文件
src/api/common/other.js 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productManage/product/DetailProduct.vue 21 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/supplierManage/supplier/AddSupplier.vue 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/supplierManage/supplier/DetailSupplier.vue 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/common/other.js
@@ -1,2 +1,9 @@
// 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
  })
}
src/views/productManage/product/DetailProduct.vue
@@ -44,7 +44,7 @@
              </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>
@@ -81,7 +81,8 @@
      record: "", // 最新进展
      noContactDays: 0,
      newContactDays: "",
      valueUrl: ""
      valueUrl: "",
      remark: this.commonDetail.infomation.remark
    }
  },
  created() {
@@ -113,27 +114,27 @@
        },
        {
          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
        }
      ]
    },
src/views/supplierManage/supplier/AddSupplier.vue
@@ -91,15 +91,20 @@
                </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>
@@ -201,6 +206,7 @@
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: {
@@ -258,8 +264,19 @@
  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({
src/views/supplierManage/supplier/DetailSupplier.vue
@@ -139,25 +139,25 @@
        },
        {
          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: ""
        }