zy 2025-05-01 17:34:42 +08:00
commit f5f0249b42
5 changed files with 34 additions and 8 deletions

View File

@ -4,7 +4,7 @@ NODE_ENV=production
VITE_DEV=false
# 请求路径
VITE_BASE_URL='http://localhost:48080'
VITE_BASE_URL='http://172.22.3.168:48080'
# 文件上传类型server - 后端上传, client - 前端直连上传仅支持S3服务
VITE_UPLOAD_TYPE=server

View File

@ -34,7 +34,8 @@ export enum BizTypeEnum {
CRM_CONTRACT = 5, // 合同
CRM_PRODUCT = 6, // 产品
CRM_RECEIVABLE = 7, // 回款
CRM_RECEIVABLE_PLAN = 8 // 回款计划
CRM_RECEIVABLE_PLAN = 8, // 回款计划
CRM_QUOTATION = 9 // 报价
}
/**

View File

@ -42,7 +42,7 @@
<div class="form-scroll-area">
<el-scrollbar>
<el-row>
<el-col :span="20" class="!flex !flex-col formCol">
<el-col :span="17" class="!flex !flex-col formCol">
<!-- 表单信息 -->
<div
v-loading="processInstanceLoading"
@ -63,7 +63,7 @@
</div>
</div>
</el-col>
<el-col :span="4">
<el-col :span="7">
<!-- 审批记录时间线 -->
<ProcessInstanceTimeline :activity-nodes="activityNodes" />
</el-col>
@ -238,7 +238,7 @@ const getApprovalDetail = async () => {
})
} else {
// data.processDefinition.formCustomViewPath /crm/contract/detail/index.vue
BusinessFormComponent.value = registerComponent(data.processDefinition.formCustomViewPath)
BusinessFormComponent.value = registerComponent('data.processDefinition.formCustomViewPath')
}
// Timeline

View File

@ -14,11 +14,11 @@
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="负责人" prop="ownerUserId">
<el-form-item label="线索拓展人" prop="ownerUserId">
<el-select
v-model="formData.ownerUserId"
disabled
placeholder="请选择负责人"
placeholder="请选择线索拓展人"
class="w-1/1"
>
<el-option
@ -55,6 +55,7 @@
:disabled="formData.customerDefault || type"
v-model="formData.customerId"
clearable
filterable
placeholder="请选择客户"
class="w-1/1"
>

View File

@ -84,8 +84,19 @@
<!-- 列表 -->
<ContentWrap>
<el-tabs v-model="activeName" @tab-click="handleTabClick">
<el-tab-pane label="我负责的" name="1" />
<el-tab-pane label="我参与的" name="2" />
<el-tab-pane label="下属负责的" name="3" />
</el-tabs>
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
<el-table-column label="报价单编号" align="center" prop="no" width="200" />
<el-table-column label="报价单编号" align="center" prop="no" width="200" >
<template #default="scope">
<el-link :underline="false" type="primary" @click="openDetail(scope.row.id)">
{{ scope.row.no }}
</el-link>
</template>
</el-table-column>
<el-table-column label="客户名称" align="center" prop="customerId" width="220">
<template #default="scope">
<!-- <el-link
@ -205,6 +216,7 @@ import { QuotationApi, QuotationVO } from '@/api/crm/quotation'
import * as CustomerApi from '@/api/crm/customer'
import * as UserApi from '@/api/system/user'
import * as DeptApi from '@/api/system/dept'
import { TabsPaneContext } from 'element-plus'
import { checkPermi } from '@/utils/permission'
/** CRM 方案报价 列表 */
@ -224,6 +236,7 @@ const queryParams = reactive({
pageNo: 1,
pageSize: 10,
no: undefined,
sceneType: '1', // activeName
customerId: undefined,
ownerUserId: undefined,
partnerCompanyId: undefined,
@ -231,6 +244,7 @@ const queryParams = reactive({
})
const queryFormRef = ref() //
const exportLoading = ref(false) //
const activeName = ref('1') // tab
/** 查询列表 */
const getList = async () => {
@ -250,12 +264,22 @@ const handleQuery = () => {
getList()
}
const openDetail = (id: number) => {
push({ name: 'QuotationDetail', params: { id } })
}
/** 重置按钮操作 */
const resetQuery = () => {
queryFormRef.value.resetFields()
handleQuery()
}
/** tab 切换 */
const handleTabClick = (tab: TabsPaneContext) => {
queryParams.sceneType = tab.paneName
handleQuery()
}
/** 添加/修改操作 */
const formRef = ref()
const openFormEdit = (row: Object) => {