|
|
@ -93,7 +93,8 @@
|
|
|
|
<el-col :span="18">
|
|
|
|
<el-col :span="18">
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="24">{{ scope.row.name }}</el-col>
|
|
|
|
<el-col :span="24">{{ scope.row.name }}</el-col>
|
|
|
|
<el-col :span="24"><dict-tag :type="DICT_TYPE.customer_type" :value="scope.row.reservedFields1" /></el-col>
|
|
|
|
<el-col :span="24"><dict-tag :type="DICT_TYPE.customer_type"
|
|
|
|
|
|
|
|
:value="scope.row.reservedFields1" /></el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
@ -121,7 +122,7 @@
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="客户星级" prop="customerStarrating" width="150px">
|
|
|
|
<el-table-column label="客户星级" prop="customerStarrating" width="150px">
|
|
|
|
<template #default="scope">
|
|
|
|
<template #default="scope">
|
|
|
|
<el-rate v-model="scope.row.customerStarrating" :disabled="true"/>
|
|
|
|
<el-rate v-model="scope.row.customerStarrating" :disabled="true" />
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="业务进度" prop="industrySchedule" width="120px">
|
|
|
|
<el-table-column label="业务进度" prop="industrySchedule" width="120px">
|
|
|
@ -197,7 +198,7 @@ const { t } = useI18n() // 国际化
|
|
|
|
const loading = ref(true) // 列表的加载中
|
|
|
|
const loading = ref(true) // 列表的加载中
|
|
|
|
const total = ref(0) // 列表的总页数
|
|
|
|
const total = ref(0) // 列表的总页数
|
|
|
|
const list = ref([]) // 列表的数据
|
|
|
|
const list = ref([]) // 列表的数据
|
|
|
|
let queryParams : any = reactive({
|
|
|
|
let queryParams: any = reactive({
|
|
|
|
pageNo: 1,
|
|
|
|
pageNo: 1,
|
|
|
|
pageSize: 10,
|
|
|
|
pageSize: 10,
|
|
|
|
businessType: null,
|
|
|
|
businessType: null,
|
|
|
@ -311,8 +312,10 @@ const resetQuery = () => {
|
|
|
|
|
|
|
|
|
|
|
|
/** 添加/修改操作 */
|
|
|
|
/** 添加/修改操作 */
|
|
|
|
const formRef = ref()
|
|
|
|
const formRef = ref()
|
|
|
|
|
|
|
|
const router = useRouter()
|
|
|
|
const openForm = (type: string, id?: number) => {
|
|
|
|
const openForm = (type: string, id?: number) => {
|
|
|
|
formRef.value.open(type, id)
|
|
|
|
router.push({ path: '/customer/customer-add' })
|
|
|
|
|
|
|
|
//formRef.value.open(type, id)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/** 新建任务操作 */
|
|
|
|
/** 新建任务操作 */
|
|
|
@ -322,12 +325,12 @@ const openForm2 = (type: string, id?: number) => {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const subjectTransferFormRef = ref()
|
|
|
|
const subjectTransferFormRef = ref()
|
|
|
|
const openForm3 = (type: string, id?: number) => {
|
|
|
|
const openForm3 = (type: string, id?: number) => {
|
|
|
|
if(multipleSelection.value == undefined || multipleSelection.value.length <= 0){
|
|
|
|
if (multipleSelection.value == undefined || multipleSelection.value.length <= 0) {
|
|
|
|
message.error(t('请选择需要转移的客户'))
|
|
|
|
message.error(t('请选择需要转移的客户'))
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
let customerIds : any = ref([])
|
|
|
|
let customerIds: any = ref([])
|
|
|
|
let belongingPeoples : any = ref([])
|
|
|
|
let belongingPeoples: any = ref([])
|
|
|
|
multipleSelection.value.forEach(element => {
|
|
|
|
multipleSelection.value.forEach(element => {
|
|
|
|
customerIds.value.push(element.id);
|
|
|
|
customerIds.value.push(element.id);
|
|
|
|
belongingPeoples.value.push(element.belongingPeople);
|
|
|
|
belongingPeoples.value.push(element.belongingPeople);
|
|
|
|