code review:客户表的实现

This commit is contained in:
YunaiV 2023-10-29 17:55:39 +08:00
parent 690b208a4e
commit dc5cf9f24c
2 changed files with 7 additions and 4 deletions

View File

@ -1,6 +1,5 @@
<template> <template>
<Dialog :title="dialogTitle" v-model="dialogVisible"> <Dialog :title="dialogTitle" v-model="dialogVisible">
<!-- TODO @wanwan表单按照 docs 提供的再改下 -->
<el-form <el-form
ref="formRef" ref="formRef"
:model="formData" :model="formData"
@ -9,6 +8,7 @@
v-loading="formLoading" v-loading="formLoading"
> >
<el-row> <el-row>
<!-- TODO @wanwanname 参数校验必填 -->
<el-form-item label="客户名称" prop="name"> <el-form-item label="客户名称" prop="name">
<el-input v-model="formData.name" placeholder="请输入客户名称" /> <el-input v-model="formData.name" placeholder="请输入客户名称" />
</el-form-item> </el-form-item>
@ -70,6 +70,7 @@
</el-form-item> </el-form-item>
</el-row> </el-row>
<el-row> <el-row>
<!-- TODO @wanwan地区的多级选择可以参考 UserForm.vue 所在地 areaId -->
<el-form-item label="地区编号" prop="areaId"> <el-form-item label="地区编号" prop="areaId">
<el-input v-model="formData.areaId" placeholder="请输入地区编号" /> <el-input v-model="formData.areaId" placeholder="请输入地区编号" />
</el-form-item> </el-form-item>
@ -77,7 +78,7 @@
<el-input v-model="formData.detailAddress" placeholder="请输入详细地址" /> <el-input v-model="formData.detailAddress" placeholder="请输入详细地址" />
</el-form-item> </el-form-item>
</el-row> </el-row>
<!-- TODO @Wanwan 少一个负责人字段默认先选中自己 --> <!-- TODO @wanwan 少一个负责人字段默认先选中自己可以先参考 TaskAssignRuleForm.vue formData.userIds注意新增的时候可以选择修改的时候只展示 -->
<el-row> <el-row>
<el-form-item label="下次联系时间" prop="contactNextTime"> <el-form-item label="下次联系时间" prop="contactNextTime">
<el-date-picker <el-date-picker

View File

@ -1,7 +1,7 @@
<template> <template>
<ContentWrap> <ContentWrap>
<!-- 搜索工作栏 --> <!-- 搜索工作栏 -->
<!-- TODO @wanwan筛选条件按照 docs 的再改下 --> <!-- TODO @wanwan看看怎么表单可以对齐一点 -->
<el-form <el-form
class="-mb-15px" class="-mb-15px"
:model="queryParams" :model="queryParams"
@ -27,6 +27,7 @@
class="!w-240px" class="!w-240px"
/> />
</el-form-item> </el-form-item>
<!-- TODO @wanwan筛选字段加所属行业客户等级客户来源 -->
<el-form-item> <el-form-item>
<el-button @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button> <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> <el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button>
@ -102,7 +103,8 @@
<dict-tag :type="DICT_TYPE.INFRA_BOOLEAN_STRING" :value="scope.row.lockStatus" /> <dict-tag :type="DICT_TYPE.INFRA_BOOLEAN_STRING" :value="scope.row.lockStatus" />
</template> </template>
</el-table-column> </el-table-column>
<!-- TODO @Wanwan 距进入公海天数 --> <!-- TODO @wanwan 距进入公海天数 -->
<!-- TODO @wanwan操作要 fixed 再右侧哈 -->
<el-table-column label="操作" align="center" width="160"> <el-table-column label="操作" align="center" width="160">
<template #default="scope"> <template #default="scope">
<el-button <el-button