Commit cd7734b2 authored by lwy's avatar lwy

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

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