|
@@ -71,7 +71,7 @@
|
|
|
/>
|
|
/>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column prop="remark" label="备注" show-overflow-tooltip />
|
|
|
|
|
|
|
+<!-- <el-table-column prop="remark" label="备注" show-overflow-tooltip />-->
|
|
|
<el-table-column label="操作" width="200" align="center">
|
|
<el-table-column label="操作" width="200" align="center">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
<el-button link type="primary" size="small" @click="handleDetail(scope.row)" v-hasPermi="['archieves:customer:query']">详情</el-button>
|
|
<el-button link type="primary" size="small" @click="handleDetail(scope.row)" v-hasPermi="['archieves:customer:query']">详情</el-button>
|
|
@@ -375,9 +375,9 @@
|
|
|
import { ref, reactive, computed, onMounted, getCurrentInstance, toRefs } from 'vue'
|
|
import { ref, reactive, computed, onMounted, getCurrentInstance, toRefs } from 'vue'
|
|
|
import { globalHeaders } from '@/utils/request'
|
|
import { globalHeaders } from '@/utils/request'
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
|
|
-import { listCustomer, getCustomer, addCustomer, updateCustomer, delCustomer, changeCustomerStatus } from '@/api/archieves/customer'
|
|
|
|
|
|
|
+import { listCustomer, getCustomer, addCustomer, updateCustomer, delCustomer, changeCustomerStatus, updateCustomerRemark } from '@/api/archieves/customer'
|
|
|
import { listAllTag } from '@/api/archieves/tag'
|
|
import { listAllTag } from '@/api/archieves/tag'
|
|
|
-import { listPetByUser, addPet, updatePet, delPet } from '@/api/archieves/pet'
|
|
|
|
|
|
|
+import { listPetByUser, addPet, updatePet, delPet, updatePetRemark } from '@/api/archieves/pet'
|
|
|
import { listAllChangeLog } from '@/api/archieves/changeLog'
|
|
import { listAllChangeLog } from '@/api/archieves/changeLog'
|
|
|
import { listAreaStation } from '@/api/system/areaStation'
|
|
import { listAreaStation } from '@/api/system/areaStation'
|
|
|
import { listOnStore as listBrandOnStore } from '@/api/system/tenant'
|
|
import { listOnStore as listBrandOnStore } from '@/api/system/tenant'
|
|
@@ -700,26 +700,23 @@ const handleRemark = (row) => {
|
|
|
|
|
|
|
|
const saveRemark = () => {
|
|
const saveRemark = () => {
|
|
|
if (!remarkForm.content) return ElMessage.warning('请输入内容')
|
|
if (!remarkForm.content) return ElMessage.warning('请输入内容')
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
if (remarkTargetType.value === 'customer') {
|
|
if (remarkTargetType.value === 'customer') {
|
|
|
const data = {
|
|
const data = {
|
|
|
id: currentUser.value.id,
|
|
id: currentUser.value.id,
|
|
|
- name: currentUser.value.name,
|
|
|
|
|
- phone: currentUser.value.phone,
|
|
|
|
|
- remark: remarkForm.content
|
|
|
|
|
|
|
+ content: remarkForm.content
|
|
|
}
|
|
}
|
|
|
- updateCustomer(data).then(() => {
|
|
|
|
|
|
|
+ updateCustomerRemark(data).then(() => {
|
|
|
ElMessage.success('备注添加成功')
|
|
ElMessage.success('备注添加成功')
|
|
|
remarkDialogVisible.value = false
|
|
remarkDialogVisible.value = false
|
|
|
getList()
|
|
getList()
|
|
|
})
|
|
})
|
|
|
} else {
|
|
} else {
|
|
|
const data = {
|
|
const data = {
|
|
|
- id: currentUser.value.id,
|
|
|
|
|
- name: currentUser.value.name,
|
|
|
|
|
- remark: remarkForm.content
|
|
|
|
|
|
|
+ petId: currentUser.value.id,
|
|
|
|
|
+ content: remarkForm.content
|
|
|
}
|
|
}
|
|
|
- updatePet(data).then(() => {
|
|
|
|
|
|
|
+ updatePetRemark(data).then(() => {
|
|
|
ElMessage.success('宠物备注添加成功')
|
|
ElMessage.success('宠物备注添加成功')
|
|
|
remarkDialogVisible.value = false
|
|
remarkDialogVisible.value = false
|
|
|
if (customerDetailRef.value) {
|
|
if (customerDetailRef.value) {
|