Commit cd7734b2 authored by lwy's avatar lwy

feat(CQC控制计划管理):主列表按钮

parent 6a86e284
......@@ -18,7 +18,7 @@ export function historyListPlan(query) {
})
}
// 查询所有事业部名称
// 查询所有事业部名称---改查询区的事业部和车型代码需要根据当前登录用户的事业部权限显示对应的数据
export function getAllBusinessUnitName() {
return request({
url: '/control/unit/list',
......@@ -26,7 +26,7 @@ export function getAllBusinessUnitName() {
})
}
// 查询所有车型代码
// 查询所有车型代码---改查询区的事业部和车型代码需要根据当前登录用户的事业部权限显示对应的数据
export function getAllvehicleModelCode() {
return request({
url: '/control/notificationManagement/getAllModelCode',
......@@ -34,6 +34,23 @@ export function getAllvehicleModelCode() {
})
}
// 撤销控制计划
export function undoPlan(data) {
return request({
url: '/control/cqcPlan/revoke/',
method: 'put',
data: data
})
}
// 获取所有人员列表
export function getALLUserList() {
return request({
url: '/system/dept/userDeptList',
method: 'get'
})
}
// 查询CQC控制计划详细
export function getPlan(id) {
return request({
......@@ -63,7 +80,7 @@ export function updatePlan(data) {
// 删除CQC控制计划
export function delPlan(id) {
return request({
url: '/system/plan/' + id,
url: '/control/cqcPlan/delete/' + id,
method: 'delete'
})
}
......@@ -19,7 +19,9 @@
"productionSituation": "生产情况",
"keyPartsTaskStatus": "关键零部件控制表单状态",
"manufacturingProcessControlTaskStatus": "制造过程控制表单状态",
"wholeVehicleCopTaskStatus": "COP试验和检查表表单状态",
"wholeVehicleCopTaskStatus": "整车COP控制表单状态",
"wholeVehicleCopControl": "整车COP控制",
"keyPartsControl": "关键零部件控制",
"finalFileAddress": "终版文件",
"operation": "操作",
"serialNumber": "序号",
......@@ -46,7 +48,7 @@
"controlPlanNumberPrefix": "(控制计划编号:",
"controlPlanNumberSuffix": ")",
"keyPartsList": "关键零部件清单",
"keyProcessAssemblyInspectionList": "关键工序、装配、检验清单",
"manufacturingProcessControl": "制造过程控制",
"copTestAndChecklist": "COP试验和检查表",
"compilationResponsiblePerson": "编制负责人",
"manufacturingCompilationResponsiblePerson": "制造编制负责人",
......
......@@ -18,9 +18,11 @@
"productionPlant": "Production Plant",
"productionSituation": "Production Situation",
"keyPartsTaskStatus": "Key Parts From Status",
"keyPartsControl": "Key Parts Control",
"finalFileAddress": "Final File",
"manufacturingProcessControlTaskStatus": "Manufacturing Process Control From Status",
"wholeVehicleCopTaskStatus": "Whole Vehicle Cop From Status",
"wholeVehicleCopControl": "Whole Vehicle Cop Control",
"operation": "Operation",
"serialNumber": "Ordinal",
"viewHistoricalControlPlan": "View Historical Control Plan",
......@@ -47,6 +49,7 @@
"controlPlanNumberSuffix": ")",
"keyPartsList": "Key Parts List",
"keyProcessAssemblyInspectionList": "Key Process, Assembly and Inspection List",
"manufacturingProcessControl": "Manufacturing Process Control",
"copTestAndChecklist": "COP Test and Checklist",
"compilationResponsiblePerson": "Compilation Responsible Person",
"manufacturingCompilationResponsiblePerson": "Manufacturing Compilation Responsible Person",
......
......@@ -345,12 +345,20 @@
</template>
<script setup>
import { historyListPlan, getPlan, delPlan, addPlan, updatePlan } from "@/api/CQCControlPlanManagement/CQCControlPlanManagement.js";
import {
historyListPlan,
getAllBusinessUnitName,
delPlan,
addPlan,
updatePlan,
getAllvehicleModelCode
} from "@/api/CQCControlPlanManagement/CQCControlPlanManagement.js";
import cn from "@/locales/controlPlan/CQCControlPlan/CQCControlPlanManagement/index/cn.json";
import en from "@/locales/controlPlan/CQCControlPlan/CQCControlPlanManagement/index/en.json";
import {ref} from "vue";
const { proxy } = getCurrentInstance();
const {vehicle_model_series, control_plan_status} = proxy.useDict('vehicle_model_series','control_plan_status');
const historyList = ref([]);
const businessList = ref([]);
......@@ -463,7 +471,7 @@ function getAllBusinessUnit() {
}
/*查询所有车型代码*/
function getAllVehicleModelCode() {
function getVehicleModelCode() {
getAllvehicleModelCode().then(res => {
vehicleModelCodeList.value = res.data
})
......@@ -530,7 +538,7 @@ function handleDelete(row) {
onMounted(()=>{
getList()
getAllBusinessUnit()
getAllVehicleModelCode()
getVehicleModelCode()
})
</script>
......
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