Commit 6ace1656 authored by qiyaxin's avatar qiyaxin

CCAP控制计划管理-调整编制负责人

parent d3847c16
...@@ -41,5 +41,13 @@ ...@@ -41,5 +41,13 @@
"messageContent": "消息内容", "messageContent": "消息内容",
"selectMessageReceiver": "选择消息接收人", "selectMessageReceiver": "选择消息接收人",
"editMessageContent": "编辑消息内容", "editMessageContent": "编辑消息内容",
"selectPersonnel": "选择人员" "selectPersonnel": "选择人员",
"controlPlanNumberPrefix": "(控制计划编号:",
"controlPlanNumberSuffix": ")",
"keyPartsList": "关键零部件清单",
"keyProcessAssemblyInspectionList": "关键工序、装配、检验清单",
"copTestAndChecklist": "COP试验和检查表",
"compilationResponsiblePerson": "编制负责人",
"manufacturingCompilationResponsiblePerson": "制造编制负责人",
"qualityControlCompilationResponsiblePerson": "质管编制负责人"
} }
...@@ -41,5 +41,13 @@ ...@@ -41,5 +41,13 @@
"messageContent": "Message Content", "messageContent": "Message Content",
"selectMessageReceiver": "Select Message Receiver", "selectMessageReceiver": "Select Message Receiver",
"editMessageContent": "Edit Message Content", "editMessageContent": "Edit Message Content",
"selectPersonnel": "Select Personnel" "selectPersonnel": "Select Personnel",
"controlPlanNumberPrefix": "(Control Plan Number: ",
"controlPlanNumberSuffix": ")",
"keyPartsList": "Key Parts List",
"keyProcessAssemblyInspectionList": "Key Process, Assembly and Inspection List",
"copTestAndChecklist": "COP Test and Checklist",
"compilationResponsiblePerson": "Compilation Responsible Person",
"manufacturingCompilationResponsiblePerson": "Manufacturing Compilation Responsible Person",
"qualityControlCompilationResponsiblePerson": "Quality Control Compilation Responsible Person"
} }
...@@ -451,51 +451,59 @@ ...@@ -451,51 +451,59 @@
<!-- 调整编制负责人弹出框--> <!-- 调整编制负责人弹出框-->
<el-dialog <el-dialog
v-model="adjustCompilationResponsiblePersonDialogVisible" v-model="adjustCompilationResponsiblePersonDialogVisible"
title="调整编制负责人 (控制计划编号: xxxxxxxx)" title="调整编制负责人"
:width="600 + 'px'"
:height="600 + 'px'"
custom-class="my-dialog-style" custom-class="my-dialog-style"
style="width: 950px;height: 500px;margin-top: 200px" :fullscreen="true"
> >
<template #header>
<div style="color: #666666;font-size: 16px;font-weight: bold"><span>{{ cn.adjustCompilationResponsiblePerson }} </span><span>{{ cn.controlPlanNumberPrefix }} {{ currentRow.controlPlanNumber }} {{ cn.controlPlanNumberSuffix }}</span></div>
<div style="color: #666666;font-size: 16px;font-weight: bold"><span>{{ en.adjustCompilationResponsiblePerson }} </span><span>{{ en.controlPlanNumberPrefix }} {{ currentRow.controlPlanNumber }} {{ en.controlPlanNumberSuffix }}</span></div>
</template>
<template #default> <template #default>
<!-- 01.关键零部件清单-->
<div> <div>
<div class="tab-components"> <div class="tab-components" style="margin-bottom: 10px">
<span class="components-span">01.关键零部件清单</span> <span class="components-span">01.{{cn.keyPartsList}}/{{en.keyPartsList}}</span>
</div> </div>
<el-checkbox v-model="isChecked1"> <el-checkbox v-model="isChecked1">
编制负责人: {{cn.keyPartsList}}/{{en.keyPartsList}}
<el-input v-model="personInCharge1" :disabled="!isChecked1" style="width: 200px" /> <el-input v-model="personInCharge1" :disabled="!isChecked1" style="width: 200px;margin-right: 10px" />
<el-button type="primary" plain icon="user" :disabled="!isChecked1">选择人员</el-button> <el-button type="primary" plain icon="user" :disabled="!isChecked1">{{cn.selectPersonnel}}/{{en.selectPersonnel}}</el-button>
</el-checkbox> </el-checkbox>
</div> </div>
<!-- 02.关键工序、装配、检验清单-->
<div> <div>
<div class="tab-components"> <div class="tab-components" style="margin-bottom: 10px">
<span class="components-span">02.关键工序、装配、检验清单</span> <span class="components-span">02.{{cn.keyProcessAssemblyInspectionList}}/{{en.keyProcessAssemblyInspectionList}}</span>
</div> </div>
<el-checkbox v-model="isChecked2"> <el-checkbox v-model="isChecked2">
编制负责人: {{cn.keyPartsList}}/{{en.keyPartsList}}
<el-input v-model="personInCharge2" :disabled="!isChecked2" style="width: 200px" /> <el-input v-model="personInCharge2" :disabled="!isChecked2" style="width: 200px;margin-right: 10px" />
<el-button type="primary" plain icon="user" :disabled="!isChecked2">选择人员</el-button> <el-button type="primary" plain icon="user" :disabled="!isChecked2">{{cn.selectPersonnel}}/{{en.selectPersonnel}}</el-button>
</el-checkbox> </el-checkbox>
</div> </div>
<!-- 03.COP试验和检查表-->
<div> <div>
<div class="tab-components"> <div class="tab-components" style="margin-bottom: 10px">
<span class="components-span">03.COP试验和检查表</span> <span class="components-span">03.{{cn.copTestAndChecklist}}/{{en.copTestAndChecklist}}</span>
</div> </div>
<el-checkbox v-model="isChecked3"> <el-checkbox v-model="isChecked3">
制造编制负责人: {{cn.manufacturingCompilationResponsiblePerson}}/{{en.manufacturingCompilationResponsiblePerson}}
<el-input v-model="manufacturingPersonInCharge" :disabled="!isChecked3" style="width: 200px" /> <el-input v-model="manufacturingPersonInCharge" :disabled="!isChecked3" style="width: 200px;margin-right: 10px" />
<el-button type="primary" plain icon="user" :disabled="!isChecked3">选择人员</el-button> <el-button type="primary" plain icon="user" :disabled="!isChecked3">{{cn.selectPersonnel}}/{{en.selectPersonnel}}</el-button>
</el-checkbox> </el-checkbox>
<el-checkbox v-model="isChecked4"> <el-checkbox v-model="isChecked4">
质管编制负责人: {{cn.qualityControlCompilationResponsiblePerson}}/{{en.qualityControlCompilationResponsiblePerson}}
<el-input v-model="qualityControlPersonInCharge" :disabled="!isChecked4" style="width: 200px" /> <el-input v-model="qualityControlPersonInCharge" :disabled="!isChecked4" style="width: 200px;margin-right: 10px" />
<el-button type="primary" plain icon="user" :disabled="!isChecked4">选择人员</el-button> <el-button type="primary" plain icon="user" :disabled="!isChecked4">{{cn.selectPersonnel}}/{{en.selectPersonnel}}</el-button>
</el-checkbox> </el-checkbox>
</div> </div>
</template> </template>
<template #footer> <template #footer>
<el-button @click="adjustCompilationResponsiblePersonDialogVisible = false">取消</el-button> <div style="margin-top: 60px">
<el-button type="primary" @click="adjustCompilationResponsiblePersonSubmitForm(row)">确定</el-button> <el-button @click="adjustCompilationResponsiblePersonDialogVisible = false">{{cn.cancel}}/{{en.cancel}}</el-button>
<el-button type="primary" @click="adjustCompilationResponsiblePersonSubmitForm(row)">{{cn.confirm}}/{{en.confirm}}</el-button>
</div>
</template> </template>
</el-dialog> </el-dialog>
...@@ -539,6 +547,7 @@ const remindDownloadForm = ref({ ...@@ -539,6 +547,7 @@ const remindDownloadForm = ref({
const businessList = ref([]); const businessList = ref([]);
const tableList = ref([]); const tableList = ref([]);
const controlPlanStatusOptions = ref([]); const controlPlanStatusOptions = ref([]);
const currentRow = ref(null);
const undoDialogVisible = ref(false) //撤回提示框 const undoDialogVisible = ref(false) //撤回提示框
const deleteDialogVisible = ref(false) //删除提示框 const deleteDialogVisible = ref(false) //删除提示框
const drawer = ref(false) //提醒下载抽屉 const drawer = ref(false) //提醒下载抽屉
...@@ -641,6 +650,7 @@ function handleDelete(row) { ...@@ -641,6 +650,7 @@ function handleDelete(row) {
/** 调整编制负责人按钮操作 */ /** 调整编制负责人按钮操作 */
function adjustCompilationResponsiblePerson(row) { function adjustCompilationResponsiblePerson(row) {
adjustCompilationResponsiblePersonDialogVisible.value = true adjustCompilationResponsiblePersonDialogVisible.value = true
currentRow.value = row;
} }
/** 提交调整编制负责人更改 */ /** 提交调整编制负责人更改 */
function adjustCompilationResponsiblePersonSubmitForm(row) { function adjustCompilationResponsiblePersonSubmitForm(row) {
...@@ -648,11 +658,13 @@ function adjustCompilationResponsiblePersonSubmitForm(row) { ...@@ -648,11 +658,13 @@ function adjustCompilationResponsiblePersonSubmitForm(row) {
keyPartsListPersonInCharge: personInCharge1.value, keyPartsListPersonInCharge: personInCharge1.value,
keyProcessListPersonInCharge: personInCharge2.value, keyProcessListPersonInCharge: personInCharge2.value,
manufacturingPersonInCharge: manufacturingPersonInCharge.value, manufacturingPersonInCharge: manufacturingPersonInCharge.value,
qualityControlPersonInCharge: qualityControlPersonInCharge.value qualityControlPersonInCharge: qualityControlPersonInCharge.value,
controlPlanId: row.id
}; };
async function submitData() { async function submitData() {
try { try {
// 调用提交接口传formData
adjustCompilationResponsiblePersonDialogVisible.value = false; adjustCompilationResponsiblePersonDialogVisible.value = false;
ElMessage.success('数据提交成功'); ElMessage.success('数据提交成功');
...@@ -705,6 +717,7 @@ onMounted(()=>{ ...@@ -705,6 +717,7 @@ onMounted(()=>{
:deep(.el-pagination.is-background .el-pager li.is-active){ :deep(.el-pagination.is-background .el-pager li.is-active){
background-color: #0154FB; background-color: #0154FB;
} }
:deep(.el-checkbox__input.is-checked+.el-checkbox__label){}
.tab-components{ .tab-components{
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
......
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