|
|
|
@ -3,7 +3,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="3">
|
|
|
|
<el-col :span="2.5">
|
|
|
|
<el-form :model="queryForm" label-width="80px">
|
|
|
|
<el-form :model="queryForm" label-width="80px">
|
|
|
|
<el-form-item label="数据范围">
|
|
|
|
<el-form-item label="数据范围">
|
|
|
|
<el-select v-model="queryForm.selectedTimeRange" placeholder="选择时间范围" style="width: 100%">
|
|
|
|
<el-select v-model="queryForm.selectedTimeRange" placeholder="选择时间范围" style="width: 100%">
|
|
|
|
@ -18,6 +18,7 @@
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="primary"
|
|
|
|
type="primary"
|
|
|
|
@ -26,6 +27,30 @@
|
|
|
|
v-hasPermi="['warehouse:WmsImportResult:add']"
|
|
|
|
v-hasPermi="['warehouse:WmsImportResult:add']"
|
|
|
|
>帕累托分析</el-button>
|
|
|
|
>帕累托分析</el-button>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="3.5">
|
|
|
|
|
|
|
|
<el-form :model="queryForm" label-width="80px">
|
|
|
|
|
|
|
|
<el-form-item label="机台机型">
|
|
|
|
|
|
|
|
<el-select v-model="queryForm.selectedEquipmentType" placeholder="选择设备类型" style="width: 100%">
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="item in equipmentTypes"
|
|
|
|
|
|
|
|
:key="item.value"
|
|
|
|
|
|
|
|
:label="item.label"
|
|
|
|
|
|
|
|
:value="item.value"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="info"
|
|
|
|
|
|
|
|
plain
|
|
|
|
|
|
|
|
@click="handleRepairSummary"
|
|
|
|
|
|
|
|
v-hasPermi="['equipment:repair:list']"
|
|
|
|
|
|
|
|
>维修汇总</el-button>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
@ -54,6 +79,7 @@
|
|
|
|
v-hasPermi="['warehouse:WmsImportResult:export']"
|
|
|
|
v-hasPermi="['warehouse:WmsImportResult:export']"
|
|
|
|
>产品特征分析</el-button>
|
|
|
|
>产品特征分析</el-button>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
@ -65,6 +91,7 @@
|
|
|
|
:is="currentComponent"
|
|
|
|
:is="currentComponent"
|
|
|
|
v-if="currentComponent"
|
|
|
|
v-if="currentComponent"
|
|
|
|
:selected-time-range="queryForm.selectedTimeRange"
|
|
|
|
:selected-time-range="queryForm.selectedTimeRange"
|
|
|
|
|
|
|
|
:selected-equipment-type="queryForm.selectedEquipmentType"
|
|
|
|
:pareto-data="paretoData"
|
|
|
|
:pareto-data="paretoData"
|
|
|
|
:date-range="dateRange"
|
|
|
|
:date-range="dateRange"
|
|
|
|
@ai-analysis-complete="handleAIAnalysisComplete"
|
|
|
|
@ai-analysis-complete="handleAIAnalysisComplete"
|
|
|
|
@ -95,6 +122,7 @@ import { API_CONFIG } from "@/config/api"
|
|
|
|
import ParetoAnalysis from './ParetoAnalysis.vue'
|
|
|
|
import ParetoAnalysis from './ParetoAnalysis.vue'
|
|
|
|
import ItemAnalysis from './ItemAnalysis.vue'
|
|
|
|
import ItemAnalysis from './ItemAnalysis.vue'
|
|
|
|
import EmptyContent from './EmptyContent.vue'
|
|
|
|
import EmptyContent from './EmptyContent.vue'
|
|
|
|
|
|
|
|
import RepairSummary from './RepairSummary.vue'
|
|
|
|
|
|
|
|
|
|
|
|
const showSearch = ref(true)
|
|
|
|
const showSearch = ref(true)
|
|
|
|
const single = ref(true)
|
|
|
|
const single = ref(true)
|
|
|
|
@ -105,8 +133,15 @@ const timeRangeOptions = ref([
|
|
|
|
{ value: "近2年", label: "近2年" },
|
|
|
|
{ value: "近2年", label: "近2年" },
|
|
|
|
{ value: "近3年", label: "近3年" }
|
|
|
|
{ value: "近3年", label: "近3年" }
|
|
|
|
])
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const equipmentTypes = ref([
|
|
|
|
|
|
|
|
{ value: '漆包机', label: '漆包机' },
|
|
|
|
|
|
|
|
{ value: '拉丝机', label: '拉丝机' }
|
|
|
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
|
|
const queryForm = ref({
|
|
|
|
const queryForm = ref({
|
|
|
|
selectedTimeRange: "近1年"
|
|
|
|
selectedTimeRange: "近1年",
|
|
|
|
|
|
|
|
selectedEquipmentType: "漆包机"
|
|
|
|
})
|
|
|
|
})
|
|
|
|
const paretoData = ref([])
|
|
|
|
const paretoData = ref([])
|
|
|
|
const dateRange = ref({
|
|
|
|
const dateRange = ref({
|
|
|
|
@ -194,6 +229,14 @@ function handleItemAnalysis() {
|
|
|
|
currentComponent.value = ItemAnalysis;
|
|
|
|
currentComponent.value = ItemAnalysis;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 维修汇总按钮点击事件
|
|
|
|
|
|
|
|
function handleRepairSummary() {
|
|
|
|
|
|
|
|
// 打印调试信息
|
|
|
|
|
|
|
|
console.log('切换到维修汇总组件,设备类型:', queryForm.value.selectedEquipmentType);
|
|
|
|
|
|
|
|
// 切换到维修汇总组件
|
|
|
|
|
|
|
|
currentComponent.value = RepairSummary;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
<style>
|
|
|
|
|