mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-07-23 23:35:06 +08:00
crm:code review 商机类型
This commit is contained in:
@ -10,6 +10,7 @@
|
||||
<el-form-item label="商机名称" prop="name">
|
||||
<el-input v-model="formData.name" placeholder="请输入商机名称" />
|
||||
</el-form-item>
|
||||
<!-- TODO 芋艿:客户列表的组件 -->
|
||||
<el-form-item label="客户名称" prop="customerName">
|
||||
<el-popover
|
||||
placement="bottom"
|
||||
@ -78,12 +79,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="商机状态" prop="statusId">
|
||||
<el-select
|
||||
v-model="formData.statusId"
|
||||
placeholder="请选择商机状态"
|
||||
clearable
|
||||
size="small"
|
||||
>
|
||||
<el-select v-model="formData.statusId" placeholder="请选择商机状态" clearable size="small">
|
||||
<el-option
|
||||
v-for="item in businessStatusList"
|
||||
:key="item.id"
|
||||
@ -122,9 +118,9 @@
|
||||
<script setup lang="ts">
|
||||
import * as BusinessApi from '@/api/crm/business'
|
||||
import * as BusinessStatusTypeApi from '@/api/crm/businessStatusType'
|
||||
import * as CustomerApi from "@/api/crm/customer";
|
||||
import * as CustomerApi from '@/api/crm/customer'
|
||||
import { DICT_TYPE } from '@/utils/dict'
|
||||
import {ElTable} from "element-plus";
|
||||
import { ElTable } from 'element-plus'
|
||||
|
||||
const { t } = useI18n() // 国际化
|
||||
const message = useMessage() // 消息弹窗
|
||||
@ -233,10 +229,12 @@ const resetForm = () => {
|
||||
}
|
||||
formRef.value?.resetFields()
|
||||
}
|
||||
const changeBusinessStatusType = async (id) => {
|
||||
// 加载商机状态列表
|
||||
businessStatusList.value = await BusinessStatusTypeApi.getBusinessStatusListByTypeId(id)
|
||||
|
||||
/** 加载商机状态列表 */
|
||||
const changeBusinessStatusType = async (typeId: number) => {
|
||||
businessStatusList.value = await BusinessStatusTypeApi.getBusinessStatusListByTypeId(typeId)
|
||||
}
|
||||
|
||||
const queryParams = reactive({
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
|
Reference in New Issue
Block a user