工艺逻辑提交

dev-scheduling
zhangdi 3 months ago
parent 72cf2f67d7
commit 34e7c39b88
  1. 62
      src/views/processManagement/components/processMainte/partDetails.vue
  2. 10
      src/views/processManagement/components/processMainte/processPlanning.vue
  3. 2
      src/views/processManagement/components/processMainte/reworkProcessPlanning.vue

@ -278,7 +278,7 @@
</avue-crud> </avue-crud>
</el-card> </el-card>
</div> </div>
<div v-show="activeNameTab === '2'" class="box-card"> <div v-show="activeNameTab === '2'" class="box-card box-card-two">
<div class="process-left"> <div class="process-left">
<div class="process-select"> <div class="process-select">
<!-- 工艺级别--> <!-- 工艺级别-->
@ -361,8 +361,43 @@
</el-table> </el-table>
<el-table :data="form2.tableData2" style="width: 100%" v-if="activeName == '2'"> <el-table :data="form2.tableData2" style="width: 100%" v-if="activeName == '2'">
<el-table-column prop="processNo" label="工序号"></el-table-column> <el-table-column prop="processNo" label="工序号"></el-table-column>
<el-table-column prop="projectName" label="检验项目"> </el-table-column> <el-table-column prop="projectName" label="检验项目">
<el-table-column prop="projectStandard" label="检验标准"> </el-table-column> <template #default="scope">
<el-select
v-model="scope.row.projectName"
placeholder="请选择"
clearable
filterable
disabled
>
<el-option
v-for="(item, index) in projectOptions"
:label="item.name"
:value="item.id"
></el-option>
</el-select>
</template>
</el-table-column>
<el-table-column prop="projectStandard" label="检验标准">
<template #default="scope">
<el-select
v-model="scope.row.projectStandard"
placeholder="请选择"
clearable
filterable
disabled
>
<el-option
v-for="(item, index) in standardList"
:label="item.name"
:value="item.id"
></el-option>
</el-select>
</template>
</el-table-column>
<el-table-column prop="proHours" label="定额工时(分钟)"> </el-table-column> <el-table-column prop="proHours" label="定额工时(分钟)"> </el-table-column>
<el-table-column prop="prepareHours" label="准备工时(分钟)"></el-table-column> <el-table-column prop="prepareHours" label="准备工时(分钟)"></el-table-column>
</el-table> </el-table>
@ -407,6 +442,7 @@ import {
getProcessAuthorized, getProcessAuthorized,
getVersion, getVersion,
getPlatingList, getPlatingList,
getProject,
} from '@/api/processManagement/taskProcessing'; } from '@/api/processManagement/taskProcessing';
export default { export default {
@ -602,6 +638,8 @@ export default {
version: '', // version: '', //
versionOptions: [], // versionOptions: [], //
plateList: [], // plateList: [], //
projectOptions: [],
standardList:[],//
}; };
}, },
mounted() { mounted() {
@ -610,8 +648,19 @@ export default {
this.getCcraftInfo(); this.getCcraftInfo();
this.getPartInfo(); this.getPartInfo();
this.getPlatingList(); this.getPlatingList();
this.getStandardList()
}, },
methods: { methods: {
getStandardList() {
getStandardList().then(res => {
this.standardList = res.data.data;
});
},
getProject() {
getProject({ size: 999999, current: 1 }).then(res => {
this.projectOptions = res.data.data.records;
});
},
getPlatingList() { getPlatingList() {
getPlatingList().then(res => { getPlatingList().then(res => {
this.plateList = res.data.data; this.plateList = res.data.data;
@ -723,7 +772,7 @@ export default {
getPartDetail(this.rowData.id).then(res => { getPartDetail(this.rowData.id).then(res => {
this.formData = res.data.data.dsPartEntity; this.formData = res.data.data.dsPartEntity;
this.dataTable = res.data.data.dsPartEntities; this.dataTable = res.data.data.dsPartEntities;
this.partChange( this.formData.id) this.partChange(this.formData.id);
if (this.dataTable.length > 0) { if (this.dataTable.length > 0) {
this.dataTable.forEach(item => { this.dataTable.forEach(item => {
item.totalArea = (item.quota * item.area).toFixed(5); // 5 item.totalArea = (item.quota * item.area).toFixed(5); // 5
@ -816,10 +865,13 @@ export default {
top: -5px; top: -5px;
/* 或者使用 flex: 0 0 200px; 根据需要调整宽度 */ /* 或者使用 flex: 0 0 200px; 根据需要调整宽度 */
} }
.box-card-two{
height: calc(100vh - 200px);
}
.box-card { .box-card {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
// height: calc(100vh - 200px);
.process-left { .process-left {
// padding: 20px; // padding: 20px;

@ -88,7 +88,7 @@
<div class="table-btn-left"> <div class="table-btn-left">
<el-button type="primary" plain @click="addTable()">插入一行</el-button> <el-button type="primary" plain @click="addTable()">插入一行</el-button>
<el-button type="danger" plain @click="delTable()">删除选择行</el-button> <el-button type="danger" plain @click="delTable()">删除选择行</el-button>
<el-button type="primary" @click="saveInfo()">保存</el-button> <el-button type="primary" @click="saveInfo()" :loading="craftLoading">保存</el-button>
</div> </div>
<div class="table-btn-right" v-if="activeName == '1'"> <div class="table-btn-right" v-if="activeName == '1'">
<el-select <el-select
@ -535,6 +535,7 @@ export default {
}, },
data() { data() {
return { return {
craftLoading:false,
rank: '2', rank: '2',
processLevel: '2', processLevel: '2',
data: [], data: [],
@ -970,6 +971,7 @@ export default {
} }
}, },
saveInfo() { saveInfo() {
if (this.activeName == '1') { if (this.activeName == '1') {
// Form // Form
this.$refs.tableForm1.validate(async (isValid, invalidFields) => { this.$refs.tableForm1.validate(async (isValid, invalidFields) => {
@ -1158,6 +1160,7 @@ export default {
// }); // });
// } // }
// } // }
this.craftLoading = true
// //
if (this.treeNodes.rawData.qualityGradeCode) { if (this.treeNodes.rawData.qualityGradeCode) {
@ -1175,6 +1178,7 @@ export default {
authorizedAccomplish2(query_).then(res => { authorizedAccomplish2(query_).then(res => {
this.$message.success('保存成功'); this.$message.success('保存成功');
this.craftLoading = false
this.getDetails(); this.getDetails();
}); });
} }
@ -1183,6 +1187,7 @@ export default {
if (this.activeName == '2') { if (this.activeName == '2') {
this.$refs.tableForm2.validate((isValid, invalidFields) => { this.$refs.tableForm2.validate((isValid, invalidFields) => {
if (isValid) { if (isValid) {
this.craftLoading = true
let query_ = { let query_ = {
processEntity: this.treeNodes.rawData.processInfo, // processEntity: this.treeNodes.rawData.processInfo, //
processProjectEntityList: this.form2.tableData2, // processProjectEntityList: this.form2.tableData2, //
@ -1191,6 +1196,7 @@ export default {
saveProcessProjectSave(query_).then(res => { saveProcessProjectSave(query_).then(res => {
this.$message.success('保存成功'); this.$message.success('保存成功');
this.craftLoading = false
this.getDetails(); this.getDetails();
}); });
} }
@ -1199,6 +1205,7 @@ export default {
if (this.activeName == '3') { if (this.activeName == '3') {
this.$refs.tableForm3.validate((isValid, invalidFields) => { this.$refs.tableForm3.validate((isValid, invalidFields) => {
if (isValid) { if (isValid) {
this.craftLoading = true
let query_ = { let query_ = {
processEntity: this.treeNodes.rawData.processInfo, // processEntity: this.treeNodes.rawData.processInfo, //
processMeasuringToolEntities: this.form3.tableData3, // processMeasuringToolEntities: this.form3.tableData3, //
@ -1206,6 +1213,7 @@ export default {
}; };
saveProcessMeasuringTool(query_).then(res => { saveProcessMeasuringTool(query_).then(res => {
this.$message.success('保存成功'); this.$message.success('保存成功');
this.craftLoading = false
this.getDetails(); this.getDetails();
}); });
} }

@ -455,7 +455,7 @@ import {
getTeamSetList, getTeamSetList,
getStandardList getStandardList
} from '@/api/processManagement/taskProcessing'; } from '@/api/processManagement/taskProcessing';
import {getPartList} from '@/api/orderManagement/getPartList'; // import {getPartList} from '@/api/orderManagement/getPartList';
export default { export default {
name: 'CraftIndex', name: 'CraftIndex',

Loading…
Cancel
Save