Commit d37ca124 authored by qiyaxin's avatar qiyaxin

CCAP控制计划管理-列表操作

parent 756474e0
......@@ -16,3 +16,11 @@ export function getAllBusinessUnitName(query) {
data: query,
})
}
// 查询CCAP控制计划历史列表
export function getCCAPPlanHistoryList(query) {
return request({
url: '/ccapPlan/hisList',
method: 'get',
params: query
})
}
......@@ -21,5 +21,12 @@
"COPTestAndChecklistFormStatus": "COP试验和检查表表单状态",
"operation": "操作",
"serialNumber": "序号",
"viewHistoricalControlPlan": "查看历史控制计划"
"viewHistoricalControlPlan": "查看历史控制计划",
"view": "查看",
"revoke": "撤销",
"adjustCompilationResponsiblePerson": "调整编制负责人",
"generateFile": "生成文件",
"remindDownload": "提醒下载",
"change": "变更",
"fineTune": "微调"
}
......@@ -21,5 +21,12 @@
"COPTestAndChecklistFormStatus": "COP Test and Checklist Form Status",
"operation": "Operation",
"serialNumber": "Ordinal",
"viewHistoricalControlPlan": "View Historical Control Plan"
"viewHistoricalControlPlan": "View Historical Control Plan",
"view": "View",
"revoke": "Revoke",
"adjustCompilationResponsiblePerson": "Adjust Compilation Responsible Person",
"generateFile": "Generate File",
"remindDownload": "Remind Download",
"change": "Change",
"fineTune": "Fine - Tune"
}
......@@ -3,6 +3,7 @@
"reset": "重置",
"pleaseChoose": "请选择",
"pleaseEnter": "请输入",
"pleaseChooseOrEnter": "请选择或输入",
"businessDivision": "事业部",
"vehicleTypeCode": "车型代码",
"vehicleTypeSeries": "车型系列",
......@@ -21,5 +22,17 @@
"COPTestAndChecklistFormStatus": "COP试验和检查表表单状态",
"operation": "操作",
"serialNumber": "序号",
"viewHistoricalControlPlan": "查看历史控制计划"
"viewHistoricalControlPlan": "查看历史控制计划",
"view": "查看",
"revoke": "撤销",
"adjustCompilationResponsiblePerson": "调整编制负责人",
"generateFile": "生成文件",
"remindDownload": "提醒下载",
"change": "变更",
"fineTune": "微调",
"delete": "删除",
"prompt": "提示",
"confirmUndoControlPlan": "确定撤销该控制计划吗?",
"cancel": "取消",
"confirm": "确定"
}
......@@ -3,6 +3,7 @@
"reset": "Reset",
"pleaseChoose": "Please Choose",
"pleaseEnter": "Please Enter",
"pleaseChooseOrEnter": "Please choose or enter",
"businessDivision": "Business division",
"vehicleTypeCode": "Vehicle Type Code",
"vehicleTypeSeries": "Vehicle Type Series",
......@@ -21,5 +22,17 @@
"COPTestAndChecklistFormStatus": "COP Test and Checklist Form Status",
"operation": "Operation",
"serialNumber": "Ordinal",
"viewHistoricalControlPlan": "View Historical Control Plan"
"viewHistoricalControlPlan": "View Historical Control Plan",
"view": "View",
"revoke": "Revoke",
"adjustCompilationResponsiblePerson": "Adjust Compilation Responsible Person",
"generateFile": "Generate File",
"remindDownload": "Remind Download",
"change": "Change",
"fineTune": "Fine Tune",
"delete": "Delete",
"prompt": "Prompt",
"confirmUndoControlPlan": "Are you sure to undo this control plan?",
"cancel": "Cancel",
"confirm": "Confirm"
}
......@@ -2,17 +2,17 @@
<div class="app-container">
<el-form v-model="queryParams" ref="queryRef" :inline="true" >
<!-- 事业部 -->
<el-form-item :label="`${cn.businessDivision}/${en.businessDivision}`" prop="status">
<el-form-item :label="`${cn.businessDivision}/${en.businessDivision}`" prop="businessUnitId">
<el-select
v-model="queryParams"
v-model="queryParams.businessUnitId"
:placeholder="`${cn.pleaseChoose}/${en.pleaseChoose}`"
clearable
style="width: 200px"
>
<el-option
v-for="dict in businessList"
:label="dict.businessUnitName"
:value="dict.id"
v-for="item in businessList"
:label="item.businessUnitName"
:value="item.businessUnitName"
/>
</el-select>
</el-form-item>
......@@ -226,6 +226,9 @@
<div>{{en.controlPlanStatus}}</div>
</div>
</template>
<template #default="scope">
<span :class="getStatusClass(changeControlPlanStatus(scope.row.controlPlanStatus))">{{ changeControlPlanStatus(scope.row.controlPlanStatus) }}</span>
</template>
</el-table-column>
<el-table-column label="操作" fixed="right" align="center" class-name="small-padding fixed-width">
<template #header>
......@@ -252,12 +255,38 @@
import cn from '@/locales/controlPlan/CCAPControlPlan/CCAPControlPlanManagement/history/cn.json'
import en from '@/locales/controlPlan/CCAPControlPlan/CCAPControlPlanManagement/history/en.json'
import { ref } from 'vue'
import {
getAllBusinessUnitName,
getCCAPPlanHistoryList,
getCCAPPlanList,
} from '@/api/CCAPControlPlanManagement/CCAPControlPlanManagement.js'
const total = ref(0);
const queryParams = ref({
pageNum: 1,
pageSize: 10
pageSize: 10,
businessUnitId:null,
vehicleModelCode:null,
vehicleSeries:null,
versionNumber:null,
controlPlanStatus:null,
createBy:null
});
const businessList = ref([]);
const tableList = ref([]);
function getAllBusinessUnit() {
getAllBusinessUnitName().then(res => {
businessList.value = res.data
})
}
function getList() {
getCCAPPlanHistoryList(queryParams.value).then(res => {
total.value = res.total
tableList.value = res.rows
});
}
</script>
<style scoped lang="scss">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment