销售线索动态显示联系人信息,隐藏收款计划,销售机会缺失字段添加
| | |
| | | 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({ |
| | |
| | | } |
| | | }) |
| | | }, |
| | | getContactFilter({commit},newData){ |
| | | commit("contactNameList", newData) |
| | | }, |
| | | geChance(context) { |
| | | getSaleChanceList().then((res) => { |
| | | if (res.code == 200) { |
| | |
| | | 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], |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | ...mapActions (['getContactFilter']), |
| | | formInfo(){ |
| | | this.objCode.type='跟进记录编码' |
| | | this.objCode.codeStandID = '' |
| | |
| | | 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 |
| | |
| | | }, |
| | | { |
| | | leftStr: "详细地址", |
| | | leftValue: "", |
| | | leftValue: item.detail_address, |
| | | rightStr: "", |
| | | rightValue: "" |
| | | } |
| | |
| | | <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> |