更新维修记录、精工车间开发流程,新增文档和物料采购进度功能

This commit is contained in:
Developer
2026-06-11 15:24:22 +08:00
parent d0c6ee299c
commit d523c57057
8 changed files with 2261 additions and 3 deletions

View File

@@ -88,17 +88,25 @@
<el-input :disabled="scope.row.加工状态 === 1 || Number(scope.row.是否选进外协单中) === 1" v-model="scope.row.工艺要求" size="mini" style="margin: 0;width: 100%" @change="updateProcess(scope.row)"/>
</template>
</el-table-column>
<el-table-column width="130px" label="定额工时" align="center" prop="" show-overflow-tooltip>
<el-table-column width="90px" label="定额工时" align="center" prop="" show-overflow-tooltip>
<template slot-scope="scope">
<el-input :disabled="scope.row.加工状态 === 1 || Number(scope.row.是否选进外协单中) === 1" v-model="scope.row.定额工时" size="mini" style="margin: 0;width: 100%" @change="updateProcess(scope.row)"/>
</template>
</el-table-column>
<el-table-column width="130px" label="准结工时" align="center" prop="" show-overflow-tooltip>
<el-table-column width="90px" label="准结工时" align="center" prop="" show-overflow-tooltip>
<template slot-scope="scope">
<el-input :disabled="scope.row.加工状态 === 1 || Number(scope.row.是否选进外协单中) === 1" v-model="scope.row.准结工时" size="mini" style="margin: 0;width: 100%" @change="updateProcess(scope.row)"/>
</template>
</el-table-column>
<el-table-column label="操作" align="center" width="230px">
<el-table-column label="是否变更" align="center" width="100px">
<template slot-scope="scope">
<el-select v-model="scope.row.是否变更" size="mini" style="width: 80px" @change="changeAllow(scope.row)">
<el-option label="允许" :value="1"/>
<el-option label="不许" :value="0"/>
</el-select>
</template>
</el-table-column>
<el-table-column label="操作" align="center" width="200px">
<template slot-scope="scope">
<el-tooltip :open-delay="700" effect="dark" content="下移工序" placement="top">
<el-button :disabled="scope.row.加工状态 === 1 || Number(scope.row.是否选进外协单中) === 1" type="text" icon="el-icon-bottom" size="mini" style="margin-right: 5px" @click="downOne(scope.row)"/>
@@ -145,6 +153,14 @@
<el-input v-model="scope.row.准结工时" size="mini" style="margin: 0;width: 100%" @change="updateProcess(scope.row)"/>
</template>
</el-table-column>
<el-table-column label="是否变更" align="center" width="100px">
<template slot-scope="scope">
<el-select v-model="scope.row.是否变更" size="mini" style="width: 80px" @change="changeAllow(scope.row)">
<el-option label="允许" :value="1"/>
<el-option label="不许" :value="0"/>
</el-select>
</template>
</el-table-column>
<el-table-column label="操作" align="center" width="230px">
<template slot-scope="scope">
<el-tooltip :open-delay="700" effect="dark" content="下移工序" placement="top">
@@ -834,6 +850,14 @@ export default {
}
this.searchTable()
},
changeAllow(row) {
var param = []
param[0] = ['工艺计划流水号', row.工艺计划流水号]
param[1] = ['工序顺序', row.工序顺序]
param[2] = ['是否变更', row.是否变更]
var Data = this.CreateData('12', '车间生产管理工艺_零件工序_变更允许', param)
this.ExecDatabase(Data)
},
updateProcess(row) {
if (!this.checked) {
var param = []