|
|
|
@ -81,7 +81,7 @@
|
|
|
|
|
<dict-tag :options="dict.type.process_type" :value="scope.row.processType"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="单位生产时间" align="center" prop="productionTime" v-if="columns[4].visible"/>
|
|
|
|
|
<el-table-column label="标准工时(分钟)" align="center" prop="productionTime" v-if="columns[4].visible"/>
|
|
|
|
|
<el-table-column label="激活标识" align="center" prop="activeFlag" v-if="columns[5].visible" >
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.active_flag" :value="scope.row.activeFlag"/>
|
|
|
|
@ -136,7 +136,7 @@
|
|
|
|
|
|
|
|
|
|
<!-- 添加或修改工序信息对话框 -->
|
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="110px">
|
|
|
|
|
<el-form-item label="工序编号" prop="processCode">
|
|
|
|
|
<el-input v-model="form.processCode" placeholder="请输入工序编号" />
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -153,8 +153,8 @@
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="单位生产时间" prop="productionTime">
|
|
|
|
|
<el-input v-model="form.productionTime" placeholder="请输入单位生产时间" />
|
|
|
|
|
<el-form-item label="标准工时(分钟)" prop="productionTime">
|
|
|
|
|
<el-input-number v-model="form.productionTime" placeholder="请输入标准工时(分钟)" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="激活标识" prop="activeFlag">
|
|
|
|
|
<el-radio-group v-model="form.activeFlag">
|
|
|
|
@ -305,6 +305,8 @@ export default {
|
|
|
|
|
loading: true,
|
|
|
|
|
// 选中数组
|
|
|
|
|
ids: [],
|
|
|
|
|
// 选中数组
|
|
|
|
|
idNames: [],
|
|
|
|
|
// 子表选中数据
|
|
|
|
|
checkedMesBaseProcessProdline: [],
|
|
|
|
|
// 子表选中数据
|
|
|
|
@ -359,7 +361,7 @@ export default {
|
|
|
|
|
{ key: 1, label: `工序编号`, visible: true },
|
|
|
|
|
{ key: 2, label: `工序名称`, visible: true },
|
|
|
|
|
{ key: 3, label: `工序类别`, visible: true },
|
|
|
|
|
{ key: 4, label: `单位生产时间`, visible: true },
|
|
|
|
|
{ key: 4, label: `标准工时(分钟)`, visible: true },
|
|
|
|
|
{ key: 5, label: `激活标识`, visible: false },
|
|
|
|
|
{ key: 6, label: `备注`, visible: true },
|
|
|
|
|
{ key: 7, label: `创建人`, visible: false },
|
|
|
|
@ -438,6 +440,7 @@ export default {
|
|
|
|
|
// 多选框选中数据
|
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
|
this.ids = selection.map(item => item.processId)
|
|
|
|
|
this.idNames = selection.map(item => item.processCode)
|
|
|
|
|
this.single = selection.length!==1
|
|
|
|
|
this.multiple = !selection.length
|
|
|
|
|
},
|
|
|
|
@ -518,7 +521,8 @@ export default {
|
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
|
handleDelete(row) {
|
|
|
|
|
const processIds = row.processId || this.ids;
|
|
|
|
|
this.$modal.confirm('是否确认删除工序信息编号为"' + processIds + '"的数据项?').then(function() {
|
|
|
|
|
const processCodes = row.processCode || this.idNames;
|
|
|
|
|
this.$modal.confirm('是否确认删除工序编号为"' + processCodes + '"的数据项?').then(function() {
|
|
|
|
|
return delProcessInfo(processIds);
|
|
|
|
|
}).then(() => {
|
|
|
|
|
this.getList();
|
|
|
|
@ -537,7 +541,6 @@ export default {
|
|
|
|
|
handleAddMesBaseProcessProdline() {
|
|
|
|
|
let obj = {};
|
|
|
|
|
this.mesBaseProcessProdlineList.push(obj);
|
|
|
|
|
console.log(this.mesBaseProcessProdlineList)
|
|
|
|
|
},
|
|
|
|
|
/** 工序关联产线删除按钮操作 */
|
|
|
|
|
handleDeleteMesBaseProcessProdline() {
|
|
|
|
|