zuozhengqing
2023-10-13 e6f552158fe95266179e0166e1ae9266c889da7e
销售线索动态显示联系人信息,隐藏收款计划,销售机会缺失字段添加
5个文件已修改
31 ■■■■ 已修改文件
src/api/common/payment.js 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/store/modules/getClientName.js 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/client/followupRecords/AddFollowupRecordsDialog.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sales/salesOpportunity/DetailOpportunity.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/service/serviceContract/DetailServiceContract.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/common/payment.js
@@ -1,12 +1,16 @@
import request from "@/common/untils/request.js"
import axios from "axios"
// 获取收款计划
export const getCollectionPlanList = async (data) => {
  return await axios.get(`/api/serviceCollectionPlan/list`, {
    params: data
export function getCollectionPlanList(data) {
  return request({
    url: "/api/serviceCollectionPlan/list",
    method: "post",
    data
  })
}
// 添加收款计划
export function addCollectionPlan(data) {
  return request({
src/store/modules/getClientName.js
@@ -84,6 +84,9 @@
        }
      })
    },
    getContactFilter({commit},newData){
      commit("contactNameList", newData)
    },
    geChance(context) {
      getSaleChanceList().then((res) => {
        if (res.code == 200) {
src/views/client/followupRecords/AddFollowupRecordsDialog.vue
@@ -340,6 +340,9 @@
import SelectChanceDialog from "@/views/other/commonDialog/SelectChanceDialog"
import SelectLeadDialog from "@/views/other/commonDialog/SelectLeadDialog"
import codeMixin from "./mixin/codeMixin";
import { getContactList } from "@/api/client/contacts"
import { mapActions  } from 'vuex';
export default {
  name: "AddFollowupRecordsDialog",
  mixins: [codeMixin],
@@ -450,6 +453,7 @@
    }
  },
  methods: {
    ...mapActions (['getContactFilter']),
    formInfo(){
      this.objCode.type='跟进记录编码'
      this.objCode.codeStandID = ''
@@ -566,10 +570,16 @@
        return state.name.toLowerCase().indexOf(queryString.toLowerCase()) === 0
      }
    },
    handleSelectClient(value, item) {
    async handleSelectClient(value, item) {
      if (value === "client") {
        this.clientId = item.id
        this.editConfig.infomation.client_name = item.name
        await getContactList({
          clientId:this.clientId
        }).then((res)=>{
          this.getContactFilter(res.data.list)
        })
        // console.log("clientId",this.clientId,this.editConfig.infomation.client_name)
      } else if (value === "contact") {
        this.contactId = item.id
        this.editConfig.infomation.contact_name = item.name
src/views/sales/salesOpportunity/DetailOpportunity.vue
@@ -504,7 +504,7 @@
        },
        {
          leftStr: "详细地址",
          leftValue: "",
          leftValue: item.detail_address,
          rightStr: "",
          rightValue: ""
        }
src/views/service/serviceContract/DetailServiceContract.vue
@@ -17,11 +17,11 @@
        <div class="tab-view">
          <el-tabs v-model="activeName" @tab-click="tabsClick">
            <el-tab-pane label="详情" name="first"></el-tab-pane>
            <el-tab-pane label="收款计划" name="collection">
            <!-- <el-tab-pane label="收款计划" name="collection"> -->
              <!-- <template slot="label">
                <div>跟进记录<el-badge type="primary" :value="2"> </el-badge></div>
              </template> -->
            </el-tab-pane>
            <!-- </el-tab-pane> -->
            <el-tab-pane label="收款单" name="receipt"></el-tab-pane>
            <el-tab-pane label="客户服务单" name="clientService"> </el-tab-pane>
            <el-tab-pane label="销售发票" name="invoice"></el-tab-pane>