新增跳转

pull/1/head
mhsnet 1 year ago
parent 5c88b27d42
commit 67d45f8e72

@ -72,7 +72,7 @@
v-hasPermi="['xxjj:subject-basic:export']"> v-hasPermi="['xxjj:subject-basic:export']">
<Icon icon="ep:upload" class="mr-5px" /> 导入 <Icon icon="ep:upload" class="mr-5px" /> 导入
</el-button> </el-button>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -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);

Loading…
Cancel
Save