diff --git a/src/views/business/manager/order/detail.vue b/src/views/business/manager/order/detail.vue index d97c240..f419817 100644 --- a/src/views/business/manager/order/detail.vue +++ b/src/views/business/manager/order/detail.vue @@ -75,8 +75,8 @@ // -------------------------------------------字典------------------------------------------ const isUrgentList = ref([])// 是否加急 -const sampleStatusList = ref([])// 检定完成度、样品检定状态 -const statusMap = ref({}) as any // 接收状态 +const statusList = ref([])// 接收状态 +const statusMap = ref({}) as any // 检定完成度、样品检定状态 const userList = ref<{ [key: string]: string }[]>([]) // 用户列表 // 获取字典值 @@ -85,9 +85,11 @@ getUserList({ offset: 1, limit: 999999 }).then((res: any) => { userList.value = res.data.rows }) - // 获取用户列表 + // 检测完成度 getDictByCode('sampleStatus').then((res) => { - sampleStatusList.value = res.data + res.data.forEach((item: any) => { + statusMap.value[`${item.value}`] = item.name + }) }) // 是否加急 const resIsUrgent = await getDictByCode('isUrgent') @@ -95,9 +97,7 @@ // 接收状态 const resStatus = await getDictByCode('orderStatus') - resStatus.data.forEach((item: any) => { - statusMap.value[`${item.value}`] = item.name - }) + statusList.value = resStatus.data } // -----------------------------------------路由参数---------------------------------------- // 从路由中获取页面类型参数