This commit is contained in:
YunaiV 2023-10-24 20:12:39 +08:00
commit 6644a4d4a6
2 changed files with 2 additions and 128 deletions

View File

@ -7,28 +7,6 @@
label-width="100px"
v-loading="formLoading"
>
<el-form-item label="转化状态" prop="transformStatus">
<el-radio-group v-model="formData.transformStatus">
<el-radio
v-for="dict in getBoolDictOptions(DICT_TYPE.INFRA_BOOLEAN_STRING)"
:key="dict.value"
:label="dict.value"
>
{{ dict.label }}
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="跟进状态" prop="followUpStatus">
<el-radio-group v-model="formData.followUpStatus">
<el-radio
v-for="dict in getBoolDictOptions(DICT_TYPE.INFRA_BOOLEAN_STRING)"
:key="dict.value"
:label="dict.value"
>
{{ dict.label }}
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="线索名称" prop="name">
<el-input v-model="formData.name" placeholder="请输入线索名称" />
</el-form-item>
@ -80,8 +58,6 @@ const formLoading = ref(false) // 表单的加载中1修改时的数据加
const formType = ref('') // create - update -
const formData = ref({
id: undefined,
transformStatus: undefined,
followUpStatus: undefined,
name: undefined,
customerId: undefined,
contactNextTime: undefined,
@ -93,10 +69,8 @@ const formData = ref({
remark: undefined
})
const formRules = reactive({
transformStatus: [{ required: true, message: '转化状态不能为空', trigger: 'blur' }],
followUpStatus: [{ required: true, message: '跟进状态不能为空', trigger: 'blur' }],
name: [{ required: true, message: '线索名称不能为空', trigger: 'blur' }],
customerId: [{ required: true, message: '客户id不能为空', trigger: 'blur' }]
customerId: [{ required: true, message: '客户不能为空', trigger: 'blur' }]
})
const formRef = ref() // Ref
@ -148,8 +122,6 @@ const submitForm = async () => {
const resetForm = () => {
formData.value = {
id: undefined,
transformStatus: undefined,
followUpStatus: undefined,
name: undefined,
customerId: undefined,
contactNextTime: undefined,

View File

@ -8,36 +8,6 @@
:inline="true"
label-width="68px"
>
<el-form-item label="转化状态" prop="transformStatus">
<el-select
v-model="queryParams.transformStatus"
placeholder="请选择转化状态"
clearable
class="!w-240px"
>
<el-option
v-for="dict in getBoolDictOptions(DICT_TYPE.INFRA_BOOLEAN_STRING)"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="跟进状态" prop="followUpStatus">
<el-select
v-model="queryParams.followUpStatus"
placeholder="请选择跟进状态"
clearable
class="!w-240px"
>
<el-option
v-for="dict in getBoolDictOptions(DICT_TYPE.INFRA_BOOLEAN_STRING)"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="线索名称" prop="name">
<el-input
v-model="queryParams.name"
@ -47,26 +17,6 @@
class="!w-240px"
/>
</el-form-item>
<el-form-item label="客户id" prop="customerId">
<el-input
v-model="queryParams.customerId"
placeholder="请输入客户id"
clearable
@keyup.enter="handleQuery"
class="!w-240px"
/>
</el-form-item>
<el-form-item label="下次联系时间" prop="contactNextTime">
<el-date-picker
v-model="queryParams.contactNextTime"
value-format="YYYY-MM-DD HH:mm:ss"
type="daterange"
start-placeholder="开始日期"
end-placeholder="结束日期"
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
class="!w-240px"
/>
</el-form-item>
<el-form-item label="电话" prop="telephone">
<el-input
v-model="queryParams.telephone"
@ -85,46 +35,6 @@
class="!w-240px"
/>
</el-form-item>
<el-form-item label="地址" prop="address">
<el-input
v-model="queryParams.address"
placeholder="请输入地址"
clearable
@keyup.enter="handleQuery"
class="!w-240px"
/>
</el-form-item>
<el-form-item label="负责人" prop="ownerUserId">
<el-input
v-model="queryParams.ownerUserId"
placeholder="请输入负责人"
clearable
@keyup.enter="handleQuery"
class="!w-240px"
/>
</el-form-item>
<el-form-item label="最后跟进时间" prop="contactLastTime">
<el-date-picker
v-model="queryParams.contactLastTime"
value-format="YYYY-MM-DD HH:mm:ss"
type="daterange"
start-placeholder="开始日期"
end-placeholder="结束日期"
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
class="!w-240px"
/>
</el-form-item>
<el-form-item label="创建时间" prop="createTime">
<el-date-picker
v-model="queryParams.createTime"
value-format="YYYY-MM-DD HH:mm:ss"
type="daterange"
start-placeholder="开始日期"
end-placeholder="结束日期"
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
class="!w-240px"
/>
</el-form-item>
<el-form-item>
<el-button @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button>
<el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button>
@ -238,17 +148,9 @@ const list = ref([]) // 列表的数据
const queryParams = reactive({
pageNo: 1,
pageSize: 10,
transformStatus: null,
followUpStatus: null,
name: null,
customerId: null,
contactNextTime: [],
telephone: null,
mobile: null,
address: null,
ownerUserId: null,
contactLastTime: [],
createTime: []
mobile: null
})
const queryFormRef = ref() //
const exportLoading = ref(false) //