|
|
@ -81,7 +81,7 @@
|
|
|
|
<dict-tag :options="dict.type.process_type" :value="scope.row.processType"/>
|
|
|
|
<dict-tag :options="dict.type.process_type" :value="scope.row.processType"/>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</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" >
|
|
|
|
<el-table-column label="激活标识" align="center" prop="activeFlag" v-if="columns[5].visible" >
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<dict-tag :options="dict.type.active_flag" :value="scope.row.activeFlag"/>
|
|
|
|
<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-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-form-item label="工序编号" prop="processCode">
|
|
|
|
<el-input v-model="form.processCode" placeholder="请输入工序编号" />
|
|
|
|
<el-input v-model="form.processCode" placeholder="请输入工序编号" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
@ -153,8 +153,8 @@
|
|
|
|
></el-option>
|
|
|
|
></el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="单位生产时间" prop="productionTime">
|
|
|
|
<el-form-item label="标准工时(分钟)" prop="productionTime">
|
|
|
|
<el-input v-model="form.productionTime" placeholder="请输入单位生产时间" />
|
|
|
|
<el-input-number v-model="form.productionTime" placeholder="请输入标准工时(分钟)" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="激活标识" prop="activeFlag">
|
|
|
|
<el-form-item label="激活标识" prop="activeFlag">
|
|
|
|
<el-radio-group v-model="form.activeFlag">
|
|
|
|
<el-radio-group v-model="form.activeFlag">
|
|
|
@ -305,6 +305,8 @@ export default {
|
|
|
|
loading: true,
|
|
|
|
loading: true,
|
|
|
|
// 选中数组
|
|
|
|
// 选中数组
|
|
|
|
ids: [],
|
|
|
|
ids: [],
|
|
|
|
|
|
|
|
// 选中数组
|
|
|
|
|
|
|
|
idNames: [],
|
|
|
|
// 子表选中数据
|
|
|
|
// 子表选中数据
|
|
|
|
checkedMesBaseProcessProdline: [],
|
|
|
|
checkedMesBaseProcessProdline: [],
|
|
|
|
// 子表选中数据
|
|
|
|
// 子表选中数据
|
|
|
@ -359,7 +361,7 @@ export default {
|
|
|
|
{ key: 1, label: `工序编号`, visible: true },
|
|
|
|
{ key: 1, label: `工序编号`, visible: true },
|
|
|
|
{ key: 2, label: `工序名称`, visible: true },
|
|
|
|
{ key: 2, label: `工序名称`, visible: true },
|
|
|
|
{ key: 3, label: `工序类别`, visible: true },
|
|
|
|
{ key: 3, label: `工序类别`, visible: true },
|
|
|
|
{ key: 4, label: `单位生产时间`, visible: true },
|
|
|
|
{ key: 4, label: `标准工时(分钟)`, visible: true },
|
|
|
|
{ key: 5, label: `激活标识`, visible: false },
|
|
|
|
{ key: 5, label: `激活标识`, visible: false },
|
|
|
|
{ key: 6, label: `备注`, visible: true },
|
|
|
|
{ key: 6, label: `备注`, visible: true },
|
|
|
|
{ key: 7, label: `创建人`, visible: false },
|
|
|
|
{ key: 7, label: `创建人`, visible: false },
|
|
|
@ -438,6 +440,7 @@ export default {
|
|
|
|
// 多选框选中数据
|
|
|
|
// 多选框选中数据
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
this.ids = selection.map(item => item.processId)
|
|
|
|
this.ids = selection.map(item => item.processId)
|
|
|
|
|
|
|
|
this.idNames = selection.map(item => item.processCode)
|
|
|
|
this.single = selection.length!==1
|
|
|
|
this.single = selection.length!==1
|
|
|
|
this.multiple = !selection.length
|
|
|
|
this.multiple = !selection.length
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -518,7 +521,8 @@ export default {
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
handleDelete(row) {
|
|
|
|
handleDelete(row) {
|
|
|
|
const processIds = row.processId || this.ids;
|
|
|
|
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);
|
|
|
|
return delProcessInfo(processIds);
|
|
|
|
}).then(() => {
|
|
|
|
}).then(() => {
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
@ -537,7 +541,6 @@ export default {
|
|
|
|
handleAddMesBaseProcessProdline() {
|
|
|
|
handleAddMesBaseProcessProdline() {
|
|
|
|
let obj = {};
|
|
|
|
let obj = {};
|
|
|
|
this.mesBaseProcessProdlineList.push(obj);
|
|
|
|
this.mesBaseProcessProdlineList.push(obj);
|
|
|
|
console.log(this.mesBaseProcessProdlineList)
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 工序关联产线删除按钮操作 */
|
|
|
|
/** 工序关联产线删除按钮操作 */
|
|
|
|
handleDeleteMesBaseProcessProdline() {
|
|
|
|
handleDeleteMesBaseProcessProdline() {
|
|
|
|