code review:客户表的实现
This commit is contained in:
parent
690b208a4e
commit
dc5cf9f24c
@ -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 @wanwan:name 参数校验,必填 -->
|
||||||
<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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user