|
@@ -11,21 +11,25 @@
|
|
<div class="form flex flex-wrap justify-between">
|
|
<div class="form flex flex-wrap justify-between">
|
|
<div class="formItem flex pt-2 pb-1">
|
|
<div class="formItem flex pt-2 pb-1">
|
|
<div class="w-20 text-right text-gray-500">客户名称:</div>
|
|
<div class="w-20 text-right text-gray-500">客户名称:</div>
|
|
- <div class="flex-1 overflow-hidden text-ellipsis whitespace-nowrap ml-1">{{ information.customName }}</div>
|
|
|
|
|
|
+ <div class="flex-1 overflow-hidden text-ellipsis whitespace-nowrap ml-1" v-ellipsis-tooltip>{{
|
|
|
|
+ information.customName }}</div>
|
|
</div>
|
|
</div>
|
|
<div class="formItem flex pt-2 pb-1">
|
|
<div class="formItem flex pt-2 pb-1">
|
|
<div class="w-22 text-right text-gray-500">客户来源:</div>
|
|
<div class="w-22 text-right text-gray-500">客户来源:</div>
|
|
- <div class="flex-1 overflow-hidden text-ellipsis whitespace-nowrap ml-1">{{ information.customSourceValue }}
|
|
|
|
|
|
+ <div class="flex-1 overflow-hidden text-ellipsis whitespace-nowrap ml-1">{{
|
|
|
|
+ information.customSourceValue }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="formItem flex pt-2 pb-1">
|
|
<div class="formItem flex pt-2 pb-1">
|
|
<div class="w-22 text-right text-gray-500">电话号码:</div>
|
|
<div class="w-22 text-right text-gray-500">电话号码:</div>
|
|
- <div class="flex-1 overflow-hidden text-ellipsis whitespace-nowrap ml-1">{{ information.companyPhone }}
|
|
|
|
|
|
+ <div class="flex-1 overflow-hidden text-ellipsis whitespace-nowrap ml-1" v-ellipsis-tooltip>{{
|
|
|
|
+ information.companyPhone }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="formItem flex pt-2 pb-1">
|
|
<div class="formItem flex pt-2 pb-1">
|
|
<div class="w-22 text-right text-gray-500">邮箱:</div>
|
|
<div class="w-22 text-right text-gray-500">邮箱:</div>
|
|
- <div class="flex-1 overflow-hidden text-ellipsis whitespace-nowrap ml-1">{{ information.email }}</div>
|
|
|
|
|
|
+ <div class="flex-1 overflow-hidden text-ellipsis whitespace-nowrap ml-1" v-ellipsis-tooltip>{{
|
|
|
|
+ information.email }}</div>
|
|
</div>
|
|
</div>
|
|
<div class="formItem flex pt-2 pb-1">
|
|
<div class="formItem flex pt-2 pb-1">
|
|
<div class="w-22 text-right text-gray-500">客户行业:</div>
|
|
<div class="w-22 text-right text-gray-500">客户行业:</div>
|
|
@@ -34,7 +38,8 @@
|
|
</div>
|
|
</div>
|
|
<div class="formItem flex pt-2 pb-1">
|
|
<div class="formItem flex pt-2 pb-1">
|
|
<div class="w-22 text-right text-gray-500">客户级别:</div>
|
|
<div class="w-22 text-right text-gray-500">客户级别:</div>
|
|
- <div class="flex-1 overflow-hidden text-ellipsis whitespace-nowrap ml-1">{{ information.customerLevelValue
|
|
|
|
|
|
+ <div class="flex-1 overflow-hidden text-ellipsis whitespace-nowrap ml-1">{{
|
|
|
|
+ information.customerLevelValue
|
|
}}</div>
|
|
}}</div>
|
|
</div>
|
|
</div>
|
|
<div class="formItem flex pt-2 pb-1">
|
|
<div class="formItem flex pt-2 pb-1">
|
|
@@ -48,7 +53,8 @@
|
|
</div>
|
|
</div>
|
|
<div class="formItem flex pt-2 pb-1">
|
|
<div class="formItem flex pt-2 pb-1">
|
|
<div class="w-22 text-right text-gray-500">创建人:</div>
|
|
<div class="w-22 text-right text-gray-500">创建人:</div>
|
|
- <div class="flex-1 overflow-hidden text-ellipsis whitespace-nowrap ml-1">{{ information.creatorName }}</div>
|
|
|
|
|
|
+ <div class="flex-1 overflow-hidden text-ellipsis whitespace-nowrap ml-1">{{ information.creatorName }}
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<div class="formItem flex pt-2 pb-1">
|
|
<div class="formItem flex pt-2 pb-1">
|
|
<div class="w-22 text-right text-gray-500">创建时间:</div>
|
|
<div class="w-22 text-right text-gray-500">创建时间:</div>
|
|
@@ -57,7 +63,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="formItem flex pt-2 pb-1" style="width: 100%;">
|
|
<div class="formItem flex pt-2 pb-1" style="width: 100%;">
|
|
<div class="w-22 text-right text-gray-500">备注:</div>
|
|
<div class="w-22 text-right text-gray-500">备注:</div>
|
|
- <div class="flex-1 ml-1 text ">
|
|
|
|
|
|
+ <div class="flex-1 ml-1 text " v-ellipsis-tooltip>
|
|
{{ information.customDesc }}
|
|
{{ information.customDesc }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -91,7 +97,8 @@
|
|
<div class="flex justify-between items-center border-b pb-3 dialog-header">
|
|
<div class="flex justify-between items-center border-b pb-3 dialog-header">
|
|
<h4 :id="titleId">{{ '编辑客户' }}</h4>
|
|
<h4 :id="titleId">{{ '编辑客户' }}</h4>
|
|
<div>
|
|
<div>
|
|
- <el-button type="primary" @click="saveCustomer()" :loading="allLoading.saveLading">保存</el-button>
|
|
|
|
|
|
+ <el-button type="primary" @click="saveCustomer()"
|
|
|
|
+ :loading="allLoading.saveLading">保存</el-button>
|
|
<el-button @click="closeVisible('editCustomerVisible')">取消</el-button>
|
|
<el-button @click="closeVisible('editCustomerVisible')">取消</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -144,7 +151,9 @@ const allVisible = reactive({
|
|
function saveCustomer() {
|
|
function saveCustomer() {
|
|
generateForm.value?.getData().then((res: any) => {
|
|
generateForm.value?.getData().then((res: any) => {
|
|
allLoading.saveLading = true
|
|
allLoading.saveLading = true
|
|
- post(URL_EDITSAVE, { ...generateFormValue.value, ...res }).then((_res) => {
|
|
|
|
|
|
+ let formVal = { ...generateFormValue.value, ...res }
|
|
|
|
+ delete formVal.createTime
|
|
|
|
+ post(URL_EDITSAVE, { ...formVal }).then((_res) => {
|
|
globalPopup?.showSuccess('操作成功')
|
|
globalPopup?.showSuccess('操作成功')
|
|
closeVisible('editCustomerVisible')
|
|
closeVisible('editCustomerVisible')
|
|
emits('refreshData')
|
|
emits('refreshData')
|
|
@@ -188,11 +197,12 @@ function claimCustomer() {
|
|
}
|
|
}
|
|
|
|
|
|
function editCustomer() {
|
|
function editCustomer() {
|
|
- const { id, companyPhone, customName, inchargerId, createTime, customSourceId, customerIndustryId, customerLevelId, email, telPhone } = information.value
|
|
|
|
|
|
+ const { id, companyPhone, customName, inchargerId, createTime, customSourceId, customerIndustryId, customerLevelId, email, telPhone, customDesc } = information.value
|
|
const formVal = {
|
|
const formVal = {
|
|
id, customName, inchargerId, customerIndustryId, customerLevelId, email, customSourceId,
|
|
id, customName, inchargerId, customerIndustryId, customerLevelId, email, customSourceId,
|
|
createTime: formatDate(new Date(createTime)),
|
|
createTime: formatDate(new Date(createTime)),
|
|
- telPhone, companyPhone
|
|
|
|
|
|
+ telPhone, companyPhone,
|
|
|
|
+ customDesc
|
|
}
|
|
}
|
|
generateFormValue.value = formVal
|
|
generateFormValue.value = formVal
|
|
allLoading.generateFormDataLoading = true
|
|
allLoading.generateFormDataLoading = true
|