update
This commit is contained in:
parent
4d40132a02
commit
a4b674ccee
@ -1,5 +1,5 @@
|
||||
NODE_ENV = 'development'
|
||||
|
||||
VITE_APP_BASE_URL = 'https://ceshi-engineering.lihaink.cn/'
|
||||
# VITE_APP_BASE_URL = 'http://www.eng.local/'
|
||||
# VITE_APP_BASE_URL = 'https://ceshi-engineering.lihaink.cn/'
|
||||
VITE_APP_BASE_URL = 'http://www.eng.local/'
|
||||
# VITE_APP_BASE_URL = 'http://192.168.1.5:9090/'
|
@ -1,26 +1,30 @@
|
||||
import request from '@/utils/request'
|
||||
import request from "@/utils/request";
|
||||
|
||||
// 项目合同列表
|
||||
export function apiContractLists(params: any) {
|
||||
return request.get({ url: '/contract.contract/lists', params })
|
||||
return request.get({ url: "/contract.contract/lists", params });
|
||||
}
|
||||
|
||||
// 添加项目合同
|
||||
export function apiContractAdd(params: any) {
|
||||
return request.post({ url: '/contract.contract/add', params })
|
||||
return request.post({ url: "/contract.contract/add", params });
|
||||
}
|
||||
|
||||
// 编辑项目合同
|
||||
export function apiContractEdit(params: any) {
|
||||
return request.post({ url: '/contract.contract/edit', params })
|
||||
return request.post({ url: "/contract.contract/edit", params });
|
||||
}
|
||||
|
||||
// 删除项目合同
|
||||
export function apiContractDelete(params: any) {
|
||||
return request.post({ url: '/contract.contract/delete', params })
|
||||
return request.post({ url: "/contract.contract/delete", params });
|
||||
}
|
||||
|
||||
// 项目合同详情
|
||||
export function apiContractDetail(params: any) {
|
||||
return request.get({ url: '/contract.contract/detail', params })
|
||||
}
|
||||
return request.get({ url: "/contract.contract/detail", params });
|
||||
}
|
||||
|
||||
export function apiContractSearch(params: any) {
|
||||
return request.get({ url: "/contract.contract/datas", params });
|
||||
}
|
||||
|
@ -23,4 +23,8 @@ export function apiCustomDelete(params: any) {
|
||||
// 客户表详情
|
||||
export function apiCustomDetail(params: any) {
|
||||
return request.get({ url: '/custom.custom/detail', params })
|
||||
}
|
||||
|
||||
export function apiCustomSearch(params: any) {
|
||||
return request.get({ url: "/custom.custom/datas", params });
|
||||
}
|
@ -1,26 +1,26 @@
|
||||
import request from '@/utils/request'
|
||||
import request from "@/utils/request";
|
||||
|
||||
// 客户联系人列表
|
||||
export function apiCustomContactsLists(params: any) {
|
||||
return request.get({ url: '/custom.custom_contacts/lists', params })
|
||||
return request.get({ url: "/custom.custom_contacts/lists", params });
|
||||
}
|
||||
|
||||
// 添加客户联系人
|
||||
export function apiCustomContactsAdd(params: any) {
|
||||
return request.post({ url: '/custom.custom_contacts/add', params })
|
||||
return request.post({ url: "/custom.custom_contacts/add", params });
|
||||
}
|
||||
|
||||
// 编辑客户联系人
|
||||
export function apiCustomContactsEdit(params: any) {
|
||||
return request.post({ url: '/custom.custom_contacts/edit', params })
|
||||
return request.post({ url: "/custom.custom_contacts/edit", params });
|
||||
}
|
||||
|
||||
// 删除客户联系人
|
||||
export function apiCustomContactsDelete(params: any) {
|
||||
return request.post({ url: '/custom.custom_contacts/delete', params })
|
||||
return request.post({ url: "/custom.custom_contacts/delete", params });
|
||||
}
|
||||
|
||||
// 客户联系人详情
|
||||
export function apiCustomContactsDetail(params: any) {
|
||||
return request.get({ url: '/custom.custom_contacts/detail', params })
|
||||
}
|
||||
return request.get({ url: "/custom.custom_contacts/detail", params });
|
||||
}
|
||||
|
@ -23,4 +23,8 @@ export function apiProjectDelete(params: any) {
|
||||
// 项目表详情
|
||||
export function apiProjectDetail(params: any) {
|
||||
return request.get({ url: '/project.project/detail', params })
|
||||
}
|
||||
|
||||
export function apiProjectSearch(params: any) {
|
||||
return request.get({ url: "/project.project/datas", params });
|
||||
}
|
@ -2,8 +2,8 @@
|
||||
<div>
|
||||
<el-card class="!border-none mb-4" shadow="never">
|
||||
<el-form class="mb-[-16px]" :model="queryParams" inline>
|
||||
<el-form-item label="客户名称" prop="name">
|
||||
<el-input class="w-[280px]" v-model="queryParams.custom_name" clearable placeholder="请输入客户名称" />
|
||||
<el-form-item label="所属客户" prop="custom_id">
|
||||
<selectRemote :formData="queryParams" model="custom_id" :api="apiCustomSearch" />
|
||||
</el-form-item>
|
||||
<el-form-item label="姓名" prop="name">
|
||||
<el-input class="w-[280px]" v-model="queryParams.name" clearable placeholder="请输入姓名" />
|
||||
@ -32,9 +32,9 @@
|
||||
<el-table :data="pager.lists" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" />
|
||||
<el-table-column label="序号" type="index" width="55" />
|
||||
<el-table-column label="所属客户" prop="custom_name" show-overflow-tooltip />
|
||||
<el-table-column label="组织" prop="org_name" show-overflow-tooltip />
|
||||
<el-table-column label="部门" prop="dept_name" show-overflow-tooltip />
|
||||
<el-table-column label="客户名称" prop="custom_name" show-overflow-tooltip />
|
||||
<el-table-column label="姓名" prop="name" show-overflow-tooltip />
|
||||
<el-table-column label="职位" prop="position" show-overflow-tooltip />
|
||||
<el-table-column label="手机" prop="phone" show-overflow-tooltip />
|
||||
@ -72,7 +72,7 @@
|
||||
import { usePaging } from '@/hooks/usePaging'
|
||||
import { useDictData } from '@/hooks/useDictOptions'
|
||||
import { apiCustomContactsLists, apiCustomContactsDelete, apiCustomContactsDetail } from '@/api/custom_contacts'
|
||||
import { timeFormat } from '@/utils/util'
|
||||
import { apiCustomSearch } from '@/api/custom'
|
||||
import feedback from '@/utils/feedback'
|
||||
import EditPopup from './edit.vue'
|
||||
import DetailPopup from './detail.vue'
|
||||
@ -85,7 +85,6 @@ const showDtail = ref(false)
|
||||
// 查询条件
|
||||
const queryParams = reactive({
|
||||
custom_id: '',
|
||||
custom_name: '',
|
||||
name: '',
|
||||
position: '',
|
||||
phone: '',
|
||||
@ -146,4 +145,3 @@ const handledetail = async (data: any) => {
|
||||
}
|
||||
getLists()
|
||||
</script>
|
||||
|
||||
|
@ -3,23 +3,19 @@
|
||||
<!-- <Statistics :list="list"></Statistics> -->
|
||||
<el-card class="!border-none mb-4" shadow="never">
|
||||
<el-form class="mb-[-16px]" :model="queryParams" inline>
|
||||
<el-form-item label="所属客户" prop="custom_id">
|
||||
<selectRemote :formData="queryParams" model="custom_id" :api="apiCustomSearch" />
|
||||
</el-form-item>
|
||||
<el-form-item label="主题" prop="name">
|
||||
<el-input class="w-[280px]" v-model="queryParams.name" clearable placeholder="请输入主题" />
|
||||
</el-form-item>
|
||||
<el-form-item label="客户名称" prop="custom_name">
|
||||
<el-input class="w-[280px]" v-model="queryParams.custom_name" clearable placeholder="请输入客户名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="联系人" prop="contacts">
|
||||
<el-input class="w-[280px]" v-model="queryParams.contacts" clearable placeholder="请输入联系人" />
|
||||
</el-form-item>
|
||||
<el-form-item label="执行人" prop="executor">
|
||||
<el-input class="w-[280px]" v-model="queryParams.executor" clearable placeholder="请输入执行人" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="类型" prop="types">
|
||||
<el-select class="w-[280px]" v-model="queryParams.types" clearable placeholder="请选择类型">
|
||||
<el-option label="全部" value=""></el-option>
|
||||
<el-option v-for="(item, index) in dictData.types" :key="index" :label="item.name"
|
||||
<el-option v-for="(item, index) in dictData.follow_type" :key="index" :label="item.name"
|
||||
:value="item.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@ -45,11 +41,10 @@
|
||||
<el-table :data="pager.lists" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" />
|
||||
<el-table-column label="序号" type="index" width="55" />
|
||||
<el-table-column label="所属客户" prop="custom_name" show-overflow-tooltip />
|
||||
<el-table-column label="跟进主题" prop="name" show-overflow-tooltip />
|
||||
<el-table-column label="客户名称" prop="custom_name" show-overflow-tooltip />
|
||||
<el-table-column label="联系人" prop="custom_master_name" show-overflow-tooltip />
|
||||
<el-table-column label="日期" prop="date" show-overflow-tooltip />
|
||||
|
||||
<el-table-column label="类型" prop="types">
|
||||
<template #default="{ row }">
|
||||
<dict-value :options="dictData.follow_type" :value="row.types" />
|
||||
@ -59,9 +54,6 @@
|
||||
<el-table-column label="行动描述" prop="description" show-overflow-tooltip />
|
||||
<el-table-column label="位置" prop="coordinate" show-overflow-tooltip />
|
||||
<el-table-column label="下次回访日期" prop="next_follow_date" show-overflow-tooltip />
|
||||
|
||||
|
||||
<!-- <el-table-column label="状态" prop="status" show-overflow-tooltip /> -->
|
||||
<el-table-column label="操作" width="160" fixed="right">
|
||||
<template #default="{ row }">
|
||||
<el-button v-perms="['custom_follow.custom_follow/edit']" type="primary" link
|
||||
@ -92,10 +84,9 @@
|
||||
import { usePaging } from '@/hooks/usePaging'
|
||||
import { useDictData } from '@/hooks/useDictOptions'
|
||||
import { apiCustomFollowLists, apiCustomFollowDelete, apiCustomFollowDetail } from '@/api/custom_follow'
|
||||
import { timeFormat } from '@/utils/util'
|
||||
import { apiCustomSearch } from '@/api/custom'
|
||||
import feedback from '@/utils/feedback'
|
||||
import EditPopup from './edit.vue'
|
||||
import Statistics from '@/components/statistics/index.vue'
|
||||
import DetailPopup from './detail.vue'
|
||||
const detailRef = shallowRef<InstanceType<typeof DetailPopup>>()
|
||||
const editRef = shallowRef<InstanceType<typeof EditPopup>>()
|
||||
@ -103,53 +94,11 @@ const editRef = shallowRef<InstanceType<typeof EditPopup>>()
|
||||
const showEdit = ref(false)
|
||||
|
||||
const showDtail = ref(false)
|
||||
const list = reactive([
|
||||
{
|
||||
name: "今日跟进",
|
||||
count: 1000,
|
||||
},
|
||||
{
|
||||
name: "电话",
|
||||
count: 1000,
|
||||
},
|
||||
{
|
||||
name: "上门",
|
||||
count: 1000,
|
||||
},
|
||||
{
|
||||
name: "来访接待",
|
||||
count: 1000,
|
||||
},
|
||||
{
|
||||
name: "会议",
|
||||
count: 1000,
|
||||
},
|
||||
|
||||
{
|
||||
name: "培训",
|
||||
count: 1000,
|
||||
},
|
||||
{
|
||||
name: "商务餐饮",
|
||||
count: 1000,
|
||||
},
|
||||
{
|
||||
name: "外出活动",
|
||||
count: 1000,
|
||||
},
|
||||
{
|
||||
name: "其它",
|
||||
count: 1000,
|
||||
},
|
||||
]);
|
||||
|
||||
|
||||
// 查询条件
|
||||
const queryParams = reactive({
|
||||
custom_id: '',
|
||||
name: '',
|
||||
custom_name: '',
|
||||
contacts: '',
|
||||
executor: '',
|
||||
date: '',
|
||||
types: '',
|
||||
|
@ -2,28 +2,20 @@
|
||||
<div>
|
||||
<el-card class="!border-none mb-4" shadow="never">
|
||||
<el-form class="mb-[-16px]" :model="queryParams" label-width="auto" inline>
|
||||
<el-form-item label="项目编码" prop="project_id">
|
||||
<!-- <el-select class="w-[280px]" v-model="queryParams.project_id" clearable placeholder="请选择项目">
|
||||
<el-option v-for="(item, index) in projectList" :key="index" :label="item.name"
|
||||
:value="parseInt(item.id)" />
|
||||
</el-select> -->
|
||||
<el-input class="w-[280px]" v-model="queryParams.project_code" clearable placeholder="请输入项目编码" />
|
||||
</el-form-item>
|
||||
<el-form-item label="客户名称">
|
||||
<!-- <el-select class="w-[280px]" v-model="queryParams.custom_id" clearable placeholder="请选择项目">
|
||||
<el-option v-for="(item, index) in customList" :key="index" :label="item.name"
|
||||
:value="parseInt(item.id)" />
|
||||
|
||||
</el-select> -->
|
||||
<el-input class="w-[280px]" v-model="queryParams.custom_name" clearable placeholder="请输入客户名称" />
|
||||
|
||||
</el-form-item>
|
||||
<el-form-item label="合同编码">
|
||||
<!-- <el-select class="w-[280px]" v-model="queryParams.project_id" clearable placeholder="请选择项目">
|
||||
<el-option v-for="(item, index) in projectList" :key="index" :label="item.name"
|
||||
:value="parseInt(item.id)" />
|
||||
</el-select> -->
|
||||
<el-input class="w-[280px]" v-model="queryParams.contract_code" clearable placeholder="请输入合同编码" />
|
||||
<el-form-item label="所属项目" prop="project_id">
|
||||
<selectRemote :formData="queryParams" model="project_id" :api="apiProjectSearch" />
|
||||
</el-form-item>
|
||||
<el-form-item label="关联合同" prop="contract_id">
|
||||
<selectRemote :formData="queryParams" model="contract_id" :api="apiContractSearch" />
|
||||
</el-form-item>
|
||||
<el-form-item label="投诉主题" prop="name">
|
||||
<el-input class="w-[280px]" v-model="queryParams.name" clearable placeholder="请输入投诉主题" />
|
||||
</el-form-item>
|
||||
<el-form-item label="接待人" prop="receiver">
|
||||
<el-input class="w-[280px]" v-model="queryParams.receiver" clearable placeholder="请输入接待人" />
|
||||
</el-form-item>
|
||||
<el-form-item label="紧急程度" prop="urgency">
|
||||
<el-select class="w-[280px]" v-model="queryParams.urgency" clearable placeholder="请选择紧急程度">
|
||||
@ -39,23 +31,12 @@
|
||||
:value="item.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="处理结果" prop="processing_result">
|
||||
<el-input class="w-[280px]" v-model="queryParams.processing_result" clearable
|
||||
placeholder="请输入处理结果" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="指定处理人" prop="processed_user">
|
||||
<el-input class="w-[280px]" v-model="queryParams.processed_user" clearable placeholder="请输入指定处理人" />
|
||||
</el-form-item>
|
||||
|
||||
|
||||
<el-form-item label="投诉主题" prop="name">
|
||||
<el-input class="w-[280px]" v-model="queryParams.name" clearable placeholder="请输入投诉主题" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="接待人" prop="receiver">
|
||||
<el-input class="w-[280px]" v-model="queryParams.receiver" clearable placeholder="请输入接待人" />
|
||||
<el-select class="w-[280px]" v-model="queryParams.processing_result" clearable placeholder="处理结果">
|
||||
<el-option label="全部" value=""></el-option>
|
||||
<el-option v-for="(item, index) in dictData.custom_service_solve_result" :key="index"
|
||||
:label="item.name" :value="item.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="resetPage">查询</el-button>
|
||||
@ -125,10 +106,8 @@
|
||||
import { usePaging } from '@/hooks/usePaging'
|
||||
import { useDictData } from '@/hooks/useDictOptions'
|
||||
import { apiCustomServiceLists, apiCustomServiceDetail } from '@/api/custom_service'
|
||||
import { timeFormat } from '@/utils/util'
|
||||
import feedback from '@/utils/feedback'
|
||||
import { apiProjectLists } from '@/api/project'
|
||||
import { apiCustomLists } from '@/api/custom'
|
||||
import { apiProjectSearch } from '@/api/project'
|
||||
import { apiContractSearch } from '@/api/contract'
|
||||
import EditPopup from './edit.vue'
|
||||
import HandlePopup from './handle.vue'
|
||||
import DetailPopup from './detail.vue'
|
||||
@ -139,12 +118,10 @@ const handleRef = shallowRef<InstanceType<typeof HandlePopup>>()
|
||||
const showEdit = ref(false)
|
||||
const showHandle = ref(false)
|
||||
const showDtail = ref(false)
|
||||
const projectList = ref([])
|
||||
const customList = ref([])
|
||||
|
||||
// 查询条件
|
||||
const queryParams = reactive({
|
||||
project_code: "",
|
||||
project_id: "",
|
||||
urgency: '',
|
||||
receiver: '',
|
||||
custom_name: "",
|
||||
@ -152,7 +129,7 @@ const queryParams = reactive({
|
||||
processed_user: '',
|
||||
processing_result: '',
|
||||
classification: '',
|
||||
contract_code: ""
|
||||
contract_id: "",
|
||||
})
|
||||
|
||||
// 选中数据
|
||||
@ -164,7 +141,7 @@ const handleSelectionChange = (val: any[]) => {
|
||||
}
|
||||
|
||||
// 获取字典数据
|
||||
const { dictData } = useDictData('classification,urgency,custom_service_solv_result,is_solve')
|
||||
const { dictData } = useDictData('classification,urgency,custom_service_solve_result,is_solve')
|
||||
|
||||
// 分页相关
|
||||
const { pager, getLists, resetParams, resetPage } = usePaging({
|
||||
@ -211,24 +188,6 @@ const handledetail = async (data: any) => {
|
||||
detailRef.value?.open()
|
||||
detailRef.value?.setFormData(res)
|
||||
}
|
||||
//获取项目列表
|
||||
|
||||
const projectlist = async () => {
|
||||
let res = await apiProjectLists({ page_no: 1, page_size: 9999 })
|
||||
projectList.value = res.lists
|
||||
|
||||
}
|
||||
|
||||
//获取客户列表
|
||||
|
||||
const customlist = async () => {
|
||||
let res = await apiCustomLists({ page_no: 1, page_size: 9999 })
|
||||
customList.value = res.lists
|
||||
|
||||
}
|
||||
|
||||
|
||||
customlist()
|
||||
projectlist()
|
||||
getLists()
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user